Whenever someone types a bad word in the chat app, it immediately gets tagged and shown like: ######. I feel like adding this feature because I figure that young kids will be using the app and I want to make it age-friendly,
It’s not perfect. For example, if a prohibited word (“cat” in the example below) is touching a period or other punctuation, it won’t get replaced. And it doesn’t check for mixed case (e.g. turkey≠Turkey≠TURKEY). It also uses the 5-character string “#####” as the replacement for prohibited words regardless of their length.