https://github.com/muan/romanize-names
Romanize names in Traditional Chinese (zh-TW).
https://github.com/muan/romanize-names
chinese romanization
Last synced: about 1 year ago
JSON representation
Romanize names in Traditional Chinese (zh-TW).
- Host: GitHub
- URL: https://github.com/muan/romanize-names
- Owner: muan
- License: mit
- Created: 2015-08-28T08:36:11.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-07-12T08:54:24.000Z (almost 9 years ago)
- Last Synced: 2025-06-14T22:44:22.091Z (about 1 year ago)
- Topics: chinese, romanization
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 101
- Watchers: 5
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# Romanize names [](https://travis-ci.org/muan/romanize-names) [](https://github.com/feross/standard)
Romanizing Chinese names for Taiwan. [It's a :poop: show.](https://en.wikipedia.org/wiki/Chinese_language_romanization_in_Taiwan)
## Install
```
npm install romanize-names
```
## Usage
```javascript
var romanize = require('romanize-names')
romanize(name_in_zhTW, system)
```
`system` String
- `WG` (default) https://en.wikipedia.org/wiki/Wade%E2%80%93Giles
- `MPS-II` https://en.wikipedia.org/wiki/Mandarin_Phonetic_Symbols_II
- `TONGYONG` https://en.wikipedia.org/wiki/Tongyong_Pinyin
- `HANYU` https://en.wikipedia.org/wiki/Pinyin
## Examples
```javascript
romanize('張懸')
> Hsuan Chang
romanize('張懸', 'MPS-II')
> Shiuan Jang
romanize('張懸', 'TONGYONG')
> Syuan Jhang
romanize('張懸', 'HANYU')
> Xuan Zhang
```
```javascript
romanize('秋木安')
> Mu-An Chiu
romanize('秋木安', 'MPS-II')
> Mu-An Chiou
romanize('秋木安', 'TONGYONG')
> Mu-An Ciou
romanize('秋木安', 'HANYU')
> Mu-An Qiu
```
```javascript
romanize('范姜峻宏')
> Chun-Hung Fan-Chiang
romanize('范姜峻宏', 'MPS-II')
> Jiun-Hung Fan-Jiang
romanize('范姜峻宏', 'TONGYONG')
> Jyun-Hong Fan-Jiang
romanize('范姜峻宏', 'HANYU')
> Jun-Hong Fan-Jiang
```
## Data Sources
- Unicode Character Database – Unihan (via [unicode-mandarin-readings](https://github.com/muan/unicode-mandarin-readings))
- [Bureau of Consular Affairs (Taiwan)](http://www.boca.gov.tw/ct.asp?xItem=5609&ctNode=677&mp=1)