cld2
Google's Compact Language Detector 2
Bindings to Google's C++ library Compact Language Detector 2 (see <https://github.com/cld2owners/cld2#readme> for more information). Probabilistically detects over 80 languages in plain text or HTML. For mixed-language input it returns the top three detected languages and their approximate proportion of the total classified text bytes (e.g. 80% English and 20% French out of 1000 bytes). There is also a 'cld3' package on CRAN which uses a neural network model instead.
Versions across snapshots
| Version | Repository | File | Size |
|---|---|---|---|
1.2.6 |
rolling linux/jammy R-4.5 | cld2_1.2.6.tar.gz |
1.2 MiB |
1.2.6 |
rolling linux/noble R-4.5 | cld2_1.2.6.tar.gz |
1.2 MiB |
1.2.6 |
rolling source/ R- | cld2_1.2.6.tar.gz |
3.5 MiB |
1.2.6 |
latest linux/jammy R-4.5 | cld2_1.2.6.tar.gz |
1.2 MiB |
1.2.6 |
latest linux/noble R-4.5 | cld2_1.2.6.tar.gz |
1.2 MiB |
1.2.6 |
latest source/ R- | cld2_1.2.6.tar.gz |
3.5 MiB |
1.2.6 |
2026-04-26 source/ R- | cld2_1.2.6.tar.gz |
3.5 MiB |
1.2.6 |
2026-04-23 source/ R- | cld2_1.2.6.tar.gz |
3.5 MiB |
1.2.6 |
2026-04-09 windows/windows R-4.5 | cld2_1.2.6.zip |
1.5 MiB |
1.2.6 |
2025-04-20 source/ R- | cld2_1.2.6.tar.gz |
3.5 MiB |