infinilabs/analysis-pinyin

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

View on GitHub ↗Jump to charts ↓

infinilabs/analysis-pinyin has 3k+ stars and 500+ forks on GitHub, is written in Java, and was last pushed on May 11, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 12 minutes ago
Added to GitGenius on September 22nd, 2026
Created on May 22nd, 2012
Open Issues & Pull Requests: 22 (+0)
GitHub issues: Enabled
Number of forks: 549
Total Stargazers: 3,095 (+0)
Total Subscribers: 111 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 174.2 days
Mean response time: 830.6 days
90th percentile: 2766.7 days
Tracked items: 101

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 3
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 1,814 days
Stale 30+ days: 3
Stale 90+ days: 3

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

Analysis Pinyin is an Elasticsearch and OpenSearch plugin that converts between Chinese characters and Pinyin romanization.

The plugin addresses the challenge of making Chinese text searchable in Elasticsearch and OpenSearch by providing conversion capabilities. It works through three components: an analyzer, a tokenizer, and a token filter, all named pinyin. The conversion process offers granular control through optional parameters that determine what output forms to generate, such as first letters only, full Pinyin, joined Pinyin, or the original characters. The plugin also handles mixed content containing both Chinese and non-Chinese characters, with options to preserve, separate, or tokenize non-Chinese elements independently.

Teams building search systems for Chinese-language content should consider this plugin if they need flexible Pinyin-based indexing and querying. It suits projects where users may search using Pinyin romanization rather than typing Chinese characters directly. The plugin's extensive parameter set allows tuning for different use cases: keeping only first letters reduces index size for fuzzy matching, while preserving full Pinyin supports more precise searches. The tool maintains compatibility across major versions of both Elasticsearch and OpenSearch, making it suitable for existing deployments.

Development activity shows consistent maintenance with regular updates to support new Elasticsearch and OpenSearch versions. The project receives active bug fixes and feature enhancements addressing edge cases in Chinese text processing. Documentation is thorough, with clear examples demonstrating each parameter's behavior on real Chinese text. The codebase demonstrates attention to performance considerations, such as the option to remove duplicated terms to save index space.