@vuadu/ipa-to-vie
TypeScript icon, indicating that this package has built-in type declarations

0.1.6 • Public • Published

@vuadu/ipa-to-vie

Typescript code to Transcribe English IPA to Vietnamese Phonetic.

Version Downloads/week License Test

Install

Using Yarn

yarn add @vuadu/ipa-to-vie

Using NPM

npm install @vuadu/ipa-to-vie

Usage

ipaToVie

Options

  • uppercaseStress: boolean - uppercase stress syllable of vietnamese transcription

  • vowelEpenthesis: object

type description
skipAll boolean Skip all syllables have null vowel
skipLast boolean Skip end syllable if it has null vowel
replacement string Replace all null vowel with a string

Examples

import { ipaToVie } from '@vuadu/ipa-to-vie';

const viePhonetic = ipaToVie('/əˈkweɪntənsʃɪp/'); // acquaintanceship
console.log(viePhonetic) // ờ-quây-nờ-thờn-xờ-sịp
import { ipaToVie } from '@vuadu/ipa-to-vie';

const options = { uppercaseStress: true };

const viePhonetic = ipaToVie('/əˈkweɪntənsʃɪp/'); // acquaintanceship
console.log(viePhonetic) // ờ-QUÂY-nờ-thờn-xờ-sịp
import { ipaToVie } from '@vuadu/ipa-to-vie';

const options = { vowelEpenthesis: { skipAll: true } };

const viePhonetic = ipaToVie('/əˈkweɪntənsʃɪp/', options); // acquaintanceship
console.log(viePhonetic) // ờ-quây-thờn-sịp
import { ipaToVie } from '@vuadu/ipa-to-vie';

const options = { vowelEpenthesis: { replacement: "_" } };

const viePhonetic = ipaToVie('/əˈkweɪntənsʃɪp/', options); // acquaintanceship
console.log(viePhonetic) // ờ-quây-n_-thờn-x_-sịp

Package Sidebar

Install

npm i @vuadu/ipa-to-vie

Weekly Downloads

7

Version

0.1.6

License

MIT

Unpacked Size

152 kB

Total Files

14

Last publish

Collaborators

  • kietttran
  • cinoss