org.incava.text

Class NoCaseSpellChecker


public class NoCaseSpellChecker
extends SpellChecker

Calculates the edit distance between two strings.

Field Summary

Fields inherited from class org.incava.text.SpellChecker

ARR_SIZE, COMP_LEN, DEFAULT_MAX_DISTANCE

Method Summary

void
addWord(String word)
int
compare(String str1, int len1, String str2, int len2)
boolean
hasWord(String word)

Methods inherited from class org.incava.text.SpellChecker

addDictionary, addWord, compare, editDistance, editDistance, getKey, hasWord, isCorrect, isCorrect, min3, nearMatch

Method Details

addWord

public void addWord(String word)
Overrides:
addWord in interface SpellChecker

compare

public int compare(String str1,
                   int len1,
                   String str2,
                   int len2)
Overrides:
compare in interface SpellChecker

hasWord

public boolean hasWord(String word)
Overrides:
hasWord in interface SpellChecker