Automattic / Automattic/harper

Convert the spell checker to rank suggestions by weight instead of the additive method it currently uses.

Open
#3,347 1 comment 0 reactions 1 assignee Claimed by @quick123-666 View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.