compute_msttr: Compute the Mean Segmental Type-Token Ratio (MSTTR)

View source: R/textstat_lexdiv.R

compute_msttrR Documentation

Compute the Mean Segmental Type-Token Ratio (MSTTR)

Description

Compute the Mean Segmental Type-Token Ratio (Johnson 1944) for a tokens input.

Usage

compute_msttr(x, MSTTR_segment)

Arguments

x

input tokens

MSTTR_segment

a numeric value defining the size of the each segment for the computation of the the Mean Segmental Type-Token Ratio (Johnson, 1944)


quanteda.textstats documentation built on Nov. 2, 2023, 5:07 p.m.