pinyin-rest
v1.0.2
Published
Rest API to convert Chinese characters to Pinyin and convert between Pinyin with tone marks and Pinyin with tone numbers.
Maintainers
Readme
Pinyin Rest
Install
npm install pepebecker/pinyin-restGET /pinyin/...
Examples
GET: https://pinyin-rest.pepebecker.com/pinyin/我的猫喜欢喝牛奶
=> wǒ de māo xǐ huān hē niú nǎiGET: https://pinyin-rest.pepebecker.com/pinyin/wo3 xi3huan1 he1 cha2
=> wǒ xǐhuān hē cháGET: https://pinyin-rest.pepebecker.com/pinyin/wǒ xǐhuān hēchá?keepSpaces=true'
=> wo3 xi3huan1 he1 cha2GET: https://pinyin-rest.pepebecker.com/pinyin/woxihuanhecha?split=true
=> ["wo", "xi", "huan", "he", "cha"]GET /hanzi/...
Examples
GET: https://pinyin-rest.pepebecker.com/hanzi/喜
=> [
{
"hanzi": "喜",
"pinyin": ["xǐ", "xī", "chì"],
"cangjie": "GRTR",
"cangjie2": "土口廿口",
"strokes": "12",
"frequency": "2",
"definition": "like, love, enjoy; joyful thing"
}
]Related
pinyin-utilspinyin-splitfind-hanzihsk-wordspinyin-or-hanzihanzi-to-pinyinpinyin-convertpinyin-apipinyin-bot-corepinyin-telegrampinyin-messenger
Contributing
If you have a question, found a bug or want to propose a feature, have a look at the issues page.
