{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/3"},{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing"}],"enrichment":{"capability":"Converts Chinese characters to pinyin (romanized pronunciation) with support for multiple styles, heteronyms, and tone marks.","skillfed_tags":["chinese-nlp","romanization","i18n"],"use_cases":["Add pinyin annotations above Chinese characters in educational materials or textbooks","Implement search-by-pinyin functionality in applications handling Chinese text","Sort lists of Chinese names or terms alphabetically by their pinyin pronunciation","Extract initial consonants or final vowel sounds from Chinese characters for linguistic analysis","Convert Chinese text to Wade-Giles or bopomofo notation for specialized linguistic or historical purposes","Batch process Chinese documents to generate phonetic transcriptions for accessibility or text-to-speech systems"],"what_it_does":"pypinyin is a Chinese character-to-pinyin conversion library that transliterates hanzi (Chinese characters) into their romanized pronunciation forms. It handles context-aware pronunciation selection for multi-pronunciation characters (heteronyms), supports multiple output styles (tone marks, tone numbers, bopomofo notation, Wade-Giles romanization, initials/finals extraction), and includes a command-line tool for quick conversions.\n\nThe library uses embedded pinyin and phrase data to make intelligent decisions about which pronunciation to use based on word context. It supports both simplified and traditional Chinese, offers customizable output formatting, and allows users to override or extend the built-in pronunciation dictionaries. Common use cases include adding pronunciation annotations to Chinese text, sorting Chinese strings phonetically, and enabling search-by-pinyin functionality in applications.","worth_installing":"Yes. pypinyin is a mature, actively maintained library with no known vulnerabilities, permissive licensing, and low installation friction. It is the standard tool for Chinese-to-pinyin conversion in Python and handles the complexity of context-aware pronunciation selection well. Install it if you need to work with Chinese character romanization; the only caveat is that accuracy depends on proper word segmentation and may require custom dictionary augmentation for domain-specific or rare characters."},"id":"pypinyin","links":{"html":"https://skillfed.io/packages/pypinyin","md":"https://skillfed.io/packages/pypinyin.md","pypi":"https://pypi.org/project/pypinyin/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-07-20","license_spdx":null,"license_treatment":"permissive","name":"pypinyin","python_support":"supports_current","summary":"\u6c49\u5b57\u62fc\u97f3\u8f6c\u6362\u6a21\u5757/\u5de5\u5177."},"popularity":{"monthly_downloads":1782631,"position":3566,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.55.0"}
