Package net.didion.jwnl.dictionary
Interface MorphologicalProcessor
- All Superinterfaces:
Createable
- All Known Implementing Classes:
DefaultMorphologicalProcessor
A
MorphologicalProcessor
tries to turn the inflected form of a word or phrase into
the form that can be found in WordNet. For example, if one calls
lookupBaseForm(POS.VERB, "running"), the index word for "run" should be returned.-
Method Summary
Modifier and TypeMethodDescriptionlookupAllBaseForms
(POS pos, String derivation) Return all the base forms of derivationlookupBaseForm
(POS pos, String derivation) Try to turn derivation into a word that is found in the index file for pos.Methods inherited from interface net.didion.jwnl.util.factory.Createable
create
-
Method Details
-
lookupBaseForm
Try to turn derivation into a word that is found in the index file for pos. If there is more than one possible base form, then the frist call to this method should return the first base form found. The return value for subsequent calls is undefined (it could be the same base form, or the next base form - it is up to the implementer to decide, but the decision should be noted.- Throws:
JWNLException
-
lookupAllBaseForms
Return all the base forms of derivation- Throws:
JWNLException
-