โ† Reader board: all formats

Which Python language detection library gets the language right most often?

py3langid, Lingua, fast-langdetect, langdetect, langid: each one tested on the same 760 texts with a known language: 570 single sentences and 190 short paragraphs in 38 languages, from Tatoeba. New PyPI releases are tested again by themselves. Updated 06 November 2026.

760 files from Language test set (Tatoeba sentences, 38 languages); 760 of them give text to at least one library.
Library๐Ÿ”ด Fails where
another reads
๐ŸŸก Empty where
another reads
โฑ Hangs or
crashes
โœ… CorrectMedian
ms/file
Total
seconds
1 py3langid 0.4.000097.0%<10.5
2 Lingua 2.2.000094.6%<10.5
3 fast-langdetect 1.1.0 ยท model fastText lid.176 (lite)00093.4%<11.5
4 langdetect 1.0.900093.0%11.3
5 langid 1.1.600089.1%12.5

By kind of text: share correct

Textspy3langidLinguafast-langdetectlangdetectlangid
paragraphs 190 texts99.0%97.4%95.8%99.5%99.5%
short-sentences 570 texts96.3%93.7%92.6%90.9%85.6%

How this is measured