# Jieba (CppJieba)

"结巴"中文分词的C++版本

Repository: https://github.com/yanyiwu/cppjieba
Canonical: https://ross.abutalabs.com/products/jieba-cppjieba
Language: C++
License: MIT
License Family: permissive
Last push: 2026-06-22T08:34:37+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 88, release rhythm 81, longevity 100
- inputs: {"age_days": 4819, "days_push": 72, "days_rel": 129, "gap_med": 7.0, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2873, forks 725 (observed 2026-08-28T04:07:27.224745+00:00)

## What it is
NodeJieba is the Node.js binding of the Jieba Chinese word segmentation library, with the core segmentation algorithms implemented in C++ via CppJieba for high performance. It supports multiple segmentation modes, custom and dynamic user dictionaries, and keyword extraction, and ships with full TypeScript type definitions.

## Use cases
- segment chinese text into words in a node.js application
- tokenize chinese sentences for search indexing
- extract keywords from chinese documents
- add custom domain-specific words to a chinese tokenizer
- cut chinese text with hmm model for out-of-vocabulary words
- preprocess chinese text for nlp pipelines in javascript

## When to choose
- you need fast, native-speed chinese word segmentation in a node.js or typescript project
- you want flexible dictionary loading with sensible defaults and optional custom user dictionaries
- you need multiple segmentation modes including full mode and search-engine mode
- you want to dynamically add words to the dictionary at runtime

## When to avoid
- you need segmentation for languages other than chinese
- you are working in python, go, or another runtime where the original jieba or a native binding is more idiomatic
- you cannot compile native c++ addons in your deployment environment

## Facets
- artifact type: library
- maturity: active
- function: nlp, parser
- domain: -
- platform: windows
- tags: chinese-word-segmentation, jieba, cppjieba, text-segmentation, keyword-extraction, hmm-model, native-addon, typescript-support, natural-language-processing, chinese-language, text-processing, search, nodejs, linux, macos

## Member repositories
- yanyiwu/cppjieba (main) score 88
- yanyiwu/nodejieba (sdk) score 91
- yanyiwu/gojieba (sdk) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:27.224745+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:24:33.589480+00:00, confidence not recorded.
  - readme: https://github.com/yanyiwu/cppjieba (fetched 2026-08-28T04:07:27.224745+00:00, sha 26caea643cb9)
  - registry_npm: https://registry.npmjs.org/nodejieba (fetched 2026-08-29T09:37:33.382954+00:00, sha 5c36a3cbfed1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
