count_string("I like chicken and eggs for breakfast")
count_string(hamlets_soliloquy)
library(stringi)
data.frame(
word = stri_extract_all_words(stri_trans_tolower(hamlets_soliloquy))[[1]],
syllables = count_string(hamlets_soliloquy)
)
Run the code above in your browser using DataLab