Portal Home > Knowledgebase > Articles Database > swear words


swear words




Posted by Codebird, 03-27-2008, 01:00 PM
Hello, did anybody already worked on something like a forum and he had to filter swear words? I am searching for the best solution to do so. So please any suggestions will be very much thanked. Thanks in advance

Posted by etogre, 03-27-2008, 01:21 PM
I had this lying around The only problem is that {harassment} shows up as {har***ment}. I'll see if I can find a solution to this. And as you can see the bad word filter in vBulletin is messing with my source code! :p

Posted by etogre, 03-27-2008, 01:52 PM
Okay I have played with it a little bit. Luckily it is case insensitive (that might have been tricky otherwise). @$$ = *** ... had to change it in the source to make it legible because of VB's filter. Problem is it doesn't recognize the last .***. (for obvious reasons). Maybe someone else has some input on how to do this? I'm probably going about it the wrong way. Last edited by etogre; 03-27-2008 at 01:56 PM.

Posted by Codebird, 03-27-2008, 01:56 PM
thanks a lot for your answer the problem is not so much in the function the problem is somehow in the list of bad words. I need a good one to work upon... then the function it is as all php functions u write u repair and at last it will be good

Posted by Tim Greer, 03-27-2008, 02:30 PM
To prevent partial words from being filtered out inside of other words, use word boundries.

Posted by Codebird, 03-27-2008, 02:44 PM
ok maybe I wasn't so clear, I would like to have the list of swear words. The problem is not the function cause the function maybe will change with respect to each site, and the place of the swear words list... what I need is the list of swear words Thanks

Posted by etogre, 03-27-2008, 02:50 PM
Well, now it's kinda off topic but others might be interested. Basically I modified phpBB's swear filter to allow dictionary without needing a database.

Posted by Tim Greer, 03-27-2008, 02:58 PM
I see, well you might ask people to email you their list, because I don't think you'll be able to have people post the words you need here (they'd be filtered).

Posted by Barti1987, 03-27-2008, 06:16 PM
A simple Google "swear word list" returns this first great site: http://www.noswearing.com/ Peace,

Posted by Codebird, 03-27-2008, 06:43 PM
Thanks I have already seen it I contacted them to see if I can get the list, what I got is a mail delivery failure

Posted by tix3, 03-27-2008, 07:04 PM
here you are

Posted by Codebird, 03-27-2008, 07:10 PM
thanks very much tix3 guess I can start with that then if any word missed I'll add it



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Onmouseover in IE (Views: 462)