Method for removing enclitic endings from verbs in romance languages

Abstract: Romance language verbs are frequently modified by the addition of pronouns called enclitic pronouns. The pronouns can only be added within prescribed grammatical constraints and affect the spelling and, sometimes, the accentuation of the verbs. Many linguistic processes for which automation is desirable, such as synonym look-up or grammatical analysis, require identification of the unmodified verb forms. The methods described herein make is possible to convert a verb modified by enclitic pronouns to its unmodified form.

Description: The invention disclosed relates to an improved method for removing enclitic endings from verbs in romance languages. The disclosure of the patent application A. Zamora, "Paradigm-Based Morphological Text Analysis for Natural Languages," Serial No. 028,437, filed March 20, 1987, assigned to IBM Corporation can serve as a background for the invention disclosed herein. Text processing word processing systems have been developed for both stand-alone applications and distributed processing applications. The terms text processing and word processing will be used inter-changeably herein to refer to data processing systems primarily used for the creation, editing, communication, and/or printing of alphanumeric character strings composing written text. A particular distributed processing system for word processing is disclosed in EP-A 217 174 entitled "Multilingual Processing for Screen Image Build and Command Decode in a Word Processor, with Full Command, Message and Help Support," by K. W. Borgendale, et al., which is an example of a host system within which the subject invention herein can be applied. In EP-A 241 717 a compiler-based linguistic analysis method and apparatus is disclosed which includes a compilation of a classification table for all the words in a dictionary and the compilation of a plurality of inflection pattern tables. That method can be applied to virtually any indo-European language. However, for removing enclitic endings from verbs in romance languages that method is not successful and a new method has to be developed. In US-A-4799191 a system is disclosed which includes a dictionary memory for storing a plurality of English words which are classified into two groups consisting of noun words and non-noun words, respectively; search circuitry for searching whether or not an inputted word exists in the dictionary memory; and suffix judgment circuitry for judging whether or not an inputted word has a possessive suffix. If the inputted word has one of the possessive suffixes, the group of noun words in the dictionary memory is searched to find the coincident word data to the de-suffixed input word. An output display displays the input word and the search result. The described system is restricted for use of handling the English language and is not usable for romance languages. A. Spanish Language It is a well-recognized fact that in Spanish, new words are formed when pronouns are attached to certain verb forms. For example, "dame" (English: "give me") is formed from the imperative verb form "da" plus the pronoun "me." These pronouns are called "enclitic" because they attach to the preceding word to form a new word. There are eleven Spanish pronouns that can be used in enclitic form. Here they are classified by usage: Several enclitic pronouns may be added to a word, thus "damelo" (English: "give it to me") not only contains a second enclitic, but also adds an accent to the new word to conform with the basic accentuation rules. There are three basic accentuation rules in Spanish: 1. All words that are stressed in the last syllable and which end in a vowel or "n" or "s" have an explicit accent mark. 2. Words stressed in the penultimate syllable have an explicit accent mark if they end in a consonant which is not "n" or "s." 3. Words stressed before the penultimate syllable always have an explicit accent. It is understood that the accent mark is written over the vowel of the stressed syllable. In addition, there are rules of euphony that apply to certain verb-pronoun combinations to avoid awkward pronunciations. The plural imperative for the first person "vamos" (English: "we go") loses the final "s" when the enclitic "nos" is added. Thus, "vamos" plus "nos" yields "vamonos" (English: "let's go!"). The double "s" that would result from adding the enclitic "se" to the plural for the first person is omitted so that "hagamos" plus "se" plus "lo" yields "hagamoselo" (English: Let's do it for them!). The final "d" of the plural second person imperative is dropped when the enclitic "os" follows so that "comed" plus "os" yields "comeos" (English: "you eat!"). One peculiarity of Spanish enclitic formation is that not all forms of a verb may form enclitics. Only the infinitive, the gerund (present participle) and the five forms of the imperative may take enclitic pronouns. The forms of the verb "amar" (English: "love") given below show some valid enclitic forms: In this table 1, 2, and 3 indicate the first, second, and third person; the "s" and the "p" indicate singular and plural form, respectively. Spanish grammar requires a strict order of priority for enclitic pronouns: "se" always goes first, followed by second person, then first person, and finally third person pronouns. Of course, each of these is optional, but it is rare when more than two pronouns are attached to a verb. B. Italian Language An attribute of the Italian language is that new words are formed when pronouns are attached to certain verb forms. For example, "dammi" (English: "give me") is formed from the imperative verb form "da" plus the pronoun "mi" (the first letter of the pronoun is doubled in this case). These pronouns are called "enclitic" because they attach to the preceding word to form a new word. Not all forms of a verb may form enclitics. Only the infinitive, the gerund and the five forms of the imperative may take enclitic pronouns. There are 17 Italian pronouns and particles that can be used in enclitic form. Here they are classified by usage: Several enclitic pronouns may be added to a word, but they have to follow specific agglutination rules. The verb form must end in either a weak or a complementary form. If more than one pronoun occurs, the strong form of a pronoun followed by a complementary form is used, except for the combinations "mici," "tici," and "vici" which have been included under the weak forms for uniformity of processing since "ci" is a demonstrative and not a personal pronoun in these cases. In addition, two spelling modification rules are used: 1) the infinitive form of a verb drops the final "e" when an enclitic pronoun is added except when the infinitive form of the verb ends in "rre" in which case the final "re" is dropped, and 2) if an imperative form of the verb form is stressed in the last syllable, the consonant of the enclitic closest to the verb is doubled (except for "gli," "glie"). The following table shows examples of these cases: The complexity of the rules and multitude of verb forms that may take enclitics require powerful dictionaries and analytical procedures to decompose enclitic verb forms. There are many words which on the basis of morphology, appear to have enclitics, e.g. "Oslo," "cola," but which in reality are not enclitic endings at all. Some verb forms in Italian such as the imperfect subjunctive have endings in "si" which could also be confused with the reflexive pronoun with inadequate analysis. Although there have been some computer based dictionaries that contain verbs with enclitic endings, none of the prior art has addressed the problem of removing the enclitics automatically to obtain the base form of the verb which is necessary for many applications. It is therefore an object of the invention to provide an improved method for removing enclitic endings from verbs in romance languages, especially in Spanish, Italian, Portuguese, French, and other Romance languages. The object of the invention is accomplished by the features of claim 1. Further advantages of the invention are characterized in the subclaims. The invention includes a process for the removal of enclitic endings to identify the verb which was used to generate the enclitic form. The process combines the morphological transformations that reverse the enclitic formation rules, accentuation reversal rules and dictionary look-up which can identify valid verb forms and ambiguities. Applications of the Invention 1) Word verification in word processing systems. The very productive combinatorial mechanisms of enclitic pronouns make it hard to have good coverage of verb forms by exhaustive listing. Therefore, a procedure to identify and generate the forms of the verbs without enclitics can be used as an effective way of word verification. 2) In any language analysis application such as natural language data base access, it is necessary to interpret queries by isolating the verb forms used in the query. The normalization of enclitic forms makes it possible to process Romance language verb forms. 3) Machine translation requires identification of enclitic forms and generation of verb forms without their enclitic pronouns. This invention makes it possible to process Romance language verbs for machine translation applications. The foregoing and other advantages of the invention will be more fully appreciated with reference to the accompanying figures. Fig. 1 is a flow diagram of the method for removal of enclitic endings from Spanish verbs. Fig. 2 is a flow diagram of the method for the removal of enclitic endings from Italian verbs. Fig. 3 is a flow diagram of the method for the removal of enclitic endings from Portuguese verbs. A. Spanish Language This embodiment of the invention consists of an iterative process applied to the Spanish language for removal of enclitic endings to identify the verb which was used to generate the enclitic form. The iterative process combines: 1) morphological transformations that reverse the enclitic formation and accentuation rules and 2) look-up in a dictionary that can identify valid verb forms. The process is best described by reference to Fig. 1. Step 20 specifies the process of getting an input word for the enclitic removal process. The word is converted to lower case if necessary to assure a common font for the dictionary look-up. The ending of the word is checked against the list of 11 enclitic pronouns in Step 22. If the word does not have an enclitic ending or if the enclitics occur in the wrong sequence, or if more than three enclitics are found, then the process terminates since the word does not have valid enclitic endings. In Step 24 the list of ambiguous words is checked. For example, the word "salte" can be "sal" plus "te" (English: "(thou) get out") or if we interpret the word without an enclitic it means "(you) jump." When a word is found in the list, the output word form is located associated with the input word in the list. Step 26 is the dictionary look-up process. This involves locating the word form in the dictionary to determine if it is a verb. If it is a verb, its corresponding paradigm (Table 1) is accessed to determine which form of the verb it is. The paradigm matching procedure involves matching the ending of the word form against endings specified in the paradigm table. The endings that match are associated in the table with their corresponding grammatical forms. This matching procedure makes it possible to determine if the verb form is one which can take enclitic endings or not. If it is, the lemma form of the verb (generally the infinitive) can be obtained by replacing the ending that matched with the ending for the infinitive. A successful match terminates the procedure. The enclitic ending is removed in Step 27. The enclitic is saved because it is referenced in Steps 28 and 30. Step 28 is the process applied when the enclitic pronoun "os" is removed. Generally, the enclitic "os is simply removed, but if the letter preceding "os" is one of the vowels "a," "e," "i," or "i" (with an accent mark), the enclitic "os" is removed and replaced with a "d." For example, "reios" becomes "reid" and "burlaos" becomes "burlad," but "obedeceros" simply becomes "obedecer." Step 30 is the process applied when the enclitics "nos" or "se" are removed. When these enclitics are found, they are removed and if they are preceded by the characters "mo" (which indicates a plural verb form), an "s" replaces the removed enclitic. For example, "preparemonos" becomes "preparemos," but "rianse" becomes "rian." This step is independent of accent removal; some of the word forms created at this step will not match against the dictionary because they have incorrect accents. Step 32 removes the accents, if any, to try to match again against the dictionary with the corrected spelling. Step 34 restores accents that may have been removed in trying to match an accented word that has multiple enclitics such as "freidmelo" (English: "(you) fry it for me!"). In the first try, only the first enclitic is removed yielding "freidme," but since this does not match, the accent is removed in Step 32. Step 34 restores the accent before sending the word back to Step 22 where the additional enclitic ending will be detected and later removed. Pseudocode for the preferred embodiment of the process is given in Table 2. While this embodiment of the invention has been described with reference to a specific sequence of steps, the order of some of these steps is somewhat discretionary. It is possible to streamline the process by combining several operations, such as the enclitic removal and the accent removal into one single operation which takes into consideration the syllables of the input word. B. Italian Language This embodiment of the invention consists of a process applied to the Italian language for removal of enclitic endings to identify the verb which was used to generate the enclitic form. The process combines: 1) morphological transformations that reverse the enclitic formation and accentuation rules and 2) look-up in a dictionary that can identify valid verb forms. The process is best described by reference to Fig. 2. Step 120 specifies the process of getting an input word for the enclitic removal process. The word is converted to lower case if necessary to assure a common font for the dictionary look-up. In Step 122, the ending of the input word is checked against the list of weak and complementary pronouns. If the word does not have an enclitic ending, then the process terminates since the word does not have valid enclitic endings. In Step 124 the word is checked against the list of ambiguous words. This insures that if a word with an enclitic pronoun can also be a valid verb form, the enclitic form can be recognized as such. The list of ambiguous words consists of the ambiguous word, the corresponding verb form without the enclitic, and optionally, the lemma form of the verb. A match against this list terminates the procedure. For example, the word "segnalo" can be the first person singular present of the verb "segnalare" (English: "to signal") or it can be the third person singular imperative of "segnare" (English: "to mark") plus the enclitic "lo." Step 126 is the dictionary look-up process. This involves locating the word form in the dictionary to determine if it is a verb. If it is a verb, its corresponding paradigm (Table 3) is accessed to determine which form of the verb it is. The paradigm matching procedure involves matching the ending of the word form against the endings specified in the paradigm table. The endings that match are associated in the table with their corresponding grammatical forms. This matching procedure makes it possible to determine if the verb form is one which can take enclitic endings or not. If it is, the lemma form of the verb (the infinitive) can be obtained by replacing the ending that matched with the ending for the infinitive. A successful match terminates the procedure. The enclitic ending is removed in Step 128 and saved for examination in Step 134. A counter, initially set to zero, is incremented at this point to keep track of how many enclitic endings have been removed; the counter is referenced in Step 132. Step 130 reverses the spelling modifications that are applied during enclitic formation. That is, if the letter preceding the enclitic pronoun which was removed is "r," then an "e" or "re" is added since the verb form must be the infinitive. Otherwise, if the letter preceding the removed enclitic is the same as the first letter of the enclitic, then this doubled letter is also removed since this is likely an imperative verb form with stressed final syllable. The exceptions for "gli" and "glie" are taken into consideration. Step 132 checks to see how many enclitic endings have been removed from the word by referencing the counter incremented in Step 128. If two endings have been removed and the dictionary access has thus far failed to confirm the remainder of the word as a verb, the process ends without identifying an enclitic. Step 134 checks to see if the ending that was removed was a complementary ending because if it is, the possibility of multiple enclitic pronouns must be examined. However, if the enclitic ending was not complementary then we exit without having found an enclitic ending since the preceding dictionary access failed to find a verb form, and therefore the perceived enclitic ending was a false enclitic. In Step 136, the ending of the word without the complementary enclitic is checked against the list of strong pronouns. If none is found, the process terminates and the previously found complementary enclitic is considered a false enclitic since the previous dictionary access did not find a verb. However, if a strong pronoun is found, processing continues in Step 128 where the ending is removed and subsequently the spelling is normalized and the dictionary accessed again. Pseudocode for the preferred embodiment of the process is given in Table 4. While this embodiment of the invention has been described with reference to a specific sequence of steps, the order of some of these steps is somewhat discretionary. It is possible to streamline the process by combining several operations, such as the enclitic removal and the reverse spelling modifications. C. Portuguese Language Structure of Portuguese Enclitic Pronouns Portuguese enclitic pronouns, unlike Spanish or Italian enclitics, may be embedded within verb forms. The following paragraphs describe the rules for forming these enclitics. This information is then used in the design of an algorithm to remove the enclitics from a verb form to generate the original form of the verb to which the enclitic pronouns were added. Categories of pronouns and contractions : Brazilian Portuguese can use the contractions with apostrophes and also the special contraction -lh′ instead of -lhe- when the enclitic is embedded by itself in the future or conditional form of the verb, e.g., dar-lh'emos. General Enclitic Formation Rules : Any verb form may have from one to three enclitics. Each enclitic is appended to or embedded in the verb form separated by a hyphen. If one enclitic is used, it can be either RP, PP, IO, IP, PPIPC or IOIPC. If two enclitics are used, they can be PP+IP, RP+PP, RP+IO, RP+PPIPC or RP+IOIPC. The combination RP+IP is never used. If three enclitics are used only RP+PP+IP is valid, where PP is "nos" or "vos" subject to the transformation rules. Each enclitic pronoun is separated from the verb form or from the previous pronoun by a hyphen. Contractions, except -lh′ by itself, are considered to be two pronouns and are used in the combinations stated above. The IP forms starting with "l" or "n" are used only when the transformation rules given below apply. Embedding Rules : Future and conditional verb forms are decomposed into stem and ending before the enclitics are embedded, then the ending is added following the enclitics and separated from them by a hyphen. The verb stem or the enclitics themselves may undergo transformations according to the rules given below. The future endings are: -ei, -as, -a, -emos, -eis, -ao. The conditional endings are: -ia, -ias, -ia, -iamos, -ieis, -iam. Examples: dar-lhe-emos dar-lho-emos The future and conditional of the verbs "fazer," "dizer," and "trazer" are irregular in that they are derived from the short infinitive of Latin "far(e)," "dir(e)," "trar(e)," but the rules for embedding are the same as above and also follow the transformation rules, e.g., farei + o => fa-lo-ei. Transformation Rules : The IP forms -lo, -los, -la, and -las exist only as transformations of the forms -o, -os, -a, and -as under the following two conditions: 1) When an infinitive verb form (or a future or a conditional which consists of the infinitive plus an ending) needs to take the enclitics -o, -os, -a, or -as, the "r" of the infinitive stem is dropped and the enclitic is transformed to -lo, -los, -la, or-las, respectively. If the vowel preceding the "r" is "a," it changes to "a," if it is "e" but not "oe," it changes to "e," and if it is "o" it changes to "o." 2) When forms ending in "z" of the verbs "trazer," "fazer," dizer" and their derivatives such as "afazer," "satisfazer," "bendizer," etc., need to take the enclitics -o, -os, -a, or -as, the "z" is dropped and the enclitic is transformed to -lo, -los, -la, or -las, respectively. If the vowel preceding the "z" is "a," it changes to "/a" and if it is "e" it changes to "-e." 3) When a verb form ending in "s" needs to take the enclitics -o, -os, -a, or -as, the "s" is dropped and the enclitic is transformed to -lo, -los, -la, or -las, respectively. 4) The final "s" of a first person plural verb form ending in "mos" is dropped when followed by the enclitic "-nos" to generate "mo-nos." This rule does not apply to the future and conditional forms which embed the enclitics. 5) When the pronouns "nos" and "vos" are to be followed by -o, -os, -a or -as, the "s" of the "nos" or "vos" is dropped and the following enclitic is transformed to -lo, -los, -la, or -las, respectively. These rules apply even when the enclitic endings are embedded. The IP forms -no, -nos, -na, and -nas are transformations of the forms -o, -os, -a and -as when they occur after a verbal form ending with the letter "m" or after the nasal vowel combinations "ão" and "õe." The fact that the ending -nos is also a personal pronoun is a potential ambiguity. If return code is 0 or 4, the input word without the the enclitic ending and the lemma will be returned. word length, The process is best described by reference to Fig. 3. Step 220 specifies the process of getting an input word for the enclitic removal process. In Step 222, the word is checked to make sure it has hyphens. If the word does not have hyphens it cannot have a Portuguese enclitic ending and the process terminates. In Step 224, the last hyphenated string of the word is checked to see if it is a conditional or future verb ending. If it is, the ending is saved for future use. In Step 226, the first string of the word (up to the first hyphen) is isolated. This corresponds to the verb root or the head of the word. This verb root will be examined to determine subsequent processing. Step 228 examines the last character of the verb root to see if it is accented. If it is, processing continues in Step 230. Unaccented verb roots are processed starting in Step 236. Step 230 applies the "z" process. This consists of identifying by look-up in a list the accented verb roots that should be restored to "z" rather than to "r." The list consists of entries such as "contrafá" which comes from "contrafaz" and other verb forms which are derived from the verbs "fazer," "dizer" and "trazer." The "z" process applies only when there are no conditional or future endings. Step 232 checks to see if the enclitic following the verb root is "-la," "-las," "-lo" or "-los." If it does, then the accented letter is replaced by the unaccented letter and the "r" is restored for the verb root. Step 234 adds the future or conditional ending, if any, to the verb root to create the reconstituted verb and the process terminates. Step 236 applies the "z" process to verb roots without accents. The process is identical to Step 230, except that the list of words examined consists of unaccented entries such as as "contrafi" which comes from "contrafiz." Step 238 applies the "mo" process. This process examines verb roots that end in "mo" to determine whether an "s" has been elided. If the enclitic following the verb root is "-la," "-las," "-lo," "-los" or "-nos," or "-no" followed by another enclitic, then an "s" is added to the verb root and the process terminates. Step 240 checks to see if the enclitic following the verb root is "-la," "-las," "-lo" or "-los." If it does and there is no future or conditional ending, an "s" is restored for the verb root and the process terminates. Step 242 adds an "r" plus the future or conditional ending, if any, to the verb root to reconstitute the verb and the process terminates. D. French Language French Enclitics : French enclitics are appended to the end of a verb separated by hyphens. The presence of the enclitic does not affect the spelling or the accentuation of the preceding verb. Thus, French enclitics are the easiest to recognize and remove in order to restore the verb to its original state. In addition to enclitics, some French words append adverbial particles which must be differentiated from the enclitics. The following enclitic pronouns are used in French: ce, ces, cet, cette, elle, elles, en, eux, il, ils, je, la, le, les, leur, lui, me, moi, nous, on, te, toi, tu, vous, and y. Sometimes the pronouns are separated from the verb by the "euphonic" particle "t" as in "a-t-il." The "t" is used only for euphonic purposes and does not represent a pronoun. The pronouns "me" and "te" are contracted when followed by certain other pronouns. Thus, "me" followed by "en" is contracted to "m'en" as in "montrez-m'en" (show it to me). Except for these euphonic and contraction conventions, one or more French enclitic pronouns can be appended at the end of the verb separated by hyphens, e.g., "donnez-le-moi" (give it to me). The order of these pronouns is governed by the rules of French grammar. In addition to enclitic pronouns, French words can take the adverbial particles "ci" and "la" separated by hyphens (e.g., "fille-ci"). These should not be confused with enclitic pronouns.

