Skip to content

cld2

Google's Compact Language Detector 2

v1.2.6 · Mar 22, 2025 · Apache License 2.0

Description

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.

Downloads

1.3K

Last 30 days

3298th

4.6K

Last 90 days

26.3K

Last year

Trend: -0.9% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (7)

imports

Dependency Network

Dependencies Reverse dependencies Rcpp Goodreader arete bdpar cld3 emayili googleLanguageR morestopwords cld2

Version History

new 1.2.6 Mar 10, 2026
updated 1.2.6 ← 1.2.5 diff Mar 21, 2025
updated 1.2.5 ← 1.2.4 diff Oct 3, 2024
updated 1.2.4 ← 1.2.3 diff Oct 26, 2022
updated 1.2.3 ← 1.2.2 diff Oct 1, 2022
updated 1.2.2 ← 1.2.1 diff Sep 24, 2022
updated 1.2.1 ← 1.2 diff Dec 14, 2020
updated 1.2 ← 1.1 diff May 10, 2018
updated 1.1 ← 1.0 diff Jun 9, 2017
new 1.0 Jun 2, 2017