Total Pageviews

Thursday, 30 June 2022

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

  • Node.js 12.18.3 or 14.x+
  • npm or yarn
  • Parcel (for demo and deployment usage; NOT the DEPRECATED parcel-bundler!!!)

Install CLI

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

# For local usage:
npm i ipa-jfk
# or:
yarn add 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
# or:
yarn install
npm run demo
# or:
yarn demo
# A server will be running at http://localhost:1234

CLI Usage

jfk [--unicode|--html|--latex] [--phonemic] <word> [<phoneme>...]
  • Output format:
    • --unicode: (default) UTF-8 encoded IPA in unicode.
    • --html: HTML entities of IPA in unicode.
    • --latex: LaTeX script for the TIPA package.
  • --phonemic: Disable narrow transcription, only use broad one.
  • <word>: Which word to translate.
  • <phoneme>: The reference phonemes to use.

FAQ

  • How do you get these?

    Phonemes are retrived from The CMU Pronouncing Dictionary. Phonemes are translated into allophones using a fixed set of rules.

  • I don't understand the complex syntax!

    Go back and learn IPA. The real IPA, not simplified ones. Including diacritics.

  • I live in NYC and this is not my accent.

    You may open an issue here, but we are unlikely to change the rules.

  • Too few words available.

    You should blame CMU. Alternatively, use the reference phonemes in ARPAbet format.

  • Some phonemes are totally incorrect.

    Also blame CMU. You may want to override it by using reference phonemes.

  • Syllabification or /æ/-raising incorrect.

    You may want to override it by using hints (undocumented feature). See the source code.

     from https://github.com/b1f6c1c4/IPA-JFK

 

No comments:

Post a Comment