Lingua
Language detection library covering 75 languages that stays accurate on single words and short phrases.
About
Short strings are where most language detectors fall apart, and Lingua was built specifically to fix that. The library identifies 75 languages and publishes per-language accuracy tables for single words, word pairs, and full sentences, where it leads langdetect, CLD3, and langid; for German it reports 74.2 percent on single words, 93.9 percent on word pairs, and 99.7 percent on sentences. Under the hood it combines n-gram models of lengths one through five with a rule-based filtering engine, no neural networks and no external API calls, so detection runs completely offline. Since version 2.0.0 the Python package is a set of bindings over a native Rust core, keeping runtime memory to a few dozen megabytes with model data stored in finite-state transducers, and a multi-threaded mode classifies 3,000 texts across all 75 languages in roughly 21 seconds in high accuracy mode. Install with pip install lingua-language-detector; version 2.2.0 is current, the license is Apache-2.0, and the repository has about 1,800 stars. Data engineers use it to route, filter, and label multilingual text before downstream NLP.
Reviews (0)
Leave a Review
No reviews yet. Be the first to review!
Details
- Category
- Natural Language Processing
- Price
- Free
- Platform
- Local/Desktop
- Difficulty
- Easy (2/5)
- License
- Apache-2.0
- Added
- Jul 29, 2026
Related Tools
Topic modeling library leveraging transformer embeddings and c-TF-IDF.
Simple framework for state-of-the-art NLP by Zalando Research.
Library for efficient text classification and word representation by Meta.
Topic modeling and document similarity library for unsupervised NLP.
Generalist model for named entity recognition using bidirectional transformer.
Research library for NLP by AI2 built on PyTorch.