0.2.1 • Published 10 months ago

@vuadu/ipa-to-vie v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@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

typedescription
skipAllbooleanSkip all syllables have null vowel
skipLastbooleanSkip end syllable if it has null vowel
replacementstringReplace 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ê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Ê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ên-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ên-thờn-x-sịp
0.1.10

11 months ago

0.1.11

11 months ago

0.1.12

11 months ago

0.1.13

10 months ago

0.1.14

10 months ago

0.2.1

10 months ago

0.2.0

10 months ago

0.1.9

11 months ago

0.1.8

11 months ago

0.1.7

11 months ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago