Skip to content

fix(suggest): don't auto-correct a word to all caps unless typed that way - #1016

Merged
LeanBitLab merged 2 commits into
mainfrom
fix/acronym-autocaps
Nov 30, 2026
Merged

LeanBitLab merged 2 commits into
mainfrom
fix/acronym-autocaps

Conversation

@LeanBitLab

@LeanBitLab LeanBitLab commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

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. 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.

… 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.
@LeanBitLab
LeanBitLab merged commit 573cdf0 into main Nov 30, 2026
1 check passed
@LeanBitLab
LeanBitLab deleted the fix/acronym-autocaps branch November 30, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant