Skip to contents

This function checks if the input string contains any profane words.

Usage

test_profanity(x)

Arguments

x

A character string to check for profanity.

Value

A logical value indicating whether the input string contains no profane words.

Examples

test_profanity("This is a clean sentence.")
#> [1] TRUE
test_profanity("This sentence contains a badword.")
#> [1] TRUE