has_exaggerated_phrase: Exaggerated Phrases

Description Usage Arguments Examples

View source: R/clickbait_functions.R

Description

This function takes in any string and returns a boolean indicating whether or not one of the phrases within the dataframe exaggerated is present. This function is intended for use on any of the clickbait MEA datasets.

Usage

1

Arguments

text

string/ headline

Examples

1
2
3
4
5
6
## Not run: 
headlines_exaggerated <- headlines %>%
   mutate(has_exaggerated_phrase =
          has_exaggerated_phrase(text = title))

## End(Not run)

leahannejohnson/textclassificationexamples documentation built on Feb. 7, 2022, 11:04 p.m.