net.sf.extjwnl.dictionary
Interface MorphologicalProcessor

All Known Implementing Classes:
DefaultMorphologicalProcessor

public interface MorphologicalProcessor

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.

Author:
John Didion , Aliaksandr Autayeu

Method Summary
 List<String> lookupAllBaseForms(POS pos, String derivation)
          Return all the base forms of derivation.
 IndexWord lookupBaseForm(POS pos, String derivation)
          Try to turn derivation into a word that is found in the index file for pos.
 

Method Detail

lookupBaseForm

IndexWord lookupBaseForm(POS pos,
                         String derivation)
                         throws JWNLException
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 first 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.

Parameters:
pos - part of speech
derivation - derivation
Returns:
index word of the base form of the derivation
Throws:
JWNLException - JWNLException

lookupAllBaseForms

List<String> lookupAllBaseForms(POS pos,
                                String derivation)
                                throws JWNLException
Return all the base forms of derivation.

Parameters:
pos - part of speech
derivation - derivation
Returns:
all the base forms of derivation
Throws:
JWNLException - JWNLException


Copyright © 2011. All Rights Reserved.