Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

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.

Value

An object of class kRp.TTR.

See Also

Examples

## Not run: 
MSTTR(tagged.text)

## End(Not run)

koRpus

Text Analysis with Emphasis on POS Tagging, Readability, and Lexical Diversity

v0.13-6
GPL (>= 3)
Authors
Meik Michalke [aut, cre], Earl Brown [ctb], Alberto Mirisola [ctb], Alexandre Brulet [ctb], Laura Hauser [ctb]
Initial release
2021-05-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.