#92 · Primary category: NLP Tools & Text Processing

lingua-rs

language-classification language-detection language-identification language-processing language-recognition natural-language-processing nlp nlp-machine-learning rust rust-crate rust-library

The most accurate natural language detection library for Rust, suitable for short text and mixed-language text

Project last updated:03/26/26

GitHub Stars

1.1K

Forks

63

Contributors

8

License

Apache-2.0

Why we included this project

Before you can route an email to the right team, filter out unwanted messages, or run spell check across multilingual content, you usually need to know what language you are actually reading. Lingua answers that for Rust developers as a focused library, without dragging in a full machine learning framework. It detects the language of everything from a single word to a full paragraph across 75 supported languages, using a combination of rule-based logic and statistical Naive Bayes methods rather than neural networks or word dictionaries. Everything runs offline with almost no configuration, so it slots quietly into the preprocessing stage of a text pipeline. The project ships accuracy benchmarks against other Rust detectors, which makes it easy to judge whether its edge on short and mixed-language snippets is worth adopting.

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