num_pronouns: Number of Pronouns

Description Usage Arguments Examples

View source: R/clickbait_functions.R

Description

This function takes in any string and returns the number of pronouns present. This function is intended for use on any of the clickbait MEA datasets. Pronouns detected include: I, me, you, he, him, she, her, it, we, us, they, them, one, your, and my.

Usage

1

Arguments

text

string/ headline

Examples

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

## End(Not run)

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