syllabify: Syllabify

View source: R/syllabify.R

syllabifyR Documentation

Syllabify

Description

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

Usage

syllabify(pron, alaska_rule = T)

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

Returns a data frame with the following columns

syll

A numeric index for each syllable

part

What part of the syllable each phone belongs to

phone

The phone label from the transcription

stress

The syllable stress

Examples

# String input
syllabify("AO0 S T R EY1 L Y AH0")

# Vector input
syllabify(c("AO0", "S", "T", "R", "EY1", "L", "Y", "AH0"))

# Hiatus
syllabify("HH AY0 EY1 T AH0 S")

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

JoFrhwld/syllabifyr documentation built on Jan. 14, 2024, 11:41 p.m.