Lines Matching refs:word

72     /** Score(frequency value) of word in the learning dictionary */
74 /** Score(frequency value) of word in the user dictionary */
91 /** HashMap for checking duplicate word */
109 /** Previously selected word */
201 WnnWord word;
214 if ((word = mDictionaryJP.getNextWord()) == null) {
218 if (!mExactMatchMode || mInputHiragana.equals(word.stroke)) {
219 addCandidate(word);
266 * This method adds a word to the result buffer if there is not
270 * @param word A word to be add
271 * @return {@code true} if the word added; {@code false} if not.
273 private boolean addCandidate(WnnWord word) {
274 if (word.candidate == null || mCandTable.containsKey(word.candidate)
275 || word.candidate.length() > MAX_OUTPUT_LENGTH) {
278 if (mFilter != null && !mFilter.isAllowed(word)) {
281 mCandTable.put(word.candidate, word);
282 mConvResult.add(word);
339 * Clear the previous word's information.
392 /* search by previously selected word */
475 public int searchWords(WnnWord word) {
485 WnnWord word = getCandidate(mOutputNum);
486 if (word != null) {
489 return word;
493 public boolean learn(WnnWord word) {
495 if (word.partOfSpeech.right == 0) {
496 word.partOfSpeech = mDictionaryJP.getPOS(WnnDictionary.POS_TYPE_MEISI);
500 if (word instanceof WnnSentence) {
501 Iterator<WnnClause> clauses = ((WnnSentence)word).elements.iterator();
516 ret = dict.learnWord(word, mPreviousWord);
518 ret = dict.learnWord(word);
520 mPreviousWord = word;
528 public int addWord(WnnWord word) {
530 if (word.partOfSpeech.right == 0) {
531 word.partOfSpeech = mDictionaryJP.getPOS(WnnDictionary.POS_TYPE_MEISI);
533 mDictionaryJP.addWordToUserDictionary(word);
539 public boolean deleteWord(WnnWord word) {
541 mDictionaryJP.removeWordFromUserDictionary(word);