powered by
This function checks if the input string contains any profane words.
test_profanity(x)
A logical value indicating whether the input string contains no profane words.
A character string to check for profanity.
test_profanity("This is a clean sentence.") test_profanity("This sentence contains a badword.")
Run the code above in your browser using DataLab