MrDogeBro / content_filter

A basic but robust content filter for python.
MIT License
4 stars 1 forks source link

Censored Word Replacement #13

Open HeyITGuyFixIt opened 2 years ago

HeyITGuyFixIt commented 2 years ago

Could you add the ability to replace a matching word with the configured censored word? For example, say you have this line in a JSON file:

{ "find": "find", "word": "word", "censored": "censored" }

It would be very useful to have a function that replaced each matching word found with the censored alternative string here or a setting to do this while filtering.

MrDogeBro commented 2 years ago

Yeah I can see that being useful. I will work on adding it when I have the time. Thanks.