Automattic / Automattic/harper
Bug: Accepting the correction replaces the flagged word with the whole sentence
- Dominant language
- Rust
- Stars
- 15.4k
- Forks
- 627
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 102
Description
**Describe the bug**
When I accept the suggestion from the Harper menu in my browser, it does not just correct the selected word, it replaces the highlighted word with the whole sentence. This is happening in Gmail on Firefox with the browser extension installed.
**To Reproduce**
Steps to reproduce the behavior:
1. In Gmail on Firefox, type a sentence with a typo
2. Click on the suggested word
3. Word is replaced with full sentence
4. See error
**Expected behavior**
I expected only the word to be replaced like in other sites.
**Screenshots**
**Platform**
Firefox, only in Gmail.
Contributor guide
Research direction
Start by reproducing the correction flow in Gmail on Firefox with the Harper browser extension, following the listed steps and comparing it with another site where correction works. Trace the extension's handling of the selected word and sentence in that environment. Done means accepting a suggestion replaces only the flagged word in Gmail on Firefox.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100