Don't assume that correctable words are invalid
Currently, the Delight3DictionaryFacilitator sets a boolean flag when the top suggestion score exceeds the auto-correction threshold. This flag is used to trigger auto-correction of the typed word. Also, the existing logic assumes that if allowsToBeAutoCorrected then the word is invalid, which is no longer true after we stopped using whitelists. Bug 19518376. Change-Id: Ifa7f6a09c07d25ac68c6cf3aec91f358bd88689f
Showing
- java/src/com/android/inputmethod/latin/DictionaryFacilitatorImpl.java 2 additions, 1 deletion.../android/inputmethod/latin/DictionaryFacilitatorImpl.java
- java/src/com/android/inputmethod/latin/Suggest.java 8 additions, 6 deletionsjava/src/com/android/inputmethod/latin/Suggest.java
- java/src/com/android/inputmethod/latin/SuggestedWords.java 24 additions, 9 deletionsjava/src/com/android/inputmethod/latin/SuggestedWords.java
- java/src/com/android/inputmethod/latin/utils/SuggestionResults.java 6 additions, 9 deletions...om/android/inputmethod/latin/utils/SuggestionResults.java
- tests/src/com/android/inputmethod/latin/SuggestedWordsTests.java 32 additions, 0 deletions...rc/com/android/inputmethod/latin/SuggestedWordsTests.java
Loading
Please register or sign in to comment