Skip to contents

Given a list of phonetised strings, find phones.

Usage

ph_search(phlist, phonex)

Arguments

phlist

A list of phones or the output of phonetise().

phonex

A phonetic expression. Supported shorthands are C for consonant, V for vowel, and # for word boundary.

Value

A list.

Examples

ipa <- c("pʰãkʰ", "tʰum̥", "ɛkʰɯ")
ph <- c("pʰ", "tʰ", "kʰ", "ã", "m̥")
ipa_ph <- phonetise(ipa, multi = ph)
ph_search(ipa_ph, "#CV")
#> [[1]]
#> [[1]][[1]]
#> [1] "pʰã"
#> 
#> 
#> [[2]]
#> [[2]][[1]]
#> [1] "tʰu"
#> 
#> 
#> [[3]]
#> [[3]][[1]]
#> character(0)
#> 
#>