#176 · Primary category: NLP Tools & Text Processing

nlprule

grammar grammatical-error-correction machine-learning natural-language-processing nlp proofreading rust spellcheck style-checker

A fast, low-resource Natural Language Processing and Text Correction library written in Rust.

Project last updated:05/23/23

GitHub Stars

670

Forks

44

Contributors

7

License

Apache-2.0

Why we included this project

nlprule is a Rust library, with Python bindings, that bundles LanguageTool's rule resources into a self-contained pipeline. You get sentence segmentation, part-of-speech tagging, lemmatization, chunking, and thousands of grammar rules without standing up a model server. The API is small: load a tokenizer and rules for a language, call correct() or suggest() on text, and read back the spans, replacements, and messages. Because it works from rules and lookups rather than machine learning, it stays light on resources and fits naturally as a pre- or post-processing step in front of larger models, or as a quiet background process in an application, even client-side via WebAssembly. For teams building editors or linters, it is a practical, embeddable alternative to calling an external correction service.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category