Automattic / Automattic/harper

Not Properly Recognizing Sentences in Google Docs

Open
#2,992 3 comments 2 reactions 0 assignees View on GitHub
bug firefox-plugin google-docs
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 15h
Merged PRs (30d)
106

Description

**Describe the bug**
Harper fails to recognize the start of a sentence and throws a capitalization error at nearly any word that starts at the left of the page.

**To Reproduce**
Steps to reproduce the behavior:
1. Create a new document.
2. Write a sentence or multiple sentences long enough to wrap around the page.
3. Harper will incorrectly mark it as a capitalization error.

**Expected behavior**
Harper should recognize the proper start of a sentence, which is after a period or as the start of a new paragraph.

**Screenshots**
Image

**Platform**
Firefox

**Additional context**
Only tested on Firefox, tested with Times New Roman 12pt and Roboto Normal 12pt fonts.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the capitalization error in Firefox with a wrapped sentence in a new Google Docs document, then trace how Harper identifies sentence starts at the left edge of the page. Done means sentence starts after periods and at new paragraphs are recognized without false capitalization errors when text wraps.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
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.