6 releases (3 breaking)

0.12.0 Oct 13, 2024
0.11.0 Sep 13, 2024
0.10.0 Aug 31, 2024
0.9.5 Aug 17, 2024
0.9.0 Jul 25, 2024

#454 in Programming languages

Download history 13/week @ 2024-07-29 127/week @ 2024-08-05 159/week @ 2024-08-12 43/week @ 2024-08-19 200/week @ 2024-08-26 108/week @ 2024-09-02 137/week @ 2024-09-09 105/week @ 2024-09-16 43/week @ 2024-09-23 56/week @ 2024-09-30 137/week @ 2024-10-07 110/week @ 2024-10-14 28/week @ 2024-10-21 18/week @ 2024-10-28 43/week @ 2024-11-04 20/week @ 2024-11-11

118 downloads per month
Used in 2 crates

Apache-2.0

275KB
6K SLoC

Harper

Harper LS Web Precommit Crates.io

Harper is an English grammar checker designed to be just right. I created it after years of dealing with the shortcomings of the competition.

Grammarly was too expensive and too overbearing. Its suggestions lacked context, and were often just plain wrong. Not to mention: it's a privacy nightmare. Everything you write with Grammarly is sent to their servers. Their privacy policy claims they don't sell the data, but that doesn't mean they don't use it to train large language models and god knows what else. Not only that, but the round-trip-time of the network request makes revising your work all the more tedious.

LanguageTool is great, if you have gigabytes of RAM to spare and are willing to download the ~16GB n-gram dataset. Besides the memory requirements, I found LanguageTool too slow: it would take several seconds to lint even a moderate-size document.

That's why I created Harper: it is the grammar checker that fits my needs. Not only does it take milliseconds to lint a document, take less than 1/50th of LanguageTool's memory footprint, but it is also completely private.

Harper is even small enough to load via WebAssembly.

Language Support

Harper currently only supports American English, but the core is extensible to support other languages, so we welcome contributions that allow for other language support.

Installation

If you want to use Harper on your machine, you have three choices.

harper-ls

harper-ls provides an integration that works for most code editors.

Read more here.

Harper Obsidian Integration

If you use Obsidian, you may install the Harper Obsidian Plugin by searching for "Harper" in the community plugin store.

Zed Plugin

If you use Zed, Stef16Robbe has developed a fantastic plugin that works out-of-the box. No setup required.

Performance Issues

We consider long lint times bugs. If you encounter any significant performance issues, please create an issue on the topic.

If you find a fix to any performance issue, we are open the contribution. Just make sure to read our contribution guidelines first.

FAQs

Where did the name Harper come from?

See this blog post.

Dependencies

~7–10MB
~185K SLoC