nieldlr/hanzi
HanziJS is a Chinese character and NLP module for Chinese language processing for Node.js
What it solves
HanziJS provides a set of tools for Chinese language processing in Node.js, specifically designed to help language learners explore the structure, meaning, and pronunciation of Chinese characters.
How it works
It acts as a wrapper and processing engine for several linguistic datasets, including CC-CEDICT for definitions, the Junda corpus for character frequency, and Leiden University data for word frequency. It provides a programmatic API to query these datasets and perform algorithmic tasks like character decomposition and sentence segmentation.
Who it’s for
Developers building educational tools for Chinese language learners or applications that require basic Chinese Natural Language Processing (NLP) capabilities.
Highlights
- Character Decomposition: Breaks characters down into components at three different levels: once, radical, or graphical.
- Dictionary Integration: Performs definition lookups and searches for compound words using CC-CEDICT.
- Phonetic Analysis: Computes phonetic regularity to see how a character's pronunciation relates to its components.
- Text Segmentation: Splits Chinese phrases into individual words using a longest-match lookup.
- Frequency Data: Provides character and word frequency statistics based on established linguistic corpora.
Related
- Project
- Project
- Project
- Project
- Project