Automattic / Automattic/harper
False negative in `SplitWords` with "titlecase" only flagged by spellchecker so "title case" not suggested
- Dominant language
- Rust
- Stars
- 15.4k
- Forks
- 627
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 102
Description
**Describe the bug**
The word "titlecase" is not in the dictionary so Harper flags it. That's fine. But the spellchecker only suggests "telecast", "titles", and "title's" as corrections. We have another linter, `SplitWords` that ought to also flag it but suggest "title case". But this does not happen.
I suspect this may be due to `remove_overlaps()` and perhaps to the `priority` field of `Lint`?
Both linters should get a say on the suggestions.
**Screenshots**
"titlecase" not suggested to split into "title case":
**Platform**
Google Chrome plugin.
Contributor guide
Research direction
Start by tracing the SplitWords result for “titlecase” through remove_overlaps() and inspect how the priority field of Lint affects competing suggestions. Confirm that the spellchecker and SplitWords results are both available, then verify that the final suggestions include “title case” in the Chrome plugin.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100