Skip to content

stefanocoretta/phonetisr

Repository files navigation

phonetisr: A Very Naive IPA Tokeniser

This package is a (very naive) tokeniser of phonetic transcriptions in the International Phonetic Alphabet (IPA).

With phonetisr, you can parse texts and word lists transcribed in IPA and tokenise them into phones so that you can perform quantitative analyses.

Installation

You can install the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("stefanocoretta/phonetisr@v0.0.5")

Usage

library(phonetisr)

# IPA strings to be tokenised
ipa <- c("pʰãkʰ", "tʰum̥", "ɛkʰɯ")

# List of character sequences to be considered single phones
ph <- c("", "", "", "", "")

# Tokenise strings
phonetise(ipa, multi = ph)

Roadmap

  • Scan for illegal (non-IPA) characters.
  • Provide a list of default multi-character phones.
  • Functions for data import/export.
  • Ignore diacritics.