Patent Publication Number: US-5832480-A

Title: Using canonical forms to develop a dictionary of names in a text

Description:
FIELD OF THE INVENTION 
     This invention relates to the field of text processing and information retrieval. More specifically, the invention relates to an improved system and method for identifying occurrences of proper names in natural language text and grouping them into equivalence classes. 
     BACKGROUND OF THE INVENTION 
     Text processing applications, such as machine translation systems, information retrieval systems or natural-language understanding systems, need to identify multi-word expressions that refer to proper names of people, organizations, places, laws and other entities, in order to process them correctly. When encountering &#34;Mrs. Candy Hill&#34; in the input text, for example, a machine translation system should not attempt to look up the translation of &#34;candy&#34; and &#34;hill&#34;, but should translate &#34;Mrs.&#34; to the appropriate personal title in the target language and preserve the rest of the name intact. Similarly, an information retrieval system which processes &#34;Mrs. Candy Hill&#34; as a query string should not attempt to expand it to all of its morphological variants (&#34;candied&#34;, &#34;candies&#34;, etc.); nor should it suggest synonyms (e.g., &#34;sweets&#34;) for the name. 
     Because of this need to address the special properties of proper names, there has been a lot of recent research and development in this area. A variety of software programs are available which identify proper names in text. They differ in their coverage, accuracy, and functionality. 
     U.S. Pat. No. 5,287,278 describes a method for extracting company names from text. The algorithm described identifies company name suffixes, such as &#34;Inc.&#34; or &#34;Corp.&#34;, and attempts to locate the beginning of the name to the left of the suffix. When a name has been identified, the method generates variants of this name. The name identified and the variants generated can be stored in a database for future name identification. 
     Identifying the beginning and ending of proper names is complicated by the presence of conjunctions and prepositions, which may be part of the name, as in &#34;Better Homes and Gardens Inc.&#34; or &#34;Audi of America Inc.&#34;, but may also link two or more independent names, as in &#34;IBM and Apple Computers&#34;. The algorithm described in U.S. Pat. No. 5,287,278 addresses the ambiguity of one conjunction (&#34;and&#34;) and one preposition (&#34;of&#34;) in two main ways: 1) the presence of certain words preceding &#34;and&#34; or &#34;of&#34; indicates that the name starts after them; e.g., in &#34; . . . Division of &lt;name&gt;&#34;, &#34;Division&#34; indicates that the company name begins after &#34;of&#34;; 2) the presence of certain syntactic constructions in the immediate context. For example, a plural verb following &#34;&lt;name&gt;, &lt;name&gt; and &lt;name&gt;&#34; indicates that there are 3 names in the string analyzed. 
     An important aspect in name identification is the many-to-many mapping between entities and names. On one hand, several entities may be referred to by the same name (&#34;Smith&#34; for all people whose last name is &#34;Smith&#34;; &#34;IRA&#34; for both the Irish Republican Army and the Individual Retirement Account); on the other, several names may refer to one entity (&#34;President Clinton&#34;, &#34;Bill Clinton&#34;, &#34;William Clinton&#34;). Perfect mapping of names to entities is not feasible with state-of-the-art software, and different prior art have different partial solutions. 
     Some prior art identifies names in text and their variants based on a database of known names. The different variants may be explicitly listed in the database, or they may be recognized if they differ slightly and predictably from the listed name. NameFinder of Carnegie Group, for example, will find predictable variations of the listed names, such as &#34;CGI&#34; or &#34;Carnegie Group&#34; for &#34;Carnegie Group Incorporated&#34; wherever they occur in the text. 
     Other prior art links variants within the same document. SRA&#39;s NameTag, for example, links a mention of &#34;Barbara&#34; in a document with &#34;Barbara Bush&#34; in the same document. 
     STATEMENT OF PROBLEMS WITH THE PRIOR ART 
     One problem with some of the prior art (NameFinder) is the requirement for a pre-existing database of names. Creating a database of names is a very laborious task and requires constant human maintenance, as new names are created when new companies are formed, small places become topical, or entities cease to exist. 
     U.S. Pat. No. 5,287,278 cited above describes an algorithm for identifying company names in text without a pre-existing database. It is not clear, however, how the same techniques can be applied to names that do not end in a suffix, such as place names, or organization names (&#34;The White House&#34;, &#34;The Museum of Natural History&#34;, etc.). 
     Another problem with the prior art is the handling of name ambiguity, in particular, whether a certain string contains one or more names. U.S. Pat. No. 5,287,278 cites some heuristics for deciding whether &#34;and&#34; and &#34;of&#34; are part of a company name or whether they are used to link two independent names. The disadvantage of these heuristics is that they are simplistic and may often fail to give correct results, especially when more prepositions (&#34;at&#34;, &#34;in&#34;, &#34;for&#34;, &#34;de&#34; etc.) that occur in names of people and organizations are included. For example, one heuristic cited, that of looking for the presence of a certain string, such as &#34;division&#34; immediately to the left of &#34;of&#34; would yield wrong results for names like &#34;BMY Division of Harsco&#34; or &#34;Division of Consumer Services&#34;, which should not be split. Another mentions the presence of a plural verb, such as &#34;are&#34; as in &#34;IBM and Apple are . . . &#34; that would indicate that there is more than one entity involved. However, many times the needed syntactic clue is missing, as when the verb is in the past (&#34;concluded&#34;, for example) so it&#39;s not clear if its the verb is singular or plural. 
     A third problem with prior art is the name-to-entity mapping when such mapping is ambiguous because of the many-to-many relations between names and entities. Optimal name identification would determine the entity referred to for each particular occurrence of a variant in the text. It would thus link as equivalent all the different variants that refer to the same entity and would differentiate all the same variants that refer to different entities. It seems that the prior art fails to do either the former or the latter. 
     Some prior art always links a name to all of the entities it can be used to refer to. NameFinder, for example, will identify &#34;IRA&#34; as a name but would fail to determine whether it refers to the Irish organization or to the Retirement Account. Other prior art will fail to link all mentions of a name to the entity it is used to refer to. Thus, SRA&#39;s NameTag, for example, does not link mentions of &#34;Md&#34; as a place and mentions of &#34;Maryland&#34; as a place, as mentions of the same entity. 
     OBJECTS OF THE INVENTION 
     An object of this invention is an improved system and method for identifying occurrences of proper names in natural language text. 
     An object of this invention is an improved system and method for identifying occurrences of proper names in natural language text and grouping names that refer to the same entity by an equivalence relationship. 
     An object of this invention is an improved system and method for identifying occurrences of proper names in natural language text, grouping these names by an equivalence relationship and classifying these groups as to the entity type that the names in the group refer to. 
     An object of this invention is an improved system and method for identifying occurrences of proper names in natural language text, grouping these names by an equivalence relationship and representing each of the groups by a canonical name. 
     SUMMARY OF THE INVENTION 
     The present invention is a system and method for identifying one or more proper names that appear in one or more documents in a database of a computer system. First the documents are tokenized and scanned, to select one or more raw names. Each of the raw names has zero or more proper names, zero or more medial substrings, zero or more leading substrings, and zero or more trailing substrings. In a preferred embodiment, the raw names are processed and stored as a value, preferably as &#34;str&#34; attribute values of name elements. Name elements are placed on a data record, preferably a linked list, called the &#34;list of candidate name elements&#34;. In addition to the str attributes, the name elements have other attributes which either contain a value or else have a null value. 
     The raw names of the candidate name elements are &#34;cleaned&#34; and/or &#34;split&#34; dynamically (the names and the name elements are changed by various processes) to produce a final list of candidate name elements. If the raw names meet a &#34;cleaning condition&#34;, i.e. the raw names have one or more of the leading and trailing substrings, the raw names are &#34;cleaned&#34; by removing the leading and trailing substrings to create a new str value for an existing name element. If one or more of the medial substrings exists, a &#34;splitting condition&#34; is met and the raw name is split at the medial substring to create two split str values. The medial substring is removed. The name element currently being processed acquires one of the str values as its new str value. A new name element is formed, and it acquires the other str value. 
     The split candidate names are cleaned and split again and again until no more splitting conditions remain. This process is repeated for an entire document to obtain a list of cleaned and split names. An optional &#34;duplicate recognition processor&#34; establishes links among name elements on the list of candidate name elements whose str values are duplicates. The name elements on the list of candidate name elements that have been cleaned, split, and or linked, are called candidate name elements and no longer need to be changed by further processing. 
     There are alternative preferred cleaning and splitting conditions. 
     The str values of candidate name elements on the list of candidate name elements are then compared to strings in a database of names, called a name dictionary, and/or to query elements of a query in order to determine if there are matches between any of the names in the name dictionary (query elements) and any of the str values of the candidate name elements. 
     To develop a name dictionary, with &#34;canonical forms&#34; of one or more of the candidate name elements, one or more &#34;anchor&#34; name elements is selected from the list. The anchor name element unambiguously represents an individual entity, such a particular person, place or organization, referred to in the document processed. The anchor name element has an entity-type attribute with an attribute value (e.g. &#34;PERSON&#34;) and one or more other attribute values, for the attributes that are relevant to its entity-type value (e.g. the first-name and last-name attributes). 
     One or more &#34;variant&#34; name elements that refer to the same individual entity as the anchor are selected from the list and linked to the anchor by equivalence links. Clean and split candidate name elements that are variant names of the anchor name are chosen if they share one or more attribute values with the anchor name. Variants share the same entity-type value with the anchor and their other relevant attribute values are identical or compatible with the attribute values of the anchor. The anchor and the variants are linked to form an equivalence group. 
     A canonical form is the most explicit, least ambiguous name that can be constructed from all the variants that refer to a given entity. In the preferred embodiment, the canonical form is stored as the value of the canonical-form attribute of the anchor of each equivalence group. A canonical form may be identical to the str value of one of the candidate name elements (the anchor or one of the variants) or it may be composed of attribute values of different candidate name elements. For example, a canonical form of a person name includes a first name (if present), a middle name (if present), the last name (if present) and the name suffix (if present). Nicknames or titles are not included in the canonical form. Nicknames are not reliable identifiers and titles can change over time. The attribute values of the anchor and the variants are combined to create a canonical form that is a subset of these attributes values. Canonical forms are created for all of the clean and split candidate name elements on the list. 
     Entity-types include a broad range of categories, divided into generic types, including: art works, economic entities, events, legal entities, organizations, persons, places, products, textual entities, and a residue of proper names which are not categorized as any of the above. 
     The creation of the canonical form has uses in information retrieval systems and digital library applications. In information retrieval, a user types in a query and the system returns a list of documents relevant to the query, called the hit list. Most information retrieval systems rank the documents on the hit list according to the frequency of occurrence of the query terms in the document texts. The creation of a canonical form allows information retrieval systems to have a more accurate count of frequency of occurrence of names because variants can be counted as occurrences of the same canonical form. 
     Many digital library applications classify documents according to topics. An appropriate topic would be the entity (or entities) discussed in the document, such as people or companies. Using a single canonical form to represent the various mentions of an entity allows for an homogeneous classification of documents by topics. Also, by counting the occurrences of different variant names as occurrences of a single canonical form, the number of times an entity is actually mentioned can be more accurately established. If an entity is mentioned frequently enough in a document, the document can be classified as being about this entity. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     The foregoing and other objects, aspects and advantages will be better understood from the following detailed description of preferred embodiments of the invention with reference to the drawings that include the following: 
     FIG. 1 is a block diagram of a preferred embodiment of the present system. 
     FIG. 2 is a drawing of a tokenized text of a document upon which the present system operates. 
     FIG. 3 is a key to a flow chart of the steps performed by a name extraction processor. 
     FIGS. 3A and 3B are the actual flow chart. 
     FIG. 4 is a block diagram of a name data structure containing name elements with attributes. 
     FIG. 5 is a flow chart of the steps performed by a document scanning processor. 
     FIG. 6 is a flow chart of the steps performed by a name cleaning processor called by the document scanning processor. 
     FIG. 7 is a flow chart of the substeps performed by a name cleaning processor. 
     FIG. 8 is a flow chart of the steps performed by a name splitting processor called by the document scanning processor. 
     FIG. 9 is a flow chart of the substeps performed by a name splitting processor. 
     FIG. 9A is a block diagram of an example name element and attributes before splitting. 
     FIG. 9B is a block diagram of an example name element and attributes pertaining to a left string part after splitting. 
     FIG. 9C is a block diagram of a new example name element and attributes pertaining to a right string part that is created after splitting. 
     FIG. 10 is a flow chart of the steps performed by a duplicate recognition processor. 
     FIG. 11 is a flow chart of the steps performed by an equivalence processor. 
     FIG. 12 is a flow chart of substeps performed by an equivalence processor. 
     FIG. 13 is a block diagram of the name data structure with equivalence links between name elements. 
     FIG. 14 is a key to a flow chart of the steps performed by a person entity-type process used by the equivalence processor. 
     FIGS. 14A, 14B, and 14C are the actual flow chart. 
     FIG. 15 is a key to a flow chart of the steps performed by an organization entity-type process used by the equivalence processor. 
     FIGS. 15A, 15B, and 15C are the actual flow chart. 
     FIG. 16 is a key to a flow chart of the steps performed by a place entity-type process used by the equivalence processor. 
     FIGS. 16A, 16B, and 16C are the actual flow chart. 
     FIG. 17 is a block diagram of the name elements on the name data structure with attributes filled by the entity-type processes. 
     FIG. 18 is a drawing of one preferred output. 
     FIG. 19 is a flow chart of the steps performed by a name aggregator. 
     FIG. 19A is a block diagram of an example canonical form variant array. 
     FIG. 20 is a drawing of an alternative output. 
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
     FIG. 1 is a block diagram of one preferred system embodying the present invention. The system 100 comprises any general purpose computer (or computer system) with a computer CPU/memory 150, a computer data base 130 used for a name dictionary 130A. An optional display monitor 140, is connected to the computer CPU/memory 150. One non-limiting preferred system 100 is an IBM RISC/6000 AIX machine with a monitor 140 capable of displaying text. An alternative preferred embodiment 100 is a collection of computers 150 organized in a general purpose client 150/server 151 architecture. One non limiting example of this uses the internet or other local area or wide area network 180. See for example, U.S. Pat. No. 5,371,852 to Attanasio et al. issued on Dec. 6, 1994 which is herein incorporated by reference in its entirety. The system 100 can comprise one or more databases 130. 
     A tokenizing process, 115, generally known in the art, takes running text as input, in the form of a string of characters, and analyzes it into a list of tokens, called the tokenized text, 120 (described below). Following is a sample of running text, which serves as input to process 115: 
     &lt;DOC&gt; 
     Local Education Outreach 
     At IBM, they take seriously the responsibility to help schools achieve the goal articulated by President Clinton and the National Governors Association that . . . 
     Together with Learning Inc. of Somers, New York, IBM is starting . . . 
     At the IBM Thomas J. Watson Research Center in Westchester County, Dr. James J. Smith manages the Local Education Outreach Program, and organizes activities for students and teachers from school districts in the area, including New York City. Smith also co-ordinates IBM&#39;s participation in the National Science and Technology Week. NSTW is an annual event sponsored by The National Science Foundation to foster public understanding of science and technology. 
     &lt;/DOC&gt; 
     The system 100 executes a name extraction process 300 (described below) that extracts proper names from the tokenized text 120 and produces a data structure 325, of name elements. In addition, process 300 produces a name dictionary 130 corresponding to the tokenized text 120. Process 300 also produces a list 355 of all the occurrences of proper names with their position in the tokenized text 120. The contents of the name occurrence list 355 can be optionally displayed as a name display 155 on the monitor 140. An alternative name display 155 is comprised of the tokenized text 120 with tags around each of its proper name occurrences, as produced by a tagger 160, generally known in the art. 
     As part of its execution, processor 300 consults an authority list 125. An authority list 125 is a list of terms that are used by the invention as described below. Non limiting examples of terms on the authority list 125 include: personal titles, such as &#34;Mr.&#34; or &#34;Dr.&#34;; professional titles, such as &#34;Assistant&#34; or &#34;Professor&#34;; name suffixes, such as &#34;Jr.&#34; and &#34;Sr.&#34;; major countries and states in the United States; place indicators, such as &#34;Lake&#34;, &#34;Mt.&#34; or &#34;City&#34;; organization end-tags, such as &#34;Inc.&#34; and &#34;Co.&#34;; organization indicators, such as &#34;Museum&#34;, &#34;Hospital&#34;, or &#34;Institute&#34;. In addition, other special words are listed, such as national or ethnic adjectives (&#34;American&#34; or &#34;Moslem&#34;). Other special words include &#34;non proper name words&#34; like those that often occur at the beginning of sentences but are not likely to be part of names (&#34;Yesterday&#34; or &#34;Only&#34;); or dates (such as &#34;December&#34; or &#34;Monday&#34;); etc. Other examples of terms that are used in the authority list 125 are given below. 
     FIG. 2 shows the tokenized text 120 as a data structure representing the elements of one whole text, or document. If a text file contains multiple documents and the documents are separated by an identifiable document-separation indicator, then 120 is the tokenized content of a single document of that file. Each element or token 200 in the data structure 120 includes one or more attributes and their values. 
     A &#34;token&#34; 200 is typically a string of characters in a document. Non limiting examples of these strings include words, punctuation, tags and markers, etc. &#34;Attributes&#34; are data fields in the token data structure 200 that describe the token 200. Examples of attributes include location of the token 200 within a document, proximity of the token 200 with other tokens 200, and type of token 200. &#34;Values&#34; of attributes are second paragraph of the document (location), pointer to the next token 200, word (type), etc. 
     One preferred embodiment of a token 200 is shown in FIG. 2. The &#34;str&#34; attribute indicates the content of the string. The word, sentence and paragraph attributes indicate the position of this token in the text. (In FIG. 2, the sentence and paragraph attributes are designated as &#34;sent&#34; and &#34;parag&#34;, respectively.) The type attribute indicates whether this token is a regular word (type `w`), a special character (such as punctuation, type `s`), a tag (such as an html or sgml tag, type `t`), a possessive marker (such as &#34;&#39;s&#34;, type `p`), etc. The type analysis can be expanded to include dates, monetary values, components of compound or hyphenated words, and others. 
     FIG. 3 describes the overall flow of the name extraction processor 300. The name extraction processor 300 creates a data structure, more specifically, a linked list, of name elements. Each name element is also a data structure, consisting of attributes and their values. The value of the &#34;str&#34; attribute is formed by processing tokens 200 of one or more documents and concatenating the &#34;str&#34; value of selected tokens 200. After the initial concatenation, the &#34;str&#34; attribute of a name element on list 325 contains a &#34;raw&#34; name. The raw names of the name elements on the list 325 are then cleaned and/or split, to update the &#34;str&#34; values for existing name elements and to create new name elements with new &#34;str&#34; values. The updated and new name elements are called &#34;candidate name elements&#34;. The str values of the candidate name elements on this list then can be compared with other names/query elements. Links indicating duplicate name elements (with identical or near identical &#34;str&#34; values) are optionally added among the name elements on the list (325, 335). 
     The list of name elements (325, 335) can be further processed with an equivalence recognition processor 340 to add equivalent links 345 (325, 335) among the name elements on the list. See below for the definition of &#34;equivalence.&#34; Canonical forms for the name elements on the list 345 are optionally created at the same time. Canonical forms from different documents are optionally merged together by a name aggregation process 350. These merged canonical forms can be used to produce a name dictionary 130A. 
     In step 305, processor 300 obtains the next tokenized document 120 as input. In step 310, it initializes the first name element and places it on the data structure 325. When a name element is initialized, all the values of all its attributes are null. As processor 300 executes, different values are defined for various attributes. Processor 300 calls the document scanning processor 320, which adds more name elements to the data structure 325, and fills in their str, word, sentence and paragraph attributes, as well as the &#34;number-of-words&#34; attribute for each name element. List 325 may contain duplicate name elements, that is, name elements with identical or near-identical str values, if a name was repeated in the document 120. The duplicate recognition processor 330 operates on list 325 to recognize name elements with identical str values and link them to each other, producing a new version of 325, which is list 335. 
     To determine whether the str values of the name elements on the list are valid names and to identify what entities they refer to, the str values can be compared to names stored in a name dictionary (step 337). For example, the str &#34;IBM&#34; (see 415A in FIG. 4) matches &#34;IBM&#34; in the name dictionary 130 (see line 2010 in FIG. 20). Line 2010 in the name dictionary provides the information that &#34;IBM&#34; is the name of an organization. This technique of comparing names to a database or dictionary of existing names is known art, as used by Carnegie Group&#39;s NameFinder. 
     The optional equivalence recognition processor 340 operates on list 325 to recognize non-duplicate names that refer to the same entity and are therefore identified as equivalent. 
     A canonical form is defined for a group of equivalents (see definition below), an entity type is assigned to it, and links are established among all the equivalents, producing a new version of list 325, which is list 345. In addition, in one preferred embodiment, processor 340 produces a list of all names occurrences 355 which comprise the following triples: 
     the str value of a name element in 345; 
     the canonical form of the name element in 345; 
     its location in 120, expressed in word, sentence and paragraph attributes. 
     Optionally, the name occurrences 355 can be displayed as display 155. Display 155 can comprise list 355, sorted in occurrence order, alphabetical order, or any other order. Display 155 can also be tagged 360 by the tagger 160, which operates on the data structure of the tokenized document 120 to introduce tags into it at name locations, as specified in list 355. 
     Optionally, a name aggregation processor 350 processes one or more list(s) 345, to aggregate their content into a name dictionary 130A. 
     FIG. 4 shows an example of the data structure 325 of name elements. After the initialization step 310, this data structure, which is a linked list, consists of one element 410, whose attributes (identified by the numbers between 415 and 480 inclusive) are all null and whose &#34;next&#34; attribute 490 points to NULL. As part of document scanning processor 320&#39;s execution, the values of the str attribute 415, the word, sentence and paragraph attributes 420-430, respectively, and the number-of-words attribute 440 are set. When a new name initialization takes place, the value of the &#34;next&#34; attribute points to the new 410 name element on the linked list. 
     Alternative name data structures (325, 335, 345, 355) that have one or more named elements 410, including a string attribute 415 and associated attributes (e.g. 420), are envisioned. For example, the name data structure (325, 335, 345, and 355) could be additional annotation on the tokenized text 120 or other records that include identification of the named element 410 with its string 415 and associated attributes. 
     Lists 335, 345, and 355 are different instantiations of list 325. Each instantiation includes more information in the attributes and more links among the elements of the list. For example, the initial list of name elements 325 has values in attributes str 415, word 420, sentence 425 and paragraph number and number-of-words 440. &#34;Number-of-words&#34; records how many tokens of type `w` (i.e., how many words) exist in &#34;str&#34;. 
     After the duplicate recognition process 330 is complete, the list of names 335 has duplicate links 450 among name elements whose str values are identical or almost identical. After the equivalence recognition process 340 is complete, the list of name elements 345 has equivalence links 450 among elements that refer to the same entity. In addition, these elements have values for the attributes of first name, middle name, last name, etc., if they refer to a person. There are values for the attributes of organization name, organization location and organization tag, if they refer to an organization; etc. After the equivalence recognition process, all elements of list 345 either have a value for their canonical form attribute or else point to an anchor which has one. After the name aggregation process 340 350 is complete, all variants and anchors that have identical or near identical canonical forms (from different documents) are grouped together. 
     In FIG. 5, the scanning process 320 is described. The first part of the process 320 (steps 505, 510, and 520) creates raw names by concatenating selected tokens 200 from the tokenized text 120. The second part of the process 320 (steps 530, 540, and 550) cleans and/or splits the raw names to update the str values of existing name elements or to create new name elements. The resulting modified list 325 contains candidate name elements. The process 320 scans and concatenates the elements (tokens 200) of the tokenized document 120 as follows: first it gets the next token from 120 (step 505); then it determines whether the string of this token (stored as the str value) is acceptable for starting a raw name (when the str value of the current name element is empty) or for continuing a raw name by concatenating to it (if the str value of the current name element is not empty) (step 510). 
     There are many ways to determine whether or not a token 200 is or is not acceptable for being part of a raw name, i.e., whether it is selected for starting or concatenating to a raw name 510. With few exceptions, a capitalized token is acceptable as a part of a raw name and a non-capitalized (all lower case) token is not. Some non limiting examples of these selection criteria are given below. 
     A token string 200 is acceptable if it is capitalized but is not explicitly listed in the authority file 125 (also called authority list 125) as a non-name. Capitalized non-names, that are listed are unambiguous date words (e.g. &#34;January&#34;) or special acronyms (e.g. &#34;TV&#34;). 
     A token string 200 is also acceptable if it is one of a selected group of uncapitalized strings (e.g. &#34;van&#34;), (explicitly listed in the authority file 125); or if it is a numeral or an ordinal number. Furthermore, if it is a numeral, it is acceptable only if the current name&#39;s str does NOT end in a preposition, a comma, a date or another number. 
     Since, according to a stylistic convention of the English language, all the first letters of words in headlines and other headings are often capitalized, the presence of capital letters in such headings is not necessarily an indication of names of people, places or organizations. Tokens 200 occurring after a begin-heading tag and before an end-heading tag, if such tags exist, are not acceptable as names and their strings do not concatenate. 
     A sentence-initial token is also usually capitalized and so it is not acceptable if it&#39;s more than 4 characters long, ends in &#34;ly&#34;, and is not a person&#39;s first name (e.g. &#34;Frequently&#34;, but not &#34;Beverly&#34;). In addition it is not acceptable if it&#39;s one of about 400 frequent sentence-initial words listed in authority list 125 as non names (e.g. &#34;Yesterday&#34;). The frequent sentence-initial words listed in the authority list 125 are non names that have a high statistical probability of being at the beginning of a sentence. This list can be developed by analyzing random samples of text. 
     If the token 200 is acceptable for concatenating to the current name&#39;s str, it is concatenated to it in step 520. If it is a sentence-initial token, it is marked as such and reexamined later (see below). If this is the first token 200 of the raw name the word, sentence and paragraph attributes values of the current token 200 are copied as the values of the word, sentence and paragraph attributes of the current name element. 
     In addition, the number-of-words value of the current name element is incremented by one (see 440 in FIG. 4). 
     If a next token 200 is not acceptable for concatenation, then the scanning processor 320 signals the end of concatenation of tokens. The current string of concatenated tokens is now called a &#34;raw name&#34;. An example of a raw name 415 (concatenated string of tokens 200) is shown in data structure 410 as &#34;Local Education Outreach.&#34; Each of the raw names 415 have zero or more proper names, zero or more medial substrings, zero or more leading substrings, and zero or more trailing substrings. 
     The remaining steps in process 320 either clean a raw name and update the str value of its name element on list 325; or split a raw name into several parts and create new name elements on list 325 to hold the new parts in their str values. In step 530, the raw name is cleaned (see the name cleaning processor 600 below). If as the result of the cleaning process, the entire raw name was removed, so that the str of the current name element becomes empty (540) the current name element is replaced by the next name element and its attributes are filled with new values. The scanning processor resumes the loop in step 505 by getting the next token 200 from the tokenized document 120. 
     If the str of the current name element is not empty (in step 540) as a result of cleaning, it may contain several names concatenated together (e.g. &#34;France and Spain&#34;). The raw name is therefore processed by the splitting processor 550 (see below) into its parts. After the splitting of the raw name, the scanning process resumes at step 505. 
     FIG. 6 describes the name cleaning processor 530. The processor involves processing the raw name 415 through several condition-and-execution blocks, 640, in order. If the conditions of any of the blocks 640 are met, the raw name is modified in that block, by the removal of substrings from the beginning and/or the end of the raw name. The current name element&#39;s number-of-words value is decremented by the number of such substrings removed from the raw name. The modified raw name is examined by the next 640 block. At the end of the process 530, the cleaned name element is returned (step 650). 
     FIG. 7 describes some examples of the details of a cleaning block 640. In step 705, the raw name is examined for certain leading and trailing substrings that may have been concatenated in step 520 but that can be removed now that the concatenation process has ended. If the leading or trailing strings conform to some pattern (e.g., they are all digits or punctuation), the raw name is examined further (710). If further conditions hold, an associated cleaning function 720 is performed. Otherwise, the raw name proceeds to the next cleaning block 640. If the conditions hold, the leading or trailing substrings are removed (step 720) by the associated cleaning function, and the number-of-words of the name element is decremented to reflect the number of tokens of type `w` in the resulting cleaned raw name. Otherwise the raw name proceeds to the next cleaning block 640. 
     As a result of step 720, if the str is empty, the cleaning process 540 is terminated, and an indication that str is empty is returned in step 730, so that the name element can be replaced by the next name element 410. If str is not empty, it proceeds to the next cleaning block 640. 
     The various cleaning condition-and-execution blocks 640 cause certain cleaning functions 720 to be executed if certain other cleaning conditions 710 are met. The condition-and-execution blocks 640 may take the form of &#34;execute a specific cleaning function if a cleaning condition is met.&#34; Non limiting examples of cleaning condition-and-execution blocks 640 include following: 
     1. Remove trailing space or punctuation marks, such as open parenthesis, comma, or quote, if such trailing spaces or punctuation marks exist. 
     2. Remove final &#34;&#39;s&#34; if it follows certain words from the authority list 125, that would indicate that the raw name is a place name or an organization name (e.g. &#34;France&#39;s&#34; or &#34;Inc.&#39;s&#34;). 
     3. Remove final number (e.g. &#34;France 1987&#34;) if it follows certain words from the authority list 125, that would indicate that the raw name is a place name or an organization name. 
     4. Remove a final &#34;&#39;s&#34; if it follows a word that is all upper case (e.g. &#34;IBM&#39;s&#34;). 
     5. Remove the last word of the raw name if it is an ambiguous date word (as determined by authority list 125), such as &#34;June&#34;. Also, remove function words, ordinals or numerals, if they precede it (e.g. remove &#34;on 2nd of April&#34;). (Function words are typically closed-class words, such as prepositions--&#34;of&#34;, &#34;for&#34;--and conjunctions--&#34;and&#34;, &#34;or&#34;.) 
     6. Remove a national adjective (e.g. &#34;British&#34;) if it is the last word of the raw name. Also, remove function words or ordinals or numerals if they immediately precede it (e.g., remove &#34;by British&#34;). 
     7. Remove any function word (as determined by list 125), such as &#34;of&#34;, &#34;for&#34; or &#34;and&#34;, if it is the last word of the raw name. 
     8. Remove a hyphen and a lower-case word if the hyphen and lower case word follow a capitalized word (e.g. &#34;California-based&#34;). 
     9. Remove space or punctuation mark if it occurs as the first thing in the raw name. 
     10. Remove a word that can&#39;t constitute a name on its own if it is by itself, or if it is followed by a function word. These words arc listed in authority list 125. For example, the raw name &#34;Attorneys for IBM . . . &#34; becomes &#34;IBM . . . &#34;, but &#34;Attorneys Associated&#34; remains intact. 
     11. Remove the whole raw name if it consists of a geographical modifier followed by a national adjective, e.g., &#34;North American&#34;; or if it is just a national adjective e.g., &#34;African&#34;. 
     12. Remove any raw name if it consists only of lower-case characters, punctuation marks, spaces and numbers, e.g. &#34;$123.40&#34;. 
     FIG. 8 represents the recursive name splitting processor 550, which takes as input a name element with a cleaned raw name (as its str value) and submits it to a series of splitting condition-and-execution blocks 840, in order. If a certain medial substring is found, the raw name is split into two parts preceding and following the medial substring, and the medial substring is removed. 
     A raw name that was formed by concatenating a sequence of mostly capitalized tokens and function words may be a complex construction that is a conjunction of several names (e.g. &#34;IBM and Bell Laboratories&#34;). Since a single name may contain the word &#34;and&#34; (e.g. &#34;Victoria and Albert Museum&#34;), special heuristics are needed to distinguish multi-name conjunctions from single names containing conjuncts. 
     Conjunction is a recursive process: there could be a conjunction of conjunctions, as in &#34;The MOMA, the Museum of Natural History and the Victoria and Albert Museum&#34;. Therefore the splitting heuristics need to apply recursively, too. 
     Other complex name structures contain prepositions (&#34;Reagan on Election Day&#34;), and the possessive &#34;&#39;s&#34; (&#34;Britain&#39;s University of Sussex&#34;). The conditions of the blocks 840 test for conjunctions, prepositions and possessives. 
     If the conditions of any of the blocks 840 are met, the cleaned raw name is split into a left part and a right part in this block 840 and each part of the raw name is submitted to processor 550 again. The recursion stops when none of the splitting conditions hold for a raw name. The raw name is then &#34;atomic&#34;, i.e., can no longer be split. Every time a raw name is split, the str value of its name element is modified, to contain only the left part of the raw name. A new name element is formed and added to the name element list 325. The values of the new named element attributes are also filled (see below). In one preferred embodiment, the new named element&#39;s str value is the right part of the raw name after splitting. 
     The blocks 840 are ordered so that certain splitting conditions are identified before others. The blocks 840 are divided into the first group of splitting conditions for which the raw name to be split is scanned from right to left; followed by the second group of splitting conditions for which the raw name to be split is scanned from left to right. 
     FIG. 9 describes one example preferred embodiment of the details of a splitting block 840. In step 905, the raw name is examined for certain splitting conditions. If these don&#39;t hold, the raw name proceeds to the next splitting block 840. If the conditions hold, as for the str value of the name element 9A10 in FIG. 9A, the following modifications to the name elements on the list of name elements take place: In step 910, the value of the str attribute of the current name element is changed to contain the left part of the raw name only. The number-of-words value 440 is changed to reflect the number of tokens of type `w` of the left part of the raw name. The updated name element 9A10 is shown as 9B10 in FIG. 9B. The new str (&#34;France&#34;, 9B15) undergoes the name cleaning process 530 and is submitted to the recursive name splitting processor 550. A new current name element is initialized in step 920, by calling the initialization process 310. The new name element (410, 9B50) in FIG. 9C is made to hold the right part. Its 9B50 str attribute 9B55 holds the right part of the raw name. Its number-of-words attribute 9B75 and its word 9B60, sentence 9B65, and paragraph 9B70 attributes are set, as in name element 9B50 in FIG. 9B (the attribute values 9B40, 9B20, and 9B25, respectively.) The new str undergoes the name cleaning process 530 and is submitted to the recursive name splitting processor 550. 
     The various splitting condition-and-execution blocks 840 cause certain splitting functions to be executed if certain other splitting conditions are met. The splitting condition-and-execution blocks 840 may take the form of &#34;execute a specific splitting function if a splitting condition is met.&#34; Non limiting examples of the various splitting condition-and-execution blocks 840 may include the following, scanning the raw name from the right to the left: 
     1. Split the raw name into a left part preceding &#34;and&#34; and a right part following it, if the raw name contains &#34;and&#34; followed by an all upper-case word. 
     2. Similarly, split the raw name into a left part preceding &#34;and&#34; and a right part following it, if the raw name contains &#34;and&#34; preceded by an all upper-case word; 
     3. Similarly, split the raw name into a left part preceding &#34;and&#34; and a right part following it, if the raw name contains &#34;and,&#34;; 
     4. Similarly, split the raw name into a left part preceding &#34;and the&#34; and a right part following it, if the raw name contains &#34;and the&#34;. But do not split if the left part is an organization name with strong scope (see the organization entity-type process, FIG. 15, step 1545, for details). 
     5. Similarly, split the raw name into a left part preceding &#34;and&#34; and a right part following it, if the raw name contains &#34;and&#34; and it contains a human name in the right part. 
     6. Similarly, split the raw name into a left part preceding &#34;and&#34; and a right part following it, if the raw name contains &#34;and&#34; and it contains a place name in the right part. 
     7. Similarly, split the raw name into a left part preceding &#34;and&#34; and a right part following it, if the raw name contains &#34;and&#34; with an optional comma preceding it and the left part and right part are organization names with similar scope strength. 
     8. Similarly, split the raw name into a left part preceding &#34;to&#34; or &#34;&#39;s&#34; and a right part following it, if the raw name contains &#34;to&#34; or possessive &#34;&#39;s&#34;, and the right part is a place name or human name. 
     9. Similarly, split the raw name into a left part preceding &#34;&#39;s&#34; and a right part following it, if the raw name contains &#34;&#39;s&#34; and a place name at the end of the left part; 
     10. Similarly, split the raw name into a left part preceding &#34;of&#34; or &#34;in&#34; and a right part following it, if the raw name contains &#34;of&#34; or &#34;in&#34; and the symbol &#34;&amp;&#34; in the right part. 
     11. Similarly, split the raw name into a left part preceding &#34;of&#34; or &#34;in&#34; and a right part following it, if the raw name contains &#34;of&#34; or &#34;in&#34; and a human name in the left part. 
     12. Similarly, split the raw name into a left part preceding a comma and a right part following it, if the raw name contains a comma and a place name in the left part. 
     13. Similarly, split the raw name into a left part preceding a comma and a right part following it, if the raw name contains a comma and an adjective at the beginning of the right part. 
     14. Similarly, split the raw name into a left part preceding &#34;, and&#34; and a right part following it, if the raw name contains a comma preceded by &#34;and &#34; and a human name in the right part. 
     15. Similarly, split the raw name into a left part preceding &#34;, and&#34; and a right part following it, if the raw name contains &#34;, and&#34; and an organization name in the left part with low scope strength. 
     16. Similarly, split the raw name into a left part preceding a left parenthesis and a right part following it, if the raw name contains a left parenthesis and no right parenthesis in the right part. 
     17. Similarly, split the raw name into a left part preceding a right parenthesis and a right part following it, if the raw name contains a right parenthesis and no left parenthesis in the right part. 
     Scanning the raw name from the left to the right: 
     1. Split the raw name into a left part preceding a comma and a right part following it, if the raw name contains a comma followed by an optional &#34;and&#34; and the left part is a human name or place name. Do not split if the right part contains a &#34;fund&#34; word, as listed in authority list 125 (as in &#34;Judith and Martin Bever Foundation&#34;). 
     2. Similarly, split the raw name into a left part preceding the comma and a right part following it, if the raw name contains a comma and a place name on the left. 
     3. Similarly, split the raw name into a left part preceding &#34;to&#34; and a right part following it, if the raw name contains &#34;to&#34; followed by optional &#34;the&#34; and a place name on the left. 
     4. Similarly, split the raw name into a left part preceding &#34;of&#34; or &#34;in&#34; and a right part following it, if the raw name contains &#34;of&#34; or &#34;in&#34; and a human name on the left. 
     5. Similarly, split the raw name into a left part preceding &#34;&#39;s&#34; and a right part following it, if the raw name contains the possessive &#34;&#39;s&#34; and a place name on the left. 
     FIG. 10 describes an optional duplicate recognition processor 330. The purpose of this processor 330 is to link name elements 410 with identical (or near identical) str values 415, by making all subsequent duplicate name elements on the list of name elements point to the first duplicate name element, that is, by turning the value of their duplicate --  ptr 450 from NULL to be that of the first duplicate name element. Creating the list 335, with duplicate links, allows all further processing to skip over duplicate name elements if desired. For example, only the first duplicate of each duplicate chain participates in the equivalence recognition process 340; that is only name elements with a null duplicate --  ptr 450 participate. Similarly, only the first duplicate is given as input to the name aggregation processor 350. However, all duplicates are given as input to the list of name occurrences 355. 
     The processor 330 processes the name elements 410 on the name element list 325 in a loop within a loop. The outer loop, 1045, starts with step 1005. In step 1005 the next unprocessed name element is examined. For each name element, the name element candidate list 325 is traversed again in an inner loop 1030. When the inner loop 1030 is completed, the duplicate-processed attribute 455 of the name element being processed in the inner loop is set to YES, and it is considered processed. In step 1010 the next unprocessed name element in the inner loop 1030 is examined. If the strings of the two name elements differ, (step 1015), the inner loop resumes with the next unprocessed name element. If the strings are identical, the duplicate pointer 450 of the name element in the inner loop 1030 is set to point to the name element being processed by the outer loop 1045 and the duplicate-processed attribute 455 of the name element in the inner loop is set to YES. The name element in the inner loop is now considered processed and will not be further examined by processor 330, in the outer loop 1045. 
     Name elements that correspond to sentence-initial single-word names are specially treated. (These name elements have a word attribute 420 value of 1 and a number --  of --  word attribute 440 value of 1) If they have no duplicates, they are removed from the candidate name list 325, on the assumption that their str is probably capitalized because it occurs at the beginning of a sentence and not because it&#39;s a valid name str. 
     Two name elements are considered to be duplicate if their str values are identical or near identical. For example, if one str contains a final possessive (&#34;The Government&#39;s&#34;) and the other doesn&#39;t (&#34;The Government&#34;), the two are considered identical. The absence of the &#34;&#39;s&#34; in one str is taken as evidence that the possessive &#34;&#39;s&#34; is not a true part of the str and should be removed. In addition to processing the inner-loop name as a duplicate, the &#34;&#39;s&#34; is removed from the str that contains it. (Note that if the &#34;&#39;s&#34; was a genuine part of the str, it would be present in the str of all the duplicates.) 
     After the duplicate process 330 has applied to the name element candidate list 325, the equivalence processor 340 can be executed to operate on the list of candidate names with duplicate links 335. 
     Alternatively, comparisons may be made between the str value of the name elements on list 325, 335 and strings in the name dictionary 130, as described above. 
     Among other things, the above text describes a system and method for processing names in text which is claimed and described in further detail in U.S. patent application Ser. No. xxx, to Ravin et al., entitled System and Method for Processing Names in Text, that was filed on the same day as this disclosure, and that is herein incorporated by reference in its entirety. 
     FIG. 11 describes the equivalence processor 340, which groups together as equivalents all the name elements that refer to the same entity, establishes a canonical form for a group of equivalents, and assigns an entity type to the group. The equivalence processor 340 scans the list of name elements until it finds a name element with a high confidence score for a given entity type. This name element is defined as an &#34;anchor&#34;. The list of name elements is scanned again to find other name elements with a low to high confidence score for the same entity type and whose other attribute values are compatible with the attribute values of the anchor. Those become the variants of the equivalence group and are linked to the anchor with equivalence links. (Confidence scores are described below.) 
     After all the variants are linked, a canonical form is created for the group. The canonical form is the least ambiguous, most explicit name that can be composed from the various attribute values of the anchor and variants. The canonical form may be identical to a str value of one of the anchor/variants, or it may be a composite (see below). This novel canonical form is a superior identifier of the anchor and all of the variants in the equivalence group. By using this canonical form, a system can quickly and accurately identify all mentions of a name (including variants) in text. This is useful in searching and processing text within a single document as well as across a plurality of documents. 
     The equivalence processor 340 processes the name elements 410 on the name list 325 in a loop. In step 1105 the next unprocessed name element is examined for equivalence. In step 1110 it is evaluated as to whether it is a person name, by the entity-type process described in FIG. 14. When a name element is determined to be of a certain entity type (e.g. person, place, organization, etc.), its relevant attributes are filled with appropriate values if they can be identified (see FIGS. 14, 15, and 16). In the case of a person anchor, for example, all known attributes, such as first name, middle name, last name, gender, etc. are filled. 
     If the person entity-type processing of the name element 410 being processed results in a high confidence score, the name element is taken to be a person anchor. (An &#34;anchor&#34; is a name that has been reliably typed, i.e., an entity type has been assigned.) The anchor is further processed in step 1120 (see FIG. 12). The equivalence-processed attribute 460 of the name element is set to YES and it is now considered processed. Processor 340 resumes with the next name element to be processed for equivalence, in step 1105. If it is not a human anchor, it is evaluated as to whether it is a place anchor in step 1130 (see FIG. 16), and if it is, it is further processed as such 1120. If it is not a place anchor, it is evaluated as to whether it is an organization anchor in step 1140 (see FIG. 15). If it is an organization anchor, it is processed 1120 as such. If not, it is similarly processed for other types of anchors, such as events, works of art, economic or legal entities, and products. 
     FIG. 12 describes the Equivalence Processing Step 1120. If the name element being processed is found to be an anchor of a certain type (for example, person), it is assigned the appropriate entity type in step 1205 (for example, PERSON). The list 325 of name elements 410 (i.e., the linked list 325 of the data structures 410) is then traversed in an inner loop 1230. Each name element not yet processed for equivalence is examined in the inner loop (step 1210). If it is not compatible with the anchor, the inner loop 1230 resumes with the next unprocessed name element 410. If it is compatible, its canonical-pointer attribute 475 is set to point to the anchor (step 1220) and it is considered a variant of the anchor. In step 1225, the variant is marked as processed (attribute equivalence-processed 460 in FIG. 4 is set to YES) and the inner loop 1230 resumes with the next name element not yet processed for equivalence. 
     To determine whether the current name element is compatible with the anchor in step 1215, the current name element is examined as to whether its str contains any common words with the anchor&#39;s str, or is a possible abbreviation or acronym of the str of anchor 1300. If so, the current name element is further examined as to whether it is of the same entity type as the anchor. If it is, its attributes that are relevant to the entity type (e.g. first name and last name for PERSON) are set to the appropriate values. The values of the anchor&#39;s attributes are compared to the values of the attributes of the name element processed in the inner loop. The two name elements are said to be compatible if the values of their attributes do not contradict. For example, if the anchor&#39;s first-name attribute is &#34;A.&#34; and the first-name attribute of the inner-loop name element is &#34;Alan&#34; then the two do NOT contradict. But if the anchor&#39;s last name is &#34;Smith&#34; and the last name of the inner-loop name element is &#34;Soames&#34;, then the last name elements contradict and they are not compatible. If the attribute values arc compatible but not identical, the anchor&#39;s attributes may need to be updated, if the inner-loop name element contains more complete values. For example, if the anchor&#39;s first-name attribute consists of an initial only (e.g., &#34;A.&#34;) and the inner-loop name element&#39;s first-name attribute is a full first name, (e.g., &#34;Alan&#34;), the anchor&#39;s first-name attribute is updated with the full first name, i.e., the most complete. We define &#34;most complete&#34; as longest string. 
     When the inner loop 1230 terminates, and all the variants that are compatible with the anchor have been processed and they point to the anchor, the anchor and the variants are considered to form an equivalence group. (It is possible that no variants were found to be compatible with the anchor, and so the anchor is the only variant in its equivalence group.) 
     A canonical form is generated for the group in step 1235. The canonical form becomes the value of the anchor&#39;s canonical --  str attribute 470. Finally, the anchor is marked as processed in step 1240. 
     The canonical form for an equivalence group can be identical to the anchor str (in the case of economic entities or products, for example) or it can be manufactured by concatenating values of selected attributes, as follows. 
     In one preferred embodiment, the canonical --  str for a person name is generated as follows: 
     If there is no first name or no last name, but there is a professional title attribute, include the professional title in the canonical --  str (e.g., &#34;Professor Kahn&#34; or &#34;King Faisal&#34;); 
     Else, if there is no professional title and no first name, but there is a personal title, include it in the canonical --  str (e.g., &#34;Mr. Smith&#34;); 
     If there is a first name, and/or a middle name concatenate them to the canonical --  str. 
     If there is one or more name prefixes concatenate them to the canonical --  str (e.g. &#34;Antoine de St. Exupery&#34;). 
     If there is a last name concatenate it to the canonical --  str. 
     If there is a name suffix concatenate it to the canonical --  str (e.g., &#34;Martin Luther King Jr.&#34;). 
     In one preferred embodiment, the canonical --  str for a place name is generated as follows: 
     Start the canonical --  str with the value of the place attribute. (e.g., &#34;Paris&#34;); 
     If there is a bigger-place attribute, concatenate it with a comma to the canonical --  str (e.g. &#34;Paris, France&#34;). A bigger-place attribute value exits as a result of the place-entity process. If the name element&#39;s str contains a country name or a U.S. State name (as listed in authority list 125) following a comma, the place-entity process assigns it to the bigger-place attribute. 
     In one preferred embodiment, the canonical --  str of an organization is the value of the organization-name attribute. 
     In a preferred embodiment, the equivalence processor 340 described in FIG. 11 executes twice. During the first execution, anchors are established only if the confidence score returned from the entity-type check is high. The entity types PERSON, PLACE, ORGANIZATION, etc are assigned to the equivalence groups as a result, as described above. 
     During the second execution, anchors are accepted with lower confidence scores. The entity types assigned to them are weaker, such as PERSON?, or PLACE? Examples of PERSON? names are &#34;William Hall&#34; or &#34;Murray Hills&#34;; Examples of PLACE? names are &#34;Mt. Sinai, New York&#34; or &#34;Arlington, Virginia&#34;. (The &#34;?&#34; indicates the lower confidence level.) (See the discussion of the entity-type processes below.) 
     Name elements that did not categorize as any entity type are assigned the entity type UNCAT, for uncategorized. UNCAT name elements are: 
     1) Name elements that are truly not of the entity-types currently implemented (e.g. &#34;Star Bellied Sneetches&#34;, creatures from a Dr. Seuss book, mentioned in a Wall Street Journal article); 
     2) Name elements with various non-name str values that are nevertheless capitalized in the text, such as the first few words of the leading paragraph; 
     3) Name elements that did not get any confidence score in any of the entity-type processes (e.g., &#34;IBM&#34; in the absence of &#34;International Business Machines&#34; in the same article). Many of these name elements are properly associated with their canonical form by the Aggregator (see below). 
     4) Misc. errors. 
     FIG. 13 shows the name elements on the name linked list after the entity-type processing (see below) has applied and the values for the relevant attributes set. (See FIG. 17 for details.) The equivalence processor 340 has also executed and the canonical --  str attribute 470 of the anchor 1300 has been set. the canonical-ptr attribute 475 of the variant name element 1310 has been set to point to the anchor 1300. The processing of the name list 325 is now complete. Every variant in the equivalence group points to the anchor 1300 which contains the canonical --  str 470 (canonical form) that best represents every name element in the equivalence group. 
     FIGS. 14 to 16 describe three entity-type check processes. These processes analyze the str value of a name element to determine whether the name element could be assigned a certain entity type. The analysis is carried out on a &#34;working copy&#34; of the str attribute. The working copy starts as an exact copy of the str value, but as substrings of it (from the left or from the right) are determined to be potentially valid values of certain attributes, the substrings are removed from the working copy. At the end of the process, the working copy is discarded. The analysis results in a certain confidence score. If the confidence score is high enough, the entity type is assigned to the name element and the values of the relevant attributes are set. 
     FIG. 14 describes the person entity-type process 1400, which processes the working copy of the name element str to determine if it is of entity type person. Refer also to FIG. 17. The copy is scanned for various name parts, such as first name or name suffix, as listed in the authority list 125. When these are identified, they are removed from the copy and used as values of the various person-related attributes of the name element. The process continues until all the analyzable parts have been identified and removed and a confidence score is returned. If a high confidence score is returned, the entity-type attribute is set to PERSON. 
     Step 1405 examines whether the copy contains a professional title on the left. The string is scanned from left to right until the rightmost professional-title word is encountered, as specifically listed in the authority list 125. Everything to the left of such a word is considered to be the professional title 1713 (e.g., &#34;Junior Assistant Professor&#34; in &#34;Junior Assistant Professor Jane Smith&#34;). In addition, if the professional title word is marked in list 125 with a specific gender (e.g. &#34;assemblyman&#34; is marked as masculine), the gender attribute value is set to either `m` or `f`, as appropriate. Next, if a prepositional phrase follows the professional title, such as &#34;of Public Affairs&#34; in &#34;Secretary of Public Affairs&#34;, the copy is scanned left to right until the rightmost domain word is encountered (such as &#34;Affairs&#34;, &#34;Budget&#34;, or &#34;Psychology&#34;). The full prepositional phrase is added to the professional title. The professional title is removed from the working copy and placed as the value of the professional title attribute 1713 in step 1410. 
     In step 1415, if the rightmost professional-title word is a royal word, such as &#34;King&#34;, the name element will be processed as a royal name in steps 1420-1430. In 1420, a few tests apply: If the royal title word is preceded by any other word, is it preceded by another royal word (&#34;Majesty King . . . &#34;), a country (&#34;Jordan King . . . &#34;) or an adjective (&#34;Jordanian King . . . &#34;)--as listed in authority list 125? Does a first name follow the royal title? If anything follows the first name, does a middle name follow the first name? (e.g., &#34;Pope John Paul&#34;) and/or does a Roman numeral follow (e.g. &#34;Queen Elizabeth II&#34;)? If any of these conditions fails, the name is invalid (e.g. &#34;Prince Charles Island&#34;) and a negative confidence score is returned in step 1425. Otherwise, the values prof --  title 1713, first --  name 1714, middle name 1715 and name --  suffix 1719 for the name element are filled and a high confidence score 1704 is returned, in step 1435. 
     If there are no more words left in the working copy after the title has been removed in step 1440 a negative confidence score is returned in step 1443. 
     In step 1445, the working copy is scanned from the right for the presence of a suffix (e.g. &#34;Sr.&#34;). If one exists, it becomes the value of the suffix attribute 1719 in step 1450. In addition, the gender attribute value 1711 is set to `m`. In step 1455 the rightmost word of the working copy becomes the last-name attribute value 1718. In step 1460, the working copy is scanned from the left for the presence of a personal title (e.g. &#34;Mr.&#34;). If one exists, it becomes the value of the pers --  title attribute 1712 in step 1465. In addition, if the personal title word is marked in list 125 with a specific gender, the gender attribute value 1711 is set appropriately. In step 1468 the leftmost word of the string copy becomes the first-name attribute value 1714. 
     In step 1470 the last word of the working copy is examined. If it is a name prefix (e.g. &#34;de&#34;), it becomes the value of the prefix attribute 1717 in step 1472, and is removed from the string copy. Steps 1470-1472 are repeated until there are no more prefixes. 
     In step 1475 the first word of the working copy is examined. It is considered to be a nickname if it occurs in quotes or parentheses. If it is a nickname, it becomes the value of the nickname attribute 1716 in step 1480. In step 1485 the first word of the working copy is taken to be the value of the middle-name attribute 1715. In step 1490 the first word of the working copy is tested as a nickname. (A nickname may follow either the first name or the middle name.) If it is a nickname, it becomes the value of the nickname attribute in step 1491. 
     The analysis of the person name parts is now finished. In step 1492 the combination of the various person attribute values is inspected. Some combinations may result in an invalid person name. For example, if there is no personal title and no first name, and the last name is a word that is listed as an organization word (e.g. &#34;Department&#34;) in the authority list 125, the name is considered to be invalid and a negative score is returned 1492A. Step 1492 will return a negative score for &#34;Justice Department&#34; but not for &#34;Justice Johnson&#34;. In step 1493, the presence or absence of a personal title attribute is checked. If there is no personal title value, a low confidence score is returned (e.g. &#34;Ruth Lake&#34;) in step 1494. Otherwise, a high confidence score is returned (e.g. &#34;Mrs. Ruth Lake&#34;) in step 1495. 
     FIG. 15 describes the organization entity-type process 1500. In step 1505 the working copy of the str is examined. If it contains a place phrase on the left (as in &#34;California-based Apple&#34;), the place phrase becomes the value of the organization-place attribute 1705 (as shown in FIG. 17) in step 1510. In step 1515 the rightmost word of the copy is examined. If it is an organization tag (e.g. &#34;Inc.&#34;), it becomes the value of the organization-tag attribute 1703 in step 1520. Also in step 1520, the remainder of the working copy becomes the value of the organization-name attribute 1702 and a high confidence score is returned in step 1521. When a high confidence score is returned, the entity-type attribute 1701 is set to ORG. (See its value in FIG. 17.) 
     If there is no tag on the right, the working copy is scanned from the right for a place name in step 1530. If a place exists (e.g. &#34;United Steel Inc. of America&#34;), the copy is scanned in step 1532 for an organization tag that may precede it. If a tag precedes the place, the place name (e.g. &#34;America&#34;) found in step 1530 becomes the value of the organization-place attribute 1705; the tag (e.g. &#34;Inc.&#34;) becomes the value of the organization-tag attribute 1703; and the remainder of the working copy to the left of the tag (e.g. &#34;United Steel&#34;) becomes the value of the organization-name attribute in step 1533. A high confidence score is returned 1533A. 
     If an organization tag does not precede the place, the copy is scanned for a comma preceding the place in step 1535. (e.g. &#34;United Steel, Boston, Mass.&#34;) If a comma exists, the words to its left become the value of the organization-name attribute 1702 and the words to its right become the value of the organization-place attribute 1705 in step 1536. A high confidence score is returned 1537. 
     If there is a place name on the right (step 1530) but neither a tag nor a comma preceding it (&#34;The Association of Musicians of Greater New York&#34;) or if there&#39;s no place on the right, the process resumes in step 1540. The working copy is scanned for the presence of an organization word with strong scope, as listed in authority list 125. Organization words with strong scopes are words that tend to be the syntactic heads of phrases and conjunctions that follow them; that is, they often include following phrases and conjunctions within their scope, and those phrases and conjunctions act as modifiers for the strong-scope words. For example, in &#34;The Commission for the Protection of Animals and Children&#34;, the phrase &#34;for the Protection of Animals and Children&#34; is within the scope of &#34;Commission&#34; and modifies it. If a strong-scope organization word is found, return an ORGP confidence score in step 1545, which is both a high confidence score and indicates potential modification on the right. Scope strength is used by the splitting processor (above), to determine whether to split a name on a conjunction or a preposition or not. 
     If step 1540 failed, the working copy is scanned in step 1550 for an airline word, such as &#34;Airlines&#34; or &#34;Air&#34;, as listed in authority list 125, and an adjective or country name. If the tests succeeds, the org name attribute 1702 is filled in step 1551 and a high score 1552 is returned. 
     If step 1550 fails, the working copy is scanned in step 1555 for a school word, such as &#34;High School&#34;, as listed in the authority list 125. If a school word is found, the org name attribute 1702 is filled in step 1556 and a high confidence score is returned in step 1557. 
     If step 1555 fails, the working copy is scanned in step 1560 for any organization word, as listed in authority list 125. If one is present, the org name attribute is filled in step 1562 and a medium confidence score is returned in step 1565. 
     Finally, in step 1570, the combination of organization attribute values are checked for validity. If the name is determined to be invalid, a negative confidence score is returned in step 1571. Otherwise, a 0 confidence score is returned in step 1580. A name element is an invalid organization entity type if the last word of its org name attribute is listed in the authority list 125 as an indicator of another entity type (such as &#34;Act&#34; or &#34;Amendment&#34;). A name element is also an invalid organization if its org name attribute consists of only one word (e.g., &#34;International&#34;) which is NOT one of the explicitly listed one-word organization names (e.g. &#34;Congress&#34;), in authority list 125; and it has no organization place or organization tag values. 
     FIG. 16 describes the place entity-type process 1600. In step 1605 the working copy is examined. If it contains a comma, the words to the right of the comma are checked in step 1610 to see if they constitute a country name, as listed in authority list 125. (Note that U.S. states and Canadian provinces are considered to be countries too.) If the test fails, a negative confidence score is returned in 1611. If it succeeds, the words on the right of the comma become the value of the bigger-place attribute 1722 in step 1620. 
     In step 1625 the words to the left of the comma are checked to see if they constitute a place name that isn&#39;t a country or a continent, as listed in list 125. If the test succeeds, they become the value of the place attribute 1721 in step 1630 and a high confidence score is returned in 1631. The entity-type attribute is set to PLACE. If the test fails, the last word of the working copy is checked in step 1640. If it is an organization tag, the name is invalid as a place name and a negative confidence score is returned in 1641. Else, if there is no tag, the words to the left of the comma are considered to be the value of the place attribute 1642 and a low confidence score is returned in 1643 (e.g., for both &#34;Palo Alto, Calif.&#34; and &#34;Xerox, Calif.&#34;). 
     If the working copy does not contain a comma, the process resumes in step 1650. If the whole copy is a place name listed in list 125, it becomes the value of the attribute place 1721 in step 1651 and a high confidence score is returned in 1652. Otherwise, the copy is scanned in step 1655 for a modifier (e.g., &#34;West&#34; or &#34;Greater&#34;) on the left. If there is a modifier, and the remainder of the working copy is a known place (according to list 125) in step 1660, the remainder becomes the value of the place attribute 1721 in step 1661 and a high score is returned in 1662. If the remainder is unknown, a negative confidence score is returned in 1663. If there is no modifier, the working copy is scanned in 1665 for a place tag, such as &#34;Mount&#34; or &#34;Lake&#34;. If there is no place tag, a negative confidence score is returned in 1666. Otherwise, the entire working copy is taken to be the value of the place attribute. If the tag is ambiguous, such as &#34;Hall&#34; which is both a place indicator but also a common last name, in step 1670, a low confidence score is returned 1671. Otherwise, if the tag is not ambiguous (e.g., &#34;Avenue&#34;), a high score is returned 1672. 
     FIG. 17 describes the name data structure (the list of name elements) with name elements 1700, 1710 and 1720, with respective organization- person- and place-relevant attributes filled with values as the result of the entity-type processes described above. Name element 1700 returned from the organization entity-type process 1500 with a high score 1704. Its entity-type attribute 1701 is set to ORG; its org-name attribute 1702 is set to &#34;Learning&#34;; its org-tag attribute is set to &#34;Inc.&#34; Name element 1710 returned from the person entity-type process 1400 with a high score. Its entity-type value is PERSON. Its gender attribute 1711 is not set because the personal title 1712 is not marked for gender. There is no professional title 1713. The first-name attribute value 1714 is &#34;James&#34;; the middle-name attribute value 1715 is &#34;S.&#34;; the nickname attribute 1716, the name-prefix attribute 1717 and the name-suffix attribute 1719 are null, as they were not found in the working copy of the str attribute. The last-name attribute value 1718 is &#34;Smith&#34;. 
     Finally, name element 1720 returned from the place entity-type process 1600 with a high score. Its entity-type value is PLACE. Its place attribute value 1721 is &#34;Somers&#34;; its bigger-place attribute value 1722 is &#34;New York&#34;. 
     As shown in FIG. 17, note that a given name element data structure 410 can have fields for any number of entity types, e.g. org tag for an organization, bigger-place for a place, gender for a person entity type but the entity type of the data structure is ultimately determined after one of the entity type processes adds values to the data structure 410 to give the data structure a specific entity type. 
     FIG. 18 shows one alternative presentation 1810 of information from the linked list of name elements, 325. 1810 can be displayed as an alternative display 155. It also serves as input to the aggregator processor, described in FIG. 19. 
     Because the name extraction procedures described thus far operate on the contents of one document at a time, the invention provides for an aggregation processor, 1900 below, which combines the results of processing multiple documents into a single vocabulary list. The goals of aggregation processing include further duplicate elimination and equivalence identification. Subsidiary goals include the selection of the best entity type for an aggregated name, the selection or construction of the best canonical form for an aggregated name, and the detection and elimination of redundant variant strings for an aggregated name. These goals can be achieved because the aggregator processor 1900 processes text over more than one document, preferably multiple documents. This provides a greater text sample for the production of canonical forms. 
     Aggregator processing 1900 is illustrated in FIG. 19. In one preferred embodiment, the processor accepts, as input 1905, multiple sets of output 1810, on one or more documents, from prior names processing. As described, this output 1810 consists of pairs of canonical forms and variants, marked with an entity type. In step 1910, the aggregator loads these pairs into the canonical form-variant (&#34;CF-Variant&#34;) array 1915, the block diagram shown in FIG. 19A, upon which subsequent processing will be based. 
     The first requirement for aggregator processing is that identical canonical form-variant pairs be removed from the CF-Variant array. In one preferred embodiment, this is accomplished as shown in steps 1920 and 1930. In step 1920, the aggregator sorts the CF-Variant array in such a way that identical pairs are placed next to one another. Then, in step 1930, the duplicate pairs are identified with a sequential scan through the array and the duplicates are eliminated. Once the CF-Variant array is generated 1915, alternative known methods for removing duplicates on a list also be applied to replace steps 1920 and 1930. 
     Once duplicates are removed, the next requirement is to aggregate different entries in the CF-Variant array that refer to the same entity. This is done across one or more documents. The aggregator 1900 detects entries in the CF-Variant array that refer to the same entity but have different enough strings 415 to initially appear to be different entities. This situation typically arises when the processes described above operation on multiple documents. For example, &#34;President Bill Clinton&#34; and &#34;Governor Bill Clinton&#34; initial appear to be different but are in fact the same entity. This is achieved by the executing the steps 1940, 1950, and 1960. 
     In step 1940, the CF-Variant array is again sorted, this time into an order designed to put entries that refer to the same entity near one another. The mechanism used to achieve that order is a special comparator used by the sort operation. This comparator functions by comparing normalized forms of the canonical forms in the CF-Variant array. 
     Normalization involves a number of transformations including, but not limited to, case normalization, observing word separators other than the blank character, morphological normalization (i.e., reduction to lemma forms), ignoring empty words as given in authority list 125. These normalization techniques are well known. For example, see The C Programming Language by Brian W. Kernighan and Dennis M. Ritchie, 2nd Edition (&#34;case normalization&#34;, &#34;word separators&#34;) and Information Retrieval: Data Structures and Algorithms by Frakes, William B, and Ricardo Baeza-Yates, Prentice Hall, 1992 (&#34;morphological&#34; and &#34;empty word lists&#34;). Both of these references are incorporated by reference in their entirety. 
     Empty words are &#34;boiler plate&#34; type words that do not effect the identity of an entry. The definition of empty words is position-dependent. Some words, such as &#34;the&#34;, &#34;and&#34;, etc. are empty anywhere in a canonical form. Other words, such as &#34;Corporation&#34;, &#34;Jr.&#34;, &#34;Limited&#34;, etc are only empty at the end of a form. 
     Once the canonical forms in the CF-Variant array are normalized 1940, the CF-Variant array can be inspected by a comparison function to identify entries that are the same. In one preferred embodiment, the comparison function actually sorts the CF-Variant array 1940 and compares 1950 entries that are grouped in a &#34;neighborhood.&#34; 
     In step 1950, rows that are near one another (in the same neighborhood) are inspected to determine whether they refer to the same entity. The definition of &#34;near&#34; is, of course, dependent on the comparison function used in step 1940. In the preferred embodiment, rows are near one another if their canonical forms begin with the same non-empty word, after normalization. For example, the canonical forms &#34;President Bill Clinton&#34; and &#34;Governor Bill Clinton&#34; both begin with the &#34;empty words&#34; President and Governor, respectively. In this example, the empty words &#34;President&#34; and &#34;Governor&#34; are ignored and the two entries are considered to begin with the same non empty word (Bill). 
     However, other definitions of &#34;near&#34; are contemplated by the inventors. For example, near entries could be defined as those that begin with the same letter or share any non empty word. 
     Whether two nearby rows refer to the same entity can be determined by yet another application of the canonical form comparator from step 1940, i.e., the inspection of the entries of the neighborhoods. Furthermore, the comparator can select or construct a canonical form that represents the best representative of its comparands. Finally, it can also choose the best entity type from between the types of its comparands. Using these facilities, step 1960 builds a vocabulary item for the name consisting of the best canonical form and entity type from all the nearby CF-Variant rows, together with the combined variants from all of the rows. 
     The canonical form and entity type of the vocabulary item that results from inspecting a set of CF-Variant rows that are near one another is determined by comparing all of the rows. In the preferred embodiment, this is achieved by a series of pairwise comparisons. The first comparison compares the first two of the set of &#34;near&#34; rows in CF-Variant array. The second comparison compares the third row with the result of the first comparison. Subsequent comparisons compare each succeeding rows with the result of the comparisons on the preceding rows. The process stops when the last of the set of &#34;near&#34; rows in the CF-Variant array has been processed. The actions necessary to choose the canonical form and entity type of the resulting vocabulary item only apply to the comparands of those pairwise comparisons in which the comparands match. 
     For each pairwise comparison, the comparator chooses a resulting entity type. Using the following legend for entity types, 
     na--categorized name (i.e., ORG, PERSON, PLACE, OTHER) 
     un--uncategorized name 
     te--(multi-word) technical term 
     wo--single word 
     the entity type of the result of aggregating comparands &#34;a&#34; or &#34;b&#34; is selected according to the following table: ##STR1## 
     For each pairwise comparison, the comparator also creates or chooses a resulting canonical form. In the preferred embodiment, the comparator achieves this by inspecting the tokens in the two comparands, in order, and using the rules given below for selecting one of the single tokens to be included in the canonical form. The rules are applied to each pair of non-empty tokens from the comparands. If a token from one of the comparands is an empty word that is not matched in the other comparand, it is omitted from the canonical form. If two different empty words occur in matching positions in the two comparands, then they are both omitted from the canonical form in the preferred embodiment. However, the inventors contemplate other embodiments in which a selection is made between the two empty word tokens, using any of a variety of selection mechanisms. 
     The following rules for choosing a canonical form for a single aggregated token constitute one preferred embodiment for this operation: 
     1. If the two tokens come from vocabulary items having different categories, and at least one of them is a recognized name, then the form from the higher category is selected. 
     2. If the two tokens have the same case pattern, then the longer token is selected, unless the longer token is a non-lemma noun derived from the shorter token, in which case we choose the shorter (base) form. 
     3. If the case patterns of the two tokens is different, the selection is based on the case patterns. Using the following case-pattern legend, 
     au--all upper 
     iu--initial upper 
     al--all lower 
     ot--other 
     a choice is made between tokens &#34;a&#34; or &#34;b&#34;, having the indicated case patterns, according to the following table: ##STR2## 4. if one token is &#34;and&#34; and the other token is &#34;&amp;&#34;, then the canonical token is &#34;and&#34;. 
     The final requirement for aggregation is that duplicate and redundant variants for a canonical form be eliminated. This is done to eliminate identical or redundant (different morphological forms of the same word) variants of canonical forms that have been aggregated. In a manner similar to that described previously for canonical forms, step 1970 of the preferred embodiment achieves this elimination by (1) sorting the variants for a given canonical form, using a special comparator, (2) re-using the comparator to detect duplicate and redundant variant forms, and (3) eliminating them. 
     As its final step 1980, the aggregator formats and outputs the aggregated vocabulary items into the name dictionary 1990. 
     As an example, FIG. 20 shows partial contents of a name dictionary 130A created by aggregator processing applied to the sample input from FIG. 18. 
     The present invention can be used to populate database tables. Many information providers employ human readers to scan news articles and wires to detect new names of organizations, people or places in the news. Human readers also classify online documents as to what entities they mention. Both these human activities can be significantly aided by using the processors described in this invention. 
     Mapping names to entities is an important application of this invention. Correct mapping solves the problem of ambiguity - when the same name is used to refer to more than one entity in different places. This can help to increase the accuracy of searches in an information retrieval application. In addition, correct mapping solves the problem of synonymy - when different names are used to refer to the same entity. In information retrieval applications, this invention will simplify the search expression that needs to be formulated, because it will eliminate the need to provide all the variations of a name. 
     In automatic machine translation applications, identifying all variants of a name as instances of the same canonical form will simplify the translation of proper names. All the variants will map onto one translation. 
     In spell checking applications, identifying proper names and treating all variants as instances of the same canonical form will reduce the false alarms for misspelling that the checker normally outputs for the user. Once a canonical form was entered into the dictionary, all of its variants will be accepted as correctly spelled as well. 
     Identifying canonical forms of names is very important for searching for information on the Internet. Because of the diversity of content on the Internet, variants may be ambiguous in many ways that are not contemplated by the user. An application can suggest the different canonical forms that variants map to and the user can use the information to guide the search. 
     Given this disclosure alternative equivalent embodiments will become apparent to those skilled in the art. These embodiments are also within the contemplation of the inventors.