;============================================================================================ ;FRA-UNL DISAMBIGUATION GRAMMAR ;Documentation available at http://www.unlweb.net/wiki/English_grammar ;============================================================================================ ;TOKENIZATION OF TEMPORARY WORDS (used to control hyper-segmentation) (TEMP,^DIGIT,^W)(^BLK,^PUT,^STAIL)=0; there must be a blank, a punctuation sign or the end of the sentence after a temporary word, i.e., a temporary word cannot be followed by other word, except for digits, as in "1st" (^BLK,^PUT,^SHEAD)(TEMP,^W)=0; there must be a blank, a punctuation sign or the beginning of the sentence before a temporary word, i.e., a temporary word cannot be preceded by other word (TEMP)(PUT)(TEMP)=0; there cannot be two temporary words separated by punctuation mark ;============================================================================================ ;DETERMINERS X PRONOUNS (used to disambiguate pronouns from determiners, which come first in the dictionary) (D,^AFT)({PUT,^BLK|STAIL})=0; determiners may not come at the end of the sentence or before a punctuation mark, except if their distribution is AFT, like "enough" (D,^AFT)(BLK)({V|P|AAV})=0; determiners may not be precede verbs, prepositions or adjunct adverbs, except if their distribution is AFT ;============================================================================================ ;AUXILIARY VERBS X MAIN VERBS (have, be) (AUX)(BLK)(^V,^[pas])=0; an auxiliary verb must be followed by a verb or the word "pas" (AUX)(BLK)([pas])(BLK)(^V)=0; if followed by "pas", the auxiliary must be followed by a verb ;============================================================================================