Harper

Paket

Offline English grammar checker in Rust that runs in the browser via WebAssembly

Fiyat
Free, open source
Erişim
None, runs locally

Hakkında

Harper is Automattic's open-source English grammar and spelling checker. harper.js runs it in the browser or Node.js through WebAssembly and harper-ls brings it to editors, so text never leaves the device. English only; the harper.js API is still marked early access.

Neler yapabilirsin

  • Check grammar and spelling in a web app's text box without sending text to a server
  • Lint Markdown docs and code comments for English mistakes in VS Code or Neovim
  • Add on-device English proofreading to an Electron or Node.js app

Başlarken

  1. Run npm install harper.js
  2. Create a LocalLinter with the bundled binary and call lint()

Örnek kod

import { LocalLinter, Dialect } from "harper.js";
import { binary } from "harper.js/binary";

const linter = new LocalLinter({ binary, dialect: Dialect.American });
const lints = await linter.lint("This is a example of how to use harper.js.");
for (const lint of lints) console.log(lint.message(), lint.span());

Ayrıntılar

Barındırma
Kendi bilgisayarında
Kullanılabildiği yerler
Tüm dünya
Resmi SDK'lar
JavaScript/TypeScript, Rust
MCP sunucusu
Yok
Entegrasyonlar
VS Code

Görevler

Alternatifler

Aynı görevler için başka araçlar.

Son kontrol: .