# fukuball/jieba-php

"結巴"中文分詞：做最好的 PHP 中文分詞、中文斷詞組件。 / "Jieba" (Chinese for "to stutter") Chinese text segmentation: built to be the best PHP Chinese word segmentation module.

Repository: https://github.com/fukuball/jieba-php
Canonical: https://ross.abutalabs.com/products/jieba-php
Language: PHP
License: MIT
License Family: permissive
Topics: nlp, natural-language-processing, chinese-text-segmentation, machine-learning
Last push: 2025-12-16T03:39:39+00:00

## Health v2 (maintenance only)
Score: 48/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 57, release rhythm 8, longevity 100
- inputs: {"age_days": 4150, "days_push": 260, "days_rel": 410, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1376, forks 257 (observed 2026-08-28T04:04:33.309280+00:00)

## What it is
A PHP library for Chinese word segmentation (jieba), ported from the Python jieba project and now independently maintained. It supports precise, full, and search-engine segmentation modes, traditional Chinese, custom dictionaries, TF-IDF keyword extraction, and part-of-speech tagging.

## Use cases
- segment chinese text into words in php
- tokenize chinese sentences for search indexing
- extract keywords from chinese text with tf-idf
- part-of-speech tagging for chinese text
- support traditional chinese word segmentation
- add custom domain words to a chinese dictionary
- preprocess chinese text for nlp pipelines

## When to choose
- you need fast, cheap, dependency-light Chinese segmentation in a PHP application
- you need search-engine-mode tokenization for building inverted indexes
- you need traditional Chinese or custom dictionary support

## When to avoid
- you need state-of-the-art segmentation accuracy that LLM-based tokenizers provide
- your stack is not PHP (use the original Python jieba or other ports)
- memory-constrained environments, since the dictionary requires a large memory limit

## Facets
- artifact type: library
- maturity: active
- function: nlp, parser, search-engine
- domain: machine-learning
- platform: php, cross-platform
- tags: chinese-text-segmentation, word-segmentation, jieba, cjk, traditional-chinese, tf-idf, pos-tagging, hmm, natural-language-processing, search

## Member repositories
- fukuball/jieba-php (main) score 48

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:33.309280+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-30T04:40:29.957647+00:00, confidence not recorded.
  - readme: https://github.com/fukuball/jieba-php (fetched 2026-08-28T04:04:33.309280+00:00, sha cfc67b57a09b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
