spiegel-keyman/web/src/engine/predictive-text/worker-thread
Joshua Horton 8a165d24b4 change(web): remove duplicate correction-search path filtering
Upon investigation into the code being removed, this mostly triggered whenever an empty transform appeared in the input - during a context reset, at initialization, or when a deadkey is typed.  (Deadkeys aren't sent to the pred-text engine.)  This is generally not a common case within the engine, and there exists other filtering that helps prevent duplicating search results.

Suppose a token that begins tagged with an empty transform.  When the search performs an 'insertion' to better lookup words down a lexical path, the 'insertion' is identical whether before or after an empty transform.  Similarly, insertions after a deletion appear no different than substitutions (or the same insertion before the deletion, then the deletion itself).

The code likely didn't gain us much, as it likely carried some performance overhead - it built a large object that required memory and lookup time that involved constructing and processing strings for hashing.

Build-bot: skip build:web
Test-bot: skip
2026-01-09 10:59:38 -06:00
..
docs docs(web): fix typo 2026-01-09 09:54:51 -06:00
src change(web): remove duplicate correction-search path filtering 2026-01-09 10:59:38 -06:00
.c8rc.json chore(web): fix coverage-reporting artifact 2025-02-12 15:56:54 +07:00
build-polyfiller.js refactor(web): move lm-worker → worker-thread 2024-08-16 08:35:20 +02:00
build-wrapper.js refactor(web): move lm-worker → worker-thread 2024-08-16 08:35:20 +02:00
build.sh chore(common): Merge branch 'master' into maint/common/14453-move-ci-scripts 2025-08-19 10:46:11 +02:00
package.json maint(resources): nest unit tests under parent block 2025-10-06 16:09:47 +02:00
tsconfig.json refactor(web): move common/web/utils to web/src/engine/common/web-utils/ 2024-09-10 18:12:46 +02:00