Automattic / Automattic/harper

feat: Flag this/these not agreeing in number with the noun and/or verb

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

Description

## Description

This is a very common mistake for non-native English speakers whose native language does not have both a "short i" sound (like in "this") _and_ a "long i" sound (like in "these")

## Resources

- https://www.youtube.com/shorts/IEeMBG_aidI
- https://www.youtube.com/shorts/7F-PZUHpwyg
- https://youtu.be/1-wVmfAhq-o
- https://youtu.be/5jQdTpcBqXo
- (text descriptions of the mistake are surprisingly hard to find)

## Examples

Found in the wild:
- **This files is** highly inspired from ...
→ This **file** is highly inspired from ...
→ **These** files **are** highly inspired from ...
- **this is** actually very serious **issues**
→ this is actually **a** very serious **issue**
→ **these are** actually very serious issues
- **This** companies have stocked goods in advance → **These** companies have ...

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing grammar-checking rules and tests that handle demonstratives, noun number, and verb agreement. Use the issue's three examples as cases to reproduce, and consider the work complete when the checker flags the incorrect forms without introducing false positives for the valid singular and plural alternatives.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.