en-ipa
v0.0.1
Published
Translates an array of english words To IPA.
Downloads
3
Readme
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()