Learn R Programming

koRpus (version 0.13-8)

MSTTR: Lexical diversity: Mean Segmental Type-Token Ratio (MSTTR)

Description

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

Usage

MSTTR(txt, segment = 100, ...)

Arguments

txt

An object of class kRp.text containing the tagged text to be analyzed.

segment

An integer value, defining how many tokens should form one segment.

...

Further valid options for the main function, see lex.div for details.

Value

An object of class kRp.TTR.

Details

This function calculates the mean segmental type-token ratio (MSTTR). In contrast to lex.div, which by default calculates all possible measures and their progressing characteristics, this function will only calculate the MSTTR value.

See Also

kRp.POS.tags, kRp.text, kRp.TTR

Examples

Run this code
# NOT RUN {
MSTTR(tagged.text)
# }

Run the code above in your browser using DataLab