test_profanity: Test for profanity in a string

View source: R/global.R

test_profanityR Documentation

Test for profanity in a string

Description

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.")
test_profanity("This sentence contains a badword.")

One4All documentation built on July 4, 2024, 1:08 a.m.