Repository navigation
fix(suggest): don't auto-correct a word to all caps unless typed that way - #1016
Merged
Merged
Conversation
… way If the dictionary only knows the all caps form (btw, imo, usa, tv, dna, ok in English), a word typed in lower case or with only the first letter capitalized was replaced by it. It now stays and the all caps word remains a suggestion. Dictionary whitelist entries and exact shortcuts are still applied, as is a single capital like I.
Swiped words skip auto-correction, so the all caps form was still committed. The word without all caps is now put in front, and the all caps word stays as the next suggestion. Words added to the personal dictionary keep their capitals, also when typing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If the dictionary only knows the all caps form (
btw,imo,usa,tv,dna,okin English), a word typed in lower case or with only the first letter capitalized was replaced by it. Swiping committed it too. It now stays as typed (swiped words come out without all caps), and the all caps word remains a suggestion.Unchanged: dictionary whitelist entries, exact shortcuts, words added to the personal dictionary, a single capital like
I, capitalizing only the first letter (names, German nouns), and caps lock.Verified: SuggestTest, ShortWordGuardTest and InputLogicTest, standard debug build, typing and swiping checked on device.