Skip to content

fix(suggest): keep the dictionary's "I" for a typed "i" (#961) - #964

Merged
LeanBitLab merged 1 commit into
mainfrom
fix/i-whitelist-capitalization
Nov 27, 2026
Merged

LeanBitLab merged 1 commit into
mainfrom
fix/i-whitelist-capitalization

Conversation

@LeanBitLab

Copy link
Copy Markdown
Owner

Fixes #961

Cause

Suggest.removeTitleCaseVariants (#914, in v4.3.7) drops title case candidates whose lowercase form is the typed word or another candidate, so "Of" does not replace a typed "of". It also dropped "I", the dictionary's whitelist correction (KIND_WHITELIST) for "i", whenever lowercase "i" counted as valid or was a candidate (for example after being learned once). Auto-correct then had nothing to correct "i" to.

Fix

Whitelist candidates are kept: they are corrections the dictionary explicitly asks for. Normal title case duplicates ("Of", "If") are still dropped.

Testing

  • New SuggestTest case for "i" with "I" (whitelist) and a lowercase "i" candidate; SuggestTest 33, 0 failures. assembleStandardDebug builds.
  • Waydroid, English, auto-correct on: typing "so i think" left "i" lowercase on current main (twice); with this change it becomes "so I think".

Since v4.3.7 title case candidates are dropped when their lowercase form
is the typed word or another candidate (#914), so "Of" does not replace
"of". That also dropped "I", the dictionary's whitelist correction for
"i", whenever lowercase "i" counted as valid or was a candidate (e.g.
learned once), so auto-correct left "i" lowercase. Whitelist candidates
are corrections the dictionary asks for and are kept now.

Reproduced on Waydroid with the English dictionary and auto-correct on:
"so i think" stayed lowercase before, and becomes "so I think" now.
@LeanBitLab
LeanBitLab merged commit 1c83186 into main Nov 27, 2026
1 check passed
@LeanBitLab
LeanBitLab deleted the fix/i-whitelist-capitalization branch November 27, 2026 14:31
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.

[Bug]: pronoun "i" no longer auto capitalizes to ”I"

1 participant