CA1301934C - Collocational grammar system - Google Patents

Collocational grammar system

Info

Publication number
CA1301934C
CA1301934C CA000579695A CA579695A CA1301934C CA 1301934 C CA1301934 C CA 1301934C CA 000579695 A CA000579695 A CA 000579695A CA 579695 A CA579695 A CA 579695A CA 1301934 C CA1301934 C CA 1301934C
Authority
CA
Canada
Prior art keywords
word
tag
words
sequence
tags
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
CA000579695A
Other languages
French (fr)
Inventor
Henry Kucera
Jeffrey G. Hopkins
Alwin B. Carus
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vantage Technology Holdings LLC
Original Assignee
Houghton Mifflin Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Houghton Mifflin Co filed Critical Houghton Mifflin Co
Application granted granted Critical
Publication of CA1301934C publication Critical patent/CA1301934C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/253Grammatical analysis; Style critique
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking

Abstract

Abstract A system for the grammatical annotation of natural langauge receives natural langauge text and annotates each word with a set of tags indicative of its possible grammatical or syntactic uses. An empirical probability of collocation function defined on pairs of tags is iteratively extended to a selected set of tag sequences of increasing length so as to select a most probable tag for each word of a sequence of ambiguously-tagged words. For listed pairs of commonly confused words a substitute calculation reveals erroneous use of the wrong word.
For words with tags having abnormally low frequency of occurrence a stored table of reduced probability factors corrects the calculation. Once the text words have been annotated with their most probable tags, the tagged text is parsed by a parser which sucessively applies phrasal, predicate and clausal analysis to build higher structures from the disambiguated tag strings. A voice/text translator including such a tag annotator resolves sound or spelling ambiguity of words by their differing tags.
A database retrieval system, such as a spelling checker, includes a tag annotator to identify desired data by syntactic features.

Description

The present invention relates to automated language analysis systems, and relates to such systems embodied in a computer for receiving digitally encoded text composed in a natural language, and using a stored dictionary of words and an analysis program to analyze the encoded text and to identify errors. In particular, it relates to systems for the grammatical analysis of encoded text.
In recent years a number of systems have been developed for the automated recognition of syntactic information. A survey of some systems appears in the te~tbook of Winograd, Language as a Cognitive Process - Syntax (ISBN 0-201-08571-2 v. 1) at pages 357 - 361 and pages 390 - 403. As a rule, although a number of theoretical linguistic formalisms have been developed to identify correct grammatical constructions, the practical construction of grammatical analyzing devices has proven dificult. Because the number of combinations of possible parts o speech for a string of words escalates exponentially with string length, syntax-recognizing systems have in general been limited to operating on text having a small, well-defined vocabulary, or to operating on more general text but dealing with a limited range of syntactic features. E~tensions of either vocabulary or syntactic range require increasingly complex structures and an increasing number of special recognition rules, which would make a system large or too unwieldy for commercial implementation on 9~'~

1 commonly available computing systems. Moreover, the automated grammatical systems which have been designed are special processors, in that they are not adapted to conventional word processing or computer-aided publishing functions. For example, such systems may require that their input text be at least sufficiently pre-edited so that it is both correctly spelled and grammatically well-formed. A
misspelling, a wrong word such as a homonym, a compound word, or even a simple syntax error may render an input sentence unanalyzable.

Objects of the Invention It is an object of the present invention to provide an improved device for the grammatical analysis of digitally encoded natural language text.
It is another object of the invention to provide a digital text analyzer for assigning tags to each word of a digitally encoded text indicative of syntactic or inflectional features of the word.
It is a further object of the invention to provide a grammatical analyzer for encoded text which identifies the most probable tags of words of a sentence based upon collocation probabilities of their occurrence with adjacent tags.
It is a further object of the invention to provide a grammatical analyser which accepts as an input unedited text material having misspellings and vocabulary errors.
These and other features of the invention are obtained in an apparatus for the grammatical annotation of digitally encoded text material, preferably including a stored dictionary wherein each entry represents a word together with tags indicative .

93~

1 of possible syntactic and inflectional features of the word. A sentence of digitally encoded text is passed to the grammatical annotator, which first operates on the words of the sentence to annotate each word with a sequence of possible tags for the word, and next operates on strings of tags of ad~acent words to determine the probable tags, in order of likelihood, for each word.
This produces a "disambiguated~' tag set which identifies a most probable tag assignment, for each word of a string of words, and one or more next most likely tag assignments. The disambiguated tag set serves as an input to a grammar processor which in a preferred embodiment uses the tags to identify basic ~rammatical units such as noun phrases and simple predicates, and processes these units to determine the parse of the sentence.
Preferably, the stored dictionary of words includes data codes representative of features such as gender and number, requiring agreement among words, and this information is used to select proper constructions during processing. The system preferably also includes a morphological analyzer, which uses prefixes, sufixes and other structural attributes of words to recognize certain classes of words which are not in the stored dictionary. For such a word, the analyser then creates à dictionary entry with appropriate tags so that grammatical processing proceeds as though the word were in the database.
More specifically, the grammatical analyzer annotates the words of a sentence of text with grammatical tags and inflectional features of the word using one or more of the above techniques. Each ~L~3~

. .

1 string of multiply-tagged words between two unambiguously-tagged words is then analyzed by a disambiguation sub-system which applies a collocational probability matrix to adjacent paris of tags to iteratively cons~ruct a probability-like measure and to determine a most probable tag string corresponding to the string of words.
Candidate tag strings of lesser probability are stacked for use if a later processing step eliminates the "most probable" tag string. This results in a "disambiguated"
sentence structure in which one or more likely tags are identified for each word of the sentence.
In one aspect the invention provides a processor for parsing digitally encoded natural language text, such processor comprising means for receiving encoded natural language text for processing, dictionary means for storing words of the natural language together with a list of associated tags indicative of the possible grammatical or syntactic properties of each word, means for looking up a word of the text in the dictionary and annotating the word with its associated tags from the dictionary to provide a word record, means operative on word records of words of a sentence for deining a relative probability of occurrence of a tag sequence consisting of one tag selected from the word record of each word of a sequence of words of the sentence, means for constructing a selected set of tag sequences having a tag selected from the tags associated with each ~ord of the sequence of words and determining a tag sequence of greatest relative probability of occurrence thereby identifying a single most probable tag for each word of the sequence, and grammatical processing means for identifying grammatical structure from the ordering of the single tag for each said word so as to obtain a parse of the sentence.

... .

-4a- ~ 3~3~

1 In a preferred implementation, the probability-like measure is iteratively defined on generations of successively longer tag strings corresponding to sequences of words. Nodes which generate strings of lesser probability are pruned from the calculation as it proceeds, so that only a handful of potentially thousands of tag strings need be processed.
In a further embodiment of the invention, the values assigned by the collocation matri~ are further modified, for tags of particular words appearing in a reduced tag probability database, in accordance with a table of reduced probabilities. In a further preferred embodiment, when a word of the string appears in another database, called the ~commonly confused word" database, an augmented set of tag strings is created b~ substituting tags corresponding to a correlated word, and the substituted tag strings are collocationally evaluated as candidates for the most probable tag string. In a further embodiment, the tag strings selected in one ~

13~3~

l of the foregoing operations are also checked against templates representative of erroneous or rare parses to detect common errors. When a sentence has been annotated with tags and a most probable parse identified, the annotated sentence is then parsed by a parsing component which determines a parse of the whole sentence.
The parsing component of a prototype system operates on the "most probable parse" ~henceforth "MPP") tags assigned by the disambiguation sub-system to the words of a given sentence, in order to assign the higher syntactic structure of the sentence and also to detect and suggest corrections for certain types of errors in the sentence. The parsing process preferably proceeds in three general phases: (a~ the identification of the simplex noun phrases (NPs) in the sentence and, if there is more than one simplex NP, their combination into complex NPs; (b) the identification of the simplex verb groups (VGs) in the sentence and, iE there is more than one simplex VG, their combination into complex VGs; and ~c) the assigning of structure to complete sentences.
In addition to its applications in a grammatical text analyzer, a disambiguator according to the invention includes improvements to existing types of non-grammar language processors. For example, an improved spelling checker according to the invention includes a spelling checker of the type wherein each erroneously-spelled word is identified and a list of possibly-intended words is displayed.
Conventionally, such systems display a list of words which are selected as having approximately the same spelling as the erroneously-spelled word. An improved system according to the present invention "` ~L3f~ 3 ~6--includes a partial or complete grammatical processor which determines the local context of a word (i.e., its likley tags or a definite tag), and which selects from among the candidate replacement words so as to display only the possibly intended words having a tag compatible with the syntactic context of the misspelled word.
In an improved speech recognition (or speech synthesis) system embodying the invention, a disambiguation module or a ~rammatical processor differentiates pairs of homonyms (respectively, homographs) by probable syntactic context, thereby eliminating a common source of errors in the conversion of text-to-sound (respectively, sound-to-text). Other examples are described, following a detailed description of a prototype embodiment of a grammatical disambiguation system.
The novel features which are believed to be characteristic of the invention are set forth with particularity in the appended claims. The invention itself, however, both as to its organization and method of operation, together with further objects and advantages thereof, may best be understood by reference to the following description taken in connection with the accompanying drawings.

Brief Description of the Drawings Figure 1 is a block diagram of a system according to the present invention;
Figure 2 is a listing of system tags in an illustrative embodiment shown on ~wo sheets;
Figure 3A, 3B, 3C are samples of dictionary record~;
.

..

~3~ 3~

Figure 4 is a listing of major classes of tags with corresponding structural processing group codes;
Figure 5, on the sheet with Fig. 3C, is a representative text sentence annotated with its dictionary tags;
Figure 6 is a flow chart of a word tag annotation processor;
Figures 7-10 are flow charts detailing operation of the collocational disambiguation processing;
Figure 11 shows the processing of a general grammatical analyser operative on disambiguated text;
and Figures 12 - 13 shows further details of preferred text word annotation processing.

Detailed Description of the Drawinas Figure 1 shows a block diagram of a grammatical analyzer accordin~ to the present invention having a CPU/controller 2 which may, for example, be a general purpose computer such as a micro- or mini- computer. The computer receives input text 4, e.g., from keyboard entry, a communications link, or a data storage device, and, if necessary, runs a sentence splitter 6 which partitions the text into sentences for grammatical analysis. Alternatively, the system may receive as input discrete sentences of text or encoded text with sentence boundary markers already inserted~ Sentence splitting per se is known in the art, and is used, for example, in commercially available systems for deriving word-per-sentence and similar statistical information in computerized readability analysis systems. A suitable sentence splitter is disclosed ,~,, 13(~193~

1 in issued Uni~ed States patent 4,773,009 of Henry Kucera, Rachael Sokolowski and Jacqueline Russom filed June 6, 1986, entitled Method and Apparatus for Text Analysis.
The controller 2 then passes each sentence to a grammatical analyzer 10 which annotates each word of the sentence, by reference to a stored word dictionary 8, and preferably several special databases or tables 7, as discussed further below, so as to produce an annotated sentence structure. The annotated sentence, or partial parses thereof and error messages or "prompts" are displayed on display 9.
According to one aspect of the invention, the dictionary includes a record for each word which contains a list of ~tags~, each tag encoding a syntactic or inflectional property of the word, and which also includes a listing of special features used in the ~rammatical processing.
The processor annotates the sentence with this information. It then utili~es the stored information to perform two, roughly sequential, operations on the annotated sentence structure.
First, a collocational tag disambiguation processor lOa applies an empirically-compiled probability-like function defined on adjacent pairs of syntactic tags to determine a unigue sequence of tags (one for each word) corresponding to the most probable parse of each ambiguously-annotated word in the sentence. The disambiguation processor also identifies alternative ta~s of relativel~ hi~h probability. Nest, a grammatical processing module lOb operat~s on the idPntified tags to develop a parse of the sentence.

~' .;

13~ 3~
g l A prototype text annotator embodiment was created having a main dictionary with 28,223 80-byte records, each record containing the complete grammatical information for a given "word" which is either a base form or an irregularly inflected form.
These records were of three types, marked by a record type-code in column 80 to identify the types as "normal" (column ~0 blank), "exception" ("$" in column 80) or "contraction" ("~" in column 80).
Normal records correspond to the words with non-merged tags and (if they are nouns or verbs) regular inflections; exception records correspond to the words with non-merged tags that are members of an irregular (noun or verb) paradigm (these words may also be members of regular paradigms or uninflectable tag groups); and contraction records correspond to the words with merged tags (that is, tags that contain a "+", indicating that the corresponding word is a contraction of some type).
Figure 2 is a listing of the tags used in the prototype embodiment, each of which is represented in the drawing by a one to three character mnemonic and also by a one to two digit tag code. There are ninety-two such tags, although any given text word will generally have between one and six possible tags. Each tag indicates a possible syntactic use of the word, or an inflection. The dictionary records may also include, for nouns and verbs, certain information encoding word features such as its number agreement behavior.
Figures 3A-3C show examples illustrating the format of the normal, exception and contraction ; records of the prototype dictionary discussed above.
The records each include the retrieval form of the 13~

1 main dictionary entry, left-justified with blank fill in columns 1-25 as field one, and the record type code discussed above as the last entry in the last field at column ~0.
Figure 3A contains examples of ~normal~ main dictionary records. Normal records comprise appro~imately ninety-five percent of the database, and contain five fixed-format fields, which include, in addition to fields one and five described above, the following.
Field two contains noun base form inflection code information, if the base word has a noun form, for the word in field one, and occupies columns 26 through 2~. These code bits enable the construction of any desired inflection Erom the stored base form, b~ use of an inflectiona] synthesis coding scheme discussed further below.
Field three contains the verb base form inflection code information, if the base form has a verb form, for the word in field one, and occupies columns 30 through 33; these code bits compactly encode the verbal inflections corresponding to the base word.
Field four contains all other syntactic tags for the word in field one~ as well as any noun or verb feature annotations, and occupies columns 34 through 77; further information concerning the feature annotations that may appear in this field is given below in the discussion of parsing and noun phrase determination.
As noted above, noun and verb codes, if either occurs at all for a given word, are confined to the fields before column 34; all other tags must occur starting in or after that column. For example, ~L3~ 39~

