Home

Awesome

IPA-JFK

IPA narrow transcription of English words in New York City accent

Online Demo Website

Netlify Status

You can lookup words on our hassle-free Demo Website!

Prerequisites

Install CLI

# For cli or global usage:
npm i -g ipa-jfk

# For local usage:
npm i ipa-jfk

Local Demo

Additional instruction for Windows users: Remember to amend scripts.prepare and scripts.start fields in package.json prior to running:

"prepare": "node ./scripts/download.js"
...
"start": "node ./bin/jfk.js"

npm i
npm run demo
# A server will be running at http://localhost:1234

CLI Usage

jfk [--unicode|--html|--latex] [--phonemic] <word> [<phoneme>...]

Library Usage

impotrt * as jfk from 'ipa-jfk';

// Cache the whole database to speed up future lookups
jfk.cacheDatabase();

// Get phonemes (it returns an array)
const [ph] = jfk.queryDatabase('<word>');
// Alternatively, you can supply your own phonemes.

// Get phonetics
// The third parameter is phonemic/phonetic switch.
const ir = jfk.process('<word>', ph, false);

// Output
console.log(jfk.unicode(ir));
console.log(jfk.html(ir));
console.log(jfk.latex(ir));

FAQ

License

This project is licensed under GNU AGPL v3.0 only. (AGPL-3.0-only).