valence: Valence of text

View source: R/valence.R

valenceR Documentation

Valence of text

Description

This function loads a vector or string and idnetifies valence terms using trinkers lexicon package

Usage

valence(text_vector)

Arguments

text_vector

Choose character vector or string

Value

A data frame in the same order as the input, with the following columns: negator, amplifier, de-amplifier, and ad-conjunction. See the lexicon package vignette for details.

Examples

valence("I am not the cat in the hat, I am just a very massive feather")

GitTFJ/classecol documentation built on June 29, 2023, 11:20 a.m.