1 "back~, the tenth word in Figure 3A, is encoded as being both a noun and a verb, both of inflectional class one, yielding the paradigm [back, back's, backs, backs'] for the noun usage and [back, backs, backed, backing] for the verb, as well as an adjective and an adverb (with tag codes as ~JJ" and "RB", respectively). Although, including inflectional variants, this accounts for si~
diferent words (ten different word-plus-tag pairs), only one record (that corresponding to the base form;
i.e., nback") is stored in the database; all of its inflectional variants are recovered by an analysis/synthesis procedure, called ~unflection/inflection".
Inflection coding is a method of compactly encoding an electronic dictionary so as to recognize, derive and construct inflectional variants of stored base forms. It permits a relatively small dictionary to provide recognition and spelling verification information, as well as, in this invention, information for the synthesis of inflectional forms i and for grammatical processing. One unflection/inflection processor is described in deta;l in issued United states patent 4,724,523 ~iled July 1, 1985 and entitled ~Method and Apparatus for the Electronic Storage and Retrieval of Expressions and Linguistic Information" of inventor Henry Kucera. Its operation is further described below, by way of completeness, in connection with Figure 6.
In compiling the dictionary, if an inflectional variant is a base form in its own right, i~ is ~is~ed separately in the database with the ~3~3~ L~

l appropriate code for this usage. For example, "backing" is stored as a noun of inflectional class one, denoted Nl, representing the paradigm [backing, backing's, backings, backings'3. This dictionary entry is in addition to its inflectional usage as the present participle of the verb "to back"] which would be recovered by inflection from the base form "back"
discussed above.
Figure 3B shows examples of exception records. These records contain elements (either base or inflected forms) that are members of irregular nouns or verb paradigms. In these records, the format of fields one to five are similar to those o~
normal records shown in Figure 3A, except that ~ield four contains one or more substrings delimited by parentheses. The material between parentheses identifies an irregular tag and the appropriate base form Eor processing for such tag.
Figure 3C illustrates contraction records, which lac~ the fields two through four of the foregoing two record types, and instead have a field two which contains from one to five merged tag representations (stored starting in columns 26, 36, 46, 56, and 66, respectively~, and occupies columns 26 through 77. The last f~eld, as with the other two types of records, contains certain special processing annotations, and occupies columns 78 through 80; in the prototype, the only codes that occur in this field are the record type-indicating codes that occur in column 80. The illustrated record for the word "ain't" indicates that it is a recognizable contraction with a tag string consisting of the auxiliary tags corresponding to the set of words ~"am", "is", "are", "has", "have"~, plus the negation marker "*" corresponding to the morpheme "n't".

~, 3J-~

1 As noted above, the main dictionary is a dictionary of base form records each listing codes indicative of grammatical and inflectional tags and feature information. Each text word is processed by an "unflection~ procedure which operates on the word to identify its base form by str;pping suffixes therefrom if possible to produce a probable base orm, and looking up the probable base form in the dictionary. When the probable base form is found, the processor inspects inflectional codes of the base form to confirm that any stripped suffixes were indeed legal suffixes of the found entry. The appropriate tags of the found word are then loaded into a data structure, denoted a sentence node or SEN
NODE, which represents that word for subsequent processing. In a prototype embodiment, each noun base form in the dictionary is encoded according to one of four regular inflectional paradigms, denoted N1 - N4, or a partial or defective paradigm. Each verb base form is enco~ed according to a regular verbal paradigm, denoted Vl - V4, a modified paradigm Vld, V2d, or V4d with a doubled consonant, or a partial or irregular paradigm. These noun and verb inflectional paradigms encoded in the prototype system are described in greater detail in Appendix Ao attached hereto and entitled Encoding of Inflections.
Figure 6 shows the overall "unflection"
processing for looking up a word of the text in the dictionary to provide basic grammatical inormation annotations. This figure corresponds in major part to Figure 7 of the ~f.~esaid u.S. patent 4,724,523, described in detail for the embodiment disclosed therein.

~ ``

3'~

1 As shown in Figure 6, on entry at 20 the unflection processor takes an input word and checks at 22 whether the identical expression is in the dictionary database. If so, it proceeds at step 32 to retrieve the associated tags and in~lectional class codes from the dictionary record and, at 34, to insert these annotations in a processing record for the word of the sentence. This processing record is denoted SEN-NODE, and is a data structure which receives the data annotation, such as tags and feature bits, which are initiall~ retrieved or subsequently developed during processing.
If, on the other hand, the identical word is not a dictionary entry, then a loop 24, 26, 28 is entered in which the processor strips an inflectional suffix, looks up the remaining root ~or a transformation thereof) in the dictionary, and, if it finds a matching dictionary base form, retrieves and outputs the associated tags and codes. In addition, for words (denoted "exprPssions" in the Figure) which do not yield a dictionary-listed base form, additional processi~g is performed at step 31 to create a provisional "dictionary record" which includes a dummy base form and a list of likely tags for the word. The various types of additional processing are denoted by "S-Words", a processing module which recognizes certain classes of words which, from their morphology, appear created by aEfixation; "forced tag routines", a collection of processing modules which recognize other special classes of words or assign tags by default; and "special databases". The special databases may, for example, include special listings of nonsense words, idiomatic expessions, proper nouns, or technical 33~

1 words peculiar to the document or user, which have not been integrated into the main dictionary.
These special extensions and the unflection processor together constitute a morphological analyser which provides tag and feature annotations for substantially all words, likely to be encountered in the input text.
The basic unflection processor, denoted GcsUnfl, operates as follows.
- 10 In broad terms, first, it removes possible inflectional endings (e.g., "s", "ed", "ing~', etc.) from the end of an input text word, and then checks the GCS main dictionary to determine if the remainder o the word occurs in it. If a match occurs, then the input word is a possible inflected form of the retrieved word, and the inflectional code.s of the retrieved word are therefore checked. If these codes indicate that the retrieved word allows the inflectional suffix that was removed from the input word to be added to it, then the input word actually is an inflected form of the retrieved word, which is thus its base form, and is analyzed as such.
More precisely, the suffix analysis procedure of the GcsUnfl processor proceeds as follows: (a) if the ~iven text word ends in an apostrophe, then the apostrophe is removed and a special flag is set and (b) a dictionary retrieval attempt is then made on the resulting form. If this form is retrieved, and the retrieval sub-procedures determine it is the base form, then no further analysis is necessary; otherwise the analysis continues as follows: (c) if the word ends in an "s", then only the steps described in paragraph (i) of the below processing are executed; if the word 1 ends in "ed", then only the steps ~escri~ed i~
paragraph (ii) of the below processing are executed;
and if the word ends in "ing", then only the steps described in paragraph (iii) of the below processing are executed. If none of the abova is true, then no further inflectional analysis of the word is possible, and the inflectional analysis procedure returns to its calling procedure. In the latter case, other processing steps are applied to generate a tentative tag string for the word by checking the word against special databases, and analyzing it for the occurrence of derivational affi~es (described in connection with Figure 12 - 13).
The unflection processing is as followsO
(i) If the word ends in an "s" (or "s"
followed by an apostrophe, which will be the case if the word-final apostrophe flag has been set by step (a) above), then it might be a singular noun possessive form, a plural noun form, a plural possessive noun form, or a verb third-person singular present-tense form, according to the exact form of its ending, as specified below. The ending analysis procedure proceeds as follows (a) remove the word-final "s" and look up the word; if unsuccessful, then (b) i the current last letter of the word is an "e", then remove it and look up the word; if still unsuccessful, then (c) if the current last letter of the word is an 'i", then remove it and look up the word; otherwise (d) if the last two letters of the current form of the word are identical, remove one and look up the word. If in step (b) of the above process, the current last letter of the word was an apostrophe instead of an "e", then the remainder of the algorithm will by bypassed and the word checked , ,~
,~ , 3~

1 to see if it is a possessive form ending in "~s". In all of the above cases, "success" is defined as both retrieving a word and determining that its base form inflectional codes allow the occurrence o~ the ending in question. This prevents the overgeneration of inflected forms that is often a problem in simple suffix-removal algorithms that do not have the capacity to check to see if a given suffix is legal on a given word.
A simpler process is used in the case of words ending in "ed" and "ing".
(ii) For the former: (a) the ~'ed~' suffix is removed immediately and the resulting form is looked up in the dictionary; if this is not successful, then (b) if the last two letters of the current form of the word are identical, then one is removed and the resulting form of the word is looked up; if this is not successful, then (c) if the current last letter is an "i", then it is replaced by "y" and the resulting form looked up in the dictionary. If this is not successful, then (d) the "y" is changed back to "i" and the algorithm continues by adding an "e"
to the end of the word and looking it up in the dictionary. In the above four cases, "success" is defined as it is in paragraph (i) above, with the further distinction that before a word is accepted as an "ed" form, the verb bass from codes on its main dictionary record are checked to ensure that it does not have an irregular past tense/past participle form.
(iii) In the case of the "ing" suffix, an algorithm similar to that used for the "ed" suffix is used, with the main differences being: (1) in case (c) the letter must be "y" instead of "i" (and it is changed to "i2" before the main dictionary is ~L3l~

l checked), and (2) "success" is defined as in paragraph ~i) above, and not as in (ii), since the occurrence of irregular past forms does not affect the form of the verb's present participle.
During the above processing the occurrence of "near" successes in matching an input word to a retrieved word is detected (e.g., a retrieved form with the inflectional code "Vl~ might be recovered when "Vld" inflectional construction is actually required for a precise match). Near successes of this type are recorded so that if an exact match is not obtained for a given input word, an attempt at correction may be made based on th nearly successful match. For example, in the case of the input word "computing", the base form "compute" will match if its code is "~ld" instead of "~l"; since this is the best match, "computting" is corrected to "computing", by modifying its "~ld" code to "Vl" and an error message to that efect is printed. "Near Success" is defined rigidly in the current i.mplementation of the program, as a one-feature discrepancy in the retrieved codes within a given word class, so these corrections turn out to be valid in virtually all cases. The construction o error messages is accomplished by indexing a particular type of detected error to a generic error message for that type of error, such as " is nok a word. You may mean . Please correct text."

The processor, having the dictionary base form and ; feature code, inserts the existing word and a synthesized correction in the blanks and displays the error message.

313~

1 In order to illuminate the above process, the following examples are presented.
To start with, the most common elements of an English language text (short function words such as "the" and "a", punctuation marks, and auxilary verb forms such as "is" and "has~') fall into the class of words handled most efficiently by the program. Since every word is lookad up in the main dictionary without modification when the procedure is entered, these words are found immediatley. If a word is found and is too short to be an inflected form of another word (i.e., is a member of the first two classes of common words given above) or has already had a base form assigned by the retrieval process, then GcsUnfl returns to its calling procedure without any further processing. On the other hand, if the word has not been found, or if it has been found, but is long enough and has the terminal characters to be the inflected form of another word, then processing continues in the manner described in the above algorithm.
For example, if the word "bearing" has been entered, then its noun interpretation ("bearing") is recovered immediately, and its present participle interpretation (from the verb "bear", which is also saved as its verbal base form) is recovered after the "ing" suffix is removed during the execution of the first'step of the algorithm described above in paragraph (iii). Similarly, iE the word "advanced"
is entered, then its adjectival interpretation ("advanced") is recovered immediately, and its past tense/past participle form (from the verb "advance", which is also saved as its verbal base form) is recovered during the fourth step of the algorithm described above in paragraph (ii).

~3~ 34 1 This process proceeds as follows. First an unsuccessful retrieval attempt is made for the form `'advanc", then the second and third steps of the algorithm are hypassed (since "advanc" does not end in a doubled consonant or the letter "i"), then "e"
is added to "advanc" and a main dictionary record is retrieved corresponding to this word. Once this record has been retrieved, it is checked for the occurrence o a ~erb base form that has an inflected form ending in "d"; since there is indeed such a form, the additional verbal interpretation of "advanced" noted above is added to the existing adjectival interpretation. The main dictionary record corresponding to "advance~ also has a noun interpretation (in in1ectional class one) and an adjectival interpretation ("advance", as well as "advanced" may be used as an adjective), but since neither of these interpretations has an inflectional variant formed by the addition oE ~d~ to the base form, they are ignored during this particular retrieval.
Note that if a word like "creed" is entered, the only legal interpretation is as a noun base form;
the "-ed" ending, in this case, is not inflectional, but is actually part of the base form. As can be seen from the algorithm description of the GcsUnfl procedure, three probes are made into the GCS main dictionary in this case: (1) with the test form "creed", which results in the retrieval of its usage as a noun base form; and (2) and ~3) with the test forms "cre" (suffix "-ed~') and "cree" (suffix "-d!'), which each result in no retrieval. Even though this process involves two unsuccessful probes into the ~CS
main dictionary, it is necessary because of the 3~

1 occurrence of words such as ~agreed", where the first probe will obtain its adjectival usage and the third its usage as the past tense form/past participle of "agree", and normal verb past forms such as "abandoned", where the first probe will obtain its adjectival usa~e and the second its usage as the past tense form/past participle of ~abandon~' (since both probes are successful, no third probe is made, since once the second retrieval has been successful, there is no English verb base form that will fit the description necessary for the third retrieval to be successful as well~.
After GcsUnfl has returned to its calling procedure, any text word which is idPntical to its base form, or is a inflection formed by adding "s", "s'", "ed" or "ing" will have been looked up in the dictionary, and its possible tags will have been ascertained from the dictionary records.
As noted above, in the prototype embodiment of a grammar processor according to the invention, the unflection and dictionary look up processing just described are supplemented with further special processing and look-up procedures in one or more special dictionaries to provide tag annotations for a greater c]ass of text words than appear in the main dictionary entries. ~or the moment, for clarity of illustration, it will simply be assumed that, at this stage, each word of the text has been annotated with a string of its possible tags and its corresponding base form.
In addition to the annotation of words of a sentence with tag numbers, certain feature annotations of elements that may operate as the head of a noun phrase, and of elements that can only occur :~3~

1 in a non-head position in a noun phrase are preferably included in the dictionary records. These annotations encode the "rank" which characterizes the order of pre-nominal occurrence of a pre-nominal word within noun phrases, and also encode features such as the number or gender behavior of nominal words. Such ~eature bits may be used in a grammar processor, for e~ample, in the construction of, or recognition of noun phrases. For the present, it suffices to point out that for a complete grammatical analyser the dictionary entries preferably contain, and the processing records are constructed to contain, coded noun phrase rank and added feature bits for nominal and pre-nominal elements in addition to the word tags. Alternative the processor may include a mechanism for assigning such rank and feature information based on other stored or derived data.

Preliminary Disambiguation of Tag Strinqs As indicated above, a preferred grammatical analyzer according to the invention first annotates each word o~ a sentence with the main dictionary information as described above. Many words of the sentence will receive a single tag. For example, in the sentence "John wants to sell the new metropolitan zoo animals." the words "John", "the", "new", "metropolitan" "zoo", and "animals" are unambiguously tagged NP, AT, JJ, JJ, NN, and NNS to indicate their sole interpretations as proper noun, articl~, adjective, adjective, singular common noun, and plural common noun, respectively. Each of the words "wants", "to" and "sell", however, receives two tags as follows ~ 3~

l wants.. ..NNS, VBZ as the plural of the base form noun "want", or the third person singular present tense of the verb to..... IN, T0 as the preposition or the infinitival "T0"
sell... .VBI, VBP as the infinitival or the non-third person singular present tense verb.
Thus, the number of possible tag strings obtained by selecting one of the possible tags for each word of the sentence is eight, and in general is o~tained by multiplying together the number of possible tags for each word of the sentence.
This number may escalate rapidly. For example, the sentence "John wants to sell the new metropolitan zoo all his cleverly trained and brilliantly plumaged parakeets.", which is obtained by replacing "animals" with a long noun phrase, introduces twenty four possible tag strings for the words of the noun phrase, making the total number of possible assignments of tags to the sentence (8) x (24) = 192. Figure 5 shows the tag annotations for this sentence.
In processing stage lOa which applicant calls "disambiguation processing", this large number of possible tag assignments to the sentence as a whole is processed by essentially probabilistic means, to determine, for each maximal ambiguously tagged string of words, a "most probable parse"
(denoted MPP3. With a substantial range of ambiguity thus eliminated~ the sentence, annotated with the MPP
of each word, is then further processed by stage lOb, which may be a conventional grammatical processor, so as to identify correct grammatical structure. This is done as followsO

.

3~t~3~1 1 The sentence is broken down into one or more strings of ambiguously-tagged words commencing and ending with an unambiguously-tagged word. Such a string of n words Wl...Wn has many possible tag annotations with word Wi having a tag string with possible tags Tii ¦l < j < mi. For a word Wi having a unique tag, mi = 1 and no winnowing of possible tag assignments is necessary.
However, by selecting one tag for each word Wi of the sequence of words Wl ... Wn, one obtains v = ~ mi possible sequences Xk of n tags. This number grows exponentially when the words have multiple tags, and the first stage disambiguation processor operates to select out a subset of these possible sequences.
Of the v possible tag sequences, a single sequence Xc is selected as most probably correct by defining a local probability-like distribution (called a ~ function) on pairs of adjacent tags to represent the propensity of co-occurrence of the adjacent tags, and by extending this function to a function defined on tag sequences, ~(Xi). The values of ~ on all possible sequences {X~} 1 < k < v then determine a probability-like function P defined on the set of sequences Xj where P(X~ (X~
The function ~ is determined as follows.
A statistical analysis of the one-million word Brown Standard Corpus of Present-Day American English, Form v~

1 C (the grammatically-annotated version, henceforth referred to as the "Brown Tagged Corpus" or "BTC") has determined the frequency of occurrence of each ta~ as well as the frequency of occurrence of each tag in a position syntactically adjacent to each other tag. By syntactically adjacent is meant adjacent except for the possible occurrence of one or more intervening words, such as adverbs, which for purposes of syntactic analysis may be ignored. This frequency of occurrence of a tag U is denoted f(U).
Occurrences of a tag V syntactically adjacent to a tag U ~denoted W) are also tabulated to determine the frequency f( ~) of such occurrence. Then, under fairly reasonable assumptions on the nature of the BTC database and the set-theoretic partition imposed on it by the criterion of adjacent occurrence, the function p(V¦U) = f( W)/f(U) defines a conditional probability function, i.e., the probability of tag V
co occllrring with U, given U. Applicant has empirically modified this conditional probability functioll to produce the ~ function defined as ~( W) = f( W)/f(U)f(V) which corrects for the relative frequencies of occurrence of the individual tags U, V, and thus produces a function defined on pairs of tags the value of which, although not strictly a probability function, represents their likelihood of co-occurrence or, intuitively, their strength of attraction. This ~ function thus represents the tag collocation probability for pairs of tags.
Appendix Al attached hereto is a representative listing from the ~ function compiled by applicant showing the form of the collocation matrix. It is defined on pairs of tags, and thus has ~' f~3 ~3 1 the form of a 92 x 92 integer-valued "tag collocational probability matrix" (TCPM). This matrix is implemented in applicant's preferred disambiguation processor as a look up table, so that despite the complexity of its derivation, no arithmetic operations or lengthy computations need be performed in computing the ~ values.
This binary function ~ on adjacent tags Ti,~ , (i + 1)~L~I of words Wi, Wi + 1 is extended to a weight function ~l~X~ r,,~,,T~"y~
i : , where X; = {Tlyl T2y2 T3y3.. Tnyn}
is a sequence of tags with each tag iYi being a tag selected from the tag string of the corresponding word Wi of the sequence of words.
Since the ~ and ~1 functions are tag-dep~ndent only, rather than word-dependent, a straightforward application of the above formalism may assign a high ~1 value to a sequence of tags which, although empirically likely, does not correspond to a reasonable set of tags for the particular words actually occurring in a sentence.
Accordingly, a further function ~0 is deined which corrects the ~ value for particular words by dividing by a correction factor C(Wi¦Tiyi), to reflect the fact that the word Wi whose tag iYi is being evaluated occurs with that tag with greatly reduced frequency in the BTC. For example, the tag string for the word "will" contains four tags ("MD" (modal auxiliary), "NN~' (singular noun), "VBI"(;nfinitive verb), and "VBI" (presant tense, ~3~3~

1 non-third-person-singular verb form)) -- however this word is almost always used as a modal, with its nominal usage being a distant sQcond, and its verbal usages being even less probable (to give some figures, based on an analysis of the Brown Tagged Corpus: f(will¦MD) = 2,138 (95.32~), f(will¦NN) = 104 (4.64%), f(will¦VBI) = 1 (0.04%), and f(will¦VBP~ = 0 (0%). Words such as "will" having an extreme variation in the frequency of occurrence of their possible tags are stored in a special "reduced probability table" or ~RPT~ data base which lists the divisors C~WilTiyi) for each reduced probability tag iYi of a word Wi.
Specifically, for such words the corrected weight function ~ 2~ . T~,yn) ~ ~ ~ Tl~"~t~) ~ ~ c(~ T'i,y;) is evaluated on the string, where the divisors c(Wi¦Tiyi) are obtained by accessing the RPT
database. In the database, each entry includes a word, followed by a two digi-t number between one and ninety-two representing each reduced frequency tag, together with a divisor between two and two hundred fifty five approximating the reduced frequency of occurrence factor of each listed tag.
The RPT database was compiled by counting the number of occurrences of each tag of a word in the BTC or, if the word may legally have a particular tag, but does not happen to occur with that tag in the BTC, setting the frequency of occurrence of that tag arbitrarily to one. The total number of occurrences of all tags for a given word was ~ 3Q~9~4 1 determined, and a reduction factor computed for each tag occurring substantially less frequently than the mean.
In the preferred embodiment, each word which has been identified as having tags which occur with a reduced frequency, has an RPT indication in the main dictionary, which prompts the processor to look up its associated ~PT inde~ value. The index value points to an entry in a separate table, denoted the RPT table, which stores patterns of reduced frequency of occurrence for each tag. Preferably, the table for a set of n tags associated with a base form contains less than n pairs, each pair consisting of a tag and the reduction factor associated with the tag. Implicity, a tag of the word which does not occur in the table is not reduced ;n frequency.
The RPT processing proceeds as follows.
When the base form of a text word has been determined, its dictionary entry is checked to determine whether it has an RPT index. If so, the index is applied to retrieve its RPT pattern which consists of a set of tags with tag frequency reduction factors, from the RPT table. For each tag of the word which has been identified, the corresponding reduction factor, if an~, is applied in the calculation of the tag string collocational probability.
By way of example, the word "run" has an index number which identifies an RPT entry with the following pairs:
TAG REDUCTIQN FACTOR
48 (NN) 83 (VBI ~ 4 84 (VBN) 4 85(VBP) -l and the word "fast" has an index for accessing an entry ~ith the following tags and reduction factors TAGREI)UCTION FACTOR
43(J~) l 4~(NN) 32 72(QL) 32 74(RB~ 1 83(VBI) 32 85(VBP) 32 The function ~0 defined above, using the collocation numbers ~(TiTi+l) corrected for words in the RPT database, is the ~ function discussed above which assigns a number to each ambiguously tagged tag sequence Tl....Tn. Thus, in the processor lOa each tag sequence is evaluated.
The sequence with the highest ~ value is then selected as the (collocationally~ most probable sequence, and its tag for each word is then identified as the word's most probable tag. The sentence passes to further grammatical processing stage lOb. In stage lOa, the second and third most probable tag sequences are also identified and saved in the event subsequent processing steps determine the first sequence is an incorrect tag assignment.
Before discussing in detail the construction of a processor for implementing the theoretical tag disambiguation as just described, two ~urther improvements are noted.
First, computation of the ~ function is performed more efficiently by ruling out some strings. Since there are many collocations which are not allowed in ~nglish (for example, adjacent modal ; auxiliaries, tagged "{MD, MD}", the simple e~pedient of setting to zero each TCPM entry corresponding to such pairs ensures that the value (and the ~ value) of a tag sequence containing such a pair is zero. In the prototype 9~4 1 embodi~ent, this improvement is accomplished by compiling a list of "disallowed collocational pairs", and setting to zero each entry of the collocation matrix corresponding to a disallowed pair. For the present, the list consists essentially of some of the matri~ diagonal elements; it may include such other collocations as have been reliably observed to be impossible or of negligible frequency of occurrence.
Second, the computation of the ~ function can be used to detect certain types of text errors.
The ~ function value is subject to extreme variation in the event the input text, as commonly occurs, includes the wrong one of a pair of commonly confused words. This variation is used in a preferred embodiment to evaluate the alternative words and to display an error message when the other word of a pair appears to be required. For example, the pair "advice/advise", of which the first has only a noun interpretation and the second has only verbal interpretations, are commonly interchanged in text.
Simple typographical errors of transposition cause errors such as the occurrence of ~form~ for ~from~
and vice versa. Clearly, to assign a preposition as the only possible tag of "from" when a noun or verb "form" is called for in the text, or to assign a verbal interpretation to ~'advise~ when the noun "advice" was meant, would result in an erroneous parse.
The preferred disambiguation processor solves this problem by employing a database of commonly confused words (denoted the CWW database~
which, in addition to containing pairs of the two types illustrated above, may include one or more pairs of inflections of pronouns te.g. "I/me", . ~

1 ~she/her~ etc.) which are commonly confused, the usage of which depends on local context, and the interchange of which thus affects the collocational computation. In the preferred embodiment, the CCW
database record for each CCW word pair contains a listing of the tags of each word of the pair, and an error message associated with it. For example, for the pair "council/counsel" in which "council" may only have noun tag number "48", and "counsel" may may have either the noun tag "48" or verbal tags "83" or "85", the selection of a verbal tag may initiate an error message such as "you may mean "counsel" instead of "council". "Council" is only a noun" "He is a member of the council." "Counsel" may be used as a verb meaning to advise": "We counsel you to go."
The implementation of the CCW processing is straightforward. Each word a CCW pair is marked (e.g., in the dictionary) by a special flag. This directs the processor to a CCW database which identifies the other word of the pair.
When a text word that is in the CCW database in encountered, it is recognized by its flag, and a "tag superstring" consisting of all the tags which are associated with either the actual text word or with its paired CCW word is constructed, together with the necessary extra SEN-NODE structure to copy the inflectional and feature agreement data codes for each word. The disambiguation processor then collocationally analyses all tags of the superstring when computing the ~ values of tag sequences containing the word, and if it determines that a tag of the CCW paired word is most probable, the CCW

~ 3 ~

1 error message for that situation is displayed. If the user confirms the error, the paired word is substituted and processing proceeds.
With this theoretical background on the construction of the collocation matrix and of the RPT
and CCW databases, and their use in the overall disambiguation processing, the detailed operation of a prototype disambiguation processor 10a will now be described with reference to Figures 7 - 10, showing flowcharts o~ the collocational disambiguation processing.
The basic structure processed during this stage is a pointer based structure termed a disambiguation node and denoted DIS NODE. These nodes are ordered in a linked list. Each node represents a stage in the computation of the distance function on a sequence of tags corresponding to a sequence of words of a sentence, and includes three elements, namely a pointer D LINK PTR to the next disambiguation node in the linked list, a variable DISTANCE, in which is stored the distance function ~ evaluated on the node, and a bit string D TRACE
which encodes the sequence of tags associated with the node. Since the tags are numbered from l to 93, each tag may be encoded with seven bits. D TRACE is 140 bits long, and each new tag code is left-concatenated with the previous string of tag codes, so that up to 20 tags may be encoded in the D
TRACE of a node. In practice, it is only necessary (and most effective) to disambiguate each continuous string of multiply-tagged words between a pair of uniquely-tagged words in the sentence, so DTRACE is large enough to accommodate virtually all constructions encountered in practice.

13~ 3~

1 During processing, two separate linked lists of disambiguation nodes are maintained, corresponding to previous and current processing stages, and denoted the PREV and CUR lists, which are accessed with the pointers PREV PTR and C~R PTR. The disambiguation processor iteratively processes nodes, starting Erom single tag length nodes, to successively generate tag se~uences and evaluate the ~ function, and to sum the ~ function and evaluate ~ values so as to compute the DISTANCE
function for each tag sequence.
The output from the disambiguation processor is: (a) a sequence consisting o a single tag for each word in the sentence, each of which has been determined to be the "most probable parse" tag for its corresponding word (given its context) according to the principles of collocational or ~first-order"
disambiguation discussed above: (b) second- and third-choice tags for words where such tags are available; and (c) where the second- and third-choice tags e2ist, further inEormation concerning their relative likelihood, i.e., whether or not they can be considered to be collocationally reasonable alternatives to the MPP tags. This determines whether or not they are to be saved for possible further processing.
In order to obtain this output from the tag-annotated word input, the disambiguation processor lOa, referred to herein by the module name of GcsDisl o the prototype embodiment, proceeds as follows.
First of all, the elements of thP "current"
and "previous" disambiguation node linked lists are used to encode each pair of collocations between the ; ~

13~1934 1 tags in any two (syntactically adjacent) tag strings. The processor operates on two adjacent tag strings at any gi~en time, so no further structure is needed, and there are only four possible cases for each collocation o~ any two tag strings; (i) both tag strings are unambiguous (i.e., they each consist of a single tag)i (ii) the first tag string is unambiguous, but the second one is not; ~ the second tag string is unambiguous, but the first one is not; or (iv) both tag strings are ambiguous.
Before dealing with these four cases, the processor eliminates ~invisible" words. These are the words (for the present time, only those unambiguously tagged as advsrbs or as negation markers) that have no collocational significance.
When one is encountered, GcsDis 1 resets the appropriate pointers so the words on either side of it ( and consequently their tag strings) are treated as if they were adjacent. After excluding "invisible" words, the resulting strings of ambiguously and unambiguously tagged words are processed as follows.
First of all, if case (i~ above occurs (i.e.
if there are two adjacent, unambiguously tagged words), there is is only one possible collocational pair, and nothing needs to be disambiguated. The unambiguous tags of these two words are taken to be their MPP tags, and the SCP and TCP (second and third choice) tag slots are set to zero.
On the other hand, if case (ii) occurs (i.e.
an unambiguously tagged word is followed by an ambiguously tagged word), this signals the start of an ambiguous sequence. The unambiyuously tagged word (using the notation of the formalism discussed above) ~3~3L93~

1 becomes Wl of this sequence, and its tsingle) tag Tll becomes the sole element in its string of possible tags Tll. Similarly, the ambiguously tagged word is W2 of this sequence, and its tags (denoted as T21 through T2m2) become the m2 elements of the tag string T2m . The RPT
database is then accessed in order to obtain the RPT
divisors (if any) for the tags of W2, and the previous and current disambiguation-node linked lists are set up as follows.
First of all, since Wl is unambiguously tagged, the previous list consists of a single DIS-NODE, which has as its trace element (D-TRACE) the single tag in Tll, and which has as its distance (DISTANCE~ the default value 1. Then, since W2 is ambiguously tagged (with m2 tags), the current list consists of m2 DIS-NODES, the it element of which has as its trace element the tag T2i followed by the tag Tll. (The trace elements are stored in reverse order of collocation to allow easy access to the penultimate element of each trace, for reasons that will become apparent below), and which has as its distance the ~-value for the collocation of Tll followed by T2i, which is divided by the RPT divisor of T2i (if this number is other than one).
Similarly, if case ~iv) occurs (i.e., two ambiguously tagged words occurring adjacent to one another), this signals the continuation of an existing ambiguous sequence. If this sequence is taken to be x elements long, then the first ambiguously tagged word is referenced as Wx of this sequence, and its tag string (consisting of the tags TXl through TxmX) are referenced as the mx - ~3~ 34 1 elements of the tag string TxmX . Similarly, the second ambiguously tagged word becomes W(X~l) of this sequence, and its tag string (consisting of tags T~x+l)l through T(x~l)m(x~l)) supplies the new m(X+l) elements of the tag sequence (x~l)m(x+l) . The RPT database is then accessed in order to obtain the RPT divisors (if any) for W(X+l), and the current disambiguation-node linked list is set up as follows. First of all, since W~ is ambiguously tagged, the previous list already exists (having been creatsd as the result of either a previous iteration of the actions corresponding to case (iv) or of those corresponding to case (ii)), and therefore consists of one or more DIS-NODE's (whose number will be represented in this discus~ion by z), which have as their trace elements the sequence of tags (stored in last-in-first-out order) that represent the collocations that these DIS-NODE's encode. Then, since W(X+l) is ambiguously tagged (with m(X+l) tags), the current list will consist of m(X+l) times z DIS-NODES, the i element of which will have as its trace element the tag T(x+l)i followed by some sequence of tags starting with the tag T~y (i.e., an arbitrary tag out of the tag string associated with Wx) and ending with Tll, and which will have as its distance the ~-value for the collocation of T
followed by T(X~)i, which is divided by the RPT
divisor for T(x~l)i (if this number is other than one), multiplied by the distance value stored on the DIS-NODE associated with the jth DIS-NODE, where ; this (jth~ DIS-MODE is defined as being the one with the same D TRACE as the ith DIS-NODE, excluding its first element (which is the ta~
T(x+l)i)' ~3~93~

1 Finally, if case (iii) occurs (i.e., an ambiguously tagged word followed by an unambiguously tagged one), this signals the end of an ambiguous sequence. If this sequence is taken to be x elements long, then it is processed like case (iv), with the exception that ~(x+l) is known to be equal to one since Wx is unambiguously tagged. Therefore, the current list that results from the application of the algorithm of case (iv) to the previous list can be no longer than that list, and will be shorter if any collocations between an element of the tag string T~ and the tag of W(~+l) are disallowed, and the distance values of the nodes on this (current) list are the values that ~ust be checked to determine the ordering (with respect to collocational probabilities) of their corresponding tag sequences.
After the execution of the steps corresponding to the algorithm in case (iv), the resulting linked list of disambiguation nodes is examined to pick out the three nodes with the highest distance value. The "total" distance of the list is also calculated (by summing together all of the distances of the individual nodes), since this total is used for the calculation of probabilities, as described above. Once the three nodes with the greatest distance value have been obtained, (and their corresponding probabilities are calculated), they are stored in the appropriate slots in the SEN-NODE structures corresponding to the words from whose tag strings they were selected, and GcsDisl proceeds to the next sequence. This completes the detailed description of disambiguation processing steps.

~3¢~1934 1 Figures 7 - 10 illustrate the disambiguation processing portion of the aforementioned prototype embodiment. As shown in Figure 7, first, the processor at step 61 sets the basing pointer (SN-PTR) for the sentence-information nodes (denoted by their structure name "SEN-NODE") to point at the first element in the sentence workspace linked list.
Variables PREV-CT (the number of elements in the previous disambiguation-node list3, CUR-CT (the number of elements n the current disambiguation-node list), and CUR-LVL (the current number of tags in the seguence to be disambiguated) are all initialized to one. ~arious disamhiguation-control variables are then initialized as follows: PREV-PTR - D-TRACE ( the trace element in the previous disambiguation-node list) is initialized to '0000001'B; and PREV PTR ~
DISTANCE ( the "distance" value for the first element in the previous disambiguation-node list) is initialized to one.
A loop 62 is then entered which iterates until the value of SN-PTR is equal to the pointer of the SEN-TBL element aftex the one that points at the "end-of-sentence" marker for the given sentence, thus indicating that all of the elements of this sentence have been processed. On each iteration, a SEN-NODE is processed by the following series of steps. In 63 the value o~ CUR-LVL is incremented by one, increasing the length of the current sequence of ambiguous tags (if one exists) by adding the current tag under consideration to it.
In 64, the number of tags in the current word's tag string is then checked~ and if the word is unambiguously tagged as an adverb or if it is tagged as the negation marker, then a BYPASS sub-procedure ' 1 65 is called to bypass it. Control then returns to the beginning of this step. The BYPASS procedure resets pointers as discussed above to make the word invisible to the tag sequence probability analysis, and also sets a bypass counter to create a record of bypassed words.
In step 66, the first tag of the current tag string is checked to see if it corresponds to the special processor internal tag "XX" or if it is identical to the second tag of the string. (The ~XX"
tag is used as a marker to indicate that the following tag value was tentatively assigned by other than the normal dictionary procedure.) If either of the cases checked for in 66 is true, then in step 67 the first tag in the string is ignored for the purposes of tag string disambiguation by resetting the tag counters appropriately (and thus avoiding inefficient processing such as treating tag strings of the form "XX TAG", where "TAG" is some legal tag in the system, as being doubly ambiguous, since they are not).
When flow-of-control for a given word reaches this point, then this word becomes "visible"
to the main processor of the first-order disambiguation module, and the number of tags in its tag string, excluding any tags eliminated by Step 67, is inspected at step 68.
If there is only one tag in the tag string of the current word, then this word is either the continuation of a sequence of unambiguously-tagged words or is the endpoint of a sequence of one or more ambiguously-tagged words, and it is processed in step ~9 in a manner which depends on the number of tags of the previous word. First the value of the counter 3~L9~

l PREV-CT is inspected to determine which of these two cases holds. If the value of PREV-CT is one, then the previous word was also unambiguously tagged, so the value of the MPP tag for the current word is set to refer to its tag, and the values of the SCP and TCP ta~s are set to zero, thus indicating no alternative tag reference for these choices.
Otherwise, if the value of PREV-CT is not zero, then the current word represents the end of a sequence of one or more ambiguousl~-tagged words, and therefore signals the start of the evaluation process (Figures 8-9) that will determine the MPP, SCP, and TCP tags for these words based on the processes of collocational analysis. Finally, if at step 68 it is determined that the word has plural tags, the more complicated branched processing procedure 90, illustrated below in Figure 10 is applied.
Figure 8 is a flowchart of the collocational disambiguation processing applied to a disambiguation node when the step 69 of processing indicates its tag sequence has a uniquely tagged current word and a multiply-tagged previous word.
At step 71, processing pointers TEMPl-PTR
and TEMP2-PTR are respectively set to point at the first elements of the "current" and "previous"
disambiguation-node linked lists (which are respectively pointed at by the externally-defined pointers CUR-PTR and PRV-PTR). The "previous" list is the list that was current in the last iteration of this loop, and contains information that will be written onto the elements of the "current" list, which is not read at all in this iteration, but is the same as the list that was "previous" in the previous iteration of the loop. The algorithm ~3~ 93~

1 implemented here requires only one level of "look-back", so the storage required for this process is cycled between the two linkea lists of disambiguation nodes, by swapping the values of CUR~PTR and PRV-PTR after each iteration of the loop, as described in Step 98 below.
Loop 70 then processes the active nodes, the number of which is stored in the counter PREV-CT, in the "previous" linked list, one node at a time as follows.
First at step 72 the D-TRACE value for the current DIS-NODE, i.e., the element o~ the "current"
linked list that is pointed at by TEMP1-PTR) is set by copying the D-TRACE value for the previous DIS-NODE (i.e., the element of the "previous" linked list that is pointed at by TEMP2-PTR), preceded by the seven-bit code for the current (unambiguous) tag, into TEMPl-PTR -~ D-TRACE.
Next, at step 73, the identity of the previous tag for the particular tag sequence under consideration at this point is obtained by converting the first seven-bit code in TEMP2-PTR ~ D-TRACE
into a number representing its tag.
The ~'strength of attraction" value is obtained at step 74 by evaluating the collocational-probability matrix on the current and preYious tags, and its value is multiplied by the value in TEMP2-PRT ~ DISTANCE in order to obtain the "distance" value for the tag sequence currently under consideration, which is then stored in TEMPl-PTR DISTANCE.
At this point certain housekeeping operations are effected as ~ollows. When the linked lists are initially set up 100 nodes per list are -` ~3f~3gL
-~2-1 allocated. Since a greater number of nodes may be required, before undertaking further processing at step 75 the forward-linl~ing pointer (D-LINK-PTR) on the DIS-NODE currently under consideration (i.e., pointed at by TEMPl-PTR) in the "current"
disambiguation node linked list) is checked to see whether or not it is null; if this is the case, then ten more copies of the DIS-NODEs structure are allocated and are linked onto of the end of the "current" list in order to avoid possible problems with list oYerflow. Next, at 76, the values of TEMPl-PTR and TEMP2-PTR are updated by setting each one to the value of the pointer stored in D-LINK-PTR
on the nodes that they are respectively pointing at, thus moving one node further along each of these linked lists.
When the processing described above in steps 71 to 76 exits, the "previous" and "current"
disambiguation-node linked lists will both be of the same length, with the nodes in the latter representing the addition of the current tag as the endpoint of each of the tag sequences encoded on the nodes of the former, and with the "distance" value on each of these nodes updated by the use of the collocational information between the last tag of each of their sequences and the current tag. At this point a sorting loop, shown in Figure 9, is e~ecuted in order to determine the three "most probable" tag sequence, based on their distance information, as stored in the linked list.
Before entry into this loop, howe~er, at step 77 the information on the first node of the "current" linked list is stored as the "most probable parse" (MPP) information for purposes of comparison, 93~

1 and the SCP and TCP information storage variables for the second and third choice parses are initialized to zero. The loop 78 is then executed starting with the second node of the "current" linked list and iterates once per node, processing each one as follows.
The processor gets the current disambiguation node at step 79 and, at step 80 compares the "distance~' variable on the DIS-NOD~
currently being processed to the "distance" of the current TCP sequence. If the current DIS-NODE
distance is greater than the TCP "distance", then step 81 replaces it as the new TCP value, discarding the old one. Otherwise control is transferred to 86 below, since the current DIS-NODE~ would not be a candidate "probable choice" parse.
Next, at step 82 the current DIS-NODE
distance is compared against the MPP distance, and, if it is greater, at step 83 the current node data replaces that of the MPP sequence. The MPP and SCP
sequences are demoted to being the SCP and TCP
sequences, respectively.
Otherwise, if the current DIS-NODE distance is less than the existing MPP distance, it is compared against the SCP distance at step 84, and if it is greater than the SCP distance, the processing step 85 interchanges the TCP and SCP data values.
At this point the current DIS-NODE has either replaced the appropriate "probable choice"
sequence or has been discarded. From any of steps 80, 83, 85 or the negative determination of step 84, control then passes to the updating process step 86, in which the TOTAL-CT variable (in which is stored the total sum of the 'distance" values, which will be used for the calculation of probabilities) is ~3'7~34 1 incremented by the ~distance" stored on the current node. If the list of nodes has not bPen entirely processed, the loop pointer (T-PTR) is set to point at the ne~t DIS-NODE in the linked list (by setting S it equal to the value of the D-LINK-PTR on the current DIS-NODE) (if the list of nodes has not been entirely processed) and the loop 78 repeats;
otherwise it exits.
After the above loop exits, the tags in the MPP and SCP sequences, as well as in the TCP
sequence, if any, have been determined for the current ambiguously-tagged sequence of words. These sequences are then processed further, as follows, to determine the three most probable parses in order and to load their values into storage slots, designated PARSE(l)-PARS~(3), of the SEN-NODE structure.
First of all, the probability o occurrence for the MPP tag sequence is calculated, and the value of PARSE(l) is set to reference the appropriate (MPP) tag for each SEN NODE corresponding to the words associated with the tag sequence currently being processed.
Next, the probability of occurrence for the SCP tag sequence is calculated, and the value of PARSE(2) is set to reference the appropriate (SCP~
tag for each SEN-NODE corresponding to the words associated with the tag sequence currently being processed. Preferably indications of the relative likelihood of the parse choices is also stored at this point. Specifically, if the SCP tag sequence is determined to be less than ten per cent probable, or if it 1PSS than twenty per cent probable and the probability of the MPP tag sequence is more than seventy per cent probable, then it is "stac~ed", ~' f~L93 1 i.e., stored with an indication that it's actual likelihood of occurrence is in the designated range.
This is done by storing each of the references in PARSE(2) as the negative value of the correct tag reference number, which is otherwise a positive integer. This coding allows in later parsing steps to restrict the processing of unlikely SCP tags to limited circumstances.
E~inally, the probability of occurrence for the TCP tag sequence is calculated-if a third choice sequence exists at all--and the value of PARSE(3) iS
set to reference the appropriate (TCP) tag for each SEN-NODE corresponding to the words associated with the tag sequence currently being processed. As for the SCP tag sequence above, if the TCP tag sequence is determined to be less than ten per cent probable, or if it less than twenty per cent probable and the probability of the MPP tag sequence is more than seventy per cent probable, then it is also "stacked", by storing each of the references in PARSE(3) as the negative value of its correct tag reference.
This completes the first-order disambiguation process for the tag sequence currently being processed. The appropriate variables in the disambiguation workspace are re-initialized by setting the external sentence processing pointer to point to the next node in the chain of SEN-NODE's, and swapping the values of PRV-PTR and CUR-PTR;
Flow-of-control then transfers back to ~tep 61.
If steps 69 through 86 above were not executed, however, that is, if step 68 determined that the current word is ambiguously tagged, then a branched processing routine is used to construct and evaluate corresponding disambiguation nodes.

13~193~

1 This processing proceeds as shown in Figure 10. First of all, in step 91, the RPT database is accessed in order to retrieve the RPT information, if any, which is associated with the given word. This information, it will be recalled, includes the divisors which yield the reduced probabilities of occurrence of particular tags of a word's tag string. At 92 the pointer TEMPl-PTR is set to point at the first element of the current disambiguation-node linked list, and a double loop 93, 94 is entered to process the tags in the current word's tag string and create disambiguation nodes corresponding to all tag sequences of a length one greater than the previous set.
The outer loop 93 of the double loop iterates the number of times specified by TAG-CT, which contains the number of tags in the current word's tag string. For each iteration, at step 95, ît takes the current tag in the tag string, sets the pointer TEMP2-PTR to point at the start of the previous disambiguation-node linked list, and processes each one of the DIS-NODE's in the previous linked list with respect to the tag currently under consideration, so as to create a nod0 in the current disambiguation-node linked list, as follows.
At step 96 of this process, the seven-bit code of the current tag is determined, and the correct value for D-TRACE string on the current DIS-NODE (which is identifiable as TEMPl-PTR ~
DIS-NODE) is generated by concatenating this code to the beginning of the D-TRACE string on the previous DIS-NODE under consideration, which is identified by TEMP2-PTR ~ DIS-NODE, and then storing the result in TEMPl-PT~ ~ DIS-NODE.D-TRACE.

~3~ 3~

1 Steps 97a - 97c derive the "distance" value associated with the tag sequence under consideration by evaluating the tag collocation probability matrix on the current and previous tags to determine the collocational "strength of attraction" between this tag and the present one. The value of collocational "strength of attraction~' is divided by the RPT
divisor associated with the current tag. The result of the above calculation is multiplied by the distance value stored in ~EMP2-PTR ~
DIS-NODE.DISTANCE, and the result is stored in TEMPl-PTR ~ DIS-NODE DISTANCE.
Finally in step 98 the D-LINK-PTR associated with TEMPl-PTR ~ DIS-NODE is inspected to see whether or not it is null; if it is, then the current DIS-~ODE is the last one in the current linked list, and ten more free copies of a NODE structure are allocated and are added to the end of the list, as in step 75 discussed above. Then the values of both TEMPl-PTR and TEMP2-PTR are updated by moving them one element further along their respective linked lists, setting them equal to the value of the D-LINK-PTR on the DIS-NODE that they are currently pointing at; the value of N, which contains the number of the node currentl~ being processed, is incremented by one; a check is made at 99 whether all of the nodes in the previous disambiguation-node linked list have been processed; and flow of control is transferred back to Step 96.
When all of the previous DIS-NODE list has been processed the inner loop e~its, and 10w-of-control is transferred back to Step 95 unless the outer loop has already processed all of the tags in the current tag string, in which case the double loop processing e~its.

39~

1 On exiting, the current disambiguation node linked list has been completed, and contains a number of nodes equal to the product of PREV-CT times TAG-CT. ~t this point certain negligible nodes are praferably pruned from the linked list. This is done in the prototype embodiment by identifying each node with a distance value less than .001 and re-setting the node pointers to avoid further processing of such nodes.
Finally, the external sentence processing pointer is set to point to the next node in the chain of SEN-NODE's, and the values of PRV-PTR and CUR-PTR
are swapped, so that the current disambiguation-node linked list becomes the previous one, for use by the next iteration of the loop, and the nodes of the previous one become available for use in the new current list for the next iteration of the loop.
Control returns to step 61 to proceed with processing of the next sentence node. In this manner all possible tag sequences are analyzed and corresponding distance values calculated, with tag assignm~nts corresponding to MPP, and SCP and TCP
assignments derived for each word, together with the coding indicating the relative weights of the three probable parse assignments by the negative tag codes inserted after step 86 as explained above.
After the above steps have been completed, the first-order disam~iguation process has been applied to the entire sentence. Preferably, the following "clean up" steps are also executed.
First, if the BYPASS routine, step 65, was evoked, as evidenced by a counter BYPASS-CTR set to greater than one, then at least one SEN-NODE has been removed from the linked list of SEN-NODE~s; the clean ~3~

1 up processing corrects the current chaining status of this list by linking any bypassed elements back into it.
Next, if any nodes have been pruned frGm the disambiguation node linked lists, then they are linked bac~ into the current list.
The foregoing processing completes the collocational determination of probable tag assignments in the prototype processor, and results in an annotated data structure upon which a parsing or other grammar processor unit 10b (Figure 1) operates.
One disadvantage of the foregoing process of iteratively building up a weight function on the set of all possible tag strings is that the number of required disambiguation nodes, or distinct tag strings, which must be evaluated and then summed and normalized before performing the desired probability comparison steps such as the steps 77 - 85 described above, may escalate quickly. For example, the sentence "Who did ~oe say that Dave had claimed that ~im had told to go jump o~f a bridge ?"
has a sequence of fourteen consecutive ambiguously-tagged words, resulting in over one-half million possible tag sequences, for which the corresponding DIS-NODE records require fourteen megabytes of memory. As described above, two sets (CUR and PREV) of nodes are maintained, doubling this machine memory requirement.
Accordingly, in a preferred embodiment of the invention the disambiguation processor employs a node-winnowing procedure to select the three most probable tag sequences at each step as it proceeds ~3~34 1 with the construction of DIS-NODES, deleting the other previously-constructed nodes. Since each word has at most six possible tags, only 3 x 6 = 18 DIS-NODES are thus required to construct each of the CUR and PRE~ lists of nodes. A fixed memory allocation of 1008 bytes then obviates the processing overhead associated with the allocation of additional nodes described in relation to steps 75 and 98 of the above processing. By maintaining only the subset of most probable strings at each processing step, the resulting distance functions perserve their ordering and relative magnitudes. Thus, relational information, such as that tag sequence A is approximately three times more probable than tag sequence B, or that sequence ~ has a normalized probability of appro~imately seventy per cent, is preserved.
Fi~ure 11 shows the operation of the improved disambiguation processing 100 according to this pre~erred embodiment of the invention. The processor initializes processing at step 101 by setting pointers and proceeds to fetch successive tags of a word, bypassing negations and adverbs, and inspecting the tag string of a word substantially as described above in relation to Figure 7. At 103 it commences the iterative construction of disambiguation nodes by successively adding one tag of a word and evaluating the ~ function to define a DISTANCE as previously described.
However, once a tag has been added to produce nodes having that tag as last element, and having a length one greater than the previous set of DIS NODE~, at step 105 the nodes are sorted by magnitude of their DISTANCE function, and only the 13~ 19~3~

1 top three nodes are retained. At step 107 a determination is made whether all tags of a word have been processed. If not, the steps 103, 105 are repeated, adding the ne~t tag to each node of the previous list and pruning all but the top three resulting nodes for that tag. On the other hand, if all tags of a word have been processed, the stage of constructing current DIS NODE list is completed, and the list will have at most three nodes for each tag of the current word. At 109 a determination is made whether the next (non-invisible) word of the sentence is also multiply-tagged. If so, its tags are provided at step 111 and the node construction process continues to build nodes having tag strings incremented by one tag.
If at step 109 it is determined that the next word is uniquely tagged, thus signalling the end of a maximal length ambiguously-tagged sequence of words, then the current set of maximal length disambiguation nodes is complete, and it is processed to determine the first, second and third most probable tag sequences, and their relative magnitudes.
This is done at step 113, by dividing each DISTANCE by the sum of the (fewer than eighteen) DIS
NODE DISTANCE values, and at step 115, which sorts the normalized distances to select the three remaining tag strings having the greatest values. As before, a stacking code indicates whether the values of the TCP and SCP strings are highly improbable, or reasonably probable in relation to the relative probability of the MCP string.
This completes the description of a grammatical disambiguation system in accordance with the invention, wherein each word is tagged, and an ~r~93~

1 essentially determined and short computational process is applied uniformly to all words, and operates on sequences of words to annotate each word with a most probable tag.
A principal use of the system is as a pre-processor for a grammatical text analyser.
Conventionally automated grammatical text analysis systems require a processor to iteratively check the possible tags of a word, and the possible sequences of tags of a sequence of words, against a large number of patterns or relational rules. This requires massive computation. By limiting the number of tag choices for each word, and by initially specifying a single MPP tag for each word, a tag disambiguation preprocessor in accordance with the present invention expedites the operation of a grammatical text analyser.
Figure 12 shows the construction of an exemplary grammatical text analyser according to the invention, in which a disambiguation processor 120 provides a data output including a SEN NODE data structure 122 for each T~ord, with its MPP and other tag and feature annotations. A grammatical analyser 130 then operates under control of control module 124 on the annot~ted word data to successively build up larger syntactic structures and derive a parse of a text sentence.
In this construction, the disambiguated sentence structure is parsed in three general phases: (a) the identification of the simplex noun phrases (NPs) in the sentence, and if there is more than one simplex NP, their combination, where possible, into complex NPs; (b) the identification of the simplex verb groups (VGs) in the sentence and, if ~ ~193~

1 there is more than one simplex VG, their combination, where possible, into complex VGs; and (c) the identification of the simplex sentence(s) in the (matrix) sentence and, if there is more than one simplex sentence their combination (where possible) into complex sentences.
The NP processing 125 of the first phase is accomplished in a double-scan of the sentence. The parser first ascertains NP boundaries by inspecting tagged words and applying ordering criteria to their ~rank". This rank, which characterizes a word's functional role in noun phrase construction and corresponds roughly to its order of occurrence in a noun phrase, is determined by inspection of the word's tag. Once the simplex NP boundaries have been identified, the NP processor operates on the simplex NP structures to detect compleæ phrases which include prepositional phrases, a coordinating conjunction, or certain coordinating constructions. When such a complex phrase is identified, the processor creates a complex NP record which includes pointers to the component NPs and the boundaries of the complex NP, and derives the feature agreement properties (number, gender) of the complex NP.
Once the NP-structure of the sentence has been determined, a predication analyser module 128 is called which inspects the portions of the sentence that are not incorporated into nominalizations, and assigns predicational structure to these portions where appropriate.
After operation of module 128, the apparent predicational structure of the sentence has been determined. Some sentential structure is also determined incident to the predicational analysis, as 1 3~L93~

1 tentative assignments of subjects and their corresponding finite predications will have been made.
At this point the controller 124 analyzes the higher syntactic structure of the sentence by a clausal analysis module 132 that inspects the tentative sentence-level structures generated by module 128 and either confirms them or replaces them.
The noun phrase and verb group modules each insert boundary markers and provide other data to appropriate registers 134 which maintain the boundary data for phrase and verb groups, and also maintain the derived feature information. This allows concordance rule checking of different syntactic units and permits the clausal analysis module to match related clauses. An error message modules 136, similar to that described for the CCW error messages of the disambiguator, displays error messages when errors of syntax are detected.
This completes the description of the major structural units of a grammar processor incorporating the present invention, and of the interrelation of the various structural units of such processor for ; annotating encoded text and processing the text to derive precise grammatical information.
It will be recalled that the preliminary annotation of text words with their possible tags was described in connection with Figure 6 showing the inflection coding procedure. This annotation employs a suffi~-stripping procedure, a dictionary look-up procedure, and a tag-driven inflection procedure to identify and confirm each dictionary base form of the text word and its corresponding tag(s~ so as to provide the tag annotations of a text word for further grammatical processing.

1 3~939~

1 In a further prototype embodiment, this preliminary tag annotating portion of the processor has been extended by the inclusion of additional word-recognizing or -annotating mechanisms, which were indicated in Figure 6 generally by processor stage 31 under the designation "S-words, Special Database and Forced Tag Routines". Figure 13 shows in greater detail the interrelationship of these further word-recognition processing units in the further prototype embodiment.
As shown in Figure 13, a general flow of control program within the processor includes a section 180 which allocates and inserts tag data in an ordered set of sentence node structures. The data is obtained by calling a word-recognition module 182 which, as discussed in detail in connection with Figure 6, takes successive words of the text and performs an inflection analysis 184 with one or more look-up operations in the main dictionary 8. In addition, when the main dictionary reveals no base form corresponding to the input text word, the recognition module 182 summons one or more morphological analysis or ancillary word recognition modules 186, 188, 190, 200 to identify tag annotations and, where appropriate, base form information for the text words.
These ancillary recognition modules are as follows. First, a special user dictionary 187 is maintained which includes special or technical terms which are entered and accumulated by the user, either for a particular document, or for the user's particular vocabulary, such as a specialized scientific vocabulary. A look-up routine 186 checks whether the given text word appears in the ~3(~3~

1 dictionary, and, if so, retrieves its tag and feature annotations.
A second ancillary recognition module is a prefix analyser 188 which inspects the first letters of a te~t word to recognize and strip common prefixes. The remaining root portion of the word is then subject to inflection processing lB4 to determine if the root is in the main dictionary.
This processor recognizes words such as "counterterrorisk" or "antigovernment", of a type which commonly occur but may not have been included in a dictionary.
A third, and major, ancillary processing module 190 is invoked to analyze words which have not been `'recognized" by the processor stages 184, 186, 188. This module, denoted "S-words", performs a number of suffix-stripping operations, distinct from the inflectional suffi~-stripping of the inflection processor, to recognize and, where appropriate, annotat.e certain rare text words. Examples of such words are, e.g., the literal alphanumeric strings "l~lst", "142nd", "143rd", and "14~th" which are recognized as ordinal numbers by the pattern of their last digit and following letters (1, 2, 3, or any other digit followed by, respectively, st, nd~ rd, or th). Another example is the recognition of abstract nouns by an ending such as "ness".
Finally, for te~t words not identified by an~ of the procedures 184, 186, 190, a forced tag routine 200 is initiated. In the above described prototype embodiment, routine 200 identifies idiomatic expressions and common phrases o~
foreign-language provenance. This is done by maintaining a table or list of such expressions, each ~3~3g 1 expression consisting of several words which are "bound" to each other, in the sense of co-occurring.
If a text word, e.g., "carte" is found to be on the list, a search is made among the sentence nodes for the other words of its idiomatic occurrence "a la carte" or "carte blanche", and if the other words are found in the text, the tags (e.g., as adverb and adjective for "a la carte"~ are "forced" for the expression and placed in the appropriate sentence node slots.
It should be noted that this forced tag processing for idiomatic and foreign expressions may be implemented in other ways, and the ordering of steps shown in Figure 13 may be changed in other embodiments. Thus, for example, words such as "carte"~ "priori" and the like may be stored in the main dictionary with a special flag or other identifier, so that at the first recognition stage the dictioanary look up stage of unflection) the word is retrieved. Tn that case the flag or identifier triggers special processing. It may, for example, direct the processor, as in the RPT database construction discussed above, to retrieve an index into a table of special data. Thus, it may be used to locate a bound phrase ("a la carte", "a priori") in a table and subject it to processing immediately, rather than following the occurrence of morphological prefix and suffix analysis as indicated in Figure 13.
The foregoing prototype has been described by way of illustration in part to illustrate the interelation of the invention with various text annotaing and grammatical processing units. However, the invention contemplates other and partial systems for grammatical processing, the output of which may ~3~ 3~

1 be, for example, text having a collocationally-assigned "tag" for each text word, or other output having grammatical information of the text delineated less fully, or with a lesser degree of overall certainty. Several examples of related embodiments of systems according to the invention have been briefly described above with relation to speech/voice transformation systems, preprocessing systems for annotating database text, and selective post-processing to identify syntactically plausible replacement words, or to display messages for spelling correction or data retrieval systems.
The invention being thus described, other examples and embodiments of the invention will occur to those skilled in the art, and all such embodiments and examples are within the spirit of the invention, as defined by the following claims.

What is claimed is:

~3~33~

ENOODING OF INFLE~rIGNS AEPENDIX ~ to United States patent aDplication of Henry Kucera et al for Collocational Grammar Systen The GC5 m ~r die~on~sy ~ro~d~for¢h~mc3~n3 ~fi~hc~'~n~ ~orm-~on.
~S~ ~ dbne tort~ m~n IOA~DnU: (~)by ~nu~nt ~ er~o~d ~D
.~nd ~n~ rn~ ~ ~d~ ~nu3yYC k~hK~d tOnT~ ~ or~r ~o ~K~ar ~hoir b~ n~ O ~yD2~e~4 ~Re~ fonn~ fi~m coJos ~ cia~d 7n~h their b~
ar ot di~t;nc~ noun ~nd ~r^b hrm~ ~h2~ Deed ~ tore~ h t~ m-in ~ic~i~n~y aal2~
~e reduse~ by ~ ~ac~r ot ~pp~m~ly tour, ana (2)~y ~ aeccu ~ ~ f~n nou~ or t~erb parlldi~7~ ~rom ~ny on2 0r it~ membes~, ~orrection~ m~y be ~l~pplied ~or fi~aturo ~uod crT~r6 wi~in D par-~igrn by ~m error free prxer~ 0r ~ iehu~oru~rd ~u~ utio~

-Sq~

13~93~

Eod~g Or ~iolslnd l~ec~
~ e~ulDr ooum~ ~n 13:n~1i~h ~n~ e ~ t4 foar l'or~ s (eompu~, ~2) ~ingular po~se~i~ ~mp~cr'd, ~S~ .pas~l (a~mputer~), ond ~) . p1urd poue~
~omp~r~ oun "eo~n~ut~ em~ oi t~e Im~t eomlDoD nou~. par~dig~
En~ h, ~hicb ~r;11 be ~p~en~ed bsr~ b~ lhe ~ 7npl~ IO, ~, ~, ~1(~ eh~ ~o ~s~dic~ he P~b~ne~ 0~ aa a~din~ for ~ ~e) fiorm of ~ ~)-~ar~ii~a ~ re~e~ed ~ ~n W~s document~Uion ~6 J~oU~ on~ ~ml ~ nor~Dy on~
5c "N~ G~ln~ J reprt~en~lioD ~ ~l'B).
~oun clr~ wo ~nso~ ff2', ~i~ ~ ernD~ r~pr~l6enQ~ion ot 'IO'B) ch~r~c~ærizet ~y the ul~ oomple~ tO, ~, 8~, e61~ ~nd i~nslude~: (13 ord~ ~uch ~ ~byu~
~nd "lunch" ~whicP~ ent in ~ cilbil~nt ~Dd ~u~ r2quir~ tur~l ~" WoC~); ~d (2) wor~
"pot,~to~ ng ~ ~hish ~e r~quir~ ~y ubitr~ of Engli~h or~ho~rep~
~nd in ~e6P ~hen pu- ~n~ oir plur~l fonn~
J~ h t~ out, ~ome wor~3 In flus~ N2 81~o e~ ~lce ~ ntr trom the N1 8uflis ~omple~, ~ad ~,rice ~er~ .g., Iboth ~eroc" nt r-cr~C~ ~re Aceept~le pluro.lc of t~e nouD
U~ro"); ~ type ol' ~ tion ~ ~ndled by ~c~dig tlle~e noun~ ~ rit~ N21" or "N~2", dep~ndirlg on ~hich i~ e generdly preterrod ~-urfi~ eomples ror ~ulch ~ n~ r~t GCS-intern~l eode 1~ eorrelipondingly mor- comple~, and i~ dtstril~ed ~lo~).
~ loun el~s ~ encoded c~s N3, ri~h ~o ~ er~ represent~lt;on of '11~3 ~
char~eteri~ ~y the ~uffix ~omple~ ~y, y', ~e~, k~ md consi~t~ of ~ou~ ~vholle plura~ -oxhibit ~n Uyfie~" Alt2r~tion v;2h ~eu ~ torms ~ger~rdlly t~o5e nouns ~th d~her a ~enultimate coD~on~n~ or th~ ~quy" entin~ ry/trieli" snd ~coD~quyJcolloquie~
oppos~d ~o "d~y/d~ ys~, ~d ~uyhuy~
...... ~. Nol~n e7~ss ~ow (oDc~d2d ~ 113~, wi~ ~e GCS inter ~1 r~prese;~ ion of 'OO'B) i-char~cteri~ed by ~he ,~;utli~ compl~s ~0, 'x, 0, '~3, ~n~ oon~ of s-sum~ ~vhose fiorms o.re indistinguish~ble trom tlleir p1urul So~ns; o.~., ach~op.~ e n~m~er o~ N~
noun3 ~lso h~e pl~ nstber l~ow~ ei~ss; these ~re encoded s N~ .g., ~eDI/eiks''), N~2 (e.~., fish/fishe~), or N43 (e.~ ry/trie~), r~specti~rel~.
}n one gramr~r prores8ir4~ appar~tt3s, t~he dictionary ~cludes for eat:h na~
~n ordered seqt~lce of codQ bit8 ~hiCh enc~de pa:rticular agree~slt~ ~eat~e or dw~

~ C.c~

~3f~3 propertiesl ~uch as ~er, gender snd ~ l~e. ~n a protot3~pe ~bodi~t of thf~
present inv~tion, ~he bits in }osir~ 12 thr~ 16 of this r~un ~ea~e 8~islg are used to encode ~lectianal form variant ln t~fferent classes, as follc~s:
oont~n~ ~3 D~ ~aOCtiO~ Cla~UI a~dc, ~nd ~ B1"~ 1a ~t, ~n Jl~ ~6 oont~u e~ ion-l c~ ~. 9rhu~, tor ~ , the Y~lue Or ~12-1~, for ~Y ~ou~
Voompu~r" a~ 'OIOOO'J3; ~or t9~e nou~ ~domino~ tNal~ ~ ~0101~1; ~d tor th~
~fi61b.~ a~42~ ~ ~oolaoqB.
~ ~hve ~y~tcm ~ e6 ~ o Sn~ection~ for r~guSar ~ou~ ~it~
r~ ~u~di~ n~ h incl~lde~ owo~er, bo~ ~oun~ ~nt~ d~ ive par~di~ ~.~, l~t1~ing ei~er a ~ r or plwal fiorm) ~n~ noun6 ~itb irre~ular ~era~ignL~ ti.
fiorms nol fitlin~ enerd ~Rect;on~l pattcr~ ~escn~d ~v~, Concernin~ def~ctive ~ra~i~rn~ DOUn~ bckin~ p9ure] ~'ormr ~nay ~1 ~ eondder d-.~nember~ OJ UOUD tl~u O~O~ ~ri~ ~e pural domon~ ot ~e ~su~ cDmp9c~ Umin~
~inCe the diJruence~ ~etwoer~ ~he ~ul'fi.~ eom~loxe~ fiDr the tour clesso~ de~ed ~ove ~ppe r only iD thois ~ ral for~). Thi~ fi~et, m~y ~ rrpre~erl~d by ~e ~u~ ~mpl ~O, hs, X, X~ (enct~ ); Y~arnples of word~ of this type re ~d~ice", ''ado", "~ler~e~5~;
~tc. LU~e th~ reeul~ oun b~o fonn~ hece irreg r ~ou~ Ro~ ~ o code~ toroi h ~odtion~ 12 tbrough 16 ot tbe DOUD fe~ture ~tri~ ~ thi~; c~e E~l~,~,ç, oor.t~
'OlOOl'B~.
Nouns i~ck;n~ e~r rorm~ or.e ot -/o c~tegori2~; N4p (character;sed by th~
~u~fis eompes ~, X, û, '~D anB Nlp (ehar-e~ri~ed ~ the l~u~ eomple~ P~, X, ~, ~'D.
E~unplts of ~ord~ Nl~ ore ~sple" ~a ~o~msfolk", u~d of ~ord~ i~ clu~i N~p nd "~ I~e t~e seg~r ~ou~ b3se fiorms, these ~eg~ our~ ~orms ~1~ h~ve codos store~ ~n poS;t;ons la ~rou~h ll; ot tbe ~oun ~ature ~tring ~m this e~
~12.16 sont~ins 'OOOIO'B ror cllu~ N4p and '010~0'13 fw d~s ~lp). kl ~oth c~es, g~e ~r-3ue ot B15,16 ~naic~t~s ~ t the no~m h~ ~o ~in~ular fiorms, l~nd the sdue Or B~2, ~dicat~s ~hi~h nDrmal p~di~n ~ c c~rrec~ ~lurllJ 2ndings fior ~e ~ rcn de~
parsdigm ¢~ ~or N~lp uld Nl ~r Nlp).

~3~

~ milu to b~ ml Nlp i~ ~he pu~d;gm ~rr~pondin~ ~st I~lC ~5 n "~ " b.~ t,;c~ m~tic~, ~tc.). Tbi~ pu~di~n m~y ~e npre~s~d ~y the ~uffh ~mple~ 1. ond is oz~ euin~ 2,~6 2~ 01~11~, ~h intcrpret~d ~5 m~pping ~e ~srm~l plural ~ Or el~ Nl onto ~e dngul~r rorm~
~vell; t~i~ sl~ss receiv~s ~ ou~ cl~- one c~de o~Nl~ -Fi~ure 2~: E~mples of E:rloodli~ Nomln~ o~}o~u wO~ ~ ~e ~Jrlit ~ Fonn ~1216 computer NN IN~) ~1 0 001000 -- 01000 comput~r'~ 001.~ eomputer 01000 eompu~r~ ~N8 1 O UOllOO computer 01000 comput~ri~' NN5~ ~ 001.0 ~putær OlOOD
~h M~, ~NS ~Ngl) 1 ID OOO-OOO - 00110 fi~h'e NN~, NNS$ ~ 001.0 ~h 00110 fi~bec NNS 1 C-0011000 fi~h 00110 ~hes' NN~ 001.0~ ~h 00110 ~a~ NN ~1) 1 ~010000 -- 01001 ma~'a NNJi ~ 001.0 ~n 01001 NNS a~ P) 1 0-0011000 D OS001 mrn'~ NMS5 ~ 001.0 men 01001 Concerning t~e ia~ection of ~e base forn~ encoded ~y i~e cystem descnbed ~bove, ff 8 giVU~ ~vord ~ ~ posse~si~o for n onding in ~'o" t~ ~t, hao ~ g~ torpret~tior~
escl~ plwel possosdvu j~ U~w~ e "men'~), 1hen it r~sive~ two po~sible ~neo~ings, o~e ~s o pre nomin~l ~fe~ture ~ 001.~) rnd t~e ot~er ~ ~ ~in~ar ~oun p~us eitherot the ~ rieç ~ or q~ tbe word i ~ ~ny other posseccive fiorm, t~en it receiveli ~r~ t~e ~re rlornirull in~rpret~ltio~ Jf t}le ~ord i~ not a posse~sive fiorm, t~ D ~e ~alue of 36.6 Dldic~tec ~vhether ii~ ;s l~m~r ~lO'13), plurd 11~), or ~eutral ~it~ re~pect to nun~er ~resme~t ~'B~. ~ho 5eu~ll1" numbor oode i~ u~od 5~r ~ di~n~ cu~h ~ .
N4 ~nd Nl~ sre Qhe ~in~ r Imd plw~ ~snn~ ~ identical, sa~d ~u~ oonte~
d~pondor~ tbc fiah ;~I~.. a7.

:L3~Lg3~

Co~cernin~ the ~ncodin~ o~ r p~di~ns ~e.g., "~nta~n" or ~l~nifehni~
~re ~¢ ~ingulu ~nd pur~ orm~ ~ iD ~n~ra2 Do~ ~nked ~ Imy euily-defined rol~tion~hip), ~n e~fi~ient ~lly o~ ~nc~ding ~e~e irre~u2~r p~ di~ u ~o con~ider ~em keing tbe ~cn of ~wo defoc ive par~di~n~ ~e dng~r torm~ from e~ Nl~
~nd t~e plt~rl~l forms b~ing fro~n el~ t~4p (~hus yirldin~ ~ composi~ radigm of the fsnD
0, R~ O, R~ sr~ ~d 1R2 r0presen- ~e t7qo irreeuJ-r root~). T~e~e parti-~ psr~.dig~Tu ~ ;Srerentia~ed ~rsm tl e co respondin~ de~ec~ive p~rnaigmli ~y h3~ g thr first ~it of M~-REC.X FL~S ~et ~o 'I'B, whi~h ~ndicnt~ ~e o~ of ~e p~ 3r be reooYered fro~ ~e irJegular par~digm~' e~ceptiw~ dictinm~ de~ed by t~e rout, eitller R1 or R2. of the h~f of ~h~ pnr~digm under con-ider~t;oD ~
. . .
Eneoding of V~nl ~Inflect:lon~
Regu2~ erbs in Engli~ may ~e up t~ four fiorm~: (1) b~ form tcompute), (~) pre~ent~t~nse, tl~ird persDn llingular ~reemen~ form ~compute~), (J) p~t form (compu~, ~n~ (q) pr~en~ pElrtic;ple (computsngl. T~e-e four torms fall iD~ t~o clusec, witb t~e foDow~ng int~rprot~tio~s: (1) nort~finltc~ ive ~Form ~ D) past participle ~Form ~), and ~c) present p~icipb (Form ~ nd ta) fini~ present-t~m~e, non~t~ird perleOD
ubr Agfeemenl fiorrn (For~ 1), O ~re~ ,tem~e, third p~r~on 6ingular nlzreemeDt -o~ CF'orm 21, ~d (c) pa~ teD-~e forrl~ aForm 3). Note ~h~t For~ns 1 snd ~ h~ve ~otb ~nite and l~on finit~ ;nterpretation~, ~hile Form 2 must, ~IPrnY~ be finite and Form 4 mu~t l~vs.y~ on~

.

-~ 3 -~ 3f~1~3~

, . .
j ~ e ~u~ ~compu~ o~ e Is ~ member Or ~e r~ oommon ~rb p~ ligJn ~
Engli~h, ~hich ~ e ropr~en~d ~er~ by t~bc ~i~ e~mpk~ ~0, ~ t~ ~ro ~ndic~ing ~he ~er,co o~ ndin~ for the ~finltive (~) form o~ t~3e ~orb). Shi~
p~rlldigm ;~ rererred t~3 in thi~ dx~n2nt~ ion ~ r'D ~ OD2 ~nd is encod~d e ~;C5 int4rnDl rep-os-nt~tion of '01~1~. ~ere ~re, ~oYve~or, ~ome ~peci~l tl-s~~f endin~ erb ~)~s ~ne, ~ieh n~y be ~mdled by ~ener~l ruh~, ~ to~o~ vor~
in Cl4~S V1 ~Dd~ in 1~ 'Yla~ th! procedin~ ~t~r nnus~ specto~ betore ~e w~fix eomple~ y be A~l~ign~ tter i~ ~ot un ~ or ~o", t~n ~ ~ul~ con~ple~
~, e~, ed, ;ng~ ed in p~ce oS the ~oJm~l YS eomple~ (~vhich ir ~0, ~, d, ul~J), in ~fre~
dropping t~e "e" be~ore ~ddin~ Ylng." It ~e pen~ t* letti r ~ " or ~o", ho- ever (~
2n ~e ~ eomples ~0, ~, d, iDg] is w~, end U ~ "i", then ~pecial Vl ~uffiY eomple~ rle, ~u, ied, ~ is wd Verb cl~as two tencoded a6 ~V2~, vitb the GCS intern-l representat;on of 'lO'B) i~
char~cter~ed by the ~ comple~ ~0, ee, ffl, in~ nd includes: (1) ~ords such ~
Ypot~u~ Imd "lunch" ~ /hich ond ~ Qan~ ~nt thus roqu;r~ t ~eir pre~ent-b~o, third-pers~n eingular tonn ond h "~"); and (2) ~vor~ ~ueh ~ ~40" ~d "do~ (w~ic~ uo equired 1~ ~rbitr~ rulec Or English ort~o~phy ~o erld in ~ vhen l~ut is~to ~eirpr~ent-t~n~e, third~person ~ingular for~). 'rhere ~,re DO l~peCiP,l mles n verb el~c two ~ssed on the last consonarlt, ~lthou~h ~hert ic a ~m~ roup of ~er~s tnding D 1~ dni 3e ~"
or ~ (encode~, ~ noto~ ~lo~lv, by ~I-u Y2d) that e~ doubling phenom~na i~ ~ non~e for~.
V~rb cl~ss ~ree (es~coded ~i V3, ~ tb e~e GCS int~ represent~t;on oî '11~) is ehar~cteri2ed b~ oDmdes ~, )e5~ ~d. und consist~ of ~rerb2i ~bo-e pres~nt~
tensG, t~ird perron ~in¢ul~r ~greement fona~ hibit ~ ~ies" alternaeion ~N~ th~ir b~se îorms (goner~lly t~o~e ~cr~ penultimate ~nsonant, e.g., ~y/tri~ oppo~ct a~t~y/stay~ nd ~buy~bu~ erb t]~l~ ~3hree h~s no ~peeial nl]l!tB tla~;ed OD t~e - C ~1 ~

3~

i onuonlm~ prffldin~ ~e ~yn, ~ou~h ~ome ~;JII proce~sin~ i~ nece~ Vnft nd Gc-Infl o ~nsure ta-~ upu~tion from t~ss V~ t~ e ~-J Vl pu~diglT~ not ct ~e ~t i~ ~h~rec~ ed by ~e ~uifis compl~ lk. b~, i~t, ~d (2.g., ~#tie D.sl~t the rc~ut~r p~r~ oci~t~d ~i~ t~ ~ord ~).
~ rb tîas~ ~our (encoded ~ 7~, ~rith t~l3e GCS internAJ rDpre~ntation of ehssa~enLed ~y ~ u~ oompl 10, ~, O, In~ 5 cor~i~t~ ot ~orbs who~ ~a~ for~
~re indistingui20h~ble fr~m ~u b~se tonm~
~ n 11 Yerb sl~l~se~ e~cept ~r V~ )e ~sic p~r~ti~m~ descn~d ~o~rQ ma~ ba . ~odified by the ~oublin~ ot the la~ ton~on~nt Or ~e ba~ form ~fore ~he eddition o~ e ~nding; ~e~e torms ot tlli~ t~a ræceive t~e ~pec;al char~eter Usi~ ~ollovnng t~ir Y~rb inflectionat cl~ code, ~nd ~re interpreted ~ fvllow~:
Verb cla-a or~: V1et enc~te6 tJIe p~r~diem ~0, r, Ded, Din~ ( t ere D indicates the doublin~Z ot t~e comionant preced;ng t~e BU~), e.~., '7abet7 abets, ~beU~d, Dbettisl~ (~ere ~re ~t present aOl verbs in thia ~ub cla~s, out of tl e ~,424 vorb~ in cl-ss Vl).
~ rb elas3 t~70: ~2d oncodu~ e p~rodigm ~0, Ds, Ded, Din~ qu~7 qui~;
~uiz~qd, quiz~n~ (there ~re ~t prerent ~ ~7erbs 3n thi6 ~ub-cl~r7s, out of the 2B7 erbs h 2).
.Verb elals6 four: V4d encode~7 t~e p~r~digm 10, ~, O, Dinp, e.~., "cu~, eut~, eu~
~ttin~" (tbere ~re at present 23 verb~ in ~i~ sub~lu~, out of t~e 33 ~verb~ ~n el~r V4).
Tbe3e ilpeCial par~ ns u2 u~dod ~ ~tting ~ ci-l bit a~ e verb bs~e for~ irlRect;ond co~- atrin~
al paradigrn~ ~rc definet ~ ~7ell for verb el e5 Orle throu3h t2~K ~7hen t~e ~cod bit ;D MD REC.X F'l,GS (~hich oDrre~pond~ So the Ye~'s bue fionn) i~ ~et to 'l'B;
i~ this c~e tJ~e pa~t ~or~ is l~ft ou~ of tbe p~saægm arld in iLs pla~ç is ~uDstitu~d the fom~ or p~ir of form~ ~ast ten~e, past ps~rtfcfpie) ~ ted nDy re~rence t~ e ure~r forms~ception dic~foDDr~

- ~5 ~3~ 93~

One Ibrlher ~qrb c1~3 (encoded ~ J l~) ~ ~e~ for ~ ~ sr ot Y~rbs Gndin~ in ~" t~lAt ha~e ~ puad;~n chlu~cter~d by tl~e aulS~ c~mpla- Ic, 6~, el~od, el~ 3 te.~., "p-nk", ~raffic", ~c.); ahes~ e~r~ ~ p~ form an~ oir pr~or ~articipl~ 3~0rod i~ t~e irre~ulu formc' ~ ption dictior~y.

2.2.~ n~od;n~ Or ~ r ParD~
1~ ~otet ~ p~ati~nu h ~in~ h ~ ch~racteriæd by the scc~ of one or more ohmen~s tbat are ~o~ rel~tod ~ ~he b~e ~br~ of the par~di~n iD tbe ~u~e w~y ~ the m~jority of ~irnil r ~regular~ fiormc Dre For e2~ pl~ plur~ torm of ~enoun "m~ en" (r-ther th~n ~he ~reguJIIr" form "mAnsn-~hicb, dxc, ho~ve~er, oecur as the thir~percorl ~resent~ence ~in~ular torm ~ t2)e V2r~ m~nn~; Jimilarb, ~e p~st Sens~o fonn ~nd pa~t participle ~ t~ rb ~ritc~ are~"wro-e" An~ ~Wr;tteDn~
recpect;vely ~rather tban the regular" forrn "writ~") it tunu~ ou-, ~no-t irrogul~r noun p~ mr in Engli3h hcve t~o rooh, oDe ~'or ~e llin~ r torm nd oDe hr the plur~ nd th~ correspondin~ e~uv- ~r~u ~ fonnod by ddL~ ~'g~ to ç~eb root. Thu6 an irre~ular p~radigm o~ i* type m~y ~e ~ncoded a~
two parallel li~its, the ntrl dement ot the fir~t one correspond~nl~ to tl)ç ~in~ular fos~n root u-d tho neh elen ont of th~ ~pcond ~ne corre~pondin~ to t~e plur~ orm root. U~ing thi~
cyctem, the only ~ifl;~rence between the procedurc~ Or inflecting re~ular ~nd irre~
DourU i~ tbe ;n~er~ion Or ~ dditional ~2p in the btter procedure t~ perform ~ root tubctitutiDD (by ~witcbip3 ~he ~ot r~erence fror,n ~e surrent li~ ot~ on~
wheneYer a for~n of this ~ ntche6 from ~ingular so plur~l os ~rice ~
Similar1y,.s~o~t irre~ul~ Y~rb par~ nu have ~o more th~ r0e root~, o~e for ~e ~se fon~ hich iB infl~ regullu mann~s to obt~iD the 6hird per60n present te~e rin~ular îorm ~nd ~e pre~ent part;ciple), ODe for the past t~rue f~rrn, and one ~or t~e p~t p~rticiplQ ~ it i~ ~ot ~qu~l ~o the pa6t ten~e îorm~ egu~3r pa~digm of ~hia b~ m~y be encode~ QS tluee puhDe~ ts, ~ h e~esn~nt oF ~e ~t ono eorre~pon~

~3~934L

~o the bl~e fionn r~ e n~h ol~ment ot th~ Decond or~ eorre~ndin~ he p~ ene~
I`onz~ root, Dnd ~e nth el~m~nt o~ on~ t~rre~pondin~ e p~xt p~r~iciple root.Ull;ng t~ y~tem, t~e ont~ dilTerence lbtwQen ~I e procetturo~ Dl inflecting n6ul Lr ~nd ~rre~ r Y~rbs i~ ~e ~ erticn ~ addition~ in tbe la~ter proce~ture t~o per~orm ~
a~Dt ~ uion (by ~witchin~ ~e ~ r~ e betw~ ~e thJC~ t~ hene~r~r ~1 ~onn o~ typs D~v~itchex bot~roen tbe ~r~ roo~ t~
~ er~ t, bo~eveJ, ~or~ eo~ple~ p~di~ for ~ ~orb~l ~u~tiliarie~; tor ~unpe, ~e verb ~hav~" h~ the irreS ul~r Wr~l per~on pre~en~t2n~e fiorm ~w (~ ~eD a~ the uregul~r past ~ense form/past ~ ciple ~ha~3, ont ~3e verb ~be" has ~n ei~ht-momhr p~lradi~ t req~e~ ~isiSinction~ not pro~en~ in any ~ r verbal p~radi~n (~.g., r~wnber agreerner~t D tbe paS6 t~nse to ~ eresltiate ~etY~een t~e fon~ ~ nd ~-~ero. The~e irregul ritie- ~re handlod upullSely, by a 8pecial vesbal ~dl1sry pr~ssor ~ s nDted above, ho-vo~er, tl~e 1arge majoritg oî irregul~r nouns nd verbs in En~lish ht Into p~ttem~ here Ilrn~ll num~r of roota for Ql~ch b~e ~rn~ etors~d ~
eort~in well~efine~ olot4 (plur~l form for ~ourls; p~t ten~e form nd pa~t par~iciple for Yorbs) and th~n UaNi to gener~t~ the full par~di~Tn for earh irregular fonn 'rne lir~
.
oriented metbod ~iven ~s n example abos~e de~crIbes one possib!o meth~ of ~tior~ge for ~he ~ener~tion of irregulu paradiBmr howe~çr, It ~as t~ro m~or trl~wb~cl~
The ~rct dr~wbllck concerns met~ods of ~ICCes~ he li8t5 are ordered ~lphabetlc2ny according to ba~ or~ (or, in ~aner~ ny order t~t m~el~ it ea~ ~o acce~a ~he 21~mentr Or one particular liat), then It rill be dif~icult to accecs a ~ase fioraD ~hen ~ en one Or it~ ~ect~d tor~ (w, iD t~e gener~l e~, to ccel;s demeDtG ot t~e ~vell ordered iist ~rom any of t~)e other one~ hce t~l~ inflected fonn li~ts ~ Dot ~ 3a an easily ~elLrs~ed orter B~c~ e GCS progrsnu r~quire ~th that (~ ect~d for~ ~e e~ily ~enerat&d *o~ tl e~ ~3e fiorms 9S1t ~b) ba~e ~'orm~ ~e ea~ily recolrerable from ~y o~ eir ~e~ed ~3~
. .

form~ (nc ~aU~r ~ v irr~Ar), ~on ~e orôering of ~,he "I~ " o~ l'orms D t~le ~CI!ptiO
diction~ry mus~ ~ ~uch t~ on~ n~e~od Dt l CCÇII~ ~ no morc di5~icult t~un the ot~.
Th2 ~ond dr~lwb~c~ at the m~pp~ng~ wsen ~e ~ de~b~ ovc neith~r uniquP ~or one~oore; ~ord~ Ln lSrlglis~ ~hich ~ ) iriregul~r h~
fior~ t~t ~re a~ r b~ae form~ Or rC!gU]U ~Uaai~ al~ow~ tbe ;rre~
ten~e tormtpa~t ~rticiple of i~e Yo~ , ~ul~ bo a ro~ular Y~OlID u~ ~orb b~ fons~
o~ r~h~); (b) ~rregular inflec~ torn~ t)l~t ~ al~o the bu~e ~'srm6 o~ irr~pl~r par4digml~ (e.~ 8~ the UTegll1ar plUit ~nE~ torm ot the ~er~
ba~e torm of the irre~ r paradiBm inc1uding the pest puticipl~ ~n", ~ ~ell t$ ~ein8 a r~ r n~un base fiorm); ~s) irrc~ulu ~se forms ~t ~re ~ o past ten~e rorms in ~eir o~rn puodigTn~ (e.6~, ~eat", wit~ sl e pa~S ten~e form ~ t~ ~nd ~he p~t p~iciple"be~ten~3; (d) irre~ r ba~e for~ thAt are al~o p~t par~ic;ple~ tbeir ow~ parAdi~(o.g., ~come", ~ he pas~ participte ^'corne" ~nd t~e p~t t~c ~rm ~c~ne~
base rorm~ t have both re~ubr Imd i~e~ar p~radigm~ , aue~ e irre~
~t to~o form ''l~ and p~t participle biD" ~or i~ mean;D~ ~to lie (do~)" ~d ~
re~ler p~t ten~e fiorrntplut p~rticiple 'li~d" tor itb rle~ ato geD ~ hood~). lhe esiatenco of ~ords of the above typcs mean6 tha.~"n order to deteranine ~11 us&ge~ of -given ~rord, ~D three lists ml~y h-ve to be ~earched.
Both ot the llbo.re probleml~ m~y h eliminat~d by const~uctiJ-~ ~ more ~op~isticAted tor~ge representation than the pl~rallcl l;sts te~cribed bov~. The fir~t ~tep u to etore all ~ramm6tica~ informatio~ fior bo~ re~l~ nd ~rrceul~r rorms ~ the le~co~, ~nth t~e irre~ular forrna d;l~erentiated by ~pecial i~$~ ~hia fl~l~ would ~e ~eyed to the Ppecific irre~ul r elemcDt wiWn i ~i~reD ~vor~'r ta~ l~trin~ S~, if the ~lag E~ e~ rlrr.}", t2aen tbe e~/ord ~eat" would have ~ ~g ~trin~ rc~re~ontllble ~ r~r-~) vl(+r"r.}) YBII(-t~rr.)) JJ~ )" Gndic~tin~ c noun ~nd ~ecti~e ~`orms llre not irregul~r~nd th~t t~ e Yerb base and pagt ten~e fiorm- ~re irre~ r). Similarly, t~e ~vosd ~foo~

193~
.. .
,.

wou)d b~r a t~ prsH#s~tabb as: ~Nlt~isr.)) Vl(~ dic-ting ~ tl~e nou;~ b~-e Ibrm 1~ ir/r~ Dd ~1~ n~ b~e ~ors~ o~)~ ~d ~ ~Dr~l "lie" ~ould h~7e ~a8 r~lC rapr2~ntAble ~ Nl~r. Yl(~. Yl~- lirr.~ ~diCAti U th~- ~e noun ba~o fiorm i~ r~ nd e~ t31erd~ ~re ~wo ~ub bs~ t'or~ in~rprot~tion~, or~
r~g~ur ~nd ~rl2 ~ o~ e ~ttu~ r~l r~re50nt~tio~ ~d iD ~ ~;t~8 m~i~
~is~los~ om~ t Wf~ra~ ia for~ tro~ ~ p~cu~
rlo~tion pre~ente~ ~ve, l~ut tt ia ~n ~eDerl~l) eoDCoptU~y ~qui~Jent; t}~e impor~nt i~ea u t~t t~e +~rr.~ fes~ ,erYe~ ic~ furtAer proce~ine i~ neces~ to recoYer t~e o~er element~ o~ ~ ~iv~n ~ord'~ p~r~di~, ~nt t~at thi~ pro~e~sine Is ~
l~tr~ht~orwa~ ~earc~ fior lin~ aodea, . . .~ 1 o~er ~u~una~c~l in~ormation i~ rtored on tbe ~Yen ~vord'~ ~in d;ctiom:ry rocorL

