/** * Adds a word to the user dictionary * @param word The text of the word to add * @return Whether the word was successfully added */ public boolean addToDictionary(String word) { if (!userdictionary.isCorrect(word)) { return userdictionary.addWord(word); } return false; }
if (!addWord.equals(word)) tokenizer.replaceWord(addWord); userdictionary.addWord(addWord); break; case SpellCheckEvent.CANCEL: