Skip to content

cld2

1.2.6

Google's Compact Language Detector 2

7packages depend
26.7Kdownloads / year
35.0%test coverage
12/13checks pass

Overview

About
Maintained by Jeroen OomsFirst published 2017-06-039 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
1NOTE12OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 2.0 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.38
35.0%
Coverage · measured lines
100%
Documentation · exports
1
Dependencies · direct
Check history
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-07-30
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-07-29
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-04-22
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Show 1 earlier snapshots
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
0%
References docs
0%

Downloads

26.7K
CRAN downloads in the past year
Rank #3,167 · ~73/day · ~2.2K/mo
Daily download trend is not available in this view yet.
1.1K30 days
3.9K90 days
26.7K1 year
Compare downloads with other packages →
Also on473 r2u2 autocran

Repository

Repository
39Stars
7Forks
5Open issues
2Open PRs
2Releases
60Commits
4Contributors
cldcld2language-detectionlanguage-detectorrrstatsr-package
60 commits · Last activity 2025-07-02 · 0% stars, 30d

Stars over time

2024-11-02 · 382026-07-07 · 39

Repository practices

Upstream repositoryBeta

2 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/ropensci/cld2 on 2026-07-31.

Continuous integration (1)
GitHub Actions
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)
Depends (0)
none
Imports (1)
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
7direct
0indirect

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Copyright holders (1)
Copyright holder
Package Timeline

9 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.2.6Latest
    2025-03-22 · current release · diff ↗
  • 1.2.5
    2024-10-04 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 1.2.4
    2022-10-27 · diff ↗
  • 1.2.3
    2022-10-02 · diff ↗
  • 1.2.2
    2022-09-25 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 1.2.1
    2020-12-15 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 1.2
    2018-05-11 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
Show 3 earlier events
  • 1.1
    2017-06-10 · diff ↗
  • 1.0
    2017-06-03
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2017-06-03
Total releases
9 / 9 yrs
License
Apache License 2.0 OSI
Download size
3.5 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy