# hightman/scws

开源免费的简易中文分词系统，PHP分词的上乘之选！

Repository: https://github.com/hightman/scws
Canonical: https://ross.abutalabs.com/products/scws
Homepage: http://www.xunsearch.com/scws/
Language: PHP
License: NOASSERTION
License Family: other
Last push: 2025-03-19T16:00:21+00:00

## Health v2 (maintenance only)
Score: 28/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 12, release rhythm 8, longevity 100
- inputs: {"age_days": 5578, "days_push": 532, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1681, forks 347 (observed 2026-08-28T04:05:21.632617+00:00)

## What it is
SCWS (Simple Chinese Word Segmentation) is a dictionary-based mechanical Chinese word segmentation engine written in pure C, with no external dependencies, supporting GBK and UTF-8 encodings. It ships as a C library (libscws), a command-line tool, and a PHP extension for fast tokenization of Chinese text.

## Use cases
- segment Chinese text into words for search indexing
- extract keywords from Chinese documents in PHP
- tokenize Chinese text from the command line
- build a small Chinese full-text search engine
- split Chinese strings into words for NLP preprocessing
- embed a lightweight C segmentation library into an application

## When to choose
- you need fast, dependency-free Chinese word segmentation in C or PHP
- you are building a small search engine or keyword extractor for Chinese text
- you want a mature, lightweight tokenizer without heavy ML dependencies

## When to avoid
- you need state-of-the-art accuracy on complex modern Chinese text
- you want a pure PHP solution without compiling C extensions
- you need segmentation for languages other than Chinese

## Facets
- artifact type: library
- maturity: maintenance
- function: nlp, search-engine, parser, cli
- domain: developer-tools
- platform: windows, php, cpp, c, cli
- tags: chinese-word-segmentation, text-segmentation, php-extension, dictionary-based, keyword-extraction, full-text-search, natural-language-processing, search, linux, macos

## Member repositories
- hightman/scws (main) score 28

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:21.632617+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-30T03:41:25.547504+00:00, confidence not recorded.
  - readme: https://github.com/hightman/scws (fetched 2026-08-28T04:05:21.632617+00:00, sha d83779d01988)
  - homepage: http://www.xunsearch.com/scws/ (fetched 2026-08-29T11:14:35.418093+00:00, sha 14e1ad8d4229)
  - site_page: https://www.xunsearch.com/scws/docs.php (fetched 2026-08-29T11:14:35.427672+00:00, sha bfc8c7391ec3)
  - site_page: https://www.xunsearch.com/scws/about.php (fetched 2026-08-29T11:14:35.430869+00:00, sha 1d8b5bbb1f6d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
