Skip to content

fix(suggest): drop title case variants of swiped words mid-sentence - #923

Merged
LeanBitLab merged 1 commit into
mainfrom
fix/swipe-title-case-suggestions
Nov 25, 2026
Merged

LeanBitLab merged 1 commit into
mainfrom
fix/swipe-title-case-suggestions

Conversation

@LeanBitLab

Copy link
Copy Markdown
Owner

Changes

The title case filter added in #914 (removeTitleCaseVariants) only ran in the typing path. Swiped words go through getSuggestedWordsForBatchInput, which never applied it, so a word swiped mid-sentence without shift could still come out as "Well", "So" or "Of" (reported on r/LeanBitLab_). The batch path now applies the same filter when the keyboard is not shifted and the word was not auto-capitalized.

Follow-up to #914; other sources of capitalized suggestions are still being collected via the debug suggestion info.

Verification

  • ./gradlew :app:testStandardDebugUnitTest --tests "helium314.keyboard.latin.SuggestTest": 26/26 pass.
  • Debug APK built and installed on a device for manual testing.

…914)

The title case filter from #914 only ran for typed input, so a word swiped without shift could still be committed as "Well" or "So" mid-sentence. Apply the same filter in the batch input path when the keyboard is not shifted or auto-capitalized.
@LeanBitLab
LeanBitLab merged commit 2543d90 into main Nov 25, 2026
1 check passed
@LeanBitLab
LeanBitLab deleted the fix/swipe-title-case-suggestions branch November 25, 2026 12:42
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