Comparison
langdetect vs langid vs lingua-language-detector vs pycld2
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Language detection library ported from Google's language-detection.
Likely abandoned. No release or commit for years (last release over 5 years ago).
pip install langdetectlangid.py is a standalone Language Identification (LangID) tool.
Likely abandoned. No release or commit for years (last release over 10 years ago).
pip install langidAn accurate natural language detection library, suitable for short text and mixed-language text
Low maintenance activity. Last release 9 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and issue handling.
pip install lingua-language-detectorPython bindings around Google Chromium's embedded compact language detection library (CLD2)
Low maintenance activity. Last release 20 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install pycld2In short
- langdetect looks abandoned: avoid it for new projects.
- langid looks abandoned: avoid it for new projects.
- lingua-language-detector is the most used: 4.9M downloads a month.
- Maintenance is comparable: pycld2 29, lingua-language-detector 26 on Pythie’s Index.
- lingua-language-detector is growing fastest: downloads +11% over the last month.
Side by side
| Metric | langdetect | langid | lingua-language-detector | pycld2 |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 13 | 14 |