Profanity icon indicating copy to clipboard operation
Profanity copied to clipboard

New feature requested: matching not just a single word

Open hoanguel opened this issue 7 years ago • 0 comments

Supposed we have a dictionary like this:

[ { "language": "en", "word": "wrapping men" }, { "language": "en", "word": "wrinkled starfish" }, ]

Can we have the badWords() to pick out only these whole strings. For example:

Sentence 1: a men is wrapping gift -> no problem Sentence 2: a gift is wrapping men -> bad words detected -> Result ["language" => "en", "word" =>"wrapping men"]

Thank you!

hoanguel avatar Feb 05 '18 14:02 hoanguel