Loading java/src/com/android/inputmethod/latin/Suggest.java +5 −14 Original line number Diff line number Diff line Loading @@ -192,21 +192,12 @@ public class Suggest { } else { wordComposerForLookup = wordComposer; } if (wordComposerForLookup.size() <= 1) { // At first character typed, search only the bigrams for (final String key : mDictionaries.keySet()) { final Dictionary dictionary = mDictionaries.get(key); suggestionsSet.addAll(dictionary.getSuggestions( wordComposerForLookup, prevWordForBigram, proximityInfo)); } } else { // At second character typed, search the unigrams (scores being affected by bigrams) for (final String key : mDictionaries.keySet()) { final Dictionary dictionary = mDictionaries.get(key); suggestionsSet.addAll(dictionary.getSuggestions( wordComposerForLookup, prevWordForBigram, proximityInfo)); } } // TODO: Change this scheme - a boolean is not enough. A whitelisted word may be "valid" // but still autocorrected from - in the case the whitelist only capitalizes the word. Loading Loading
java/src/com/android/inputmethod/latin/Suggest.java +5 −14 Original line number Diff line number Diff line Loading @@ -192,21 +192,12 @@ public class Suggest { } else { wordComposerForLookup = wordComposer; } if (wordComposerForLookup.size() <= 1) { // At first character typed, search only the bigrams for (final String key : mDictionaries.keySet()) { final Dictionary dictionary = mDictionaries.get(key); suggestionsSet.addAll(dictionary.getSuggestions( wordComposerForLookup, prevWordForBigram, proximityInfo)); } } else { // At second character typed, search the unigrams (scores being affected by bigrams) for (final String key : mDictionaries.keySet()) { final Dictionary dictionary = mDictionaries.get(key); suggestionsSet.addAll(dictionary.getSuggestions( wordComposerForLookup, prevWordForBigram, proximityInfo)); } } // TODO: Change this scheme - a boolean is not enough. A whitelisted word may be "valid" // but still autocorrected from - in the case the whitelist only capitalizes the word. Loading