This is the processor for handling morphology within the SimpleNLG. The processor inflects words form the base form depending on the features applied to the word. For example, kiss is inflected to kissed for past tense, dog is inflected to dogs for pluralisation.
As a matter of course, the processor will first use any user-defined inflection for the world. If no inflection is provided then the lexicon, if it exists, will be examined for the correct inflection. Failing this a set of very basic rules will be examined to inflect the word.
All processing modules perform realisation on a tree of NLGElement
s. The modules can alter the tree in whichever way they wish. For example, the syntax processor replaces phrase elements with list elements consisting of inflected words while the morphology processor replaces inflected words with string elements.
N.B. the use of module, processing module and processor is interchangeable. They all mean an instance of this class.
@author D. Westwater, University of Aberdeen. @version 4.0
|
|