csli.util.nlp.stem
Class AdvancedPorterStemmer

java.lang.Object
  extended by csli.util.nlp.Stemmer
      extended by csli.util.nlp.stem.AdvancedPorterStemmer
All Implemented Interfaces:
Serializable

public class AdvancedPorterStemmer
extends Stemmer

See Also:
Serialized Form

Constructor Summary
AdvancedPorterStemmer()
           
 
Method Summary
protected  boolean containsVowel(String str)
           
protected  boolean endsWithCVC(String str)
           
protected  boolean endsWithDoubleConsonent(String str)
           
protected  boolean endsWithS(String str)
           
 boolean isVowel(char c)
           
 String stem(String str)
          Stem a word string.
protected  String step1a(String str)
           
protected  String step1b(String str)
           
protected  String step1b2(String str)
           
protected  String step1c(String str)
           
protected  String step2(String str)
           
protected  String step3(String str)
           
protected  String step4(String str)
           
protected  String step5a(String str)
           
protected  String step5b(String str)
           
protected  int stringMeasure(String str)
           
 
Methods inherited from class csli.util.nlp.Stemmer
stem, stem, stemScored
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdvancedPorterStemmer

public AdvancedPorterStemmer()
Method Detail

stem

public String stem(String str)
Description copied from class: Stemmer
Stem a word string. Should return NULL on error.

Specified by:
stem in class Stemmer
Parameters:
str - the word string to stem
Returns:
the word stem (root form) as a string

step1a

protected String step1a(String str)

step1b

protected String step1b(String str)

step1b2

protected String step1b2(String str)

step1c

protected String step1c(String str)

step2

protected String step2(String str)

step3

protected String step3(String str)

step4

protected String step4(String str)

step5a

protected String step5a(String str)

step5b

protected String step5b(String str)

endsWithS

protected boolean endsWithS(String str)

containsVowel

protected boolean containsVowel(String str)

isVowel

public boolean isVowel(char c)

endsWithDoubleConsonent

protected boolean endsWithDoubleConsonent(String str)

stringMeasure

protected int stringMeasure(String str)

endsWithCVC

protected boolean endsWithCVC(String str)