Skip to contents

Classifies lemmas in the parsed text as task-instrumental (TI) or interpersonal (IP) based on codebook word lists, with token-level quote and negation handling.

Usage

get_task(text, bootstrap = FALSE, B = 1000)

Arguments

text

A character string containing the speech text to analyse.

bootstrap

Logical; if TRUE, return bootstrapped mean and variance estimates. Default is FALSE.

B

Integer; number of bootstrap replicates. Default is 1000.

Value

A one-row tibble. When bootstrap = FALSE, columns are TI and IP. When bootstrap = TRUE, columns are meanTI, meanIP, varTI, varIP.