<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Django: A Profanity Filter</title>
	<atom:link href="http://w.holeso.me/2008/08/django-a-profanity-filter/feed/" rel="self" type="application/rss+xml" />
	<link>http://w.holeso.me/2008/08/django-a-profanity-filter/</link>
	<description>A blog about Python, Django, and other things</description>
	<lastBuildDate>Thu, 15 Sep 2011 17:53:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: proc</title>
		<link>http://w.holeso.me/2008/08/django-a-profanity-filter/#comment-23564</link>
		<dc:creator>proc</dc:creator>
		<pubDate>Thu, 15 Sep 2011 17:53:03 +0000</pubDate>
		<guid isPermaLink="false">http://w.holeso.me/?p=6#comment-23564</guid>
		<description>&lt;a href=&quot;#comment-23562&quot; rel=&quot;nofollow&quot;&gt;@yeago &lt;/a&gt; 
Yeah, you&#039;re right -- 2 ways to solve this -- lowercase everything before you do the analysis or use regular expressions.  In any case, it&#039;s just meant as a quick filter to remove the most common bad words and is definitely not meant to be a one stop shop.  Check out http://en.wikipedia.org/wiki/Scunthorpe_problem</description>
		<content:encoded><![CDATA[<p><a href="#comment-23562" rel="nofollow">@yeago </a><br />
Yeah, you&#8217;re right &#8212; 2 ways to solve this &#8212; lowercase everything before you do the analysis or use regular expressions.  In any case, it&#8217;s just meant as a quick filter to remove the most common bad words and is definitely not meant to be a one stop shop.  Check out <a href="http://en.wikipedia.org/wiki/Scunthorpe_problem" rel="nofollow">http://en.wikipedia.org/wiki/Scunthorpe_problem</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: proc</title>
		<link>http://w.holeso.me/2008/08/django-a-profanity-filter/#comment-23563</link>
		<dc:creator>proc</dc:creator>
		<pubDate>Thu, 15 Sep 2011 17:49:34 +0000</pubDate>
		<guid isPermaLink="false">http://w.holeso.me/?p=6#comment-23563</guid>
		<description>&lt;a href=&quot;#comment-23201&quot; rel=&quot;nofollow&quot;&gt;@paul &lt;/a&gt; 
The syntax highlighter plugin I was using was terrible...sorry about that. thanks for pointing it out.</description>
		<content:encoded><![CDATA[<p><a href="#comment-23201" rel="nofollow">@paul </a><br />
The syntax highlighter plugin I was using was terrible&#8230;sorry about that. thanks for pointing it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yeago</title>
		<link>http://w.holeso.me/2008/08/django-a-profanity-filter/#comment-23562</link>
		<dc:creator>yeago</dc:creator>
		<pubDate>Thu, 15 Sep 2011 17:42:17 +0000</pubDate>
		<guid isPermaLink="false">http://w.holeso.me/?p=6#comment-23562</guid>
		<description>This doesn&#039;t handle caps/lowercase variants. AKA fUck</description>
		<content:encoded><![CDATA[<p>This doesn&#8217;t handle caps/lowercase variants. AKA fUck</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://w.holeso.me/2008/08/django-a-profanity-filter/#comment-23201</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Sun, 21 Feb 2010 02:09:03 +0000</pubDate>
		<guid isPermaLink="false">http://w.holeso.me/?p=6#comment-23201</guid>
		<description>Amazed no one pointed out that you should have an indent below the for loop statement</description>
		<content:encoded><![CDATA[<p>Amazed no one pointed out that you should have an indent below the for loop statement</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: the daniel</title>
		<link>http://w.holeso.me/2008/08/django-a-profanity-filter/#comment-11</link>
		<dc:creator>the daniel</dc:creator>
		<pubDate>Fri, 08 Aug 2008 21:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://w.holeso.me/?p=6#comment-11</guid>
		<description>I did it this way once:


BADWORDS = [(x.word, &#039;&#039;.join([&#039;*&#039; for y in x.word]))  for x in BadWord.objects.all()]

def badword_filter(text):
    for word in BADWORDS:
        text = text.replace(word[0], word[1])
    return text
</description>
		<content:encoded><![CDATA[<p>I did it this way once:</p>
<p>BADWORDS = [(x.word, ''.join(['*' for y in x.word]))  for x in BadWord.objects.all()]</p>
<p>def badword_filter(text):<br />
    for word in BADWORDS:<br />
        text = text.replace(word[0], word[1])<br />
    return text</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fftb</title>
		<link>http://w.holeso.me/2008/08/django-a-profanity-filter/#comment-9</link>
		<dc:creator>fftb</dc:creator>
		<pubDate>Thu, 07 Aug 2008 10:42:51 +0000</pubDate>
		<guid isPermaLink="false">http://w.holeso.me/?p=6#comment-9</guid>
		<description>f---ing thursdays. just testing.</description>
		<content:encoded><![CDATA[<p>f&#8212;ing thursdays. just testing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: g_hunter1</title>
		<link>http://w.holeso.me/2008/08/django-a-profanity-filter/#comment-5</link>
		<dc:creator>g_hunter1</dc:creator>
		<pubDate>Sat, 02 Aug 2008 21:47:44 +0000</pubDate>
		<guid isPermaLink="false">http://w.holeso.me/?p=6#comment-5</guid>
		<description>Yeah I kinda figured but thats a gallizon words to add to the list. But if you have to do it like that I guess you have to.</description>
		<content:encoded><![CDATA[<p>Yeah I kinda figured but thats a gallizon words to add to the list. But if you have to do it like that I guess you have to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ss0</title>
		<link>http://w.holeso.me/2008/08/django-a-profanity-filter/#comment-4</link>
		<dc:creator>ss0</dc:creator>
		<pubDate>Sat, 02 Aug 2008 10:05:07 +0000</pubDate>
		<guid isPermaLink="false">http://w.holeso.me/?p=6#comment-4</guid>
		<description>I believe he meant when people use a different word like fsck for fuck. However since this is what your regex is basically doing, I don&#039;t really see the point of the question.</description>
		<content:encoded><![CDATA[<p>I believe he meant when people use a different word like fsck for fuck. However since this is what your regex is basically doing, I don&#8217;t really see the point of the question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: proc</title>
		<link>http://w.holeso.me/2008/08/django-a-profanity-filter/#comment-3</link>
		<dc:creator>proc</dc:creator>
		<pubDate>Sat, 02 Aug 2008 05:40:33 +0000</pubDate>
		<guid isPermaLink="false">http://w.holeso.me/?p=6#comment-3</guid>
		<description>What do you mean by masked words?</description>
		<content:encoded><![CDATA[<p>What do you mean by masked words?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: g_hunter1</title>
		<link>http://w.holeso.me/2008/08/django-a-profanity-filter/#comment-2</link>
		<dc:creator>g_hunter1</dc:creator>
		<pubDate>Sat, 02 Aug 2008 01:08:37 +0000</pubDate>
		<guid isPermaLink="false">http://w.holeso.me/?p=6#comment-2</guid>
		<description>Nice stuff but does this also handle masked words?</description>
		<content:encoded><![CDATA[<p>Nice stuff but does this also handle masked words?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

