Learn R Programming

cld2 (version 1.2.6)

Google's Compact Language Detector 2

Description

Bindings to Google's C++ library Compact Language Detector 2 (see 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.

Copy Link

Version

Install

install.packages('cld2')

Monthly Downloads

1,603

Version

1.2.6

License

Apache License 2.0

Maintainer

Jeroen Ooms

Last Published

March 22nd, 2025

Functions in cld2 (1.2.6)

cld2

Compact Language Detector 2