papago-ts
v1.0.1
Published
TypeScript wrapper for Papago API.
Downloads
1
Readme
Papago-TS
TypeScript wrapper for Papago API.
Usage
NMT Translation
let papago = new Papago("clientID", "clientSecret")
papago.nmtTranslate("ko", "en", "안녕하세요").then(console.log)
>> Hello
Language Detection
let papago = new Papago("clientID", "clientSecret")
papago.detectLangs("안녕하세요!").then(console.log)
>> ko
Name Romanization
let papago = new Papago("clientID", "clientSecret")
papago.romanziation("이지은").then(console.log)
>> {
sFirstName: '이',
aItems: [
{ name: 'Lee Jieun', score: '99' },
{ name: 'Lee Jeeeun', score: '27' },
{ name: 'Lee Jien', score: '27' },
{ name: 'Lee Jeeen', score: '7' }
]
}