Learn R Programming

koRpus (version 0.04-40)

MTLD: Lexical diversity: Measure of Textual Lexical Diversity (MTLD)

Description

This is just a convenient wrapper function for lex.div.

Usage

MTLD(txt, factor.size = 0.72, char = FALSE, ...)

Arguments

txt
An object of either class kRp.tagged-class or kRp.analysis-class, containing the tagged text to be analyzed.
factor.size
A real number between 0 and 1, defining the MTLD factor size.
char
Logical, defining whether data for plotting characteristic curves should be calculated.
...
Further valid options for the main function, see lex.div for details.

Value

Details

This function calculates the measure of textual lexical diversity (MTLD; see McCarthy & Jarvis, 2010). In contrast to lex.div, which by default calculates all possible measures and their progressing characteristics, this function will only calculate the MTLD value, and characteristics are off by default.

References

McCarthy, P. M. & Jarvis, S. (2010). MTLD, vocd-D, and HD-D: A validation study of sophisticated approaces to lexical diversity assessment. Behaviour Research Methods, 42(2), 381--392.

See Also

kRp.POS.tags, kRp.tagged-class, kRp.TTR-class

Examples

Run this code
MTLD(tagged.text)

Run the code above in your browser using DataLab