public class Stemmer
Stemmer, implementing the Porter Stemming Algorithm
The Stemmer class transforms a word into its root form. The input
word can be provided a character at time (by calling add()), or at once
by calling one of the various stem(something) methods.
Methods inherited from interface java.util.function.Function
andThen, compose, identity
public java.lang.String toString()
After a word has been stemmed, it can be retrieved by toString(),
or a reference to the internal buffer can be retrieved by getResultBuffer
and getResultLength (which is generally more efficient.)
toString in class java.lang.Object
public static void main(java.lang.String args)
Test program for demonstrating the Stemmer. It reads text from a
a list of files, stems each word, and writes the result to standard
output. Note that the word stemmed is expected to be in lower case:
forcing lower case must be done outside the Stemmer class.
Usage: Stemmer file-name file-name ...