Skip to content

refactor(web): define common buildCorrectionSequence method used for all model types 🔪#16028

Open
jahorton wants to merge 1 commit into
change/web/abstract-whitespace-tokenization-mappingfrom
refactor/web/correction-sequence-construction
Open

refactor(web): define common buildCorrectionSequence method used for all model types 🔪#16028
jahorton wants to merge 1 commit into
change/web/abstract-whitespace-tokenization-mappingfrom
refactor/web/correction-sequence-construction

Conversation

@jahorton

@jahorton jahorton commented May 28, 2026

Copy link
Copy Markdown
Contributor

To better handle inputs that shift the word-boundary in some custom models and models released before Keyman 14.0, this PR provides generalized re-use of the correction-sequence construction algorithm (introduced in #15841). The implementation from #15841 may only be used for our most prominently-supported models, but with a small tweak, it can be made much more useful for custom and legacy models as well, DRYing out this aspect of the code.

Build-bot: skip build:web
Test-bot: skip

@keymanapp-test-bot

keymanapp-test-bot Bot commented May 28, 2026

Copy link
Copy Markdown

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

  • Web
    • KeymanWeb Test Home - build : all tests passed (no artifacts on BuildLevel "build")

@keymanapp-test-bot keymanapp-test-bot Bot changed the title refactor(web): define common buildCorrectionSequence method used for all model types refactor(web): define common buildCorrectionSequence method used for all model types 🔪 May 28, 2026
@keymanapp-test-bot keymanapp-test-bot Bot added this to the A19S30 milestone May 28, 2026
@jahorton jahorton force-pushed the change/web/abstract-whitespace-tokenization-mapping branch from 6374711 to 9c13347 Compare June 1, 2026 20:57
@jahorton jahorton force-pushed the refactor/web/correction-sequence-construction branch 2 times, most recently from bc3691e to b6ba677 Compare June 2, 2026 14:23
@keyman-server keyman-server modified the milestones: A19S30, A19S31 Jun 8, 2026
@jahorton jahorton force-pushed the refactor/web/correction-sequence-construction branch from b6ba677 to 0e52f6f Compare June 11, 2026 16:20
@jahorton jahorton force-pushed the change/web/abstract-whitespace-tokenization-mapping branch from 9c13347 to 8d52ba4 Compare June 11, 2026 16:22
…all model types

Build-bot: skip build:web
Test-bot: skip
@jahorton jahorton force-pushed the refactor/web/correction-sequence-construction branch 2 times, most recently from e789e1b to e76b338 Compare June 11, 2026 16:53
@jahorton jahorton requested a review from ermshiperete June 11, 2026 19:36
@jahorton jahorton marked this pull request as ready for review June 11, 2026 19:36
@ermshiperete

Copy link
Copy Markdown
Contributor

I think the PR referenced in the description has the wrong number (#15841).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants