zh-lx/pinyin-pro

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

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 40 minutes ago
Added to GitGenius on September 14th, 2026
Created on October 25th, 2020
Open Issues & Pull Requests: 4 (+0)
GitHub issues: Enabled
Number of forks: 397
Total Stargazers: 4,719 (+0)
Total Subscribers: 31 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 9.1 hours
Mean response time: 11.8 days
90th percentile: 19.2 days
Tracked items: 43

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 1
New in 7 days: 0
Closed in 7 days: 2
Avg open age: 568 days
Stale 30+ days: 1
Stale 90+ days: 1

Recent activity

Opened in 7 days: 0
Closed in 7 days: 2
Comments in 7 days: 1
Events in 7 days: 3

Top labels

  • bug (3)
  • dictionary (2)
  • enhancement (2)
  • feature (1)
  • need discussion (1)
  • not in plan (1)
  • question (1)

Detailed Description

pinyin-pro is a JavaScript library for converting Chinese characters to pinyin romanization with support for tone marks, initial consonants, and final vowels.

The library addresses the need for accurate and performant Chinese character processing in web applications. It converts hanzi to various pinyin representations—full pinyin with tone marks, initials, finals, first letters, and tone numbers—while handling polyphonic characters and proper names. The tool also enables matching between text and pinyin representations, custom pinyin definitions, and word segmentation with pinyin output. It generates HTML strings with ruby annotations for displaying pinyin above characters in browsers.

Developers should choose this tool if they need reliable Chinese character processing for search, input methods, or display purposes. It suits projects requiring high accuracy in pinyin conversion, particularly those handling personal names or requiring multiple pinyin output formats for polyphonic characters. The README compares it against pinyin and @napi-rs/pinyin packages, claiming superior performance and accuracy across conversion speed and character recognition benchmarks.

Development activity shows consistent engagement with the project. The maintainer actively responds to issues and incorporates user feedback into the codebase. Pull requests receive timely review and integration. The project maintains comprehensive documentation with examples and an interactive online playground for testing functionality. Regular updates address edge cases and expand feature coverage based on user needs.