public class DictionarySet
extends java.lang.Object
DictionarySet provides the spell checking functionality in
mdsc. The dictionaries used are created from lists of words using the
DictionaryManager class. A DictionarySet is then obtained from
the manager and used to spell check.| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<Dictionary> |
getDictionaryList()
Recovers a list of the dictionaries in this set.
|
java.util.List<Result> |
spellCheck(java.lang.String word)
Checks the spelling of a single word in multiple dictionaries and reports
whether the word has been identified, and in which dictionary, and
offers suggested alternative spellings for incorrectly spelt words.
|
public java.util.List<Result> spellCheck(java.lang.String word)
word - a word to be spell checked by the dictionariesResults giving the result of the check
for each dictionaryprotected java.util.List<Dictionary> getDictionaryList()