Searched refs:word (Results 1 - 25 of 70) sorted by relevance

123

/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DWnnEngine.java57 * @param minLen The minimum length of a word to predict (0 : no limit)
58 * @param maxLen The maximum length of a word to predict (-1 : no limit)
89 * @param word A word to search
92 public int searchWords(WnnWord word); argument
111 * @return {@code null} if no word is registered; the array of {@link WnnWord} if some words is registered.
116 * Learn a word.
118 * This method is used to register the word selected from
120 * of the word.
122 * @param word Th
125 learn(WnnWord word) argument
133 addWord(WnnWord word) argument
141 deleteWord(WnnWord word) argument
[all...]
H A DCandidateFilter.java36 * Checking whether a specified word is filtered.
38 * @param word A word
39 * @return {@code true} if the word is allowed; {@code false} if the word is denied.
41 public boolean isAllowed(WnnWord word) { argument
46 String str = word.candidate;
H A DWnnDictionary.java138 * Searched word's frequency in the dictionary is mapped to the range from {@code base} to {@code high}.
191 * To get the searched word's information, use {@link #getNextWord()}.<br>
192 * If a same word existed in the set of dictionary, the search result may contain some same words.<br>
194 * If approximate patterns were set, the first word in search
195 * results is the highest approximation word which contains best
224 * @return 0 if no word is found; 1 if some words found; minus value if a error occurs.
229 * Search words from dictionaries with specified conditions and previous word.
231 * For using link search function, specify the {@code wnnWord} as previous word and
235 * If the prediction dictionary for reading is set to use, the previous word must contain
237 * for part of speech is set to use, the previous word mus
358 learnWord( WnnWord word, WnnWord previousWord ) argument
[all...]
H A DOpenWnnEvent.java176 * Get a word from the user dictionary.
178 * Get a word from top of the list made by {@code LIST_WORDS_IN_USER_DICTIONARY}.
183 * Add word to the user dictionary.
188 * Delete a word from the dictionary.
242 public WnnWord word = null; field in class:OpenWnnEvent
334 * @param word The selected candidate
336 public OpenWnnEvent(int code, WnnWord word) { argument
338 this.word = word;
346 * @param word Th
348 OpenWnnEvent(int code, int dict, WnnWord word) argument
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/
H A DOpenWnnEngineEN.java35 /** Score(frequency value) of word in the learning dictionary */
37 /** Score(frequency value) of word in the user dictionary */
46 /** HashMap for checking duplicate word */
108 WnnWord word;
111 while ((word = mDictionary.getNextWord()) != null) {
113 char c = word.candidate.charAt(0);
120 word.candidate = Character.toString(Character.toUpperCase(c)) + word.candidate.substring(1);
124 word.candidate = word
162 addCandidate(WnnWord word) argument
295 searchWords(WnnWord word) argument
313 learn(WnnWord word) argument
318 addWord(WnnWord word) argument
327 deleteWord(WnnWord word) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DDictionary.java27 * Whether or not to replicate the typed word in the suggested list, even if it's valid.
32 * The weight to give to a word if it's length is the same as the number of typed characters.
46 * Adds a word to a list of suggestions. The word is expected to be ordered based on
48 * @param word the character array containing the word
49 * @param wordOffset starting offset of the word in the character array
53 * @param dicTypeId of the dictionary where word was from
55 * @return true if the word was added, false if no more words are required
57 boolean addWord(char[] word, in argument
89 isValidWord(CharSequence word) argument
99 same(final char[] word, final int length, final CharSequence typedWord) argument
[all...]
H A DSynchronouslyLoadedContactsDictionary.java39 public synchronized boolean isValidWord(CharSequence word) { argument
41 return getWordFrequency(word) > -1;
H A DSynchronouslyLoadedUserDictionary.java42 public synchronized boolean isValidWord(CharSequence word) { argument
44 return getWordFrequency(word) > -1;
H A DUserUnigramDictionary.java41 // Weight added to a user picking a new word from the suggestion strip
43 // Weight added to a user typing a new word that doesn't get corrected (or is reverted)
45 // If the user touches a typed word 2 times or more, it will become valid.
63 private static final String COLUMN_WORD = "word";
103 public synchronized boolean isValidWord(CharSequence word) { argument
105 final int frequency = getWordFrequency(word);
130 String word = cursor.getString(wordIndex);
134 if (word.length() < getMaxWordLength()) {
135 super.addWord(word, frequency);
148 String word
254 getContentValues(String word, int frequency, String locale) argument
[all...]
H A DSuggestionsView.java69 public boolean addWordToDictionary(String word); argument
70 public void pickSuggestionManually(int index, CharSequence word); argument
183 final TextView word = words.get(0);
185 mPadding = word.getCompoundPaddingLeft() + word.getCompoundPaddingRight();
190 final Resources res = word.getResources();
262 final CharSequence word = suggestions.getWord(pos);
266 return word;
268 final int len = word.length();
269 final Spannable spannedWord = new SpannableString(word);
447 layoutAddToDictionaryHint(CharSequence word, ViewGroup stripView, int stripWidth) argument
650 showAddToDictionaryHint(CharSequence word) argument
678 showPreview(View view, CharSequence word) argument
701 addToDictionary(CharSequence word) argument
[all...]
H A DWhitelistDictionary.java67 Log.d(TAG, "The score of the word is invalid.");
85 // lists that word a should autocorrect to word b, and word c would autocorrect to
93 public boolean shouldForciblyAutoCorrectFrom(CharSequence word) { argument
94 if (TextUtils.isEmpty(word)) return false;
95 final String correction = getWhitelistedWord(word.toString());
97 return !correction.equals(word);
H A DAutoCorrection.java69 Map<String, Dictionary> dictionaries, CharSequence word, boolean ignoreCase) {
70 if (TextUtils.isEmpty(word)) {
73 final CharSequence lowerCasedWord = word.toString().toLowerCase();
77 if (dictionary.isValidWord(word)
86 Map<String, Dictionary> dictionaries, CharSequence word, boolean ignoreCase) {
89 // If "word" is in the whitelist dictionary, it should not be auto corrected.
91 && whitelistDictionary.shouldForciblyAutoCorrectFrom(word)) {
94 return !isValidWord(dictionaries, word, ignoreCase);
68 isValidWord( Map<String, Dictionary> dictionaries, CharSequence word, boolean ignoreCase) argument
85 allowsToBeAutoCorrected( Map<String, Dictionary> dictionaries, CharSequence word, boolean ignoreCase) argument
H A DSuggestedWords.java112 public Builder addWord(CharSequence word) { argument
113 return addWord(word, null, false);
116 public Builder addWord(CharSequence word, CharSequence debugString, argument
119 return addWord(word, info);
122 private Builder addWord(CharSequence word, SuggestedWordInfo suggestedWordInfo) { argument
123 if (!TextUtils.isEmpty(word)) {
124 mWords.add(word);
H A DUserDictionary.java152 * Adds a word to the dictionary and makes it persistent.
153 * @param word the word to add. If the word is capitalized, then the dictionary will
154 * recognize it as a capitalized word when searched.
155 * @param frequency the frequency of occurrence of the word. A frequency of 255 is considered
160 public synchronized void addWord(final String word, final int frequency) { argument
164 if (word.length() >= getMaxWordLength()) return;
166 super.addWord(word, frequency);
170 values.put(Words.WORD, word);
223 isValidWord(CharSequence word) argument
[all...]
/packages/inputmethods/LatinIME/native/src/
H A Dbigram_dictionary.h27 int getBigrams(unsigned short *word, int length, int *codes, int codesSize,
32 bool addWordBigram(unsigned short *word, int length, int frequency);
38 bool checkFirstCharacter(unsigned short *word);
H A Dbigram_dictionary.cpp43 bool BigramDictionary::addWordBigram(unsigned short *word, int length, int frequency) { argument
44 word[length] = 0;
48 for (int i = 0; i <= length; i++) s[i] = word[i];
49 LOGI("Bigram: Found word = %s, freq = %d :", s, frequency);
75 *dest++ = *word++;
79 LOGI("Bigram: Added word at %d", insertAt);
87 * prevWord: the word before, the one for which we need to look up bigrams.
93 * maxWordLength: the maximum size of a word.
96 * This method returns the number of bigrams this word has, for backward compatibility.
98 * bigrams this word ha
146 checkFirstCharacter(unsigned short *word) argument
[all...]
H A Ddictionary.cpp36 LOGI("Max word length (%d) is greater than %d",
56 bool Dictionary::isValidWord(unsigned short *word, int length) { argument
57 return mUnigramDictionary->isValidWord(word, length);
/packages/apps/Music/src/com/android/music/
H A DMusicAlphabetIndexer.java35 protected int compare(String word, String letter) { argument
36 String wordKey = MediaStore.Audio.keyFor(word);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
H A DSuggestHelper.java68 private void addKeyInfo(WordComposer word, char c) { argument
75 word.add(c, codes, x, y);
79 word.add(c, new int[] { c }, WordComposer.NOT_A_COORDINATE, WordComposer.NOT_A_COORDINATE);
83 WordComposer word = new WordComposer();
86 addKeyInfo(word, c);
88 return word;
103 WordComposer word = createWordComposer(typed);
104 SuggestedWords suggestions = mSuggest.getSuggestions(word, null,
106 // Note that suggestions.getWord(0) is the word user typed.
111 WordComposer word
[all...]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
H A DOpenWnnEngineJAJP.java72 /** Score(frequency value) of word in the learning dictionary */
74 /** Score(frequency value) of word in the user dictionary */
88 /** HashMap for checking duplicate word */
106 /** Previously selected word */
198 WnnWord word;
211 if ((word = mDictionaryJP.getNextWord()) == null) {
215 if (!mExactMatchMode || mInputHiragana.equals(word.stroke)) {
216 addCandidate(word);
263 * This method adds a word to the result buffer if there is not
267 * @param word
270 addCandidate(WnnWord word) argument
472 searchWords(WnnWord word) argument
490 learn(WnnWord word) argument
525 addWord(WnnWord word) argument
536 deleteWord(WnnWord word) argument
[all...]
/packages/inputmethods/LatinIME/tools/makedict/src/com/android/inputmethod/latin/
H A DFusionDictionary.java64 public WeightedString(String word, int frequency) { argument
65 mWord = word;
150 static private int[] getCodePoints(String word) { argument
151 final int wordLength = word.length();
152 int[] array = new int[word.codePointCount(0, wordLength)];
154 array[i] = word.codePointAt(i);
160 * Helper method to add a word as a string.
162 * This method adds a word to the dictionary with the given frequency. Optional
163 * lists of bigrams and shortcuts can be passed here. For each word inside,
166 * @param word th
170 add(String word, int frequency, ArrayList<WeightedString> bigrams) argument
210 add(int[] word, int frequency, ArrayList<WeightedString> bigrams) argument
[all...]
H A DWord.java24 * Utility class for a word with a frequency.
33 public Word(String word, int frequency, ArrayList<WeightedString> bigrams) { argument
34 mWord = word;
42 * A Word x is greater than a word y if x has a higher frequency. If they have the same
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/include/
H A Dnj_ext.h83 extern NJ_INT16 njd_get_word_data(NJ_CLASS *iwnn, NJ_DIC_SET *dicset, NJ_SEARCH_LOCATION_SET *loctset, NJ_UINT16 dic_idx, NJ_WORD *word);
89 extern NJ_INT16 njd_init_word(NJ_WORD* word);
93 extern NJ_INT16 njd_b_get_word(NJ_SEARCH_LOCATION_SET *loctset, NJ_WORD *word);
94 extern NJ_INT16 njd_b_get_candidate(NJ_WORD *word, NJ_CHAR *candidate,
96 extern NJ_INT16 njd_b_get_stroke(NJ_WORD *word, NJ_CHAR *stroke, NJ_UINT16 size);
100 extern NJ_INT16 njd_f_get_word(NJ_SEARCH_LOCATION_SET *loctset, NJ_WORD *word);
101 extern NJ_INT16 njd_f_get_stroke(NJ_WORD *word, NJ_CHAR *stroke,
103 extern NJ_INT16 njd_f_get_candidate(NJ_WORD *word, NJ_CHAR *candidate,
108 extern NJ_INT16 njd_l_add_word(NJ_CLASS *iwnn, NJ_LEARN_WORD_INFO *word,
113 extern NJ_INT16 njd_l_get_word(NJ_CLASS *iwnn, NJ_SEARCH_LOCATION_SET *loctset, NJ_WORD *word);
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DInputConnectionCompatUtils.java73 public static void underlineWord(InputConnection ic, SelectedWord word) { argument
76 // the word.
78 ic, null, METHOD_setComposingRegion, word.mStart, word.mEnd);
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
H A Dndapi.c204 result->word = tmp_word;
205 tmp_result.word = tmp_word;
226 tmp_result.word.yomi = cursor->cond.yomi;
227 tmp_result.word.stem.info1 = cursor->cond.ylen;
241 ret = njd_get_word_data(iwnn, cursor->cond.ds, loctset, (NJ_UINT16)i, &tmp_result.word);
283 ret = njd_get_word_data(iwnn, cursor->cond.ds, loctset, (NJ_UINT16)i, &tmp_result.word);
291 ((j == max_len) && (loctset->cache_freq > result->word.stem.hindo)) ||
296 result->word = tmp_result.word;
304 ret = njd_get_word_data(iwnn, cursor->cond.ds, loctset, (NJ_UINT16)i, &(tmp_result.word));
372 njd_get_word_data(NJ_CLASS *iwnn, NJ_DIC_SET *dicset, NJ_SEARCH_LOCATION_SET *loctset, NJ_UINT16 dic_idx, NJ_WORD *word) argument
885 njd_init_word(NJ_WORD* word) argument
[all...]

Completed in 339 milliseconds

123