syllabify_list: Syllabify to a list

Description Usage Arguments Value Examples

View source: R/syllabify.R

Description

This will take a transcription as input, and return it as a list.

Usage

1
syllabify_list(pron, alaska_rule = TRUE)

Arguments

pron

The CMU dictionary pronunciation, either as a vector, or a string with labels separated by spaces

alaska_rule

Don't maximize onset on lax vowel + s sequences

Value

A with one value per syllable. Each value is a list, with three values: onset, nucleus, coda. Each will contain a vector of the phones which belong to each constituent part of the syllable. Any empty constituent parts will have the value character(0)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# String input
syllabify_list("AO0 S T R EY1 L Y AH0")

# Vector input
syllabify_list(c("AO0", "S", "T", "R", "EY1", "L", "Y", "AH0"))
# Hiatus
syllabify_list("HH AY0 EY1 T AH0 S")

# Deficient transcriptions (has warning)
syllabify_list(c("M"))

syllabifyr documentation built on Oct. 25, 2020, 1:07 a.m.