morfologik.stemmers
Interface IStemmer

All Known Implementing Classes:
CascadedStemmer, DictionaryStemmer, Lametyzator, Stempel, Stempelator

public interface IStemmer

A generic stemmer interface in Morfologik.

See Also:
Lametyzator, Stempel, Stempelator

Method Summary
 java.lang.String[] stem(java.lang.String word)
          Returns an array of potential base forms (stems) of the word, or null if the word is not found in the dictionary.
 java.lang.String[] stemAndForm(java.lang.String word)
          Returns an array of pairs of the form: String stem1, String form1, String stem2, String stem2, ...
 

Method Detail

stem

java.lang.String[] stem(java.lang.String word)
Returns an array of potential base forms (stems) of the word, or null if the word is not found in the dictionary.


stemAndForm

java.lang.String[] stemAndForm(java.lang.String word)

Returns an array of pairs of the form:

 String stem1, String form1, String stem2, String stem2, ...
 
or null if the word is not found in the dictionary.

The form tag is a simple string and depends on what was saved in the automaton (it may be nonsensical or even null).