~3~

A~7PE2;1DB Al to lJnited States patent Sep 23 14:06 19~7 colot;.b Pa~e 1 applicati~n of H~9 KLcera et for ~DIl~)CA~IC~L GRA~ SYS'rEM
~*______________________________________________________________________*

* *
* COPYRIGHT <c~ Uouc~hton Mifflir, Company Gr~.mm~r Ccrrection Sy~tem. *
* This wor~ is protected by the United States Copyright La~c ~s ar. *
* unput.lished wor~ ~r,d by Houghton Mlfflin ~s tr~.de secret inform~.ticn. *
* Solely for u~e in licen~ee ~oftware as permitted by written licerlse *
* from Houc~hton Mif~lin. Di~closure of content~ ~nd of embodied *
* progr~ms or ~Ic~orithms prohibited~ *

*_ _________ _________~_________________________________________________*

*_______________________________________________________________________*

* *
~ Gcolotab.c - reduced prob~bility colloc~tion t~ble *
* -se~al lis~- *

~____________ ________________ /
#include "Gtblhdr.c"
#include "/hmde~fhmclit./gc~.~di~l/Gdi~l.h"
UINT2B FAR Gcolc,t~.t~92][92] = C

C~ ~
¦ ~.' 94 !
~57 , ~ 1 45 , 5 , 25~, 1 , I , 15~4, 136q, 7~5 2~, 53, 3~1, ~.3, 40 ~3, 1 , 4~ !
694, E;13, ~;5~, 1 1 04 , 643, 1 , 1 , 141 ~
1 81 7 , ~64, 1 ~4 , 1~05, ~ 74~ , 20 6~, 55~5, Sep 23 14:06 1~7 colota~ Pa~e 2 ~01, 1~71, ~07, 1, :~54, 25~ s 481 !
lS~, 1 4~ ~
~7, 137, 4~4, 2~34 7~, 247, ~99 1 60 , 15'~, 959, 1 , 4~4 1 75~, 1 , I
1 ~5'3 ~7 ~
~i65 !
1 ~
60 , 45`~;~ t 415~, :~14~, 55~, ~5 1 , 1 75 1 , ~7, ~31, 9018, ' 2~, 3~0, 1 , 1 3~, ~54, 44 ~
~0 , 36 j 3~, ' 283, :~22~i, , 3~

Sep 23 1,:Q6 1$'87 colota~ Pa~e 3 2317, ~ , C;tS~I, 1 ~

1 ~
4:~!7, 1 65 1 , 1 , 40, '~73 ~2, 1, 1 5$~ , 1 , ~0~, 1, I , 1 , 1 ~
~33CI, I

2~
105~, I
5'~1 ~ , I ~

e~3 ~: 1 7 1 ~
~ 9 .$'4 l 7 3~8, 8~33, 38~ ~
46~3, ~71 ~
:~ 2, ~3~ 3~

';~p ~ 14:06 1~:7 ~olot~b Page 4 ~14, 1, 37~, 604, I ~

I .
1 , 1 , -~? 3 -: .

Claims (17)

1. A processor for parsing digitally encoded natural language text, such processor comprising means for receiving encoded natural language text for processing, dictionary means for storing words of the natural language together with a list of associated tags indicative of the possible grammatical or syntactic properties of each word, means for looking up a word of the text in the dictionary and annotating the word with its associated tags from the dictionary to provide a word record, means operative on word records of words of a sentence for defining a relative probability of occurrence of a tag sequence consisting of one tag selected from the word record of each word of a sequence of words of the sentence, means for constructing a selected set of tag sequences having a tag selected from the tags associated with each word of the sequence of words and determining a tag sequence of greatest relative probability of occurrence thereby identifying a single most probable tag for each word of the sequence, and grammatical processing means for identifying grammatical structure from the ordering of the single tag for each said word so as to obtain a parse of the sentence.
2. A processor according to claim 1, wherein the means for defining a relative probability of tag sequences includes means for selecting fewer than a fixed number n of sequences from said selected set and for defining said relative probability thereon.
3. A processor according to claim 1, wherein the means for determining a tag sequence of greatest relative probability of occurrence further includes means for determining, in order, tag sequences having successively lesser relative probabilities of occurrence, thereby identifying a succession of next most probable tags for each word of the sequence, and wherein the means for further processing includes means for processing a said next most probable tag of a word in the event the most probable tag does not produce a parse of the sentence.
4. A processor according to claim 1, wherein the means for defining a relative probability of occurrence of a tag sequence corresponding to a sequence of words includes means for modifying said relative probability in accordance with an observed reduced frequency of occurrence of a tag of said tag sequence corresponding to a particular word of the sequence of words.
5. A processor according to claim 1, wherein the means for defining a relative probability of occurrence includes means for recognizing a word of the sequence of words which is commonly confused with a different word, and means for substituting a tag of such different word in the tag sequence, such that the means for selecting a tag sequence of greatest relative probability determines if the tag of said different word has a greater relative probability of occurrence.
6. A processor according to claim 5, wherein the means for selecting a tag sequence of greatest relative probability of occurrence further includes means for identifying in order tag sequences having successively lesser relative probabilities of occurrence, thereby identifying a succession of next most probable tags for each word of the sequence, and wherein the means for further processing includes means for processing a said next most probable tag of a word in the event the most probable tag does not fit a correct parse of the sentence.
7. A processor for processing digitally encoded natural language text such, processor comprising means for receiving digitally encoded natural language text, dictionary means for storing base forms of words of the natural language together with data codes indicative of grammatical or syntactic properties of each stored word, means for looking up each word of the text in the dictionary and for annotating the word with its said data codes to create a word record, collocational analysis means for performing a defined calculation to construct a function on a bounded set of selected sequences of data codes so as to determine for each word a data code indicative of its probable grammatical usage, said collocational analysis means including first means operative on word records for assigning a likelihood of co-occurrence of data codes of adjacent words, second means for iteratively applying said first means to develop a probability-like measure on each of an ordered set of sequences of data codes wherein each successive data code of a sequence is selected from the word record of a successive word of the text, and means for determining a plurality of sequences of data codes of greatest probability thereby, associating with each word of the text a plurality of most probable data codes.
8. A processor according to claim 7, wherein the collocational analysis means further comprises means for identifying commonly confused word pairs, and also includes means for constructing, when a given word of text is one word of a pair of commonly confused words, said function on sequences of data codes from each said word so as to determine whether a data code of the other word of the pair is more probable than the data codes of the given word.
9. A processor according to claim 8, wherein the collocational analysis means further comprises means for identifying words which occur in particular grammatical uses with reduced frequency, and means for providing in the defined calculation a weight reduction factor corresponding to a said reduced frequency for modifying the determination of a said most probable data code for an identified word of the sentence.
10. A process according to claim 9, further comprising error display means for displaying an error message when the processor determines said data code of said other word is more probable than the data codes of the given word.
11. A grammatical processor for processing digitally encoded natural language text so as to parse sentences of the text, such processor comprising a dictionary of words of the language including for each word indications of its possible grammatical tags, tag annotation means for looking up words of a text sentence in the dictionary and annotating each word with its possible tags, tag selection means for looking up words of a text sentence in the dictionary and annotating each word with its possible tags, means for iteratively building up a probability-like measure on sequences formed of the possible tags of a sequence of words to determine at least one sequence of greatest probability thereby determining, when a word is annotated with more than one tag, a most probable tag of the word as a function of possible tags of surrounding words of the text sentence, and means for processing a string consisting of the most probable tags of the words of the sentence to identify the grammatical function of each word and determine a parse of the sentence.
12. A computerized system for the grammatical annotation of natural language, such system comprising means for receiving encoded natural language text for processing, means for annotating a word of the text with a tag set of tag indicative of possible grammatical or syntactic uses of the word, selection means operative on the tag sets of the words of a sequence of words for determining the most probable tag of each word of the sequence, such selection means including (i) means operative on pairs of tags, one from the tag set of each of two adjacent word, for defining an empirical collocational likelihood, and (ii) means for extending said empirical likelihood to a function defined on a bounded subset of possible tag sequences constructed from the tag sets of words of a sequence of words of a sentence, the value of said function on a sequence of tags corresponding to the likelihood of occurrence of a sequence of words having said sequence of tags, whereby determination of the tag sequence of greatest value determines the most likely tag of each word of the sequence.
13. An improved annotator for annotating natural language words with tags indicative of possible grammatical or syntactic uses of the words, such annotator comprising means for receiving an encoded natural language sentence for processing, means for assigning to a word of the sentence a set of tags indicative of the possible grammatical or syntactic uses of said word, and tag disambiguation means for identifying a single tag of a multiply-tagged word, such tag disambiguation means including means for constructing a selected bounded subset of tag sequences representative of possible tags associated with a sequence of respective words of the sentence, the sequence of words including said multiply-tagged word, means for defining a function value on each tag sequence of said subset of tag sequences, and means for selecting a specific tag sequence having the greatest function value defined thereon, whereby a single tag is identified from the multiply-tagged word by a single tag of said specific tag sequence thereby associated with said word.
14. An annotator according to claim 13, further comprising a spelling verifier having means for detecting mispelled words and for identifying candidate replacement words, wherein the means for identifying candidate replacement words includes selection means for selecting candidate replacement words having a tag with a syntactic context compatible with that of the mispelled word.
15. An annotator according to claim 13, further comprising transformation means for transforming a natural language between sound and text representations, wherein the transformation means includes means for resolving ambivalent representations of words be selection of the word whose tag is consistent with the syntactic context of the ambivalent word.
16. An annotator according to claim 15, wherein the transformation means is a text-to-sound transformation system and the ambivalent representations are homographs.
17. An annotator according to claim 15, wherein the transformation means is a sound-to-text transformation system and the ambivalent representations are homonyms.
CA000579695A 1987-10-07 1988-10-07 Collocational grammar system Expired - Lifetime CA1301934C (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US106,127 1987-10-07
US07/106,127 US4868750A (en) 1987-10-07 1987-10-07 Collocational grammar system

Publications (1)

Publication Number Publication Date
CA1301934C true CA1301934C (en) 1992-05-26

Family

ID=22309634

Family Applications (1)

Application Number Title Priority Date Filing Date
CA000579695A Expired - Lifetime CA1301934C (en) 1987-10-07 1988-10-07 Collocational grammar system

Country Status (2)

Country Link
US (1) US4868750A (en)
CA (1) CA1301934C (en)

Families Citing this family (176)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE68928230T2 (en) * 1988-09-15 1998-02-05 Oce Tech Bv System for the grammatical processing of a sentence composed of natural language
US5070478A (en) * 1988-11-21 1991-12-03 Xerox Corporation Modifying text data to change features in a region of text
CA2006163A1 (en) * 1988-12-21 1990-06-21 Alfred B. Freeman Keyboard express typing system
US5167011A (en) * 1989-02-15 1992-11-24 W. H. Morris Method for coodinating information storage and retrieval
JPH02240769A (en) * 1989-03-14 1990-09-25 Canon Inc Device for preparing natural language sentence
US6978277B2 (en) * 1989-10-26 2005-12-20 Encyclopaedia Britannica, Inc. Multimedia search system
US5241671C1 (en) 1989-10-26 2002-07-02 Encyclopaedia Britannica Educa Multimedia search system using a plurality of entry path means which indicate interrelatedness of information
JPH03185561A (en) * 1989-12-15 1991-08-13 Ricoh Co Ltd Method for inputting european word
JPH03188566A (en) * 1989-12-18 1991-08-16 Fujitsu Ltd Dictionary coupled text base device
JP2814634B2 (en) * 1989-12-29 1998-10-27 松下電器産業株式会社 Machine translation equipment
US5050121A (en) * 1990-01-22 1991-09-17 Vaughan H W Communication system which uses characters that represent binary-coded decimal numbers
US5572423A (en) * 1990-06-14 1996-11-05 Lucent Technologies Inc. Method for correcting spelling using error frequencies
US5157759A (en) * 1990-06-28 1992-10-20 At&T Bell Laboratories Written language parser system
US5418716A (en) * 1990-07-26 1995-05-23 Nec Corporation System for recognizing sentence patterns and a system for recognizing sentence patterns and grammatical cases
US5243520A (en) * 1990-08-21 1993-09-07 General Electric Company Sense discrimination system and method
US5418717A (en) * 1990-08-27 1995-05-23 Su; Keh-Yih Multiple score language processing system
US5305205A (en) * 1990-10-23 1994-04-19 Weber Maria L Computer-assisted transcription apparatus
GB9103080D0 (en) * 1991-02-14 1991-04-03 British And Foreign Bible The Analysing textual documents
US5634101A (en) * 1991-05-31 1997-05-27 R. Alan Blau & Associates, Co. Method and apparatus for obtaining consumer information
US5487147A (en) * 1991-09-05 1996-01-23 International Business Machines Corporation Generation of error messages and error recovery for an LL(1) parser
US5265065A (en) * 1991-10-08 1993-11-23 West Publishing Company Method and apparatus for information retrieval from a database by replacing domain specific stemmed phases in a natural language to create a search query
US5297040A (en) * 1991-10-23 1994-03-22 Franklin T. Hu Molecular natural language processing system
US5541836A (en) * 1991-12-30 1996-07-30 At&T Corp. Word disambiguation apparatus and methods
US5383120A (en) * 1992-03-02 1995-01-17 General Electric Company Method for tagging collocations in text
DE69330427T2 (en) * 1992-03-06 2002-05-23 Dragon Systems Inc VOICE RECOGNITION SYSTEM FOR LANGUAGES WITH COMPOSED WORDS
DE4209280C2 (en) * 1992-03-21 1995-12-07 Ibm Process and computer system for automated analysis of texts
DE4213533C2 (en) * 1992-04-22 1996-01-25 Ibm Method and computer system for decomposing compound words
AU659639B2 (en) * 1992-05-11 1995-05-25 British And Foreign Bible Society, The Analysing textual documents
JPH06195373A (en) * 1992-12-24 1994-07-15 Sharp Corp Machine translation system
US5819259A (en) * 1992-12-17 1998-10-06 Hartford Fire Insurance Company Searching media and text information and categorizing the same employing expert system apparatus and methods
JP2821840B2 (en) * 1993-04-28 1998-11-05 日本アイ・ビー・エム株式会社 Machine translation equipment
DE4323241A1 (en) * 1993-07-12 1995-02-02 Ibm Method and computer system for finding incorrect character strings in a text
JPH0756957A (en) * 1993-08-03 1995-03-03 Xerox Corp Method for provision of information to user
US5692176A (en) * 1993-11-22 1997-11-25 Reed Elsevier Inc. Associative text search and retrieval system
WO1995020215A1 (en) * 1994-01-21 1995-07-27 Kurzweil Applied Intelligence, Inc. Text generation from spoken input
US5822720A (en) 1994-02-16 1998-10-13 Sentius Corporation System amd method for linking streams of multimedia data for reference material for display
US5537317A (en) * 1994-06-01 1996-07-16 Mitsubishi Electric Research Laboratories Inc. System for correcting grammer based parts on speech probability
US5521816A (en) * 1994-06-01 1996-05-28 Mitsubishi Electric Research Laboratories, Inc. Word inflection correction system
US5610812A (en) * 1994-06-24 1997-03-11 Mitsubishi Electric Information Technology Center America, Inc. Contextual tagger utilizing deterministic finite state transducer
US5724597A (en) * 1994-07-29 1998-03-03 U S West Technologies, Inc. Method and system for matching names and addresses
US5634084A (en) * 1995-01-20 1997-05-27 Centigram Communications Corporation Abbreviation and acronym/initialism expansion procedures for a text to speech reader
US5617488A (en) * 1995-02-01 1997-04-01 The Research Foundation Of State University Of New York Relaxation word recognizer
US5737617A (en) * 1995-06-06 1998-04-07 International Business Machines Corporation Method and system for English text analysis
US5828991A (en) * 1995-06-30 1998-10-27 The Research Foundation Of The State University Of New York Sentence reconstruction using word ambiguity resolution
US5794177A (en) * 1995-07-19 1998-08-11 Inso Corporation Method and apparatus for morphological analysis and generation of natural language text
US5737734A (en) * 1995-09-15 1998-04-07 Infonautics Corporation Query word relevance adjustment in a search of an information retrieval system
US5819260A (en) * 1996-01-22 1998-10-06 Lexis-Nexis Phrase recognition method and apparatus
US6470306B1 (en) * 1996-04-23 2002-10-22 Logovista Corporation Automated translation of annotated text based on the determination of locations for inserting annotation tokens and linked ending, end-of-sentence or language tokens
US6233544B1 (en) 1996-06-14 2001-05-15 At&T Corp Method and apparatus for language translation
US5999896A (en) * 1996-06-25 1999-12-07 Microsoft Corporation Method and system for identifying and resolving commonly confused words in a natural language parser
US5878386A (en) * 1996-06-28 1999-03-02 Microsoft Corporation Natural language parser with dictionary-based part-of-speech probabilities
US5832480A (en) * 1996-07-12 1998-11-03 International Business Machines Corporation Using canonical forms to develop a dictionary of names in a text
US5819265A (en) * 1996-07-12 1998-10-06 International Business Machines Corporation Processing names in a text
US5813002A (en) * 1996-07-31 1998-09-22 International Business Machines Corporation Method and system for linearly detecting data deviations in a large database
US5878385A (en) * 1996-09-16 1999-03-02 Ergo Linguistic Technologies Method and apparatus for universal parsing of language
US6119114A (en) * 1996-09-17 2000-09-12 Smadja; Frank Method and apparatus for dynamic relevance ranking
US6173298B1 (en) 1996-09-17 2001-01-09 Asap, Ltd. Method and apparatus for implementing a dynamic collocation dictionary
EP1020803A4 (en) * 1997-03-04 2000-07-19 Ltd Sintokogio Language analysis system and method
US7672829B2 (en) * 1997-03-04 2010-03-02 Hiroshi Ishikura Pivot translation method and system
US6507811B1 (en) * 1997-05-12 2003-01-14 Douglas E. Phillips Method for symbol manipulation in an electronic data processing system
US5960384A (en) * 1997-09-03 1999-09-28 Brash; Douglas E. Method and device for parsing natural language sentences and other sequential symbolic expressions
GB2329047A (en) * 1997-09-05 1999-03-10 Sharp Kk A method of identifying collocates
DE19740147A1 (en) * 1997-09-12 1999-03-18 Philips Patentverwaltung Method for determining a reliability measure
US6098042A (en) * 1998-01-30 2000-08-01 International Business Machines Corporation Homograph filter for speech synthesis system
GB2334115A (en) * 1998-01-30 1999-08-11 Sharp Kk Processing text eg for approximate translation
US6195631B1 (en) * 1998-04-15 2001-02-27 At&T Corporation Method and apparatus for automatic construction of hierarchical transduction models for language translation
US6182040B1 (en) * 1998-05-21 2001-01-30 Sony Corporation Voice-synthesizer responsive to panel display message
US6424983B1 (en) 1998-05-26 2002-07-23 Global Information Research And Technologies, Llc Spelling and grammar checking system
US6539348B1 (en) 1998-08-24 2003-03-25 Virtual Research Associates, Inc. Systems and methods for parsing a natural language sentence
US6167370A (en) * 1998-09-09 2000-12-26 Invention Machine Corporation Document semantic analysis/selection with knowledge creativity capability utilizing subject-action-object (SAO) structures
CN1102271C (en) * 1998-10-07 2003-02-26 国际商业机器公司 Electronic dictionary with function of processing customary wording
USRE43082E1 (en) 1998-12-10 2012-01-10 Eatoni Ergonomics, Inc. Touch-typable devices based on ambiguous codes and methods to design such devices
AU760655B2 (en) * 1998-12-10 2003-05-22 Eatoni Ergonomics, Inc. Touch-typable devices based on ambiguous codes and methods to design such devices
US6618697B1 (en) 1999-05-14 2003-09-09 Justsystem Corporation Method for rule-based correction of spelling and grammar errors
US6598047B1 (en) 1999-07-26 2003-07-22 David W. Russell Method and system for searching text
US6405162B1 (en) * 1999-09-23 2002-06-11 Xerox Corporation Type-based selection of rules for semantically disambiguating words
US7050977B1 (en) 1999-11-12 2006-05-23 Phoenix Solutions, Inc. Speech-enabled server for internet website and method
US7392185B2 (en) 1999-11-12 2008-06-24 Phoenix Solutions, Inc. Speech based learning/training system using semantic decoding
US9076448B2 (en) 1999-11-12 2015-07-07 Nuance Communications, Inc. Distributed real time speech recognition system
US7725307B2 (en) 1999-11-12 2010-05-25 Phoenix Solutions, Inc. Query engine for processing voice based queries including semantic decoding
GB0006721D0 (en) * 2000-03-20 2000-05-10 Mitchell Thomas A Assessment methods and systems
US7096185B2 (en) * 2000-03-31 2006-08-22 United Video Properties, Inc. User speech interfaces for interactive media guidance applications
US7120574B2 (en) 2000-04-03 2006-10-10 Invention Machine Corporation Synonym extension of search queries with validation
US7962326B2 (en) * 2000-04-20 2011-06-14 Invention Machine Corporation Semantic answering system and method
US6965857B1 (en) * 2000-06-02 2005-11-15 Cogilex Recherches & Developpement Inc. Method and apparatus for deriving information from written text
US7788602B2 (en) 2000-06-06 2010-08-31 Microsoft Corporation Method and system for providing restricted actions for recognized semantic categories
US7712024B2 (en) 2000-06-06 2010-05-04 Microsoft Corporation Application program interfaces for semantically labeling strings and providing actions based on semantically labeled strings
US7421645B2 (en) 2000-06-06 2008-09-02 Microsoft Corporation Method and system for providing electronic commerce actions based on semantically labeled strings
US7770102B1 (en) * 2000-06-06 2010-08-03 Microsoft Corporation Method and system for semantically labeling strings and providing actions based on semantically labeled strings
US7716163B2 (en) 2000-06-06 2010-05-11 Microsoft Corporation Method and system for defining semantic categories and actions
US6952666B1 (en) * 2000-07-20 2005-10-04 Microsoft Corporation Ranking parser for a natural language processing system
US20020087604A1 (en) * 2001-01-04 2002-07-04 International Business Machines Corporation Method and system for intelligent spellchecking
US6662190B2 (en) * 2001-03-20 2003-12-09 Ispheres Corporation Learning automatic data extraction system
US7032174B2 (en) * 2001-03-27 2006-04-18 Microsoft Corporation Automatically adding proper names to a database
US7957986B1 (en) 2001-04-09 2011-06-07 Trover Solutions, Inc. System and method for managing account processing
US7778816B2 (en) 2001-04-24 2010-08-17 Microsoft Corporation Method and system for applying input mode bias
US7475006B2 (en) * 2001-07-11 2009-01-06 Microsoft Corporation, Inc. Method and apparatus for parsing text using mutual information
US9009590B2 (en) * 2001-07-31 2015-04-14 Invention Machines Corporation Semantic processor for recognition of cause-effect relations in natural language documents
US7130861B2 (en) 2001-08-16 2006-10-31 Sentius International Corporation Automated creation and delivery of database content
EP1304625B1 (en) * 2001-10-19 2007-01-10 Xerox Corporation Method and apparatus for forward annotating documents and for generating a summary from a document image
US20040034832A1 (en) * 2001-10-19 2004-02-19 Xerox Corporation Method and apparatus for foward annotating documents
US7083342B2 (en) * 2001-12-21 2006-08-01 Griffin Jason T Keyboard arrangement
US7840422B1 (en) 2002-04-09 2010-11-23 Trover Solutions, Inc. Systems and methods for managing insurance claims
US7490034B2 (en) * 2002-04-30 2009-02-10 Microsoft Corporation Lexicon with sectionalized data and method of using the same
US7325194B2 (en) 2002-05-07 2008-01-29 Microsoft Corporation Method, system, and apparatus for converting numbers between measurement systems based upon semantically labeled strings
US7707496B1 (en) 2002-05-09 2010-04-27 Microsoft Corporation Method, system, and apparatus for converting dates between calendars and languages based upon semantically labeled strings
US7742048B1 (en) 2002-05-23 2010-06-22 Microsoft Corporation Method, system, and apparatus for converting numbers based upon semantically labeled strings
US7707024B2 (en) 2002-05-23 2010-04-27 Microsoft Corporation Method, system, and apparatus for converting currency values based upon semantically labeled strings
US7281245B2 (en) 2002-06-05 2007-10-09 Microsoft Corporation Mechanism for downloading software components from a remote source for use by a local software application
US7827546B1 (en) 2002-06-05 2010-11-02 Microsoft Corporation Mechanism for downloading software components from a remote source for use by a local software application
US7356537B2 (en) 2002-06-06 2008-04-08 Microsoft Corporation Providing contextually sensitive tools and help content in computer-generated documents
US7680649B2 (en) * 2002-06-17 2010-03-16 International Business Machines Corporation System, method, program product, and networking use for recognizing words and their parts of speech in one or more natural languages
US7716676B2 (en) 2002-06-25 2010-05-11 Microsoft Corporation System and method for issuing a message to a program
US7392479B2 (en) 2002-06-27 2008-06-24 Microsoft Corporation System and method for providing namespace related information
US7209915B1 (en) 2002-06-28 2007-04-24 Microsoft Corporation Method, system and apparatus for routing a query to one or more providers
US7031911B2 (en) * 2002-06-28 2006-04-18 Microsoft Corporation System and method for automatic detection of collocation mistakes in documents
US20050108256A1 (en) * 2002-12-06 2005-05-19 Attensity Corporation Visualization of integrated structured and unstructured data
JP4038211B2 (en) * 2003-01-20 2008-01-23 富士通株式会社 Speech synthesis apparatus, speech synthesis method, and speech synthesis system
US7783614B2 (en) 2003-02-13 2010-08-24 Microsoft Corporation Linking elements of a document to corresponding fields, queries and/or procedures in a database
US7711550B1 (en) 2003-04-29 2010-05-04 Microsoft Corporation Methods and system for recognizing names in a computer-generated document and for providing helpful actions associated with recognized names
US7558841B2 (en) 2003-05-14 2009-07-07 Microsoft Corporation Method, system, and computer-readable medium for communicating results to a data query in a computer network
US7739588B2 (en) 2003-06-27 2010-06-15 Microsoft Corporation Leveraging markup language data for semantically labeling text strings and data and for providing actions based on semantically labeled text strings and data
US7999857B2 (en) * 2003-07-25 2011-08-16 Stresscam Operations and Systems Ltd. Voice, lip-reading, face and emotion stress analysis, fuzzy logic intelligent camera system
US7447627B2 (en) * 2003-10-23 2008-11-04 Microsoft Corporation Compound word breaker and spell checker
US7398210B2 (en) * 2003-10-23 2008-07-08 Microsoft Corporation System and method for performing analysis on word variants
US7421386B2 (en) * 2003-10-23 2008-09-02 Microsoft Corporation Full-form lexicon with tagged data and methods of constructing and using the same
US7689412B2 (en) * 2003-12-05 2010-03-30 Microsoft Corporation Synonymous collocation extraction using translation information
US7434157B2 (en) 2003-12-09 2008-10-07 Microsoft Corporation Programmable object model for namespace or schema library support in a software application
US7487515B1 (en) 2003-12-09 2009-02-03 Microsoft Corporation Programmable object model for extensible markup language schema validation
US7404195B1 (en) 2003-12-09 2008-07-22 Microsoft Corporation Programmable object model for extensible markup language markup in an application
US7178102B1 (en) 2003-12-09 2007-02-13 Microsoft Corporation Representing latent data in an extensible markup language document
US7404180B2 (en) * 2003-12-11 2008-07-22 Sap Ag Trace management in client-server applications
GB2402650B (en) 2003-12-31 2006-05-10 Research In Motion Ltd Keyboard arrangement
US7509573B1 (en) 2004-02-17 2009-03-24 Microsoft Corporation Anti-virus security information in an extensible markup language document
CA2567280A1 (en) * 2004-05-21 2005-12-01 Pressco Technology Inc. Graphical re-inspection user setup interface
US20070217693A1 (en) * 2004-07-02 2007-09-20 Texttech, Llc Automated evaluation systems & methods
US20060122834A1 (en) * 2004-12-03 2006-06-08 Bennett Ian M Emotion detection device & method for use in distributed systems
US8099281B2 (en) * 2005-06-06 2012-01-17 Nunance Communications, Inc. System and method for word-sense disambiguation by recursive partitioning
US20060282255A1 (en) * 2005-06-14 2006-12-14 Microsoft Corporation Collocation translation from monolingual and available bilingual corpora
US7574348B2 (en) * 2005-07-08 2009-08-11 Microsoft Corporation Processing collocation mistakes in documents
US20070016397A1 (en) * 2005-07-18 2007-01-18 Microsoft Corporation Collocation translation using monolingual corpora
US7664629B2 (en) * 2005-07-19 2010-02-16 Xerox Corporation Second language writing advisor
US7992085B2 (en) 2005-09-26 2011-08-02 Microsoft Corporation Lightweight reference user interface
US7788590B2 (en) 2005-09-26 2010-08-31 Microsoft Corporation Lightweight reference user interface
US7786979B2 (en) * 2006-01-13 2010-08-31 Research In Motion Limited Handheld electronic device and method for disambiguation of text input and providing spelling substitution
US7739255B2 (en) * 2006-09-01 2010-06-15 Ma Capital Lllp System for and method of visual representation and review of media files
US20080109305A1 (en) * 2006-11-08 2008-05-08 Ma Capital Lllp Using internet advertising as a test bed for radio advertisements
US20080109845A1 (en) * 2006-11-08 2008-05-08 Ma Capital Lllp System and method for generating advertisements for use in broadcast media
US20080109409A1 (en) * 2006-11-08 2008-05-08 Ma Capital Lllp Brokering keywords in radio broadcasts
US20080208566A1 (en) * 2007-02-23 2008-08-28 Microsoft Corporation Automated word-form transformation and part of speech tag assignment
US9779083B2 (en) 2007-09-18 2017-10-03 Elsevier, Inc. Functioning of a computing device by a natural language processing method comprising analysis of sentences by clause types
US8706476B2 (en) * 2007-09-18 2014-04-22 Ariadne Genomics, Inc. Natural language processing method by analyzing primitive sentences, logical clauses, clause types and verbal blocks
US8190423B2 (en) * 2008-09-05 2012-05-29 Trigent Software Ltd. Word sense disambiguation using emergent categories
US20100228538A1 (en) * 2009-03-03 2010-09-09 Yamada John A Computational linguistic systems and methods
JP2012520528A (en) * 2009-03-13 2012-09-06 インベンション マシーン コーポレーション System and method for automatic semantic labeling of natural language text
US9262397B2 (en) * 2010-10-08 2016-02-16 Microsoft Technology Licensing, Llc General purpose correction of grammatical and word usage errors
US9842168B2 (en) 2011-03-31 2017-12-12 Microsoft Technology Licensing, Llc Task driven user intents
US9244984B2 (en) 2011-03-31 2016-01-26 Microsoft Technology Licensing, Llc Location based conversational understanding
US10642934B2 (en) 2011-03-31 2020-05-05 Microsoft Technology Licensing, Llc Augmented conversational understanding architecture
US9298287B2 (en) 2011-03-31 2016-03-29 Microsoft Technology Licensing, Llc Combined activation for natural user interface systems
US9858343B2 (en) 2011-03-31 2018-01-02 Microsoft Technology Licensing Llc Personalization of queries, conversations, and searches
US9760566B2 (en) 2011-03-31 2017-09-12 Microsoft Technology Licensing, Llc Augmented conversational understanding agent to identify conversation context between two humans and taking an agent action thereof
US9064006B2 (en) 2012-08-23 2015-06-23 Microsoft Technology Licensing, Llc Translating natural language utterances to keyword search queries
US9454962B2 (en) * 2011-05-12 2016-09-27 Microsoft Technology Licensing, Llc Sentence simplification for spoken language understanding
US8855997B2 (en) 2011-07-28 2014-10-07 Microsoft Corporation Linguistic error detection
US20140052606A1 (en) * 2012-08-16 2014-02-20 Infosys Limited System and method for facilitating prediction of a loan recovery decision
US9215510B2 (en) 2013-12-06 2015-12-15 Rovi Guides, Inc. Systems and methods for automatically tagging a media asset based on verbal input and playback adjustments
CN104750687B (en) * 2013-12-25 2018-03-20 株式会社东芝 Improve method and device, machine translation method and the device of bilingualism corpora
US9606983B1 (en) * 2014-08-27 2017-03-28 Amazon Technologies, Inc. Human readable mechanism for communicating binary data
US9460076B1 (en) * 2014-11-18 2016-10-04 Lexalytics, Inc. Method for unsupervised learning of grammatical parsers
US10110385B1 (en) 2014-12-22 2018-10-23 Amazon Technologies, Inc. Duress signatures
US9819673B1 (en) 2015-06-24 2017-11-14 Amazon Technologies, Inc. Authentication and authorization of a privilege-constrained application
JP6880956B2 (en) * 2017-04-10 2021-06-02 富士通株式会社 Analysis program, analysis method and analysis equipment
JP7027696B2 (en) * 2017-04-25 2022-03-02 富士フイルムビジネスイノベーション株式会社 Information processing equipment and information processing programs
US11288451B2 (en) * 2018-07-17 2022-03-29 Verint Americas Inc. Machine based expansion of contractions in text in digital media
CN113609833B (en) * 2021-08-12 2023-08-11 深圳平安智汇企业信息管理有限公司 Dynamic file generation method and device, computer equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4724523A (en) * 1985-07-01 1988-02-09 Houghton Mifflin Company Method and apparatus for the electronic storage and retrieval of expressions and linguistic information
US4742481A (en) * 1984-04-13 1988-05-03 Brother Kogyo Kabushiki Kaisha Electronic dictionary having means for linking two or more different groups of vocabulary entries in a closed loop
JPS6126176A (en) * 1984-07-17 1986-02-05 Nec Corp Dictionary for processing language
JPS6140672A (en) * 1984-07-31 1986-02-26 Hitachi Ltd Processing system for dissolution of many parts of speech
JPH0724055B2 (en) * 1984-07-31 1995-03-15 株式会社日立製作所 Word division processing method
US4747053A (en) * 1985-05-20 1988-05-24 Brother Kogyo Kabushiki Kaisha Electronic dictionary
US4760528A (en) * 1985-09-18 1988-07-26 Levin Leonid D Method for entering text using abbreviated word forms
US4773009A (en) * 1986-06-06 1988-09-20 Houghton Mifflin Company Method and apparatus for text analysis

Also Published As

Publication number Publication date
US4868750A (en) 1989-09-19

Similar Documents

Publication Publication Date Title
CA1301934C (en) Collocational grammar system
US4864501A (en) Word annotation system
Woliński Morfeusz—a practical tool for the morphological analysis of Polish
Ait-Mokhtar et al. Incremental finite-state parsing
Xue et al. The penn chinese treebank: Phrase structure annotation of a large corpus
Chen Building probabilistic models for natural language
Woliński Morfeusz reloaded
US4864502A (en) Sentence analyzer
Neumann et al. A shallow text processing core engine
Feng et al. Probabilistic techniques for phrase extraction
Bach et al. A reranking model for discourse segmentation using subtree features
Moeljadi et al. Building an HPSG-based Indonesian resource grammar (INDRA)
Onyenwe et al. Toward an effective igbo part-of-speech tagger
Novák et al. Morphological annotation of Old and Middle Hungarian corpora
Verkerk et al. LASLA and Collatinus: a convergence in lexica
Kuboň Problems of robust parsing of Czech
Panahandeh et al. Correction of spaces in Persian sentences for tokenization
Foufi et al. Multilingual parsing and MWE detection
Prinsloo et al. Creating word class tagged corpora for Northern Sotho by linguistically informed bootstrapping
Karan et al. CroNER: Recognizing named entities in Croatian using conditional random fields
Volk The automatic resolution of prepositional phrase attachment ambiguities in German
Weiss et al. From textual information to numerical vectors
Dione Finite-state tokenization for a deep Wolof LFG grammar
Zahoranský et al. Rule based phonetic search approaches for central Europe
Hardie Automated part-of-speech analysis of Urdu: conceptual and technical issues

Legal Events

Date Code Title Description
MKLA Lapsed