Automattic/harper
GitHub: Automattic/harper
Harper 是一款基于 Rust 构建的离线、隐私优先的开源英语语法检查器,旨在以极低的资源占用提供快速且准确的本地语法校验。
Stars: 11789 | Forks: 437
[](https://github.com/automattic/harper/actions/workflows/binaries.yml)
[](https://github.com/automattic/harper/actions/workflows/build_web.yml)
[](https://github.com/automattic/harper/actions/workflows/just_checks.yml)
[](https://crates.io/crates/harper-ls)



Harper 是一款英语语法检查器,旨在做到_恰到好处_。
在经历了多年同类竞品的缺点后,我创建了它。
Grammarly 太贵,而且太霸道。
它的建议缺乏上下文,而且往往完全_错误_。
更不用说:这是一个隐私噩梦。
你使用 Grammarly 编写的所有内容都会发送到他们的服务器。
他们的隐私政策声称不会出售数据,但这并不意味着他们不会将其用于训练大型语言模型以及天知道还有什么别的。
不仅如此,网络请求的往返时间也让修改你的作品变得更加繁琐。
LanguageTool 很棒,前提是你有千兆字节的内存可以挥霍,并且愿意下载约 16GB 的 n-gram 数据集。
除了内存要求之外,我发现 LanguageTool 太慢了:即使检查一个中等大小的文档也需要几秒钟。
这就是我创建 Harper 的原因:它是满足我需求的语法检查器。
它不仅只需几毫秒即可检查文档,占用的内存还不到 LanguageTool 的 1/50,
而且完全私密。
Harper 甚至小到可以通过 [WebAssembly](https://writewithharper.com) 加载。
## 性能问题
我们认为过长的检查时间是 bug。
如果您遇到任何重大的性能问题,请就此创建一个 issue。
如果您找到了任何性能问题的修复方案,我们非常感谢您的贡献。
但请务必先阅读[我们的贡献指南。](https://writewithharper.com/docs/contributors/introduction)
## 链接
- [常见问题解答](https://writewithharper.com/#faqs)
- [Obsidian 文档](https://writewithharper.com/docs/integrations/obsidian)
- [`harper-ls` 文档](https://writewithharper.com/docs/integrations/language-server)
- 受支持的编辑器文档
- [Visual Studio Code](https://writewithharper.com/docs/integrations/visual-studio-code)
- [Neovim](https://writewithharper.com/docs/integrations/neovim)
- [Helix](https://writewithharper.com/docs/integrations/helix)
- [Emacs](https://writewithharper.com/docs/integrations/emacs)
- [Zed](https://writewithharper.com/docs/integrations/zed)
- [`harper.js` 文档](https://writewithharper.com/docs/harperjs/introduction)
- [官方 Discord 服务器](https://discord.com/invite/JBqcAaKrzQ)
## 特别感谢
Harper 的 Logo 由 [Lukas Werner](https://lukaswerner.com/) 设计。
标签:AI工具, 可视化界面, 数据可视化, 通知系统