Skip to content

Continue an all-caps typed prefix in capitals - #919

Merged
enaboapps merged 1 commit into
mainfrom
911-caps-prefix
Sep 27, 2026
Merged

enaboapps merged 1 commit into
mainfrom
911-caps-prefix

Conversation

@enaboapps

Copy link
Copy Markdown
Contributor

Closes #911. Stacked on #918; part of the casing plan in #914.

What changed

  • In worker.rs, a new shouting check recognises a typed prefix with two or more letters, all capitals. Such a prefix is completed in capitals whatever Shift and Caps now say, so the label shows exactly what will be inserted. Non-letters in the prefix, such as an apostrophe, are ignored for the check.
  • A single capital letter is still a capitalised word and follows the modifiers as before, so "W" completes to "Water".
  • Phrases follow the same rule: "WA" offers "WATER IS".
  • A test covers the all-caps prefix with Shift off, Shift locked and Caps on, and the single-capital case.
  • docs/word-prediction.md states the rule.

Validation

Node 24.13.0, Rust 1.97.1, on this top of the stack:

  • npm run lint, npm test (244 Vitest tests and 5 Node tests) and npm run build passed. No frontend files changed.
  • cargo fmt --check and cargo clippy --all-targets -D warnings passed.
  • cargo test passed: 568 tests.

🤖 Generated with Claude Code

@enaboapps enaboapps added this to the v1.0.0-rc.16 milestone Sep 26, 2026
@enaboapps
enaboapps marked this pull request as ready for review September 26, 2026 11:13
Base automatically changed from 910-sentence-start to main September 27, 2026 10:44
Typing "WA" under Caps, turning Caps off and accepting a suggestion gave
"WAter". A typed prefix of two or more letters, all capitals, is a word
being written in capitals, so its completion now continues that way
whatever the modifiers say, in words and phrases alike. A single capital
is still a capitalised word and follows the modifiers as before.

Closes #911

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@enaboapps
enaboapps merged commit 2194074 into main Sep 27, 2026
6 checks passed
@enaboapps
enaboapps deleted the 911-caps-prefix branch September 27, 2026 11:37
@enaboapps enaboapps mentioned this pull request Sep 27, 2026
7 tasks done
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.

Continue an all-caps typed prefix in uppercase

2 participants