Skip to content

Conversation

@jahorton
Copy link
Contributor

@jahorton jahorton commented Oct 2, 2025

For all removed methods, note that they did not properly support cases adjacent to 'split' / 'merge' edits. New pathways heavily supporting the same functionality in a more future-forward manner were added in the following PRs:

While handy, especially while transitioning to the new context-management pattern, the computeAlignment method (refactored during epic/autocorrect, #14430 and relocated in #14573) did not adequately account for 'split' / 'merge' edit cases and also required special handling to avoid certain degenerate edit-path cases. The newer method put in place (by #14874) addresses both issues at once and looks to provide a more robust way forward while also optimizing the range of context that is retokenized for each potential correction, as well as the number of retokenization calls needed per correction.

Relevant unit-test cases have largely been migrated and found new homes within the test suites for methods added in the PRs above. It wouldn't hurt to review the cases and ensure this holds true, though. (I personally should take an extra pass through them before undrafting this PR.)

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

@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Oct 2, 2025

User Test Results

Test specification and instructions

User tests are not required

@github-actions github-actions bot added web/ web/predictive-text/ change Minor change in functionality, but not new labels Oct 2, 2025
@keymanapp-test-bot keymanapp-test-bot bot changed the title change(web): remove computeAlignment and older transform-tokenization methods change(web): remove computeAlignment and older transform-tokenization methods 🚂 Oct 2, 2025
@keymanapp-test-bot keymanapp-test-bot bot added this to the A19S13 milestone Oct 2, 2025
@jahorton jahorton force-pushed the refactor/web/delayed-reversion-via-tokenization-analysis branch from 3541216 to 79abb65 Compare October 3, 2025 13:35
@jahorton jahorton force-pushed the change/web/remove-old-alignment-and-transform-tokenization branch from 5c35290 to dc48191 Compare October 3, 2025 13:41
@jahorton jahorton force-pushed the refactor/web/delayed-reversion-via-tokenization-analysis branch from 79abb65 to aa477a9 Compare October 7, 2025 17:00
The removed methods did not properly support cases adjacent to 'split' / 'merge' edits.
While handy, this method did not adequately account for 'split' / 'merge' edit cases and also required special handling to avoid certain degenerate edit-path cases.  The newer method put in place (see #14874) handles such edits and avoids the degeneracy problem that resulted when relying on edit paths for the edited portion of context.

Build-bot: skip build:web
Test-bot: skip
@jahorton jahorton force-pushed the change/web/remove-old-alignment-and-transform-tokenization branch from 824de55 to a3f1a89 Compare October 7, 2025 17:01
@darcywong00 darcywong00 modified the milestones: A19S13, A19S14 Oct 11, 2025
…s' into change/web/remove-old-alignment-and-transform-tokenization
@jahorton jahorton marked this pull request as ready for review October 16, 2025 16:20
Base automatically changed from refactor/web/delayed-reversion-via-tokenization-analysis to epic/autocorrect October 20, 2025 13:36
@jahorton jahorton merged commit 1dcbf75 into epic/autocorrect Oct 20, 2025
7 of 8 checks passed
@jahorton jahorton deleted the change/web/remove-old-alignment-and-transform-tokenization branch October 20, 2025 13:37
@github-project-automation github-project-automation bot moved this from Todo to Done in Keyman Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change Minor change in functionality, but not new epic-autocorrect web/predictive-text/ web/

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants