Automattic / Automattic/harper

feat: Flag decades with apostrophe in the wrong place

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

Description

Currently both incorrect and correct usages are flagged with `Did you mean to spell “s” this way?`, which is wrong for other reasons: Image

What it should do is flag and suggest:

- 80's → '80s
- The 70's → The '70s
- The 1990's → The 1990s

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the decade-apostrophe cases from the issue and tracing the grammar rule that produces the current “s” suggestion. Done means the checker flags 80's, The 70's, and The 1990's with the respective suggestions '80s, The '70s, and The 1990s.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.