# zh-lx/pinyin-pro

中文转拼音、拼音音调、拼音声母、拼音韵母、多音字拼音、姓氏拼音、拼音匹配、中文分词

Repository: https://github.com/zh-lx/pinyin-pro
Canonical: https://ross.abutalabs.com/products/pinyin-pro
Homepage: https://pinyin-pro.cn
Language: TypeScript
License: MIT
License Family: permissive
Topics: pinyin-pro, pinyin, hanzi, hanzi-pinyin, hanzi2pinyin, js-pinyin, pinyin-match
Last push: 2026-08-23T15:58:02+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 98, longevity 100
- inputs: {"age_days": 2138, "days_push": 10, "days_rel": 15, "gap_med": 7.5, "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 4689, forks 392 (observed 2026-08-28T04:08:57.028234+00:00)

## What it is
A high-performance Chinese-to-Pinyin conversion library for JavaScript/TypeScript. It converts Chinese characters to pinyin with tones, initials, finals, and first letters, and supports pinyin matching and Chinese word segmentation.

## Use cases
- convert chinese characters to pinyin in javascript
- get pinyin with tones for hanzi text
- match pinyin against chinese text for fuzzy search
- extract pinyin initials and finals from chinese
- handle polyphonic chinese characters correctly
- segment chinese text into words
- generate html with pinyin annotations above chinese characters

## When to choose
- you need accurate pinyin conversion including polyphonic characters and surnames
- you need to convert large volumes of Chinese text quickly
- you want pinyin-based fuzzy matching for search inputs
- you work in a JavaScript/TypeScript environment

## When to avoid
- you need pinyin conversion outside the JS/TS ecosystem
- you need full Chinese NLP beyond pinyin and basic segmentation

## Facets
- artifact type: library
- maturity: active
- function: nlp, parser, search-engine
- domain: developer-tools
- platform: browser, cross-platform
- tags: pinyin, chinese, hanzi, word-segmentation, text-conversion, natural-language-processing, localization, nodejs, typescript

## Member repositories
- zh-lx/pinyin-pro (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:57.028234+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-29T18:19:16.819662+00:00, confidence not recorded.
  - readme: https://github.com/zh-lx/pinyin-pro (fetched 2026-08-28T04:08:57.028234+00:00, sha 9bbaaa5ef0b8)
  - homepage: https://pinyin-pro.cn (fetched 2026-08-29T09:03:33.421797+00:00, sha 98af6957008c)
  - registry_npm: https://registry.npmjs.org/pinyin-pro (fetched 2026-08-29T09:03:33.430507+00:00, sha e667a6838038)
- Data as of 2026-08-30T08:39:29.467469+00:00.
