public class FileBasedSpellingDictionary extends HashMapSpellingDictionary
metaphoneDictionary
Constructor and Description |
---|
FileBasedSpellingDictionary(java.lang.String dictionaryFileName)
Constructs a new FileBasedSpellingDictionary.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addWord(java.lang.String word)
Updates the dictionary.
|
addWords, clear, getAllWords, getNumberOfWords, getRelatedWords, lookupWord, read, wordCount, write
public FileBasedSpellingDictionary(java.lang.String dictionaryFileName) throws java.io.IOException
dictionaryFileName
- The dictionary file name.java.io.IOException
public boolean addWord(java.lang.String word)
addWord
in interface SpellingDictionary
addWord
in class HashMapSpellingDictionary
word
- The word to add to the dictionary.