← Language detection: all libraries · Reader board

py3langid vs langid: which one detects the language right more often?

py3langid 0.4.0 and langid 1.1.6 on the same 760 texts with a known language: 570 single sentences and 190 short paragraphs in 38 languages, from Tatoeba from Language test set (Tatoeba sentences, 38 languages). Measured, not opinion; re-tested by itself on every new PyPI release. Updated 06 November 2026.

More detected correctlypy3langid97.0% vs 89.1%
Faster on this setpy3langid0.5 s vs 2.5 s total (5× faster)
Both read760only py3langid: 0 · only langid: 0

py3langid got the language right more often: 97.0% vs 89.1%. py3langid broke (error, hang or crash) on 0 files that langid read; langid broke on 0 files that py3langid read.

LibraryText from🔴 Fails where
the other reads
🟡 Empty where
the other reads
⏱ Hangs or
crashes
✅ CorrectMedian
ms/file
Total
seconds
py3langid 0.4.076000097.0%<10.5
langid 1.1.676000089.1%12.5

By kind of text: share correct

Textspy3langidlangid
paragraphs 190 texts99.0%99.5%
short-sentences 570 texts96.3%85.6%

Files only py3langid reads (0)

None.

Files only langid reads (0)

None.

What this does not tell you

This compares not breaking: whether each library gets any text out of each file. It does not rank text quality (reading order, tables, headings), and speed is one GitHub-hosted runner, default settings, no OCR switched on. If you need structure for RAG, also look at the output on your own files.

How this is measured