# infinilabs/analysis-pinyin

🛵 This Pinyin Analysis plugin is used to do conversion between Chinese characters and Pinyin.

Repository: https://github.com/infinilabs/analysis-pinyin
Canonical: https://ross.abutalabs.com/products/analysis-pinyin
Language: Java
License: Apache-2.0
License Family: permissive
Topics: pinyin, pinyin-analysis, conversion, elasticsearch, analyzer, easysearch, opensearch
Last push: 2026-05-11T02:52:10+00:00

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

## Adoption (not part of the score)
Stars 3098, forks 550 (observed 2026-08-28T04:07:43.447046+00:00)

## What it is
A Pinyin analysis plugin for Elasticsearch, OpenSearch, and Easysearch that converts between Chinese characters and Pinyin. It provides a pinyin analyzer, tokenizer, and token filter with configurable options like first-letter extraction, joined full pinyin, and non-Chinese token handling.

## Use cases
- index Chinese names so users can search them by pinyin like 'liudehua'
- enable first-letter search such as typing 'ldh' to match 刘德华
- add pinyin autocomplete or suggestion fields to a Chinese search engine
- tokenize mixed Chinese-English content for full-text search
- build Chinese e-commerce or document search with pinyin matching

## When to choose
- you run Elasticsearch, OpenSearch, or Easysearch and need Chinese-to-pinyin text analysis
- you want configurable pinyin tokenization (first letters, full pinyin, joined pinyin) at index time
- your users search Chinese content using romanized input

## When to avoid
- you need pinyin conversion outside the Elasticsearch/OpenSearch ecosystem
- you need runtime translation or pinyin annotation of text rather than search analysis
- your cluster version is not supported by the plugin's release matrix

## Facets
- artifact type: plugin
- maturity: active
- function: search-engine, parser, nlp
- domain: databases
- platform: jvm
- tags: elasticsearch-plugin, opensearch-plugin, pinyin, chinese-text-analysis, analyzer, tokenizer, token-filter, infinilabs, search, natural-language-processing

## Member repositories
- infinilabs/analysis-pinyin (main) score 59

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:43.447046+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:46:22.273484+00:00, confidence not recorded.
  - readme: https://github.com/infinilabs/analysis-pinyin (fetched 2026-08-28T04:07:43.447046+00:00, sha dc7b47092582)
- Data as of 2026-08-30T08:39:29.467469+00:00.
