Package net.didion.jwnl.dictionary.morph
Class DetachSuffixesOperation
java.lang.Object
net.didion.jwnl.dictionary.morph.AbstractDelegatingOperation
net.didion.jwnl.dictionary.morph.DetachSuffixesOperation
- All Implemented Interfaces:
Operation
,Createable
Remove all aplicable suffixes from the word(s) and do a look-up.
This class accepts parameters in the form of:
where suffix is the {suffix} to convert from, and {stemmed suffix} is the suffix to convert to.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
execute
(POS pos, String derivation, BaseFormSet forms) Execute the operation.protected AbstractDelegatingOperation
getInstance
(Map params) protected String[]
getKeys()
private String[][]
getSuffixArray
(String suffixes) void
setSuffixMap
(Map suffixMap) Methods inherited from class net.didion.jwnl.dictionary.morph.AbstractDelegatingOperation
addDelegate, create, delegate, hasDelegate
-
Field Details
-
OPERATIONS
- See Also:
-
_suffixMap
-
-
Constructor Details
-
DetachSuffixesOperation
public DetachSuffixesOperation() -
DetachSuffixesOperation
-
-
Method Details
-
getInstance
- Specified by:
getInstance
in classAbstractDelegatingOperation
- Throws:
JWNLException
-
getSuffixArray
- Throws:
JWNLException
-
getKeys
- Specified by:
getKeys
in classAbstractDelegatingOperation
-
getSuffixMap
-
setSuffixMap
-
execute
Description copied from interface:Operation
Execute the operation.- Parameters:
pos
-derivation
-forms
- BaseFormSet to which all discovered base forms should be added.- Returns:
- true if at least one base form was discovered by the operation and added to baseForms.
- Throws:
JWNLException
-