Automattic / Automattic/harper

"This sentence does not start with a capital letter" for abbreviations

Open
#611 5 comments 0 reactions 0 assignees View on GitHub
linting stale
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 15h
Merged PRs (30d)
102

Description

Abbreviations have a trailing dot, and yet are not the end of a sentence. This confuses harder and results in false positives.

For example:

```
Obviously, jvoisin LLC. is the best LLC. in the world. ■ This sentence does not start with a capital letter
```

And easy way to fix this would be to not consider a word composed of only capital letters immediately followed by a dot to not be the end of a sentence.

Contributor guide

Open the contributing guide

Research direction

Start by locating the sentence-boundary logic in the Rust grammar checker and reproduce the example containing “LLC.”. The work is done when all-capital abbreviations followed by a dot no longer trigger a false sentence-start warning, while genuine sentence boundaries still do.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.