harper README

The project's README from github.com/Automattic/harper. As one markdown file: README.md.

Harper Binaries Website Checks Crates.io NPM Version Downloads Obsidian Plugin Downloads

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 English, but the core is extensible to support other languages, so we welcome contributions that allow for other language support.

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 would appreciate the contribution. Just please make sure to read our contribution guidelines first.

Huge Thanks

This project would not be possible without the hard work from those who contribute.

Harper's logo was designed by Lukas Werner.

harper (Automattic/harper)

Searching Database…

16.6K ·GitHub
这是什么?Harper 是一款用 Rust 编写的离线英语语法检查工具,注重隐私,在本地运行,不会把你的文本发送到服务器。
这是一个应用,还是要接入编辑器的工具?它是一个语法检查引擎,提供语言服务器(harper-ls)和 WebAssembly 构建版本(harper.js),以编辑器和浏览器集成的形式发布,而不是独立的桌面应用。
我该怎么开始使用?将它安装为你常用编辑器的扩展即可。官方集成支持 VS Code、Neovim、Helix、Emacs、Zed 和 Obsidian;你也可以把 harper-ls 或 harper.js 直接嵌入自己的工具中。
使用它需要设置服务器或注册账号吗?不需要。Harper 完全在你的电脑上离线运行,因此无需账号、API 密钥或后端服务器。
它支持英语以外的语言吗?目前还不支持。Harper 暂时只检查英语,不过其核心架构设计为将来可以扩展到其他语言。
我的写作内容会离开我的电脑吗?不会。Harper 完全以隐私为设计原则,所有处理都在本地完成,不会像 Grammarly 那样把你的文本上传。
作者为什么要自己做 Harper,而不用 Grammarly 或 LanguageTool?Grammarly 价格昂贵、侵入性强,并会把所有写作内容发送到其服务器;LanguageTool 则需要数GB的内存和16GB的数据集,而且速度较慢。Harper 的设计目标是在毫秒级完成检查,只占用其中一小部分内存,同时完全保护隐私。
Harper 与 LanguageTool 相比,速度有多快、占用有多少?检查一篇文档只需几毫秒,内存占用不到 LanguageTool 的 1/50。
Creator
Automattic
Size
43.3 MB
Stars
16.6K
Age
2y
Commits · 90 Days