public class PorterStemmer extends java.lang.Object implements Stemmer
Note that this class is NOT multi-thread safe.
The code is based on http://www.tartarus.org/~martin/PorterStemmer
| Constructor and Description |
|---|
PorterStemmer()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
stem(java.lang.String word)
Transforms a word into its root form.
|
java.lang.String |
stripPluralParticiple(java.lang.String word)
Remove plurals and participles.
|
public java.lang.String stem(java.lang.String word)
Stemmerpublic java.lang.String stripPluralParticiple(java.lang.String word)