kaikalii / censor

Rust profanity filtering library
10 stars 3 forks source link

Count of censored words #4

Closed EvanBurbidge closed 1 year ago

EvanBurbidge commented 1 year ago

Feature request

Hi,

Love using this create first of all, I'm wondering would it be possible to add a count method to the create

at the moment i'm censoring words and then counting the instances of the replacements in my string

Would be nice to have a censor.count("str") method available

I'm assuming you loop the string to find censorable words so would it be possible to store a count on the string?

thanks! :)

kaikalii commented 1 year ago

666709779e5961a91903c823b6929249073644ba closes this. See also #5