0.0.1 • Published 2 years ago

en-ipa v0.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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()