{"id":45893079,"url":"https://github.com/qzw1210/jpinyin","last_synced_at":"2026-03-13T06:00:59.179Z","repository":{"id":54990064,"uuid":"69006419","full_name":"qzw1210/jpinyin","owner":"qzw1210","description":"拼音和汉字之间的转换、简体汉字和繁体汉字之间的转换","archived":false,"fork":false,"pushed_at":"2022-11-14T10:38:28.000Z","size":123,"stargazers_count":127,"open_issues_count":6,"forks_count":46,"subscribers_count":4,"default_branch":"master","last_synced_at":"2023-11-07T18:48:15.614Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qzw1210.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-23T08:41:45.000Z","updated_at":"2023-11-06T03:24:12.000Z","dependencies_parsed_at":"2023-01-21T15:37:48.671Z","dependency_job_id":null,"html_url":"https://github.com/qzw1210/jpinyin","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/qzw1210/jpinyin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qzw1210%2Fjpinyin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qzw1210%2Fjpinyin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qzw1210%2Fjpinyin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qzw1210%2Fjpinyin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qzw1210","download_url":"https://codeload.github.com/qzw1210/jpinyin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qzw1210%2Fjpinyin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30459760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T03:55:51.346Z","status":"ssl_error","status_checked_at":"2026-03-13T03:55:33.055Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-27T19:00:39.319Z","updated_at":"2026-03-13T06:00:59.161Z","avatar_url":"https://github.com/qzw1210.png","language":"Java","funding_links":[],"categories":["人工智能"],"sub_categories":["自然语言处理"],"readme":"# jpinyin - A opensource java library for converting chinese to pinyin\n\nJPinyin是一个汉字转拼音的Java开源类库，在PinYin4j的功能基础上做了一些改进。\u003cbr\u003e\n\n【JPinyin主要特性】\u003cbr\u003e\n\n1、准确、完善的字库；\u003cbr\u003e\n\nUnicode编码从4E00-9FA5范围及3007（〇）的20903个汉字中，JPinyin能转换除46个异体字（异体字不存在标准拼音）之外的所有汉字；\u003cbr\u003e\n\n2、拼音转换速度快；\u003cbr\u003e\n\n经测试，转换Unicode编码从4E00-9FA5范围的20902个汉字，JPinyin耗时约100毫秒。\u003cbr\u003e\n\n3、多拼音格式输出支持；\u003cbr\u003e\n\nJPinyin支持多种拼音输出格式：带音标、不带音标、数字表示音标以及拼音首字母输出格式；\u003cbr\u003e\n\n4、常见多音字识别；\u003cbr\u003e\n\nJPinyin支持常见多音字的识别，其中包括词组、成语、地名等；\u003cbr\u003e\n\n5、简繁体中文转换；\u003cbr\u003e\n\n6、支持添加用户自定义字典；\u003cbr\u003e\n\n## Maven\n\n``` xml\n    \u003cdependency\u003e\n       \u003cgroupId\u003ecom.github.stuxuhai\u003c/groupId\u003e\n       \u003cartifactId\u003ejpinyin\u003c/artifactId\u003e\n       \u003cversion\u003e1.1.7\u003c/version\u003e\n    \u003c/dependency\u003e\n```\n\n## Usage\n\n``` java\n    String str = \"你好世界\";\n    PinyinHelper.convertToPinyinString(str, \",\", PinyinFormat.WITH_TONE_MARK); // nǐ,hǎo,shì,jiè\n    PinyinHelper.convertToPinyinString(str, \",\", PinyinFormat.WITH_TONE_NUMBER); // ni3,hao3,shi4,jie4\n    PinyinHelper.convertToPinyinString(str, \",\", PinyinFormat.WITHOUT_TONE); // ni,hao,shi,jie\n    PinyinHelper.getShortPinyin(str); // nhsj\n    PinyinHelper.addPinyinDict(\"user.dict\");  // 添加用户自定义字典\n```\n\n## Thanks\n\n[@snakezzl](https://github.com/snakezzl)\n\n[@yuanboliu](https://github.com/yuanboliu)\n\n[@xamous](https://github.com/xamous)\n\n[@lkfs](https://github.com/lkfs)\n\n[@latifrons](https://github.com/latifrons)\n\n[@baimoon](https://github.com/baimoon)\n\n[@chorar](https://github.com/chorar)\n\n[@ShaomingLi](https://github.com/ShaomingLi)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqzw1210%2Fjpinyin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqzw1210%2Fjpinyin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqzw1210%2Fjpinyin/lists"}