ph_search {phonetisr} | R Documentation |
Search phones
Description
Given a vector of phonetised strings, find phones.
Usage
ph_search(phlist, phonex)
Arguments
phlist |
The output of |
phonex |
A phonetic expression. Supported shorthands are |
Value
A list.
Examples
ipa <- c("p\u02B0a\u0303k\u02B0", "t\u02B0um\u0325", "\u025Bk\u02B0\u026F", "pun")
ph <- c("p\u02B0", "t\u02B0", "k\u02B0", "a\u0303", "m\u0325")
ipa_ph <- phonetise(ipa, multi = ph)
ph_search(ipa_ph, "#CV")
# partial matches are also returned
ph_search(ipa_ph, "p")
# use regular expressions
ph_search(ipa_ph, "p\u02B0?V")
[Package phonetisr version 0.1.0 Index]