Abstract:
A system classifies the information added with keywords by discovering the hierarchy relation with respect to all of keywords. There is generated a relation composed of a total link number and links to other keywords and information, each for keyword. The total link numbers of two relations with links are compared with each other thereby determining a high level relation having a larger total link number and a low level relation having a lower total link number, and a hierarchy structure can be discovered by making the link from the low level relation to the high level relation ineffective.

Description:
BACKGROUND OF THE INVENTION 
     Information systems such as document-retrieval systems handle information using keywords. Keywords help users to retrieve information. 
     However, existing information systems handling extensive information have a problem: 
     with many keywords available, which is the appropriate keyword to retrieve a given information? 
     The answer is to classify the information hierarchically. However, this leads to another problem, i.e., 
     When is the hierarchical structure decided? If the hierarchical structure is decided before information is entered, it may differ from the actual structure of the data. If not, how is the hierarchical structure decided? 
     This invention resolves these problems. 
     SUMMARY OF THE INVENTION 
     This invention classifies information by discovering the hierarchical structure of all keywords added to the information. 
     This invention creates relations from the keywords and discovers the hierarchical structure using the relations. 
     A relation contains an identifier, links and a total link number. Each identifier identifies a keyword; each link links to other relations or information. 
     The hierarchical structure of keywords is discovered as follows: 
     relations having a larger total link number are selected as the higher-ranking relation; and 
     links to higher-ranking relation are made ineffective. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a block diagram of an information-classifying system. 
     FIG. 2 is a block diagram of a keywords manager. 
     FIG. 3 is a combination of identifier and keyword, which is used by the keywords manager. 
     FIG. 4 is a block diagram of a relations manager. 
     FIG. 5 is an illustration of a relation. 
     FIG. 6 is a illustration of a link. 
     FIG. 7 is a block diagram of a particles manager. 
     FIG. 8 is an illustration of a particle. 
     FIG. 9 is an illustration of an alteration. 
     FIG. 10 is a hierarchical structure. 
     FIG. 11 is the numbers of combinations of keyword. 
     FIG. 12 is the numbers of times that keywords appear. 
     FIGS. 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,27, 28, 29, 30 and 31 show the process used to discover the hierarchical structure of keywords. 
     FIG. 32 is a flow chart of an algorithm used to discovering the hierarchical structure of keywords. 
     FIG. 33 is a detailed flowchart of box 2005. 
     FIG. 34 is a detailed flowchart of box 2102. 
     FIG. 35 is a chart that shows the concept of hierarchical discovery. 
     FIG. 36 is a flowchart of an algorithm used to modify relations. 
     FIG. 37 is a detailed flowchart of box 3008. 
     FIG. 38 is a chart that shows modification of relations. 
     FIG. 39 is an illustration of information display and selection process. 
     FIG. 40 is a chart stack structure. 
     FIG. 41 is a chart of background &#34;personality&#34;. 
     FIG. 42 is a chart of background &#34;particlesBG&#34;. 
     FIG. 43 is a chart of background &#34;relationsBG&#34;. 
     FIG. 44 is a chart of card &#34;memorandum&#34;. 
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
     First, I will explain the idea of this invention. 
     In an information system that handles numerous information, keywords are added to the information. 
     If the keywords are combined correctly, keywords for higher-ranking concepts will be more frequently used. 
     For example, information on &#34;money supply&#34; is classified by the keywords &#34;economics&#34; and &#34;social science&#34;. &#34;Social science&#34; is a higher-rank keyword than &#34;economics&#34;. This is because concept of social science includes economics, politics and sociology. &#34;Social science&#34; is always used as keyword whenever the lower-ranked keywords &#34;economics&#34;, &#34;sociology&#34; and &#34;politics&#34; are used. &#34;Social science&#34; is a more frequently used keyword than &#34;economics&#34;, &#34;politics&#34; or &#34;sociology&#34;; more frequently used keywords are of higher rank. 
     The hierarchical classification process is shown in FIGS. 10 to 31. 
     FIG. 11 shows the numbers of combinations of keywords. 
     The letter A,B,C . . . P refer to keywords. Of these, the combination of A and E is used 3 times, and the combination of A,E and J is 4 times. 
     FIG. 12 shows the numbers of times that keywords appear. This number is equal to the total link number of relation. 
     FIG. 13 shows a sorted list of relations. The vertical character string shows relations; AEIJKMNO refers to the relation for keyword A , known as relation A which has links to relations E,I,J,K,M,N and O. 
     First, the E of relation A is focused, the rhombus in FIG. 14 as a focal point. This E is the link that links to relation E, which is the vertical character string EAIJKMNO. 
     Relation A has a higher rank than relation E because relation A has larger total link number than relation E. Relation E&#39;s A, which links to relation A, is an ineffective link because part of relation A is focused. The cross in FIGS. 14 to 31 signifies the ineffective condition. The I,J,K,M,N and O of relation A are also ineffective links, because they are included in relation E, which is of lower rank than relation A. 
     Next, in FIG. 15, relation E&#39;s I, which links to relation I, is focused. Relation I is 8th vertical character string from left. 
     Link A and E of relation I are ineffective, because parts of relation A and relation E are focused. Link M and link N of relation E are also ineffective, because they are included in relation I which is of lower rank than relation E. 
     In FIG. 16, relation l&#39;s M, which links to relation M, is focused. Link A, link E and link I of relation M are ineffective, because they are the links which link to focused relations. 
     The above process is repeated, as shown in FIGS. 17 to 30. Finally, in FIG. 31, the links which are not marked with a cross are effective. The hierarchical structure of keywords is determined from these links. FIG. 10 shows the hierarchical structure. In FIG. 10, L1 means &#34;highest level&#34;. 
     An information-classifying system is shown in FIGS. 1 to 9 and FIGS. 32 to 39. FIG. 39 illustrates samples of information display and selection. The system accepts input of information which have keywords. 
     FIG. 1 shows a block diagram of the information-classifying system. 
     Input unit 101 accepts commands to add information and accepts selections of relations and information. 
     Analyzer 102 provides notification of the commands to total manager 103. 
     Total manager 1 03 manages the components of this information-classifying system. 
     Keywords manager 104 memorizes, encodes and decodes keywords. 
     Relations manager 105 generates relations and discovers the hierarchical structure. 
     Particles manager 106 memorizes, retrieves and generates particles. A particle is generated each information. One particle is equal to the combination of keywords and an information. 
     Display manager 107 controls display unit 108. 
     FIG. 2 shows keywords manager 104. 
     Keywords manager 104 accepts two types of request. 
     1. &#34;Enter&#34; request 
     Keyword-to-identifier converter 201 converts a keyword and returns an identifier. 
     If the keyword is not registered, keyword-to-identifier converter 201 registers the keyword. 
     2. &#34;Retrieve&#34; request 
     Identifier-to-keyword converter 202 converts an identifier and returns a keyword. 
     The combination of identifier 301 and keyword 302, shown in FIG. 3, is used by keyword-to-identifier converter 201 and identifier-to-keyword converter 202 in their conversion process. 
     FIG. 4 shows relations manager 105. A relation, which is shown in FIG. 5, comprises keyword identifier 501, total link number 502 and link array 503, 504 . . . A link, which is shown in FIG. 6, comprises identifier 601, link number 602 and flag 603. 
     Keyword identifier 501 identifies a keyword. 
     Total link number 502 is the sum of link numbers. 
     Identifier 601 identifies a particle or relation. 
     Link number 602 shows link thickness. 
     Flag 603 shows the relative position of a linked relation. Flag 603 is a four-valued flag: 
     1. the value &#34;isHigher&#34; means the linked relation is higher rank than this relation; 
     2. the value &#34;isSame&#34; means the linked relation is the same rank as this relation; 
     3. the value &#34;isLower&#34; means the linked relation is lower rank than this relation; 
     4. the value &#34;isIncluded&#34; means the link should be included in a lower relation. 
     Relations manager 105 accepts two types of request: 
     1. &#34;Modify relation&#34; request 
     When relation manager 105 accepts a modify relation request, relation modifier 401 modifies a link&#39;s identifier 601 and link number 602 using the alteration. An alteration is shown in FIG. 9. 
     Hierarchy discoverer 402 then discovers hierarchical structure. 
     2. &#34;Retrieve relation&#34; request 
     When relation manager 105 accepts a retrieve relation request, relation retriever 403 retrieves a relation. 
     FIG. 38 shows the relation modification process. In the figure, C . . . n means the relation&#39;s keyword identifier is n; L . . . means a link; L . . . Cm . . . n means a link links to the relation m and means the link number is n; L . . . Pn means a link links to the particle n. 
     When a new information is entered, a particle and alterations are created. In FIG. 38, the alteration is comprised of a particle identifier whose value is 2, first keyword identifier whose value is 1, second keyword identifier whose value is 2 and third keyword identifier w hose value is 4. Relation modifier 401 accepts the alteration, then modifies relations 1, 2 and 3, and creates relation 4. 
     Relation 1 is comprised as follows: 
     a keyword identifier whose-value is 1; 
     a first link to relation 2 with link number 1; 
     a second link to relation 3 with link number 1; 
     and a third link to particle 1. 
     After entering information, the link number of the first link of relation 1 increases, and links to relation 4 and particle 2 are added to relation 1. 
     Relation 2 is comprised as follows: 
     a keyword identifier whose value is 2; 
     a first link to relation 1 with link number 1; 
     a second link to relation 3 with link number 1; 
     and a third link to particle 1. 
     After entering a information, the link number of the first link of relation 2 increases, and links to relation 4 and particle 2 are added to relation 2. 
     Since the alteration has no a keyword identifier whose value is 3, relation 3 is not influenced. And, because the alteration has a keyword identifier w hose value is 4, and there was not relation 4, relation 4 is created. 
     The relation modification algorithm is shown in FIG. 36. 
     Initial value of i is set to 1 in box 3001. 
     In decision box 3002, the existence of item i of keyword identifier array of the alteration is tested. 
     If the keyword identifier does not exist, the relation modification process is ended. 
     If the keyword identifier exists, relation retriever 403 is requested to retrieve a relation whose keyword identifier is same as item i of keyword identifier array of the alteration in box 3003. 
     If the requested relation does not exist, relation retriever 403 creates it; the created relation&#39;s keyword identifier is set to the same value as item i of the keyword identifier array of the alteration; the created relation&#39;s total link number is set to 0. 
     When a new information is entered, the requested relation does not link to the particle. In box 3004, therefore, a link to the particle is added to the relation; the link&#39;s link number is set to 1. Also, the total link number of the relation is incremented. 
     Then, initial value of j is set to 1 in box 3005. 
     In decision box 3006, the existence of item j of keyword identifier array of the alteration is tested. 
     If not exist, increment i in box 3011 and go to box 3002. 
     If exist, compare i with j in decision box 3007. 
     If same, go to box 3010. 
     If i is different from j, a link whose identifier is the same as item j of the keyword identifier array of the alteration, is added to the relation or link number of the link is incremented in box 3008. 
     In box 3009, the total link number is incremented. 
     In box 3010, increment j and go to decision box 3006. 
     FIG. 37 shows a detailed process of box 3008. 
     In box 3101, test whether the relation contains a link whose identifier is same as item j of the keyword identifier array of the alteration. 
     If the relation contains the link, increment the link number of the link in box 3102. 
     If not, add a new link, with link number 1, to the relation in box 3103. 
     The new link links to a relation whose keyword identifier is the same as item j of the keyword identifier array of the alteration. 
     The concept of hierarchical discovery is shown in FIG. 35. 
     In FIG. 35, there are relations A, B, C, D, E and F; relations have links described as arrows; total link number of relation A changes. 
     Arrows such as the arrow from relation D to E in FIG. 35 are marked with a cross; the cross means that the destination of the arrow is of higher rank and the link&#39;s flag is set to &#34;isHigher&#34;. We call this an &#34;isHigher&#34; link. 
     An arrow marked with a triangle means a link whose link&#39;s flag is set to &#34;isIncluded&#34;. We call this an &#34;isIncluded&#34; link. 
     An arrow marked with a circle means a link whose link&#39;s flag is set to &#34;isSame&#34;. We call this an &#34;isSame&#34; link. 
     An arrow marked with nothing means a link whose link&#39;s flag is set to &#34;isLower&#34;. We call this an &#34;isLower&#34; link. 
     In FIG. 35, relation A goes to a higher rank and the flags of some links change. 
     The link, marked with &#34;a&#34;, was an &#34;isIncluded&#34; link, because: 
     relation A was a lower-rank relation than relation D; 
     relation A was a higher-rank relation than relation C; 
     relation D had links to relation A and relation C; and 
     relation A has a link to relation C. 
     After relation A&#39;s promotion the link marked with &#34;a&#34;, becomes an &#34;isLower&#34; link which is marked with &#34;a&#39;&#34;, because: 
     relation A becomes the same rank as relation D; and 
     there is not a relation which is lower rank than relation D, higher rank than relation C, and linked from relation D and to relation C. 
     The links marked with &#34;b&#34; and &#34;c&#34; become &#34;isSame&#34; links, because relation A becomes the same rank as relation D. 
     The link marked with &#34;d&#34; becomes an &#34;isLower&#34; link, because there is no relation which is lower rank than relation E and higher rank than relation A. 
     The link marked with &#34;e&#34; becomes an &#34;isLower&#34; link. 
     The link marked with &#34;f&#34; becomes an &#34;isHigher&#34; link. 
     The link marked with &#34;g&#34; becomes an &#34;isIncluded&#34; link, because: 
     relation A is lower rank than relation E; 
     relation A is higher rank than relation B; 
     relation E has links to the relation A and relation B; and 
     relation A has a link to relation B. 
     If there was a link from relation B to relation C, the link marked with &#34;h&#34; would become an &#34;isIncluded&#34; link. 
     FIG. 32 shows the hierarchical discovery algorithm. 
     In box 2001, the initial value of i is set to 1. 
     In box 2002, test the existence of item i of the keyword identifier array of the alteration. 
     If item i of the keyword identifier array does not exist in the alteration, terminate the hierarchical discovery process. 
     If item i of the keyword identifier array exists in the alteration, retrieve a relation whose keyword identifier is same as item i of keyword identifier array of the alteration from relations memory 404, in box 2002. 
     In box 2003, the initial value of j is set to 1. 
     In box 2004, test the existence of item j of the retrieved relation&#39;s link array. 
     If item j does not exist in the relation, increment i in box 2007. 
     If item j exists in the relation, determine the value of the flag of item j, in box 2005. 
     In box 2006, increment j, and go to box 2004. 
     FIG. 33 shows the determination process for the link&#39;s flag in box 2005. 
     In this flow chart, suppose that relation A is the relation retrieved in box 2002, and that item j of relation A&#39;s link array is a link which links to relation B. 
     In box 2101, set LF to the same flag value as item j of relation A&#39;s link array. 
     In box 2102, set the flag of item j of relation A&#39;s link array to appropriate value. 
     In box 2103, test the value of LF. 
     If the value of LF is &#34;isHigher&#34;, set the flags of relation B&#39;s &#34;isLower&#34; links and &#34;isIncluded&#34; links in box 2104. 
     If the value of LF is &#34;isSame&#34; and relation A is of higher rank than relation B, set the flag of relation B&#39;s link to relation A to &#34;isHigher&#34; in box 2106. 
     The link&#39;s flag shows relativity of two relations. This information-classifying system decides the relativity from a comparison of the two relation&#39;s total link number. 
     If 0.9 TLX (relation X&#39;s total link number)&gt;TLY (relation Y&#39;s total link number) , relation X is of higher rank than relation Y. 
     If 0.9 TLY&gt;TLX, relation Y is of higher rank than relation X. 
     Else, relation X is the same rank as relation Y. 
     FIG. 34 shows details of the process in box 2102. 
     In decision box 2201, test the condition that relation B is of higher rank than relation A. 
     If the condition is true, set the flag of relation A&#39;s link to relation B to &#34;isHigher&#34; in box 2202. 
     If the condition is not true, step into box 2203. 
     In decision box 2203, test the condition that relation B is of lower rank than relation A. 
     If the condition is not true, set the flag of relation A&#39;s link to relation B to &#34;isSame&#34; in box 2204. 
     If the condition is true, step into box 2205. 
     In decision box 2205, test the condition: 
     relation B is of lower rank than relation A; 
     relation C exists and is of higher rank than relation B; 
     relation C is of lower rank than relation A; 
     relation A has a link to relation C; 
     relation C has a link to relation B. 
     If the condition is true, set the flag of relation A&#39;s link to relation B to &#34;isIncluded&#34; in box 2206. 
     If the condition is not true, set the flag of relation A&#39;s link to relation B to &#34;isLower&#34; in box 2207. 
     FIG. 7 shows the particles manager. 
     The particles manager manages particles. 
     As described in FIG. 8, a particle comprises identifier 801, keyword array 802, 803 . . . , keyword identifier array 804, 805 . . . , and body 806. 
     Identifier 801 is a identification number which distinguishes one particle from another. 
     Keyword identifier 804, 805, . . . are identification numbers which identify keywords. 
     The main part of a particle is body 806, which comprises text data and picture data. 
     The particle manager accepts two types of requests. 
     1. &#34;Enter&#34; request 
     Particle creator 701 decides an identification number, sets the identifier 801 of particle to the number, sets the particle identifier 901 of alteration to the number, requests keywords manager 104 to enter the keywords, accepts return values from keywords manager 104, sets particle&#39;s keyword identifiers 804, 805 . . . to those values, sets alteration&#39;s keyword identifiers 902, 903, 904 . . . to those values, registers the particle to particles memory 703 and returns the alteration. 
     2. &#34;Retrieve&#34; request 
     Particle retriever 702 retrieves a particle with an identifier and returns it. 
     Analyzer 102 analyzes input and sends its results to total manager 103. 
     Total manager 103 accepts the results from analyzer 102 and requests other components to act. 
     When total manager 103 accepts a particle input indication from analyzer 102, total manager 103 requests particles manager 106 to enter the particle. 
     Particles manager 106 returns an alteration, then total manager 103 requests relations manager 105 to modify relation. 
     When total manager 103 accepts a select indication from analyzer 102 with an identifier, total manager 103 requests relations manager 105 to retrieve the relation or requests particles manager 106 to retrieve the particle. Total manager 103 prepares display data and requests display manager 107 to display it. 
     FIGS. 40 to 69 show another information-classifying system. The system runs on an Apple Computer --  ™ PowerBook --  ™ 520 with HyperCard --  ™J-2.2. The system may also runs on other Macintosh --  ™ with HyperCard --  ™ 2.2. FIG. 40 shows the structure of its information-classifying stack. 
     The stack consists of background &#34;personality&#34;, background &#34;particlesBG&#34;, background &#34;classificationsBG&#34; and an unnamed background. 
     FIG. 41 shows the background &#34;personality&#34;, which comprises a field &#34;classification&#34; 4101, a field &#34;particleName&#34; 4102, a field 4103, a field &#34;reference&#34; 4104, a button &#34;back track&#34; 4105 and background picture. 
     FIG. 42 shows background &#34;particlesBG&#34;, which comprises a field &#34;particleName&#34; 4201 and a field &#34;classification&#34; 4202. 
     FIG. 43 shows background &#34;classificationsBG&#34;. This background comprises a field &#34;makeupedName&#34; 4301, a field &#34;classificationName&#34; 4302, a field &#34;totalLinkNumber&#34; 4303, a button &#34;back track&#34; 4304, a button &#34;new card&#34; 4305, a field &#34;links&#34; 4306, a field &#34;button1&#34; 4307, a field &#34;button2&#34; 4308, a field &#34;button3&#34; 4309, a field &#34;button4&#34; 43 10, a field &#34;button5&#34; 43 11, a field &#34;button6&#34; 4312, a field &#34;button7&#34; 4313, a field &#34;button8&#34; 4314, a field &#34;otherButton&#34; 4315 and a field &#34;others&#34; 4316 . The field &#34;others&#34; 4316 overlays the field &#34;otherButton&#34; 4315. The LockText properties of all fields on this background are true. Field 4306 and 4316 are scroll fields. 
     FIG. 44 shows the card &#34;memorandum&#34; of the unnamed background. Card &#34;memorandum&#34; comprises field &#34;particles&#34; 4401, field &#34;classifications&#34; 4402 and field &#34;alteration&#34; 4403. 
     The script of stack is as follows: 
     
         ______________________________________function textPos object, textglobal alterationM, particlesM, classificationsM, linkListMglobal locationAndLinkM, hierarchicalListMdo &#34;put text is not in&#34; &amp;&amp; object &amp;&amp; &#34;into TorF&#34;if TorF thenreturn ()elsedo &#34;put number of lines of&#34; &amp;&amp; object &amp;&amp; &#34;into endLine&#34;return textPosR(object, 1, endLine, text)end ifend textPosfunction textPosR object,startLine,endLine,textglobal alterationM, particlesM, classificationsM, linkListMglobal locationAndLinkM, hierarchicalListMif startLine is endLine then--FOUNDreturn startLineend ifput trunc((startLine + endLine) / 2) into midLinedo &#34;put text is in line&#34; &amp;&amp; startLine &amp;&amp; &#34;to&#34; &amp;&amp; midLine &amp;&amp;&#34;of&#34; &amp;&amp; object &amp;&amp; &#34;into TorF&#34;if TorF thenreturn textPosR(object, startLine, midLine, text)elsereturn textPosR(object, midLine + 1, endLine, text)end ifend textPosRon openStackset textArrows to trueglobal classificationsM, particlesM, modeput card field &#34;classifications&#34; of card &#34;memorandum&#34; intoclassificationsMput card field &#34;particles&#34; of card &#34;memorandum&#34; into particlesMgo to card &#34;˜root˜&#34;put &#34;Browse&#34; into modeend openStackon closeStackglobal classificationsM, particlesMput classificationsM into card field &#34;classifications&#34; of card&#34;memorandum&#34;put particlesM into card field &#34;particles&#34; of card &#34;memorandum&#34;end closeStack______________________________________ 
    
     The script contains: 
     a function &#34;textPos&#34; which calculates the position of a character string in a container; 
     a handler &#34;closeStack&#34; which stores the value of global variable &#34;classificationsM&#34; and &#34;particlesM&#34;; and 
     a handler &#34;openStack&#34; which restores the value of both global variables: 
     &#34;classificationsM&#34;, which memorizes all keywords; and 
     &#34;particlesM&#34;, which memorizes all particle&#39;s name. 
     The script of card &#34;memorandum&#34; is as follows: 
     
         ______________________________________on openCardglobal classificationsM, particlesM, alterationMput classificationsM into card field &#34;classifications&#34;put particlesM into card field &#34;particles&#34;put alterationM into card field &#34;alteration&#34;end openCard______________________________________ 
    
     When this card opened, the values of global variable &#34;classificationsM&#34;, &#34;particlesM&#34; and &#34;alterationM&#34; are displayed. The global variable &#34;alterationM&#34; memorizes a alteration. 
     The script of background &#34;personality&#34; is as follows: 
     
         ______________________________________on closeCardglobal mode, alterationM, particlesMglobal classification, particleNameif mode is &#34;EnterParticle-2&#34; thennormalizeput field &#34;particleName&#34; into particleNameif particleName is not empty thenif &#34;&gt;&#34; &amp; particleName &amp; &#34;&lt;&#34; is in particlesM thenput getNewName(particleName) into particleNameput particleName into field &#34;particleName&#34;end ifset the lockText of field &#34;particleName&#34; to trueset the name of this card to particleNameput field &#34;classification&#34; into classificationput &#34;enterParticle-3&#34; into modego to background particlesBGput &#34;browse&#34; into modeelsedoMenu &#34;Delete Card&#34;popcardend ifelse if mode is &#34;Browse-2&#34; thennormalizeput &#34;EnterParticle&#34; into modeput field &#34;particleName&#34; into particleNameput field &#34;classification&#34; into classificationput &#34;enterParticle-3&#34; into modego to background particlesBGput &#34;browse&#34; into modeendifend closeCardon normalizeput line 1 of field &#34;classification&#34; into field &#34;classification&#34;put line 1 of field &#34;particleName&#34; into field &#34;particleName&#34;put Line 1 of field &#34;reference&#34; into field &#34;reference&#34;end normalizeon openCardglobal modeif mode is &#34;EnterParticle&#34; thenset lockText of field &#34;particleName&#34; to falseput &#34;EnterParticle-2&#34; into modeelse if mode is &#34;Browse&#34; thenset lockText of field &#34;particleName&#34; to trueput &#34;Browse-2&#34; into modeend ifend openCardfunction getNewName cNameglobal particlesMrepeatask quote &amp; cName &amp; quote &amp; &#34;has already exist. Please re-enter.&#34;with cName if it is not in particlesM thenput it into cNameexit repeatelseput it into cNameend ifend repeatreturn cNameend getNewName______________________________________ 
    
     The handler &#34;closeCard&#34; passes a combination of a particle name and keywords to background &#34;particlesBG&#34;. The handier &#34;normalize&#34; normalizes the card. 
     The script of button &#34;back track&#34; of background &#34;personality&#34; is as follows: 
     
         ______________________________________       on mouseUp         pop card       end mouseUp______________________________________ 
    
     The script of background &#34;particlesBG&#34; is as follows: 
     
         ______________________________________on openBackgroundglobal mode, particleName, classification, alterationM, particlesMif mode is &#34;EnterParticle-3&#34; then--NEW?if &#34;&gt;&#34; &amp; particleName &amp; &#34;&lt;&#34; is not in particlesM thenput &#34;&gt;&#34; &amp; particleName &amp; &#34;&lt;&#34; &amp; return after last char ofparticlesMput &#34;&gt;&#34; &amp; particleName &amp; &#34;&lt;,.sub.-- add&#34; &amp; return intoalterationMdoMenu &#34;New Card&#34;set name of this card to &#34;&gt;&#34; &amp; particleName &amp; &#34;&lt;&#34;put particleName into field &#34;particleName&#34;elseput &#34;&gt;&#34; &amp; particleName &amp; &#34;&lt;,--&#34; &amp; return into alterationMend ifgo to card &#34;&gt;&#34; &amp; particleName &amp; &#34;&lt;&#34;put number of items of classification into iMaxrepeat with i = 1 to iMaxput &#34;˜&#34; &amp; (item i of classification) &amp; &#34;˜&#34; after last charofalterationMif field &#34;classification&#34; contains item i of classification thenput &#34;,.sub.-- &#34; &amp; return after last char of alterationMelseput &#34;,.sub.-- add&#34; &amp; return after last char of alterationMendifend repeatput number of items of field &#34;classification&#34; of this card into iMaxrepeat with i = 1 to iMaxif item i of field &#34;classification&#34; is not in classification thenput &#34;˜&#34; &amp; (item i of field &#34;classification&#34;) &amp; &#34;˜,.sub.--del&#34; &amp; returnafter last char of alterationMend ifend repeatif &#34;.sub.-- add&#34; is in alterationM or &#34;.sub.-- del&#34; is in alterationMthenput classification into field &#34;classification&#34;put &#34;AlterateHierarchy&#34; into modego to background &#34;classificationsBG&#34;end ifend ifend openBackground______________________________________ 
    
     The handler &#34;openBackground&#34; accepts the combination of a particle name and keywords from background &#34;personality&#34;, creates the alteration and passes the alteration to background &#34;classificationsBG&#34;. 
     The script of background &#34;classificationsBG&#34; is as follows: 
     
         __________________________________________________________________________on openBackGround global mode, alterationM,classificationsM,classificationName if mode is &#34;AlterateHierarchy&#34; then  put number of lines of alterationM into iMax  repeat with i = 2 to iMax   put line i of alterationm into it   put first item of it into classificationName   put second item of it into sortOfAlteration   if sortOfAlteration is &#34;.sub.-- add&#34; then    if classificationName is not in classificationsM thenput classificationName &amp; return after last char of classificationsMdoMenu &#34;New Card&#34;set name of this card to classificationNameput classificationName into field &#34;classificationName&#34;put 0 into field &#34;totalLinkNumber&#34;    end if    end if   end repeat   repeat with i = 2 to iMax    put first item of line i of alterationM into nextCard    go to card nextCard    alterateLinkNumber   end repeat   repeat with i = 2 to iMax    put first item of line i of alterationM into nextCard    go to card nextCard    discoverHierarchy   end repeat  end if end openBackground on alterateLinkNumber  global mode,alterationM  put field &#34;classificationName&#34; into myName  put textPos(&#34;alterationM&#34;, myName) into myLine  put second item of line myLine of alterationM into mySort  put first item of line 1 of alteration into pName  put second item of line 1 of alterationM into pSort  if pSort is &#34;.sub.-- add&#34; then   send &#34;addLinkNumberOfParticle&#34; &amp;&amp; quote &amp; pName &amp; quote to field&#34;links&#34; of thiscard   put empty into mode  else if pSort is &#34;.sub.-- del&#34; then   send &#34;deleteLinkNumberOfParticle&#34; &amp;&amp; quote &amp; pName &amp; quote to field&#34;links&#34; ofthis card   put empty into mode  else if pSort is &#34;.sub.-- &#34; then   if mySort is &#34;.sub.-- add&#34; then    send &#34;addLinkNumberOfParticle&#34; &amp;&amp; quote &amp; pName &amp; quote to field&#34;links&#34; ofthis card    put empty into mode   else if mySort is &#34;.sub.-- del&#34; then    send &#34;deleteLinkNumberOfParticle&#34; &amp;&amp; quote &amp; pName &amp; quote to field&#34;links&#34; ofthis card    put empty into mode   end if  else   ask &#34;internal error&#34;  end if  put number of lines of alterationM into iMax  repeat with i = 2 to iMax   if myLine is not i then    put line i of alterationM into it    put first item of it into cName    put second item of it into cSort    if mySort is &#34;.sub.-- del&#34; thenif cSort is not &#34;.sub.-- add&#34; then send &#34;deleteLinkNumberOfClassification&#34; &amp;&amp; quote &amp; cName &amp; quote tofield&#34;links&#34;end if    else if mySort is &#34;.sub.-- add&#34; thenif cSort is not &#34;.sub.-- del&#34; then send &#34;addLinkNumberOfClassification&#34; &amp;&amp; quote &amp; cName &amp; quote tofield&#34;links&#34;end if    elseif cSort is &#34;.sub.-- del&#34; then send &#34;deleteLinkNumberOfClassification&#34; &amp;&amp; quote &amp; cName &amp; quote tofield&#34;links&#34;else if cSort is &#34;.sub.-- add&#34; then send &#34;addLinkNumberOfClassification&#34; &amp;&amp; quote &amp; cName &amp; quote tofield&#34;links&#34;end if    end if   end if  end repeat end alterateLinkNumber on discoverHierarchy  global mode, alterationM  put field &#34;totalLinkNumber&#34; into TLC  put field &#34;classificationName&#34; into cName  put number of lines of field &#34;links&#34; of this card into iMax  repeat with i = 1 to iMax   put line i of field &#34;links&#34; of this card into iLink   put first item of iLink into destination   put third item of iLink into linkFlag   if first char of iLink is &#34;&gt;&#34; then    put 0 into destTLC   else    put field &#34;totalLinkNumber&#34; 0f card destination into destTLC   end if  setLinkFlag i, cName, destination, destTLC, TLC   if destination is not in alterationM then    if linkFlag is &#34;isHigher&#34; thensetLowerLinkOfHigher destination    else if linkFlag is &#34;isIncluded&#34; or linkFlag is &#34;isLower&#34; thenif (TLC &gt; destTLC and 0.9 * TLC &lt;= destTLC) or (destTLC &gt; TLC and0.9 *destTLC &lt;= TLC) thenput textPos(&#34;field&#34; &amp;&amp; quote &amp; &#34;links&#34; &amp; quote &amp;&amp;&#34;of card&#34; &amp;&amp; quotedestination &amp; quote, cName) into fLineput &#34;isSame&#34; into third item of line fLine of field &#34;links&#34; of carddestination    end if    else if linkFlag is &#34;isSame&#34; thenif 0.9 * TLC &gt; destTLC then put textPos(&#34;field&#34; &amp;&amp; quote &amp; &#34;links&#34; &amp; quote &amp;&amp;&#34;of card&#34; &amp;&amp; quote&amp;destination &amp; quote, cName) into fLineput &#34;isHigher&#34; into third item of line fLine of field &#34;links&#34; ofcard destinationelse if 0.9 * destTLC &gt; TLC thenif destination is not in alterationM then setLowerLinkOfHigher destination end ifelse    end if   end if  end if end repeat if &#34;isHigher&#34; is not in field &#34;links&#34; and cName is not in field &#34;links&#34;of card &#34;˜root˜&#34;then   put cName &amp; return after last char of field &#34;links&#34; of card&#34;˜root˜&#34;  end if end discoverHierarchy  on setLowerLinkOfHigher linkName  put field &#34;totalLinkNumber&#34; of card linkName into TLC  put number of lines of field &#34;links&#34; of card linkName into iMax  repeat with i = 1 to iMax  put line i of field &#34;links&#34; of card linkName into iLink  put first item of iLink into destination  put third item of iLink into linkFlag  if first char of iLink is &#34;&gt;&#34; then   put 0 into destTLC  else  put field &#34;totalLinkNumber&#34; of card destination into destTLC  end if  if linkFlag is &#34;isLower&#34; or linkFlag is &#34;isIncluded&#34; then   setLinkFlag i, linkName, destination, destTLC, TLC  end if  end repeat end setLowerLinkOfHigher on setLinkFlag i, source, destination, destTLC, TLC  if 0.9 * destTLC &gt; TLC then  put &#34;isHigher&#34; into third item of line i of field &#34;links&#34; of cardsource  else if 0.9 * TLC &gt; destTLC then  if isIncludedLink(source, destination, TLC, destTLC) then   put &#34;isIncluded&#34; into third item of line i of field &#34;links&#34; of cardsource  else   put &#34;isLower&#34; into third item of line i of field &#34;links&#34; of cardsource   end if   else   put &#34;isSame&#34; into third item of line i of field &#34;links&#34; of cardsource   end if  end setLinkFlag function isIncludedLink cName, destination1, TLC, dest1TLC  put number of lines of field &#34;links&#34; of card cName into iMax  repeat with i = 1 to iMax  put line i of field &#34;links&#34; of card cName into iLink  put first item of iLink into destination2  put third item of iLink into linkFlag-calculate total link number of destination card  if first char of iLink is &#34;&gt;&#34; then-destination2 links to a particle   put 0 into dest2TLC  else-destination2 links to a relation   put field &#34;totalLinkNumber&#34; of card destination2 into dest2TLC  end if  if destination1 is not destination2 and 0.9 * TLC &gt; dest2TLC and 0.9 *dest2TLC &gt;dest1TLC then-Does item i of link array of field &#34;links&#34; of card cName link todestination1?  if destination1 is in field &#34;links&#34; of card destination2 then  return true  end if end if end repeat return false end isIncludedlink on makeUpCard  global classificationsM  lock screen  put second word of the name of this card into wName  put number of chars of wName into wk  put char 3 to wk - 2 of wName into field &#34;makeupedName&#34;  if &#34;˜root˜&#34; is in wName then  put empty into lowerLink  put empty into candidate  put number of lines of field &#34;links&#34; into iMax  repeat with i = 1 to iMax  put item 1 of line i of field &#34;links&#34; into cName  if cName is in classificationsM then   if &#34;isHigher&#34; is not in field &#34;links&#34; of card cName then   put field &#34;totalLinkNumber&#34; of card cName into TLC   put itozi(TLC) &amp;&#34;,&#34; &amp; cName &amp; return after last char of candidate   put cName &amp; return after last char of lowerLink  end if  end if end repeat put lowerLink into field &#34;links&#34;else  put empty into candidate  put number of lines of field &#34;links&#34; into iMax  repeat with i = 1 to iMax   if third item of line i of field &#34;links&#34; is &#34;isLower&#34; then    put item 1 of line i of fieid &#34;links&#34; into cName    put item 2 of line i of field &#34;links&#34; into LC    put itozi(LC) &amp;&#34;,&#34; &amp; cName &amp; return after last char of candidate   end if  end repeat end if sort candidate descending text put 8 into magicNumber put number of lines of candidate into cnum global nameLocOfButtonField put 3 into nameLocOfButtonField repeat with i = 1 to magicNumber put empty into field (&#34;button&#34; &amp; i) if i &lt;= cnum then  put item 2 of line i of candidate into wk  put number of chars of wk into nChar  put char 2 to nChar - 1 of wk into fName  put fName into line nameLocOfButtonField of field (&#34;button&#34; &amp; i)  if first char of wk is &#34;˜&#34; then-case relation   put &#34;(keyword)&#34; into line nameLocOfButtonField + 1of field (&#34;button&#34; &amp;i)  end if  end if end repeat hide field &#34;others&#34; put empty into field &#34;others&#34; put empty into field &#34;otherButton&#34; if cnum&gt; magicNumber then  repeat with i = magicNumber + i to cnum  put item 2 of line i of candidate &amp; return after last char of field&#34;others&#34;  end repeat  put &#34;others. . .&#34; into line nameLocOfButtonField of field&#34;otherButton&#34;  set the style of field &#34;otherButton&#34; to rectangle else  set the style of field &#34;otherButton&#34; to transparent   end if   choose browse tool   unlock screen  end makeUpCard on openCard  global mode, classificationsM  if mode is &#34;Browse&#34; then   if &#34;.sub.-- garbage.sub.-- &#34; is in the name of this card then   doMenu &#34;Delete Card&#34;   go to card &#34;˜root˜&#34;   else   makeUpCard   end if  end if end openCard function itozi num  put &#34;00000&#34; &amp; num into wk  put number of chars of wk into nChar  return char nChar - 5 to nChar of wk end itozi__________________________________________________________________________ 
    
     In the following, relation A is a current relation and relation A has a link to relation B. The script comprises: 
     1. a handler &#34;openBackground&#34; which modifies link numbers and discovers the hierarchical structure of keywords; 
     2. a handler &#34;alterateLinkNumber&#34; which modifies link numbers; 
     3. a handler &#34;discoverHierarchy&#34; which discovers the hierarchical structure of keywords; 
     4. a handler &#34;setLowerLinkOfHigher&#34; which sets flags of relation B&#39;s &#34;isLower&#34; and &#34;isIncluded&#34; links; 
     5. a handler &#34;setLinkFlag&#34; which sets flags of a relation&#39;s link; 
     6. a function &#34;isIncludedLink&#34; which examines whether a link to relation B is an &#34;isIncluded&#34; link; p1 7. a handler &#34;makeupCard&#34; which makes-up cards of this background. 
     The name of first card of background &#34;classificationsBG&#34; is &#34;˜root˜&#34;. 
     The script of field &#34;links&#34; of background &#34;classificationsBG&#34; is as follows: 
     
         ______________________________________on addLinkNumberOfClassification cNameput textPos(&#34;field&#34; &amp;&amp; quote &amp; &#34;links&#34; &amp; quote, cName) into tLineif tLine is 0 thenput cName &amp; &#34;,1,null&#34; &amp; return after last char of meelseput second item of line tLine of me into linkNumberadd 1 to second item of line tLine of meend ifadd 1 to field &#34;totalLinkNumber&#34; of this cardend addLinkNumberOfClassificationon deleteLinkNumberOfClassification cNameput textPos(&#34;field&#34; &amp;&amp; quote &amp; &#34;links&#34; &amp; quote, cName) into tLineif tLine is 0 thenask &#34;internal error&#34;put empty into dummyend ifput second item of line tLine of me into linkNumberif linkNumber is 1 thendelete line tLine of meelsesubtract 1 from the second item of line tLine of meend ifsubtract 1 from field &#34;totalLinkNumber&#34; of this cardif field &#34;totalLinkNumber&#34; of this card is 0 thenchangeThisCardToGarbageend ifend deleteLinkNumberOfClassificationon changeThisCardToGarbageglobal classificationsMchoose brush tooldrag from 20,20 to 490,360drag from 490,20 to 20,360choose browse toolput textPos(&#34;classificationsM&#34;, field &#34;classificationName&#34;) into tLinedelete line tLine of classificationsMset the name of this card to &#34;.sub.-- garbage.sub.-- &#34;end changeThisCardToGarbageon addLinkNumberOfParticle pNameput textPos(&#34;field&#34; &amp;&amp; quote &amp; &#34;links&#34; &amp; quote, pName) into tLineif tLine is 0 thenput pName &amp; &#34;,1,null&#34; &amp; return after last char of meadd 1 to field &#34;totalLinkNumber&#34; of this cardelseask &#34;internal error&#34;put empty into dummyend ifend addLinkNumberOfParticleon deleteLinkNumberOfParticle pNameput textPos(&#34;field&#34; &amp;&amp; quote &amp; &#34;links&#34; &amp; quote, pName) into tLineif tLine is 0 thenask &#34;internal error&#34;end ifdelete line tLine of mesubtract 1 from field &#34;totalLinkNumber&#34; of this cardif field &#34;totalLinkNumber&#34; of this card is 0 thenchangeThisCardToGarbageend ifend deleteLinkNumberOfParticle______________________________________ 
    
     The script comprises handlers which increment or decrement link numbers. 
     The script of field &#34;others&#34; of background &#34;classificationsBG&#34; is as follows: 
     
         ______________________________________on mouseUppush cardput the clickLine into objectdo &#34;put&#34; &amp;&amp; object &amp;&amp; &#34;into wk&#34;put number of chars of wk into nCharif first char of wk is &#34;˜&#34; thenput wk into cNameelseput char 2 to nChar - 1 of wk into cNameend ifhide mego to card cNameend mouseUp______________________________________ 
    
     The script of field &#34;otherButton&#34; of background &#34;classificationsBG&#34; is as follows: 
     
         ______________________________________on mouseUpif the style of me is rectangle thenshow field &#34;others&#34;end ifend mouseUp______________________________________ 
    
     The script displays field &#34;others&#34;. 
     The script of field from &#34;button1&#34; to &#34;button8&#34; is as follows: 
     
         ______________________________________on mouseUppush cardput empty into cNameput number of lines of me into iMaxrepeat with i = 1 to iMaxif line i of me is not empty thenput line i of me into cNameexit repeatend ifend repeatif cName is not empty thenif &#34;(keyword)&#34; is not in me thengo to card cNameelsego to card &#34;˜&#34; &amp; cName &amp; &#34;˜&#34;end ifend ifend mouseUp______________________________________ 
    
     The script of button &#34;backtrack&#34; of background &#34;classificationsBG&#34; is as follows: 
     
         ______________________________________on mouseUppop cardend mouseUp______________________________________ 
    
     The script of field &#34;new card&#34; of background &#34;classificationsBG&#34; is as follows: 
     
         ______________________________________on mouseUpglobal modepush cardput empty into modego to background &#34;personality&#34;put &#34;EnterParticle&#34; into modedoMenu &#34;New Card&#34;end mouseUp______________________________________ 
    
     The invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiment is therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. 
     Also it is to be understood that the phraseology or terminology employed herein is for the purpose of description and not of limitation.