Dictionary in Jazzy
I. Introduction
Jazzy is the Java implementation of ASpell. The dictionary of Jazzy includes general English and was tested in CSpell. It is briefly described below.
II. Format
word (lowercased unigrams)
|
---|
III. Algorithm
- Uses Jazzy SpellDictionary and SpellDictionaryHashMap
- Jazzy converts all words to Metaphone codes and use the code as key, all words with same code are stored as values
- To find a word in the dictionary:
- convert word to code
- use code as key to find values (all words with same Metaphone code)
- find the word from values
- Use code as key allows find all possible words with matching phonetic code
- Allows adding words from a file