ConsoleTVs / Profanity

PHP library to block bad words in a string
MIT License
98 stars 46 forks source link

Filtering a specific language #20

Closed nfn closed 2 months ago

nfn commented 3 years ago

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 only, I would pass the pt to the blocker or filter: blocker($words, $lang) or filter( $lang). If $lang is not set, all words should be used.

Thanks