pt.tumba.parser
Class StopWords

java.lang.Object
  extended by pt.tumba.parser.StopWords

public class StopWords
extends java.lang.Object

Author:
bmartins

Field Summary
private static StopWords _theInstance
           
private static java.util.Hashtable indexStopwordDictionary
          the hastable that stores the dictionary of stopwords
private static java.lang.String[] indexStopwords
          a list of stopwords for portuguese, spanish, english, german and french
private static java.util.Hashtable internetStopwordDictionary
          the hastable that stores the dictionary of internet specific stopwords
private static java.lang.String[] internetStopwords
          a list of internet specific stopwords
private static java.util.Hashtable stopwordDictionary
          the hastable that stores the dictionary of stopwords
private static java.lang.String[] stopwords
          a list of stopwords for portuguese, spanish, english, german and french
 
Constructor Summary
private StopWords()
           
 
Method Summary
static StopWords getInstance()
           
static boolean isIndexStopWord(java.lang.String t)
          checks if a given term is a stopword
static boolean isInternetStopWord(java.lang.String t)
          checks if a given term is an internet specific stopword
static boolean isStopWord(java.lang.String t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

internetStopwords

private static java.lang.String[] internetStopwords
a list of internet specific stopwords


indexStopwordDictionary

private static java.util.Hashtable indexStopwordDictionary
the hastable that stores the dictionary of stopwords


indexStopwords

private static java.lang.String[] indexStopwords
a list of stopwords for portuguese, spanish, english, german and french


stopwordDictionary

private static java.util.Hashtable stopwordDictionary
the hastable that stores the dictionary of stopwords


stopwords

private static java.lang.String[] stopwords
a list of stopwords for portuguese, spanish, english, german and french


internetStopwordDictionary

private static java.util.Hashtable internetStopwordDictionary
the hastable that stores the dictionary of internet specific stopwords


_theInstance

private static final StopWords _theInstance
Constructor Detail

StopWords

private StopWords()
Method Detail

getInstance

public static StopWords getInstance()

isInternetStopWord

public static boolean isInternetStopWord(java.lang.String t)
checks if a given term is an internet specific stopword

Parameters:
term - a string with the term to be checked
Returns:
true if the term in the string is an internet specific stopword and false otherwhise

isStopWord

public static boolean isStopWord(java.lang.String t)

isIndexStopWord

public static boolean isIndexStopWord(java.lang.String t)
checks if a given term is a stopword

Parameters:
term - a string with the term to be checked
Returns:
true if the term in the string is a stopword and false otherwhise