findPoliteTexts: Find polite text

View source: R/findPoliteTexts.R

findPoliteTextsR Documentation

Find polite text

Description

Deprecated... This function has a new name now. See exampleTexts for details.

Usage

findPoliteTexts(text, covar, ...)

Arguments

text

a character vector of texts.

covar

a vector of politeness labels, or other covariate.

...

other arguments passed on to exampleTexts. See exampleTexts for details.

Value

a ggplot of the prevalence of politeness features, conditional on split. Features are sorted by variance-weighted log odds ratio.

Examples

data("phone_offers")
polite.data<-politeness(phone_offers$message, parser="none",drop_blank=FALSE)

findPoliteTexts(phone_offers$message,
                phone_offers$condition,
                type = "most",
                num_docs = 5)



politeness documentation built on April 4, 2025, 2:44 a.m.