Skip to contents

Performs per-entity classification of references in the text as suspicious (S) or other-suspicious (OS) based on distrust verbs, harmful nominals, and contextual modifiers.

Usage

get_dist(own_entity, text, bootstrap = FALSE, B = 1000)

Arguments

own_entity

A character vector of entity names representing the speaker's own country or group.

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 S and OS. When bootstrap = TRUE, columns are meanS, varS, meanOS, varOS.