org.cdlib.xtf.textEngine
Class XtfWordEquiv
Object
XtfWordEquiv
- All Implemented Interfaces:
- WordEquiv
public class XtfWordEquiv
- extends Object
- implements WordEquiv
Used for eliminating redundant spelling suggestions
Method Summary |
private String |
filter(String in)
|
boolean |
isEquivalent(String word1,
String word2)
Checks if two words can be considered equivalent, and thus not form a
real spelling suggestion. |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
accentMap
private CharMap accentMap
pluralMap
private WordMap pluralMap
stdTermFilter
private StdTermFilter stdTermFilter
recent
private FastStringCache recent
XtfWordEquiv
public XtfWordEquiv(CharMap accentMap,
WordMap pluralMap)
isEquivalent
public boolean isEquivalent(String word1,
String word2)
- Checks if two words can be considered equivalent, and thus not form a
real spelling suggestion.
- Specified by:
isEquivalent
in interface WordEquiv
filter
private String filter(String in)