#92 · Primary category: NLP Tools & Text Processing
lingua-rs
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
flair
A very simple framework for state-of-the-art Natural Language Processing (NLP)
compromise
modest natural-language processing
tokenizers
💥 Fast State-of-the-Art Tokenizers optimized for Research and Production
CoreNLP
CoreNLP: A Java suite of core NLP tools for tokenization, sentence segmentation, NER, parsing, coreference, sentiment analysis, etc.
Chinese-Word-Vectors
100+ Chinese Word Vectors 上百种预训练中文词向量