Automattic / Automattic/harper
Convert the spell checker to rank suggestions by weight instead of the additive method it currently uses.
Open
enhancement
good first issue
harper-core
spelling
- Dominant language
- Rust
- Stars
- 15.4k
- Forks
- 627
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 106
Description
The `SpellCheck` module currently uses a system of checks that add/subtract points for each suggestion to sort them and choose the most relevant (currently the top three).
This seems like a "code smell" to me and instead it should use multiplicative **weights**.
Perhaps I'm wrong and the current system is better or equivalent? In this case, feel free to point out why I'm wrong. (Google's AI agrees with me, but current AIs tend to be sycophantic.)
Contributor guide
Assessment
This issue has not been assessed yet.