Profanity
Profanity copied to clipboard
PHP library to block bad words in a string
> I have added Vietnamese to this library, see here: ``` /Generator/vi```
Some Bengali Bad Words Note: Is there support for soundex ?
[2023-02-23 09:11:23] production.WARNING: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in vendor/consoletvs/profanity/Classes/Blocker.php on line 135
Hi. for example we have string like this: `$value = 'Lauren J., Hi';` In this case 139 will be replaced as *** because: Profanity::blocker(trim($value))->badWords() detects the bad word: ``` Array...
The badWords() function throws an exception in PHP 8.1 ``` public function badWords() { // exception thrown here: return collect($this->dictionary)->filter(function ($value) { })->toArray(); } ``` ErrorException: Return type of Illuminate\Support\Collection::offsetExists($key)...
Hi I don't think this is possible, but would like to suggest an option to set a specific language when filtering. For instance, if I want to filter Portuguese word...
Please add these words in fa language too!
I need to do it in Spanish from Mexico and there are a lot of bad words missing. Updating directly the Dictionary is not an option since I am using...
Supposed we have a dictionary like this: `[ { "language": "en", "word": "wrapping men" }, { "language": "en", "word": "wrinkled starfish" }, ]` Can we have the badWords() to pick...