Counting syllables

前端 未结 4 2105
-上瘾入骨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:23

    The koRpus package will help you out immensley, but it's a little difficult to work with.

    stopifnot(require(koRpus))
    tokens <- tokenize(text, format="obj", lang='en')
    flesch.kincaid(tokens)
    

提交回复
热议问题