# promeG/TinyPinyin

适用于Java和Android的快速、低内存占用的汉字转拼音库。

Repository: https://github.com/promeG/TinyPinyin
Canonical: https://ross.abutalabs.com/products/tinypinyin
Language: Java
License: Apache-2.0
License Family: permissive
Topics: pinyin, java-android, character
Last push: 2024-11-25T06:53:20+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3990, "days_push": 646, "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 3949, forks 494 (observed 2026-08-28T04:08:30.370308+00:00)

## What it is
TinyPinyin is a fast, low-memory Java and Android library for converting Chinese characters to Pinyin without tones. It supports custom dictionaries for handling polyphonic characters and both simplified and traditional Chinese.

## Use cases
- convert Chinese characters to pinyin in an Android app
- sort a contact list alphabetically by pinyin
- handle polyphonic Chinese characters with a custom dictionary
- replace Pinyin4J with a faster, lighter pinyin library
- check whether a character is Chinese
- convert simplified and traditional Chinese text to pinyin

## When to choose
- you need tone-free uppercase pinyin on Java or Android
- memory footprint and conversion speed matter (4-16x faster than Pinyin4J, under 30KB)
- you need custom dictionaries for polyphonic characters or city names

## When to avoid
- you need pinyin with tone marks or dialect romanizations
- you are not working on the JVM (e.g., Python, Go, JavaScript)
- you need full Unicode transliteration beyond Chinese characters

## Facets
- artifact type: library
- maturity: stable
- function: nlp, internationalization, parser
- domain: developer-tools
- platform: jvm
- tags: pinyin, chinese-characters, low-memory, custom-dictionary, text-conversion, natural-language-processing, localization, android

## Member repositories
- promeG/TinyPinyin (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:30.370308+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:24:33.322692+00:00, confidence not recorded.
  - readme: https://github.com/promeG/TinyPinyin (fetched 2026-08-28T04:08:30.370308+00:00, sha 961d6b7339c0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
