Compute the Moving-Average Type-Token Ratio (MATTR)
From a tokens object, computes the Moving-Average Type-Token Ratio (MATTR)
from Covington & McFall (2010), averaging all of the sequential moving
windows of tokens of size MATTR_window
across the text, returning the
average as the MATTR.
compute_mattr(x, MATTR_window = 100L)
x |
a tokens object |
MATTR_window |
integer; the size of the moving window for computation of TTR, between 1 and the number of tokens of the document |
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.