Raccoon.SE
Class PorterStemmer

java.lang.Object
  extended byRaccoon.SE.PorterStemmer

public class PorterStemmer
extends java.lang.Object

This only method on in this class that is intended to be called is static so this class does not need to be instaniated. Use it by calling
PorterStemmer.stem("funny"); *************************************************************** PorterStemmer.java Programmer: John Keyes (keyeg@ils.unc.edu) Last Modified: January 3, 1998 This class implements the PORTER stemming algorithm, which is fully described in "An algorithm for suffix stripping", M.F. Porter (1980), _Program_, Vol. 14, No. 3, pp. 130-137


Constructor Summary
PorterStemmer()
           
 
Method Summary
static boolean isVowel(char c)
           
static void main(java.lang.String[] args)
          For testing only.
static java.lang.String stem(java.lang.String str)
          Returns the stemed version of str
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PorterStemmer

public PorterStemmer()
Method Detail

stem

public static final java.lang.String stem(java.lang.String str)
Returns the stemed version of str

Parameters:
str - - word to stem
Returns:
If the word can not be stemmed or there is some sort of error str is returned.

isVowel

public static final boolean isVowel(char c)

main

public static void main(java.lang.String[] args)
For testing only.