Convert Between Phonetic Alphabets

Converts character vectors between phonetic representations. Supports IPA (International Phonetic Alphabet), X-SAMPA (Extended Speech Assessment Methods Phonetic Alphabet), and ARPABET (used by the CMU Pronouncing Dictionary).


ipa

Lifecycle:experimental License:MIT R buildstatus Codecov testcoverage

Convert character vectors between phonetic representations. Supports IPA, X-SAMPA and ARPABET (used by the CMU Pronouncing Dictionary).

Installation

You can install the development version of ipa from GitHub with:

install_github("rossellhayes/ipa")

Usage

My main use case for ipa is including phonetic representations in R markdown files. You can enter phonetic information as plain-text X-SAMPA and have it rendered as IPA.

`r sampa('/aI pi: "eI/')`

/aɪ piː ˈeɪ/

`r sampa(c('/"nom.b4e/', '/nO~bR/'))`

/ˈnom.bɾe/, /nɔ̃bʁ/

You can also get the X-SAMPA representation of IPA strings.

ipa("/aɪ piː ˈeɪ/")

/aI pi: "eI/

ipa(c("/ˈnom.bɾe/", "/nɔ̃bʁ/"))

/nom.b4e/, /nO~bR/

ARPABET support allows ipa to automatically convert results from the phon package.

# remotes::install_github("coolbutuseless/phon")
arpa(phon::phonemes("pronounce"))

pɹʌnaʊns


Please note that ipa is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ipa")

0.1.0 by Alexander Rossell Hayes, 6 years ago


https://github.com/rossellhayes/ipa


Report a bug at https://github.com/rossellhayes/ipa/issues


Browse source code at https://github.com/cran/ipa


Authors: Alexander Rossell Hayes [aut, cre, cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports stringi

Suggests covr, testthat


Imported by praatpicture.


See at CRAN