Automattic / Automattic/harper

`SpellCheck` shouldn't suggest (only) lowercase replacements for all-caps mistakes

Open
#3,304 0 comments 0 reactions 0 assignees View on GitHub
bug linting spelling
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 15h
Merged PRs (30d)
106

Description

Image

It's very common to write for stylistic reasons in all-caps (or all-lowercase, or all-titlecase) but when `SpellCheck` finds a misspelled word in the middle of an all-caps sentence, the fixes it suggests are all lowercase.

The suggestions should be in the same case as either the mistaken word or the nearby words.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the SpellCheck suggestion-generation entry point and reproduce an all-caps misspelling alongside lowercase and titlecase examples. Look for the existing suggestion tests, which the issue does not name, and verify that suggested fixes preserve the casing of the mistaken word or nearby words.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.