kwic
Class WordFilter

java.lang.Object
  extended by kwic.WordFilter

public class WordFilter
extends Object

A singleton class for filtering words into their canonical form.


Method Summary
static WordFilter instance()
          Singleton pattern: return one instance, always the same, of this class.
 String makeCanonical(String temp)
          Filter the supplied String (which is the String of a Word presumably) into a canonical form for subsequent matching.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

makeCanonical

public String makeCanonical(String temp)
Filter the supplied String (which is the String of a Word presumably) into a canonical form for subsequent matching. For this default filter, do the following:


instance

public static WordFilter instance()
Singleton pattern: return one instance, always the same, of this class.