Counting syllables

前端 未结 4 2094
-上瘾入骨i
-上瘾入骨i 2021-02-13 03:50

I\'m looking to assign some different readability scores to text in R such as the Flesh Kincaid.

Does anyone know of a way to segment words into syllables using R? I

4条回答
  •  情话喂你
    2021-02-13 04:02

    qdap version 1.1.0 does this task:

    library(qdap)
    x <- c('dog', 'cat', 'pony', 'cracker', 'shoe', 'Popsicle')
    syllable_sum(x)
    
    ## [1] 1 1 2 2 1 3
    

提交回复
热议问题