refactor(web): spin off deduplication, suggestion-similarity sections 📚
Continuing from #11899, this spins of the suggestion-deduplication and the suggestion-similarity-detection sections into their own methods. The two were a bit entangled, so it was simplest to split them off at the same time.
While no unit tests are added here for either, these changes will make it much simpler to establish some that are focused solely on each of the two methods in the future.
@keymanapp-test-bot skip
User Test Results
Test specification and instructions
User tests are not required
Test Artifacts
- Android
- Developer
- iOS
- Keyboards
- Web
- Windows
Is there a set of regression tests we can run on the whole
predict()function after these refactors?
There's a pretty solid set of automated tests that have really helped me out in this regard while developing. They've helped catch a number of issues during this process... and I've also added more automated tests to further validate everything.
I don't know if there's an extensive set of regression user tests yet or not. If desired, I could spend some time drafting some; I've become more aware of various limitations and edge cases as a result of all of this.
Changes in this pull request will be available for download in Keyman version 18.0.75-alpha