Learn R Programming

koRpus (version 0.04-40)

LIX: Readability: Bj"ornsson's L"asbarhetsindex (LIX)

Description

This is just a convenient wrapper function for readability.

Usage

LIX(txt.file, parameters = c(char = 6, const = 100), ...)

Arguments

txt.file
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, c
parameters
A numeric vector with named magic numbers, defining the relevant parameters for the index.
...
Further valid options for the main function, see readability for details.

Value

Details

This function calculates the readability index ("l"asbarhetsindex") by Bj"ornsson. 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.

References

Anderson, J. (1981). Analysing the readability of english and non-english texts in the classroom with Lix. In Annual Meeting of the Australian Reading Association, Darwin, Australia.

Anderson, J. (1983). Lix and Rix: Variations on a little-known readability index. Journal of Reading, 26(6), 490--496.

Examples

Run this code
LIX(tagged.text)

Run the code above in your browser using DataLab