R/data.R

#' Syllable counts of English words
#'
#' A named integer vector of syllable counts for English words. Based on a
#' pronunciation dictionary for North American English that contains over
#' 134,000 words and their pronunciations, from the [Carnegie Mellon University
#' Pronouncing Dictionary](https://github.com/cmusphinx/cmudict).
#'
#' @note
#'   `data_syllables_en` is a data object consisting of a named numeric vector
#'   of syllable counts for the words used as names.  This is the default object
#'   used to count English syllables.  For words with multiple pronunciation
#'   variants, we use the first entry.
#'
#'   This object that can be accessed directly, but we strongly encourage you to
#'   access it only through the [nsyllable()] wrapper function.
#' @source Version 0.7b of the CMU Pronouncing Dictionary.  See
#'   <https://github.com/cmusphinx/cmudict>.
"data_syllables_en"

Try the nsyllable package in your browser

Any scripts or data that you put into this service are public.

nsyllable documentation built on March 18, 2022, 6:37 p.m.