https://github.com/cclient/js_hanzitopinyin
https://github.com/cclient/js_hanzitopinyin
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cclient/js_hanzitopinyin
- Owner: cclient
- Created: 2016-12-22T09:01:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-22T09:10:57.000Z (over 9 years ago)
- Last Synced: 2025-03-06T11:43:49.101Z (over 1 year ago)
- Language: JavaScript
- Size: 103 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hanzi convert to pinyin and pinyin search
##实现功能
###1汉字转拼音
###2拼音转汉字
###3同音字/词模糊查询
实现方式比较粗糙,具体可根据场景和词频作优先级优化
var hanzisearch=require('hanzitopinyin');
hanzisearch.ToPinyin("小");
hanzisearch.ToHanZi("da"));
hanzisearch.getAllLikeNames("小明"));