en-ipa

0.0.1 • Public • Published

en-ipa

Translates an array of english words To IPA.

Getting Started

const en2ipa = require('en-ipa')

const words = [
    'matter', 
    'glass',
    'water',
    'sdfsdf',
    'brother',
    'sister'
]

const run = async () => {
    const data = await en2ipa(words)
    console.log(data)
    /*
        [
            { word: 'matter', phonetic: 'ˈmætər', success: true },
            { word: 'glass', phonetic: 'glæs', success: true },
            { word: 'water', phonetic: 'ˈwɔtər', success: true },
            { word: 'sdfsdf', phonetic: 'sdfsdf', success: false },
            { word: 'brother', phonetic: 'ˈbrʌðər', success: true },
            { word: 'sister', phonetic: 'ˈsɪstər', success: true }
        ]
    */ 
}

run()

Readme

Keywords

none

Package Sidebar

Install

npm i en-ipa

Weekly Downloads

4

Version

0.0.1

License

ISC

Unpacked Size

16.8 kB

Total Files

6

Last publish

Collaborators

  • chen7david