--- id: pycld3 version: "0.22" license: Apache 2.0 license_treatment: permissive maintenance: abandoned --- # pycld3 — CLD3 Python bindings License: permissive · Maintenance: abandoned · Downloads: 90.0K/mo ## What it is and what it does pycld3 is a Python wrapper around Google's CLD3 C++ library for language detection. It exports two main functions: get_language() to detect the primary language of a text sample, and get_frequent_languages() to identify multiple languages within mixed-language text. Both return language predictions as BCP-47 codes with confidence scores and reliability flags. The package supports over 100 languages and scripts, with some languages differentiated by script. It has no Python runtime dependencies but requires Protobuf headers and a C++ compiler for source builds. Wheels are provided for CPython 3.6–3.9 on macOS and manylinux1, eliminating the need for external dependencies on those platforms. However, the project is archived and has not been updated since 2021-03-09. Use it for: - Automatically categorize user-generated content by language for routing to language-specific pipelines or moderation teams. - Preprocess multilingual datasets by detecting and filtering text by language before feeding to downstream models. - Identify the language of short social media posts or comments to enable language-aware sentiment analysis. - Build a language-aware search index by detecting the language of documents at indexing time. - Detect language switches within a single text sample to handle code-mixed or multilingual user input. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Detects the language of text using Google's Compact Language Detector v3, returning language codes and confidence scores for over 100 languages and scripts. No, not recommended for new projects. The package is archived and unmaintained since 2021-03-09, with no updates for modern Python versions. The description itself recommends an alternative official package as a better choice. Install friction is also medium on non-wheel platforms. Consider the recommended alternative instead unless you have a specific reason to stay on this package. ## Install pip install pycld3 uv add pycld3 poetry add pycld3 ## Installing pycld3 Before you install: Medium install friction: wheels are available for CPython 3.6–3.9 on macOS and manylinux1, but source installation requires the Protobuf compiler, development headers, and a C++ compiler. The package is archived and unmaintained since 2021. License in practice: Licensed under Apache 2.0 (permissive), so you can use it freely in commercial and private projects with minimal restrictions. Quickstart: pip install -U pycld3 import cld3 result = cld3.get_language("This is a test") print(result.language, result.probability) On non-wheel platforms (Alpine, i686, Windows), you must install Protobuf compiler (protoc), libprotobuf development headers, and a C++ compiler before pip install will succeed. Verify before relying: - Whether the package works reliably with Python versions beyond 3.9, given the last release was 2021-03-09. - Current compatibility with modern Protobuf versions, given the long maintenance gap since 2021. - Whether an alternative official package would be a drop-in replacement or requires code changes. ## Package facts - License: Apache 2.0 (permissive) - Python support: supports_current - Install friction: medium - Maintenance: abandoned - Downloads: 90.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags language detection, identify text language, language identification, multilingual text detection, language classifier, detect language from text, bcp-47 language codes, nlp language detection, language-detection, archived [View on SkillFed](https://skillfed.io/packages/pycld3) · [View on PyPI](https://pypi.org/project/pycld3/)