Package morfologik.stemming
Interface IStemmer
- All Known Implementing Classes:
DictionaryLookup
,PolishStemmer
public interface IStemmer
A generic "stemmer" interface in Morfologik.
-
Method Summary
Modifier and TypeMethodDescriptionlookup
(CharSequence word) Returns a list ofWordData
entries for a given word.
-
Method Details
-
lookup
Returns a list ofWordData
entries for a given word. The returned list is nevernull
. Depending on the stemmer's implementation theWordData
may carry the stem and additional information (tag) or just the stem.The returned list and any object it contains are not usable after a subsequent call to this method. Any data that should be stored in between must be copied by the caller.
- Parameters:
word
- The word (typically inflected) to look up base forms for.- Returns:
- A list of
WordData
entries (possibly empty).
-