Lines Matching refs:suggestion
34 final SuggestedWordInfo suggestion, final String consideredWord,
36 if (null != suggestion) {
38 if (suggestion.isKindOf(SuggestedWordInfo.KIND_WHITELIST)) {
41 final int autoCorrectionSuggestionScore = suggestion.mScore;
42 // TODO: when the normalized score of the first suggestion is nearly equals to
43 // the normalized score of the second suggestion, behave less aggressive.
45 consideredWord, suggestion.mWord, autoCorrectionSuggestionScore);
47 Log.d(TAG, "Normalized " + consideredWord + "," + suggestion + ","
55 return !shouldBlockAutoCorrectionBySafetyNet(consideredWord, suggestion.mWord);
64 final String suggestion) {
76 final int distance = BinaryDictionaryUtils.editDistance(typedWord, suggestion);
83 Log.e(TAG, "Safety net: before = " + typedWord + ", after = " + suggestion);