Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

khk4912/Papago-TS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Papago-TS

TypeScript wrapper for Papago API.

Install

npm install papago-ts

Usage

NMT Translation

import Papago from "papago-ts"

let papago = new Papago("clientID", "clientSecret")
papago.nmtTranslate("ko", "en", "안녕하세요").then(console.log)
>> Hello

Language Detection

import Papago from "papago-ts"

let papago = new Papago("clientID", "clientSecret")
papago.detectLangs("안녕하세요!").then(console.log)
>> ko

Name Romanization

import Papago from "papago-ts"

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' }
  ]
}

About

TypeScript wrapper for Papago.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published