org.jasen.core.token
Class StopWordList

java.lang.Object
  extended byorg.jasen.core.token.StopWordList

public final class StopWordList
extends Object

Maintains a hard-coded list of English stopwords.

Author:
Jason Polites

Field Summary
static String[] STOP_WORDS
           
 
Method Summary
static boolean isStopWord(String str)
          Determines if the given word is a recognizable stop word
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STOP_WORDS

public static final String[] STOP_WORDS
Method Detail

isStopWord

public static final boolean isStopWord(String str)
Determines if the given word is a recognizable stop word

Parameters:
str - The string to test. It is converted to lower case in this method to perform the test
Returns:
True if the word is a stop word, false otherwise