Home
last modified time | relevance | path

Searched refs:isValidWord (Results 1 – 11 of 11) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryDecayingTests.java228 assertFalse(binaryDictionary.isValidWord("a")); in testAddValidAndInvalidWords()
231 assertTrue(binaryDictionary.isValidWord("a")); in testAddValidAndInvalidWords()
234 assertTrue(binaryDictionary.isValidWord("b")); in testAddValidAndInvalidWords()
273 assertTrue(binaryDictionary.isValidWord("a")); in testDecayingProbability()
275 assertFalse(binaryDictionary.isValidWord("a")); in testDecayingProbability()
280 assertTrue(binaryDictionary.isValidWord("a")); in testDecayingProbability()
282 assertTrue(binaryDictionary.isValidWord("a")); in testDecayingProbability()
284 assertFalse(binaryDictionary.isValidWord("a")); in testDecayingProbability()
408 assertTrue(binaryDictionary.isValidWord(strong)); in testOverflowUnigrams()
409 assertTrue(binaryDictionary.isValidWord(weak)); in testOverflowUnigrams()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DLanguageModelParam.java134 if (dictionaryFacilitator.isValidWord(targetWord, false /* ignoreCase */)) { in detectWhetherVaildWordOrNotAndGetLanguageModelParam()
140 if (dictionaryFacilitator.isValidWord(lowerCaseTargetWord, false /* ignoreCase */)) { in detectWhetherVaildWordOrNotAndGetLanguageModelParam()
153 final boolean isValidWord, final Locale locale, in createAndGetLanguageModelParamOfWord() argument
157 && !prevWordsInfo.isValid() && !isValidWord) { in createAndGetLanguageModelParamOfWord()
169 final int unigramProbability = isValidWord ? in createAndGetLanguageModelParamOfWord()
174 + (isValidWord ? "Valid" : "OOV") + ") = " + word); in createAndGetLanguageModelParamOfWord()
180 + (isValidWord ? "Valid" : "OOV") + ") = " + word); in createAndGetLanguageModelParamOfWord()
182 final int bigramProbability = isValidWord ? in createAndGetLanguageModelParamOfWord()
DDistracterFilterCheckingExactMatchesAndSuggestions.java201 final boolean isValidWord = mDictionaryFacilitator.isValidWord(testedWord, in isDistracterToWordsInDictionaries()
203 if (isValidWord) { in isDistracterToWordsInDictionaries()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidWordLevelSpellCheckerSession.java197 if (mService.isValidWord(mLocale, text)) return true; in isInDictForAnyCapitalization()
204 if (mService.isValidWord(mLocale, lowerCaseText)) return true; in isInDictForAnyCapitalization()
210 return mService.isValidWord(mLocale, in isInDictForAnyCapitalization()
245 if (!mService.isValidWord(mLocale, word)) { in onGetSuggestionsInternal()
257 return mService.isValidWord(mLocale, inText) ? in onGetSuggestionsInternal()
DAndroidSpellCheckerService.java221 public boolean isValidWord(final Locale locale, final String word) { in isValidWord() method in AndroidSpellCheckerService
226 return dictionaryFacilitatorForLocale.isValidWord(word, false /* igroreCase */); in isValidWord()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DDictionaryFacilitator.java438 if (isValidWord(word, false /* ignoreCase */) in addWordToUserHistory()
439 && !isValidWord(lowerCasedWord, false /* ignoreCase */)) { in addWordToUserHistory()
513 public boolean isValidWord(final String word, final boolean ignoreCase) { in isValidWord() method in DictionaryFacilitator
528 if (dictionary.isValidWord(word) in isValidWord()
529 || (ignoreCase && dictionary.isValidWord(lowerCasedWord))) { in isValidWord()
DDictionary.java94 public boolean isValidWord(final String word) { in isValidWord() method in Dictionary
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/
Dsuggestions_output_utils.cpp108 const bool isValidWord = !terminalDicNode->isBlacklistedOrNotAWord(); in outputSuggestionsOfDicNode() local
125 if (isValidWord && !isBlockedOffensiveWord) { in outputSuggestionsOfDicNode()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
DContextualDictionary.java46 public boolean isValidWord(final String word) { in isValidWord() method in ContextualDictionary
DDecayingExpandableBinaryDictionaryBase.java85 public boolean isValidWord(final String word) { in isValidWord() method in DecayingExpandableBinaryDictionaryBase
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/
DInputLogic.java272 && !mDictionaryFacilitator.isValidWord(suggestionInfo.mWord, true /* ignoreCase */) in shouldShowAddToDictionaryHint()
2282 return !mDictionaryFacilitator.isValidWord(lastComposedWord.mTypedWord, in shouldShowAddToDictionaryForTypedWord()