#59 · Primary category: NLP Tools & Text Processing
lingua-py
The most accurate natural language detection library for Python, suitable for short text and mixed-language text
Project last updated:07/20/26
GitHub Stars
1.8K
Forks
61
Contributors
8
License
Apache-2.0
Why we included this project
Knowing what language a piece of text is written in matters before you can do almost anything else with it. Lingua answers that question reliably even for single words and short mixed-language snippets, the case where most detection libraries fall apart. It slots in as a preprocessing step ahead of text classification, spell checking, or routing support emails to the right regional team, and needs no neural network or word dictionaries to do it. The methods are rule-based plus statistical Naive Bayes, and the Python bindings sit on a Rust core, so it stays fast, light, and fully offline once installed. You get a small focused library instead of a large ML framework to learn.
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 上百种预训练中文词向量