Claims: A computer process for removing enclitic pronouns to identify the verb which was used to generate the enclitic form in any of the languages Spanish, Italian, French, and Portugese, which make use of such enclitic forms, comprising the steps of storing a plurality of possible enclitic pronouns, each said enclitic pronoun having associated therewith a priority order value indicating the sequential order of occurrence which the associated enclitic pronoun is permitted to assume in a word having plural, sequential enclitic pronouns; inputting an input word from an input word stream; comparing said input word with said plurality of possible enclitic pronouns to identify a last occurring enclitic pronoun in said input word; storing a first priority order value associated with said last occurring enclitic pronoun; comparing said input word with a list of ambiguous words and producing an output word form when a match is made; accessing a dictionary to determine if said input word is a verb and accessing a corresponding paradigm to determine a verb form for said input word, by matching the ending of said input word against an ending specified in a paradigm table wherein endings that match are associated in the table with their corresponding grammatical forms, to determine if said verb form is one which can take enclitic pronouns, the lemma form of the verb being obtained by replacing the matched ending with ending for the infinitive; if said verb form is one which can take enclitic pronouns, outputting said lemma representing the verb form of said input word with said last occurring enclitic pronoun removed; if said verb form is not one which can take enclitic pronouns, removing said last occurring enclitic pronoun from said input word, leaving a remainder word portion; comparing said remainder word portion with said plurality of possible enclitic pronouns to identify a second last occurring enclitic pronoun in said input word; accessing said dictionary to determine if said remainder word portion is a verb and accessing a corresponding paradigm to determine a verb form for said remainder word portion, by matching the ending of said remainder word portion against an ending specified in a paradigm table wherein endings that match are associated in the table with their corresponding grammatical forms, to determine if said verb form thereof is one which can take enclitic endings, the lemma form of the verb being obtained by replacing the matched ending with ending for the infinitive; comparing said first priority order value with a second priority order value associated with said second last occurring enclitic pronoun in said input word; if said second priority order value is greater than said first priority order value, and if said verb form of said remainder word portion can take an enclitic pronoun, outputting said lemma representing the verb form of said remainder word portion with said second last occurring enclitic pronoun removed. The method of claim 1 modified to reference a list of ambiguous words to be able to output multiple verb forms when appropriate. The method of claim 1 modified to output a list of enclitic pronouns in addition to verb forms. The method of claim 1 modified to apply morphological transformation including addition or removal of letters or accents to reconstruct the verb form without the enclitics.

Inventors: ZAMORA ANTONIO, ZAMORA, ANTONIO
Applicants: IBM, INTERNATIONAL BUSINESS MACHINES CORPORATION
Application year: 1988
Main classification: G06F17
IPC codes: G06F17