Home | Trees | Indices | Help |
|
---|
|
|
|||
|
|||
|
|||
|
|||
|
|
|||
MORPHOLOGICAL_SUBSTITUTIONS =
|
|||
abbreviations =
|
|||
pos =
|
|||
token =
|
|||
tokens =
|
|
Identify the base forms for a given word-form with a given POS. First it checks if the word is found in the exception list for this POS. If so, it identifies all the exception's base forms. Next it recurses with the word-form and a list of suffix substitutions for that POS. For every (old,new) pair of strings in the substitution list, if the form ends with old, a new form is created by replacing old with new and doing a recursive call. >>> morphy('dogs') 'dog' >>> morphy('churches') 'church' >>> morphy('aardwolves') 'aardwolf' >>> morphy('abaci') 'abacus' >>> morphy('hardrock', ADVERB) |
|
MORPHOLOGICAL_SUBSTITUTIONS
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed Aug 27 15:08:51 2008 | http://epydoc.sourceforge.net |