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.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("cld2")

1.2.6 by Jeroen Ooms, 2 years ago


https://docs.ropensci.org/cld2/ https://ropensci.r-universe.dev/cld2


Report a bug at https://github.com/ropensci/cld2/issues


Browse source code at https://github.com/cran/cld2


Authors: Jeroen Ooms [aut, cre] , Dirk Sites [cph] (Author of CLD2 C++ library)


Documentation:   PDF Manual  


Apache License 2.0 license


Imports Rcpp

Suggests testthat, readtext, cld3

Linking to Rcpp


Imported by arete.

Suggested by bdpar, cld3, emayili, googleLanguageR, morestopwords, tbnb.


See at CRAN