<p>Not very technical, but... I have to implement a bad words filter in a new site we are developing. So I need a "good" bad words list to feed my db with... any hint / direction? Looking around with google I <a href="http://urbanoalvarez.es/blog/2008/04/04/bad-words-list/" rel="noreferrer">found this</a> one, and it's a start, but nothing more.</p>

<p>Yes, I know that this kind of filters are easily escaped... but the client will is the client will !!! :-) </p>

<p>The site will have to filter out both english and italian words, but for italian I can ask my colleagues to help me with a community-built list of "parolacce" :-) - an email will do. </p>

<p>Thanks for any help.</p>

[{'answer_id': 24527, 'author': 'AgentConundrum', 'author_id': 1588, 'author_profile': 'https://Stackoverflow.com/users/1588', 'pm_score': 6, 'selected': False, 'text': '<p>Beware of <a href="http://thedailywtf.com/Articles/The-Clbuttic-Mistake-.aspx" rel="noreferrer">clbuttic mistakes</a>.</p>\n\n<blockquote>\n  <p>"Apple made the clbuttic mistake of forcing out their visionary - I mean, look at what NeXT has been up to!"</p>\n  \n  <p>Hmm. "clbuttic".</p>\n  \n  <p>Google "clbuttic" - thousands of hits!</p>\n  \n  <p>There\'s someone who call his car \'clbuttic\'.</p>\n  \n  <p>There are "Clbuttic Steam Engine" message boards.</p>\n  \n  <p>Webster\'s dictionary - no help.</p>\n  \n  <p>Hmm. What can this be?</p>\n  \n  <p>HINT: People who make buttumptions about their regex scripts, will be\n  embarbutted when they repeat this mbuttive mistake.</p>\n</blockquote>\n'}, {'answer_id': 24615, 'author': 'UnkwnTech', 'author_id': 115, 'author_profile': 'https://Stackoverflow.com/users/115', 'pm_score': 6, 'selected': True, 'text': '<p>I didn\'t see any language specified but you can use this for PHP it will generate a RegEx for each instered work so that even intentional mis-spellings (i.e. @ss, i3itch ) will also be caught.</p>\n\n<pre><code>&lt;?php\n\n/**\n * @author unkwntech@unkwndesign.com\n **/\n\nif($_GET[\'act\'] == \'do\')\n {\n    $pattern[\'a\'] = \'/[a]/\'; $replace[\'a\'] = \'[a A @]\';\n    $pattern[\'b\'] = \'/[b]/\'; $replace[\'b\'] = \'[b B I3 l3 i3]\';\n    $pattern[\'c\'] = \'/[c]/\'; $replace[\'c\'] = \'(?:[c C (]|[k K])\';\n    $pattern[\'d\'] = \'/[d]/\'; $replace[\'d\'] = \'[d D]\';\n    $pattern[\'e\'] = \'/[e]/\'; $replace[\'e\'] = \'[e E 3]\';\n    $pattern[\'f\'] = \'/[f]/\'; $replace[\'f\'] = \'(?:[f F]|[ph pH Ph PH])\';\n    $pattern[\'g\'] = \'/[g]/\'; $replace[\'g\'] = \'[g G 6]\';\n    $pattern[\'h\'] = \'/[h]/\'; $replace[\'h\'] = \'[h H]\';\n    $pattern[\'i\'] = \'/[i]/\'; $replace[\'i\'] = \'[i I l ! 1]\';\n    $pattern[\'j\'] = \'/[j]/\'; $replace[\'j\'] = \'[j J]\';\n    $pattern[\'k\'] = \'/[k]/\'; $replace[\'k\'] = \'(?:[c C (]|[k K])\';\n    $pattern[\'l\'] = \'/[l]/\'; $replace[\'l\'] = \'[l L 1 ! i]\';\n    $pattern[\'m\'] = \'/[m]/\'; $replace[\'m\'] = \'[m M]\';\n    $pattern[\'n\'] = \'/[n]/\'; $replace[\'n\'] = \'[n N]\';\n    $pattern[\'o\'] = \'/[o]/\'; $replace[\'o\'] = \'[o O 0]\';\n    $pattern[\'p\'] = \'/[p]/\'; $replace[\'p\'] = \'[p P]\';\n    $pattern[\'q\'] = \'/[q]/\'; $replace[\'q\'] = \'[q Q 9]\';\n    $pattern[\'r\'] = \'/[r]/\'; $replace[\'r\'] = \'[r R]\';\n    $pattern[\'s\'] = \'/[s]/\'; $replace[\'s\'] = \'[s S $ 5]\';\n    $pattern[\'t\'] = \'/[t]/\'; $replace[\'t\'] = \'[t T 7]\';\n    $pattern[\'u\'] = \'/[u]/\'; $replace[\'u\'] = \'[u U v V]\';\n    $pattern[\'v\'] = \'/[v]/\'; $replace[\'v\'] = \'[v V u U]\';\n    $pattern[\'w\'] = \'/[w]/\'; $replace[\'w\'] = \'[w W vv VV]\';\n    $pattern[\'x\'] = \'/[x]/\'; $replace[\'x\'] = \'[x X]\';\n    $pattern[\'y\'] = \'/[y]/\'; $replace[\'y\'] = \'[y Y]\';\n    $pattern[\'z\'] = \'/[z]/\'; $replace[\'z\'] = \'[z Z 2]\';\n    $word = str_split(strtolower($_POST[\'word\']));\n    $i=0;\n    while($i &lt; count($word))\n     {\n        if(!is_numeric($word[$i]))\n         {\n            if($word[$i] != \' \' || count($word[$i]) &lt; \'1\')\n             {\n                $word[$i] = preg_replace($pattern[$word[$i]], $replace[$word[$i]], $word[$i]);\n             }\n         }\n        $i++;\n     }\n    //$word = "/" . implode(\'\', $word) . "/";\n    echo implode(\'\', $word);\n }\n\nif($_GET[\'act\'] == \'list\')\n {\n    $link = mysql_connect(\'localhost\', \'username\', \'password\', \'1\');\n    mysql_select_db(\'peoples\');\n    $sql = "SELECT word FROM filters";\n    $result = mysql_query($sql, $link);\n    $i=0;\n    while($i &lt; mysql_num_rows($result))\n     {\n        echo mysql_result($result, $i, \'word\') . "&lt;br /&gt;";\n        $i++;\n     }\n     echo \'&lt;hr&gt;\';\n }\n?&gt;\n&lt;html&gt;\n    &lt;head&gt;\n        &lt;title&gt;RegEx Generator&lt;/title&gt;\n    &lt;/head&gt;\n    &lt;body&gt;\n        &lt;form action=\'badword.php?act=do\' method=\'post\'&gt;\n            Word: &lt;input type=\'text\' name=\'word\' /&gt;&lt;br /&gt;\n            &lt;input type=\'submit\' value=\'Generate\' /&gt;\n        &lt;/form&gt;\n        &lt;a href="badword.php?act=list"&gt;List Words&lt;/a&gt;\n    &lt;/body&gt;\n&lt;/html&gt;\n</code></pre>\n'}, {'answer_id': 24654, 'author': 'Ross', 'author_id': 2025, 'author_profile': 'https://Stackoverflow.com/users/2025', 'pm_score': 1, 'selected': False, 'text': '<p>You could always convince the client to have a session of users just constantly posting expletives and make an easy solution to add them to the system. It is a lot of work but it will probably be more representative of the community.</p>\n'}, {'answer_id': 24768, 'author': 'Kibbee', 'author_id': 1862, 'author_profile': 'https://Stackoverflow.com/users/1862', 'pm_score': 2, 'selected': False, 'text': '<p>I would say to just remove posts as you become aware of them, and block users who are overly explicit with their postings.  You can say very offensive things without using any swear words.  If you block the word ass (aka donkey), then people will just type a$$ or /\\55, or whatever else they need to type to get past the filter.</p>\n'}, {'answer_id': 35775, 'author': 'Jon Limjap', 'author_id': 372, 'author_profile': 'https://Stackoverflow.com/users/372', 'pm_score': 2, 'selected': False, 'text': '<p>+1 on the Clbuttic mistake, I think it is important for "bad word" filters to scan for both leading and trailing spaces (e.g., " ass ") as opposed for just the exact string so that we won\'t have words like clbuttic, clbuttes, buttert, buttess, etc.</p>\n'}, {'answer_id': 3623803, 'author': 'Richard', 'author_id': 437564, 'author_profile': 'https://Stackoverflow.com/users/437564', 'pm_score': -1, 'selected': False, 'text': '<p>In researching this topic I determined that what was needed was more than just a list that does arbitrary replacements. I have built a web service that allows you to identify the level of \'cleanliness\' you desire. It also makes an effort to identify false positives - i.e. where a word may be bad in one context but not in others.\nTake a look at <a href="http://filterlanguage.com" rel="nofollow noreferrer">http://filterlanguage.com</a></p>\n'}, {'answer_id': 3623828, 'author': 'Ming-Tang', 'author_id': 303939, 'author_profile': 'https://Stackoverflow.com/users/303939', 'pm_score': 2, 'selected': False, 'text': '<p><a href="http://en.wikipedia.org/wiki/User:ClueBot" rel="nofollow noreferrer">Wikipedia ClueBot</a> has a bad word filter, read its source.</p>\n\n<p><a href="http://en.wikipedia.org/wiki/User:ClueBot/Source#Score_list" rel="nofollow noreferrer">http://en.wikipedia.org/wiki/User:ClueBot/Source#Score_list</a></p>\n'}, {'answer_id': 9629371, 'author': 'David Fraga', 'author_id': 1258576, 'author_profile': 'https://Stackoverflow.com/users/1258576', 'pm_score': 5, 'selected': False, 'text': '<p>Shutterstock has a Github repo with a <a href="https://github.com/shutterstock/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words">list of bad words</a> used for filtering.  </p>\n\n<p>You can check it out here: <a href="https://github.com/shutterstock/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words">https://github.com/shutterstock/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words</a></p>\n'}, {'answer_id': 11801638, 'author': 'Tony', 'author_id': 48615, 'author_profile': 'https://Stackoverflow.com/users/48615', 'pm_score': 3, 'selected': False, 'text': '<p>If anyone needs an API, google currently provide a bad word indicator.</p>\n\n<pre><code>http://www.wdyl.com/profanity?q=naughtyword\n\n{\nresponse: "false"\n}\n</code></pre>\n\n<p>Update: Google has now removed this service.</p>\n'}]
['https://Stackoverflow.com/questions/24515', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1178/']