Automattic / Automattic/harper

Common transposition errors are not covered

Open
#1,411 6 comments 3 reactions 0 assignees View on GitHub
bug enhancement harper-core linting spelling
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 15h
Merged PRs (30d)
102

Description

## Description

Some common tranposition errors do not generate the correct answer. See examples below. I tested these against the editor on the home page.

## Examples

I tried some simple errors like:

`teh` instead of `the`

![Image](https://github.com/user-attachments/assets/5cf494e1-5fc4-4e1d-98ce-2f4c832f98d3)

and `recieved` instead of `received`.

![Image](https://github.com/user-attachments/assets/97aa01ce-4fc8-4cd3-9cb0-c8d047ac0b88)

In either case the offered corrections did not include the correct answer.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the editor on the home page using “teh” and “recieved” and compare the offered corrections with the expected words. Trace the transposition-error handling from that reproduction; the work is done when both examples include “the” and “received” among the offered corrections.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.