Automattic / Automattic/harper

Annoyance with sentence length detection for mathematical relations.

Open
#4,095 3 comments 0 reactions 0 assignees View on GitHub
obsidian-plugin
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 15h
Merged PRs (30d)
106

Description

Good day,

I am a big fan of your plugin and use it all the time to detect spelling errors for writing. I have a bit of an annoyance with the sentence length detector, however. As in the example below, Harper continuously suggests that my sentence is too long. These are not true sentences, but rather short mathematical derivations that compound into one long sentence according to Harper. While it is possible to ignore this suggestion, I would like to ask if somehow you could develop the plugin further to somehow "detect" that these are not proper sentences but maths phrases instead.

My suggestion would be to detect when a user enters the $$$$ maths mode and then treat that as a period.

Thanks again for making the best grammar plugin on the platform!

Image

Contributor guide

Open the contributing guide

Research direction

Start by locating the sentence-length detection entry point and the handling of $$$$ math mode in the Rust codebase. Confirm how mathematical derivations are represented, then add coverage showing that math blocks do not trigger sentence-length warnings while ordinary long sentences still do.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.