Automattic / Automattic/harper

When suggesting that a purportedly incorrectly-spelled hyphenated compound noun be replaced with its correct counterpart, Harper suggests programmatic title case, rather than correctly convert the first letter, of all words, except the first, into lower-case.

Open
#4,381 0 comments 1 reaction 0 assignees View on GitHub
bug false-positive harper-core linting
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 15h
Merged PRs (30d)
106

Description

#### What Was Flagged

“Pre-Requisite” was flagged for replacement with “PreRequisite”, per:

Image

#### Why This Is Incorrect

`eng`, especially `.*-GBr-oxEnDict`, does not utilise title case without spaces between words.

#### Examples Of Correct Usage

- > Pre-Requisite

- > Prerequisite

Contributor guide

Open the contributing guide

Research direction

Reproduce the suggestion with “Pre-Requisite” and compare the proposed “PreRequisite” replacement against the examples in the issue. Trace the spelling suggestion rule that handles hyphenated compound nouns; done means the replacement preserves “Pre-Requisite” or produces “Prerequisite” rather than applying title case without spaces.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.