{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/11"},{"label":"Linguistic","url":"https://skillfed.io/packages/category/text-processing-linguistic/2"}],"enrichment":{"capability":"Identifies whether a string contains Simplified Chinese, Traditional Chinese, both, or mixed character sets using CC-CEDICT data.","skillfed_tags":["chinese-nlp","text-classification"],"use_cases":["Validate user input in a form to ensure it uses the expected Chinese script variant.","Route Chinese text to appropriate downstream processing pipelines based on script type.","Filter or categorize documents in a corpus by their Chinese character system.","Detect mixed-script content that may indicate encoding errors or intentional code-switching."],"what_it_does":"Hanzidentifier is a lightweight Python module that classifies Chinese text by script system. It examines strings for Simplified characters, Traditional characters, or a mix of both, returning one of five classification constants: UNKNOWN (no Chinese), SIMPLIFIED, TRADITIONAL, BOTH (characters valid in both systems), or MIXED (both script-exclusive characters present). The package relies on zhon's CC-CEDICT dictionary to recognize Chinese characters; characters not in that dictionary are ignored during classification.\n\nThe module is designed for straightforward text-processing tasks where you need to know what kind of Chinese characters are present. It offers both high-level helper functions (has_chinese, is_simplified, is_traditional) and a lower-level identify() function for more granular control. It has no external system dependencies and installs as a pure Python wheel.","worth_installing":"Yes, if you need to classify Chinese text by script system. The package is stable, has no known vulnerabilities, and installs with minimal friction. Maintenance is dormant but the codebase is mature and the task it solves is well-defined. The single dependency (zhon) is also lightweight. Consider it a solid choice for text processing pipelines that must distinguish Simplified from Traditional Chinese."},"id":"hanzidentifier","links":{"html":"https://skillfed.io/packages/hanzidentifier","md":"https://skillfed.io/packages/hanzidentifier.md","pypi":"https://pypi.org/project/hanzidentifier/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-11-20","license_spdx":null,"license_treatment":"permissive","name":"hanzidentifier","python_support":"supports_current","summary":"Python module that identifies Chinese text as Simplified or Traditional."},"popularity":{"monthly_downloads":549195,"position":6056,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.3.0"}
