HDD: Lexical diversity: HD-D (vocd-d)

Description Usage Arguments Details Value References See Also Examples

View source: R/wrapper_functions_lex.div.R

Description

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

Usage

1
HDD(txt, rand.sample = 42, char = FALSE, ...)

Arguments

txt

An object of either class kRp.tagged or kRp.analysis, containing the tagged text to be analyzed.

rand.sample

An integer value, how many tokens should be assumed to be drawn for calculating HD-D.

char

Logical, defining whether data for plotting characteristic curves should be calculated.

...

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

Details

This function calculates HD-D, an idealized version of vocd-d (see McCarthy & Jarvis, 2007). In contrast to lex.div, which by default calculates all possible measures and their progressing characteristics, this function will only calculate the HD-D value, and characteristics are off by default.

Value

An object of class kRp.TTR.

References

McCarthy, P.M. & Jarvis, S. (2007). vocd: A theoretical and empirical evaluation. Language Testing, 24(4), 459–488.

See Also

kRp.POS.tags, kRp.tagged, kRp.TTR

Examples

1
2
3
4
## Not run: 
HDD(tagged.text)

## End(Not run)

unDocUMeantIt/koRpus documentation built on March 21, 2018, 4:06 a.m.