A Naive IPA Tokeniser

It provides users with functions to parse International Phonetic Alphabet (IPA) transcriptions into individual phones (tokenisation) based on default IPA symbols and optional user specified multi-character phones. The tokenised transcriptions can be used for obtaining counts of phones or for searching for words matching phonetic patterns.


phonetisr: A Naive IPA Tokeniser

This package is a (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")

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("pʰ", "tʰ", "kʰ", "ã", "m̥")

# Tokenise strings
phonetise(ipa, multi = ph)
#> [[1]]
#> [1] "pʰ" "ã"  "kʰ"
#> 
#> [[2]]
#> [1] "tʰ" "u"  "m̥" 
#> 
#> [[3]]
#> [1] "ɛ"  "kʰ" "ɯ"

Roadmap

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

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("phonetisr")

0.1.0 by Stefano Coretta, 2 years ago


https://github.com/stefanocoretta/phonetisr, https://stefanocoretta.github.io/phonetisr/


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


Authors: Stefano Coretta [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports cli, dplyr, lifecycle, magrittr, stringi, stringr, tibble, Unicode

Suggests rmarkdown, knitr, tidyverse


See at CRAN