https://github.com/b1f6c1c4/ipa-pek
IPA narrow transcription of Chinese Mandarin words in Beijing accent
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.2%) to scientific vocabulary
Repository
IPA narrow transcription of Chinese Mandarin words in Beijing accent
Basic Info
- Host: GitHub
- Owner: b1f6c1c4
- License: agpl-3.0
- Language: JavaScript
- Default Branch: master
- Size: 347 KB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
IPA-PEK
IPA narrow transcription of Chinese Mandarin words in Beijing accent
Online Demo Website
You can lookup pinyin on our hassle-free Demo Website!
Prerequisites
- Node.js 17.x+
- npm
- Parcel (for demo and deployment usage)
Install CLI
```bash
For cli or global usage:
npm i -g ipa-pek
or:
yarn global add ipa-pek
For local usage:
npm i ipa-pek
or:
yarn add ipa-pek ```
Local Demo
bash
npm i
```bash
npm run demo
A server will be running at http://localhost:1234
```
CLI Usage
bash
pek [--unicode|--html|--latex] <word>
- Output format:
--unicode: (default) UTF-8 encoded IPA in unicode.--html: HTML entities of IPA in unicode.--latex: LaTeX script for the TIPA package.
<pinyin>: Which word to translate.
Library Usage
```js const pek = require('ipa-pek');
// Get phonetics
// The third parameter is phonemic/phonetic switch.
const ir = pek.process('
// Output console.log(pek.unicode(ir)); console.log(pek.html(ir)); console.log(pek.latex(ir)); ```
FAQ
How do you get these?
Pinyin are translated into allophones using a fixed set of rules.
I don't understand the complex syntax!
Go back and learn IPA. The real IPA, not simplified ones. Including diacritics.
I live in Beijing and this is not my accent.
You may open an issue here, but we are unlikely to change the rules.
License
This project is licensed under GNU AGPL v3.0 only. (AGPL-3.0-only).
Owner
- Login: b1f6c1c4
- Kind: user
- Location: NJ, USA
- Company: Princeton University
- Repositories: 26
- Profile: https://github.com/b1f6c1c4
52BE D143 A92D BE96 2B83 092B 9BAC 0164 9600 1E70
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- 547 dependencies
- eslint ^7.23.0 development
- mkdirp ^1.0.4 development
- parcel ^2.0.0-rc.0 development
- postcss-selector-parser ^6.0.6 development
- escape-string-regexp ^4.0.0
- htmlencode 0.0.4
- tipa2unicode ^0.1.1
- yargs ^16.2.0