#59 · Primary category: NLP Tools & Text Processing

lingua-py

language-classification language-detection language-identification language-recognition natural-language-processing nlp python-library

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