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.
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.
You can install the development version from GitHub with:
# install.packages("remotes")
remotes::install_github("stefanocoretta/phonetisr")
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ʰ" "ɯ"