Comparison
fast-langdetect vs langdetect vs lingua-language-detector vs py3langid
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Quickly detect text language and segment language
Actively maintained. Last release 3 weeks ago. A safe choice.
pip install fast-langdetectLanguage detection library ported from Google's language-detection.
Likely abandoned. No release or commit for years (last release over 5 years ago).
pip install langdetectAn 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-detectorFork of the language identification tool langid.py, featuring a modernized codebase and faster execution times.
Maintained. Last release 3 months ago, commits in 5 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install py3langidIn short
- langdetect looks abandoned: avoid it for new projects.
- lingua-language-detector is the most used: 5M downloads a month.
- fast-langdetect is better maintained: Pythie’s Index 77 against 26.
- py3langid is growing fastest: downloads +71% over the last month.
Side by side
| Metric | fast-langdetect | langdetect | lingua-language-detector | py3langid |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 77 | 13 |