mirror of
https://github.com/Automattic/harper.git
synced 2025-12-05 19:26:55 -06:00
* feat(core): introduce `Heading` `TokenKind` * feat(core): create `iter_headings` extension * refactor(core): remove unhelpful tests * chore(core): update snapshots * refactor(core): avoid allocation where possible * feat(core): create rule that enforces title case for headings * fix(core): NP members should be capitalized * fix(core): appease clippy * feat(harper.js): allow `harper.js` to force headings * fix(harper.js): make `organized_lints` similar: allow forced headings * fix(harper.js): appease Biome * feat(chrome-ext): expose title casing in Chrome extension * fix(chrome-ext): content script console bloat * test(core): title_case module more extensively; fix things * refactor(core): remove useless branch * refactor(core): use tokens over characters * refactor(core): use token indices instead of spans
harper-core
harper-core is the fundamental engine behind Harper, the grammar checker for developers.
harper-core is available on crates.io. However, improving the API is not currently a high priority.
Feel free to use harper-core in your projects.
If you run into issues, create a pull request.
Features
concurrent: Whether to use thread-safe primitives (Arc vs Rc). Disabled by default.
It is not recommended unless you need thread-safely (i.e. you want to use something like tokio).