/// Spell Checker class (Main class)
/// (initially inspired by the David Spencer code).
///
Example Usage: /// ///
/// SpellChecker spellchecker = new SpellChecker(spellIndexDirectory); /// // To index a field of a user index: /// spellchecker.indexDictionary(new LuceneDictionary(my_lucene_reader, a_field)); /// // To index a file containing words: /// spellchecker.indexDictionary(new PlainTextDictionary(new File("myfile.txt"))); /// String[] suggestions = spellchecker.suggestSimilar("misspelt", 5); ////// ///
spellIndex
is the same value
/// as given in the constructor.
/// true
if and only if the {@link SpellChecker} is
/// closed, otherwise false
.
/// true
if and only if the {@link SpellChecker} is
/// closed, otherwise false
.
///