Automattic / Automattic/harper

False positive for Oxford comma for pairs

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

Description

**What got flagged?**
> It's A or B, B or C, D or E, or F or G. ■■ An Oxford comma is necessary here.

**Why is this incorrect?**
Expressions `A or B`, `B or C`, `D or E` and `F or G` are *self-contained*, and thus roughly equivalent to `W, Y, Y, or Z`.

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported sentence and trace the Oxford-comma check that flags it. Confirm that the four paired expressions are treated as self-contained and that the false positive no longer appears, while existing Oxford-comma behavior remains covered.

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
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.