Flag "who care" when it should be "who cares"
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
Research direction
Locate the existing lint-rule registration and rule-test conventions for similar subject-verb agreement checks, then add a WhoCare rule matching the issue’s context and exemption logic. Run the corresponding rule tests, including the proposed who care examples and grammatical plural-antecedent cases. Done means the rule flags only the specified singular contexts and leaves the listed plural uses unchanged.
Written by the indexing model from the issue text.
Description
I found this mistake in the wild a week or two ago and kept it open in a tab. I assume it's from L3 English users who think "care" has to agree with an imagined plural subject?
Who care, as long as it work.
I used my ctx tool plus a bunch of Google edge-case searches and asked the Google Clanker to analyse it all:
Summary
Add a subject-verb agreement lint rule (WhoCare) to catch instances of who care that should be who cares when who is used as a standalone interrogative or refers to a singular antecedent.
Motivation & Corpus Evidence
Dropping the third-person singular -s in rhetorical questions and singular relative clauses is a common mistake in documentation, READMEs, and inline comments.
Analysis of Google Books Ngram data (1962–2022) and developer text shows that who care can be safely disambiguated from grammatical plural relative clauses using immediate left-context checks:
- Real-world error patterns:
- Clause-initial / discourse-starter questions: "Who care?", "but who care?", "so who care", "Well who care..."
- Singular indefinite pronouns: "someone who care", "anyone who care", "somebody who care", "everybody who care"
- Singular nouns (with or without a comma): "person who care", "a sincere person, who care intensely...", "the only one who care"
- Grammatical uses to avoid flagging:
- Plural antecedents: "people who care", "those who care", "contributors who care"
- Plural / second-person pronouns: "us who care", "you who care", "all who care"
- First-person singular clefts: "I who care"
Proposed Implementation Logic
Flag who + care → who cares when:
- Branch A (Clause-initial / Interrogative):
whoappears at the start of a sentence, after punctuation (,,.,!,?,:,;,—), or immediately after a coordinating conjunction / discourse marker (but,so,well,hey). - Branch B (Singular Antecedent):
who(with an optional preceding comma) immediately follows a singular noun or singular indefinite pronoun (someone,anyone,everyone,no one,nobody,somebody,anybody,everybody,one).
Exemptions (Do NOT flag):
- Preceded by a plural noun, collective/coordinated plural (
friends and family who care), plural determiner/pronoun (those,all,few,many,others,us,we,they),you, orI.
Suggested Unit Tests
- Should flag:
"Who care, as long as it works?"→"Who cares, as long as it works?""It is a bit janky, but who care?"→"It is a bit janky, but who cares?""We need someone who care about quality."→"We need someone who cares about quality.""He is a sincere person, who care deeply about open source."→"He is a sincere person, who cares deeply about open source."
- Should NOT flag:
"There are many people who care about this.""Those who care will understand.""For those of us who care about performance, this is great."
- Dominant language
- Rust
- Stars
- 18.1k
- Forks
- 870
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 148
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Automattic/harper
-
bug obsidian-plugin
Difficulty 1/5 Under an hour Newbie friendliness 95/100
Automattic/harper#5124 · 1 comment ·
Maintainers usually reply within 1 day
-
Memory shorthands in base2 get recursively corrected to long names in base10Possibly taken @hieuvu0611 claimed this today. Openbug dictionary false-positive harper-core linting
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Automattic/harper#5103 · 1 reaction ·
Maintainers usually reply within 1 day
-
enhancement harper-core linting
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/harper#5095 · 1 comment ·
Maintainers usually reply within 1 day
-
Invalid "to" suggestion for infinitive verbPossibly taken @orshih6 claimed this 2 days ago. Openbug false-positive harper-core linting
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Automattic/harper#5092 · 1 reaction ·
Maintainers usually reply within 1 day
-
bug false-negative grammar harper-core linting
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Automattic/harper#5048 ·
Maintainers usually reply within 1 day
All issues in Automattic/harper
Similar issues
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
area: engine bug needs milestone
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Mudcrab-Team/mudcrab#1197 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
zeabur-oss/builder#304 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
prometheion/ares#159 ·
Maintainers usually reply within 1 day
-
Multi-select question chips show no picked state; on touch the last tap looks like the only pickOpen
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
eliasstravik/herdr-projects#1710 · 1 comment ·