Automattic / Automattic/harper

We should flag space on the wrong side of a period like we do with commas

Open
#3,800 0 comments 0 reactions 0 assignees View on GitHub
enhancement harper-core linting punctuation
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 12h
Merged PRs (30d)
106

Description

I just read this comment on a YouTube video:

Image

Between "government" and "Once". It is flagged but only the space at the end of the sentence is noticed. It doesn't notice that the space after the sentence is also missing.

I think this is something that can happen on some phone keyboards?

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported sentence-spacing example in Harper and compare it with the existing comma-spacing behavior described in the issue. Locate the punctuation-checking entry point and update the behavior so a missing space after a period is flagged; done when the example reports both spacing problems.

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
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.