well SE did implement some form of profanity filter, though its only blurred the word.
making it like that would be the simplest solution

creating a feature such as email spam filter would require more effort