This is just a convenient wrapper function for readability
.
coleman.liau(txt.file, ecp = c(const = 141.8401, char = 0.21459, sntc =
1.079812), grade = c(ecp = -27.4004, const = 23.06395), short = c(awl =
5.88, spw = 29.6, const = 15.8), ...)
Either an object of class kRp.tagged-class
,
a character vector which must be be
a valid path to a file containing the text to be analyzed,
or a list of text features. If the latter, calculation
is done by readability.num
.
A numeric vector with named magic numbers, defining the relevant parameters for the cloze percentage estimate.
A numeric vector with named magic numbers, defining the relevant parameters to calculate grade equvalent for ECP values.
A numeric vector with named magic numbers, defining the relevant parameters for the short form of the formula.
Further valid options for the main function,
see readability
for details.
An object of class kRp.readability-class
.
Calculates the Coleman-Liau index. In contrast to readability
,
which by default calculates all possible indices,
this function will only calculate the index value.
This formula doesn't need syllable count.
# NOT RUN {
coleman.liau(tagged.text)
# }
Run the code above in your browser using DataLab