offensive_check_string: Checks for offensive words in strings

Description Usage Arguments Value Examples

View source: R/check_string.R

Description

Checks for offensive words in strings

Usage

1
2
offensive_check_string(text, n_output = 2, words_add = character(),
  words_ignore = character())

Arguments

text

A string of words.

n_output

Number of surrounding words to display.

words_add

Character. Words to look for.

words_ignore

Character. Words to ignore.

Value

Displays offensive words and their surrounding words.

Examples

1
2
3
4
5
6
7
8
text <- "This will be hard to asses, butt I think we will manage."
offensive_check_string(text)

offensive_check_string(text, n_output = 4)

offensive_check_string(text, words_add = "will")

offensive_check_string(text, words_ignore = "butt")

EmilHvitfeldt/offensiveR documentation built on May 6, 2019, 12:23 p.m.