Possible Duplicate:
How do you implement a good profanity filter?
I have a classifieds website, and when displaying a classified, users have the option of mailing a message to the poster of the classified.
I need to check this message against bad words and unseirousness before sending it.
Firstly, how can I check some text against a text-file with php? This is in Swedish language so there are three special characters also... I am mentioning this so special characters wont be an issue when checking against the text-file.
I could use an array also, and do the checking in php, would this be preferred? Maybe faster?
Secondly, do you have any tips on how to check a message against "unseriousness"?
Thanks