Internal function used in textstat_lexdiv.

compute_lexdiv_stats(x, measure, log.base)

Arguments

x

a dfm object

measure

a list of lexical diversity measures.

log.base

a numeric value defining the base of the logarithm (for measures using logs)

Value

returns a data.frame of documents and their lexical diversity scores.