I’m new to JOrtho (Java Orthography Checker) project, wanna ask u how to use SpellChecker in the right way ? :
- for example, how to add User dictionary ?
- how to set new dictionaries ?
- if i use Tokenizer, what to sent to itws constructor ?
I used this code: (is it ok ) ? :
SpellChecker.setUserDictionaryProvider( new FileUserDictionary());
SpellChecker.registerDictionaries( null, null);
Tokenizer tok = new Tokenizer(SpellChecker.getCurrentDictionary(), SpellChecker.getCurrentLocale(),
SpellChecker.getOptions());
This worked for me;