View source: R/hyphen.r View source: R/RcppExports.R
hyphenate | R Documentation |
Given a character vector (one word per element), this function will hyphenate the strings or return a list of separated hyphenated string components.
hyphenate(words, simplify = TRUE)
words |
character vector of words |
simplify |
if |
a character vector or a list depending on the value of
simplify
.
The en_US
hyphenation rules dictionary is loaded by default
dat <- readLines(system.file("extdata/top10000en.txt", package="hyphenatr"))
out1 <- hyphenate(dat)
out2 <- hyphenate(dat, simplify=FALSE)
out3 <- hyphenate(dat, simplify="-")
out4 <- hyphenate(dat, simplify="­")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.