Harper – an open-source alternative to Grammarly

130 ReadCarlBarks 37 6/20/2025, 7:51:45 PM writewithharper.com ↗

Comments (37)

paxys · 25s ago
Looks cool, but it's weird to constantly make comparisons to Grammarly (in the title, description, benchmarks) when this is clearly a rule-based spellcheck. Tell me how it compares to the built-in spellcheck in my browser/IDE/word processor/OS.
pram · 4h ago
IMO not using LLMs is a big plus in my book. Grammarly has been going downhill since they've been larding it with "AI features," it has become remarkably inconsistent. It will tell me to remove a comma one hour, and then tell me to add it back the next.
boplicity · 1h ago
General purpose LLMs seem to get very confused about punctuation, in my experience. It's one of their big areas of obvious failing. I'm surprised Grammarly would allow this to happen.
chneu · 2h ago
Thank you. In general my grammarly and gboard predictions have become so, so bad over the last year.
raincole · 3h ago
So is there a similar tool but based on an LLM?

Not that I think LLM is always better, but it would be interesting to compare these two approaches.

7thaccount · 2h ago
Grammarly came out before the LLMs. I'm not sure what approach it took, but they're likely feeling a squeeze as LLMs can tell you how to rewrite a sentence to remove passive voice and all that. I doubt the LLMs are as consistent (some comments below show some big issues), but they're free (for now).
demarq · 3h ago
"Me and Jennifer went to have seen the ducks cousin."

No errors detected. So this needs a lot of rule contributions to get to Grammarly level.

alpb · 2h ago
Similarly 0 grammatical errors flagged: "My name John. What your name? What day today?"
wellthisisgreat · 3h ago
What the duck is that test
canyp · 3h ago
Nominative vs objective
VTimofeenko · 4h ago
Comes with a great LSP server capable of checking grammar in code comments:

https://writewithharper.com/docs/integrations/language-serve...

icapybara · 2h ago
Why wouldn't you want an LLM for a language learning tool? Language is one of things I would trust an LLM completely on. Have you ever seen ChatGPT make an English mistake?
healsdata · 2h ago
Grammarly is all in on AI and recently started recommended splitting "wasn't" and added the contraction to the word it modified. Example: "truly wasn't" becomes "was trulyn't"

https://imgur.com/a/RQZ2wXA

o11c · 1h ago
Hm ... I wonder, is Grammarly also responsible for the flood of contraction of lexical "have" the last few years? It's standard in British English, but outside of poetry it is proscribed in almost all other dialects (which only permit contraction of auxiliary "have").

Even in British I'm not sure how widely they actually use it - do they say "I've a car" and "I haven't a car"?

filterfish · 19m ago
"they" say "I haven't got a car".

Contractions are common in Australian English to, though becoming less so due to the influence of US English.

akdev1l · 36m ago
This is what peak innovation looks like
Groxx · 2h ago
uh. yes? it's far from uncommon, and sometimes it's ludicrously wrong. Grammarly has been getting quite a lot of meme-content lately showing stuff like that.

it is of course mostly very good at it, but it's very far from "trustworthy", and it tends to mirror mistakes you make.

behnamoh · 2h ago
I wish it had keyboard shortcuts. As a Vim user, in Chrome it's tedious to click on every suggestion given by the app. Also, maybe add a "delay" so it doesn't think the currently-being-typed word is a mistake (let me finish typing first!).

Otherwise, it's great work. There should be an option to import/export the correction rules though.

cAtte_ · 29m ago
this solution is just fundamentally insufficient. in the age of LLMs it's pretty insane to imagine programmers manually hard-coding an arbitrary subset of grammatical corrections (sure: it's faster, it's local first, but it's not enough). on top of that, English (like any other natural language) is such a complicated beast that you will never write a classic deterministic parser that's sophisticated enough to allow you to reliably implement even the most basic of grammatical corrections (check the other comments for examples). it's just not gonna happen.

i guess it's a nice and lightweight enhancement on top of the good old spellchecker, though

thr0waway001 · 3h ago
“Yo who dis?”

Passes.

For reference: https://youtu.be/w-R_Rak8Tys?si=h3zFCq2kyzYNRXBI

healsdata · 1h ago
Given this is an Automattic product, I'm hesitant to use it. If it gets remotely successful, Matt will ruin it in the name of profit.
josephcsible · 1h ago
It's FOSS, so even if the worst happens, anyone could just fork the last good version and continue development there.
jantissler · 36m ago
Oh, that’s a big no from me then.
JPLeRouzic · 5h ago
It is available in Autommatic's Github repository:

https://github.com/Automattic/harper

sestep · 5h ago
Automattic*
orliesaurus · 3h ago
Very buggy, but great start!!

I.e. if you write an "MISTAEK" and then you scroll the highlight follows me around the page

The-Ludwig · 3h ago
Looks awesome! I’ll give it a try over language tool.

Is there any reason why there is no firefox extension?

jacooper · 4h ago
I think if you can self host language tool, it would still be the better option.
IceWreck · 3h ago
Slightly controversial compared to other comments here but I haven't used Grammerly at all since LLMs came out. Even a 4B local LLM is good enough to rephrase all forms of text and fix most grammer mistakes.
crimputer · 3h ago
Good start. But still has bugs i guess.

I tried with the following phrase -- "This should can't logic be done me." --

No errors.

harper · 3h ago
nice name!
sharkjacobs · 5h ago
This seems to use a hard coded list of explicit rules, not an LLM

https://writewithharper.com/docs/rules

https://github.com/Automattic/harper/blob/0c04291bfec25d0e93...

        "PointIsMoot" => (
            ["your point is mute"],
            ["your point is moot"],
            "Did you mean `your point is moot`?",
            "Typo: `moot` (meaning debatable) is correct rather than `mute`."
        ),
a2128 · 4h ago
From a quick look phrase corrections is just one type of rule. There are many other rules, some are dynamic like when to use "your" vs "you're", oxford commas, etc.

That it doesn't use LLMs is its advantage, it runs in under 10ms and can be easily embedded in software and still provide useful grammar checking even if it's not exhaustive

skeptrune · 6h ago
Is this using local LLMs or some other engine?
JPLeRouzic · 5h ago
I don't think it uses an LLM.

https://github.com/Automattic/harper

mika6996 · 6h ago
Which LLM is running with Harper?
ognarb · 3h ago
None