spiegel-keyman/web/src
Joshua Horton e5a816d7bc feat(web): determine all equal-cost edit-paths & rank them by quality
After digging through repo history, I couldn't find an actual reference for .editPath(), the method producing a sequence of edits represented by the edit-distance calculation.

After further thought and investigation, I realized that there can be more than one possible edit sequence... and that the best approach for future stability is to calculate and return _all_ of them.  The trick is to rank them based on the qualities we most look for - and for predictive-text's sliding context window, what we want is a long, unbroken sequence of 'match'-ed tokens, followed by substitutions on the edges.

Previously, I'd finagled the editPath() function to check certain edit types before others, but it always felt hacky and brittle.  This new approach seems like a much more robust way forward, even if it probably is a bit more costly to perform.
2025-08-27 15:06:42 -05:00
..
app maint(common): rename and move node-related script functions into node.inc.sh 2025-08-02 13:34:29 +10:00
engine feat(web): determine all equal-cost edit-paths & rank them by quality 2025-08-27 15:06:42 -05:00
resources fix(web): add banner font downscaling 2025-04-02 13:15:24 +07:00
samples maint(common): consolidate builder scripts 2025-08-02 08:11:24 +10:00
test feat(web): determine all equal-cost edit-paths & rank them by quality 2025-08-27 15:06:42 -05:00
tools maint(common): rename and move node-related script functions into node.inc.sh 2025-08-02 13:34:29 +10:00
.editorconfig change(web): source/ => src/ 2022-10-21 12:00:10 +07:00
tsconfig.all.json chore(web): centralizes main KMW component tsconfig settings 2023-06-14 09:02:46 +07:00
tsconfig.dom.json chore(web): the final push for config-flag parity for web/ 2024-05-29 10:57:41 +07:00