<?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: “How’d they do that?” Correcting punctuation</title>
	<atom:link href="http://blog.fluther.com/howd-they-do-that-correcting-punctuation/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fluther.com/howd-they-do-that-correcting-punctuation/</link>
	<description>Tapping and Collecting</description>
	<lastBuildDate>Thu, 10 May 2012 08:03:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
	<item>
		<title>By: The Fluther Blog &#187; Blog Archive &#187; &#8220;How&#8217;d they do that?&#8221; Real-time chat.</title>
		<link>http://blog.fluther.com/howd-they-do-that-correcting-punctuation/comment-page-1/#comment-98</link>
		<dc:creator>The Fluther Blog &#187; Blog Archive &#187; &#8220;How&#8217;d they do that?&#8221; Real-time chat.</dc:creator>
		<pubDate>Wed, 02 Apr 2008 16:46:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.fluther.com/blog/index.php/2008/03/25/howd-they-do-that-correcting-punctuation-and-capitalization/#comment-98</guid>
		<description>[...] Erik&#8217;s last entry in the series, robmandu asked how we implemented the real-time chat. So, ask and ye shall receive! [...]</description>
		<content:encoded><![CDATA[<p>[…] Erik’s last entry in the series, robmandu asked how we implemented the real-time chat. So, ask and ye shall receive! […]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrew</title>
		<link>http://blog.fluther.com/howd-they-do-that-correcting-punctuation/comment-page-1/#comment-92</link>
		<dc:creator>andrew</dc:creator>
		<pubDate>Wed, 26 Mar 2008 19:46:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.fluther.com/blog/index.php/2008/03/25/howd-they-do-that-correcting-punctuation-and-capitalization/#comment-92</guid>
		<description>Great thought paulc. You can do the same in python with
&lt;code&gt;
In [1]: question = &quot;ABCabc&quot;
In [2]: float(len(re.findall(r&#039;[A-Z]{1}&#039;, question))) / len(re.findall(r&#039;[a-zA-Z]{1}&#039;, question))
Out[3]: 0.5
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Great thought paulc. You can do the same in python with<br />
<code><br />
In [1]: question = "ABCabc"<br />
In [2]: float(len(re.findall(r'[A-Z]{1}', question))) / len(re.findall(r'[a-zA-Z]{1}', question))<br />
Out[3]: 0.5<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paulc</title>
		<link>http://blog.fluther.com/howd-they-do-that-correcting-punctuation/comment-page-1/#comment-93</link>
		<dc:creator>paulc</dc:creator>
		<pubDate>Wed, 26 Mar 2008 15:12:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.fluther.com/blog/index.php/2008/03/25/howd-they-do-that-correcting-punctuation-and-capitalization/#comment-93</guid>
		<description>I was just messing about and I found that a question like &quot;ALMOST aLL CAPITALS&quot; doesn&#039;t get corrected.  Years back I remember seeing IRC bots that would boot people out of channels if more than x% of their message was in capitals.  I don&#039;t know the Python syntax but something like this in Ruby would be:

&gt;&gt; question = &quot;ABCabc&quot;
&gt;&gt; question.scan(/[A-Z]{1}/).length.to_f / question.scan(/[a-zA-Z]{1}/).length.to_f
=&gt; 0.5</description>
		<content:encoded><![CDATA[<p>I was just messing about and I found that a question like “ALMOST aLL CAPITALS” doesn’t get corrected.  Years back I remember seeing IRC bots that would boot people out of channels if more than x% of their message was in capitals.  I don’t know the Python syntax but something like this in Ruby would be:</p>
<p>» question = “ABCabc“<br />
» question.scan(/[A-Z]{1}/).length.to_f / question.scan(/[a-zA-Z]{1}/).length.to_f<br />
=&gt; 0.5</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vincent</title>
		<link>http://blog.fluther.com/howd-they-do-that-correcting-punctuation/comment-page-1/#comment-97</link>
		<dc:creator>Vincent</dc:creator>
		<pubDate>Tue, 25 Mar 2008 19:46:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.fluther.com/blog/index.php/2008/03/25/howd-they-do-that-correcting-punctuation-and-capitalization/#comment-97</guid>
		<description>@klaas4 - you can easily to the same in PHP with PCRE (Perl-Compatible Regular Expresions). A very good tutorial can be found at http://www.tote-taste.de/X-Project/regex/index.php
The advantage of using PCRE over some language-specific RE is that PCRE is very often used and has implementations in most any language, so you&#039;d just need to learn it once.

Anyway, I think these posts are quite interesting, keep them up :)</description>
		<content:encoded><![CDATA[<p>@klaas4 — you can easily to the same in PHP with PCRE (Perl-Compatible Regular Expresions). A very good tutorial can be found at <a href="http://www.tote-taste.de/X-Project/regex/index.php" rel="nofollow">http://www.tote-taste.de/X-Project/regex/index.php</a><br />
The advantage of using PCRE over some language-specific RE is that PCRE is very often used and has implementations in most any language, so you’d just need to learn it once.</p>
<p>Anyway, I think these posts are quite interesting, keep them up <img src='http://blog.fluther.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robmandu</title>
		<link>http://blog.fluther.com/howd-they-do-that-correcting-punctuation/comment-page-1/#comment-96</link>
		<dc:creator>robmandu</dc:creator>
		<pubDate>Tue, 25 Mar 2008 16:43:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.fluther.com/blog/index.php/2008/03/25/howd-they-do-that-correcting-punctuation-and-capitalization/#comment-96</guid>
		<description>I&#039;d be interested to see some of the underpinnings that allow another user to dynamically update the page I&#039;m currently viewing. That level of interactiveness on the web was unpossible only a few short years ago. And Fluther&#039;s implementation of that concept is schweet.</description>
		<content:encoded><![CDATA[<p>I’d be interested to see some of the underpinnings that allow another user to dynamically update the page I’m currently viewing. That level of interactiveness on the web was unpossible only a few short years ago. And Fluther’s implementation of that concept is schweet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: klaas4</title>
		<link>http://blog.fluther.com/howd-they-do-that-correcting-punctuation/comment-page-1/#comment-95</link>
		<dc:creator>klaas4</dc:creator>
		<pubDate>Tue, 25 Mar 2008 16:36:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.fluther.com/blog/index.php/2008/03/25/howd-they-do-that-correcting-punctuation-and-capitalization/#comment-95</guid>
		<description>This is indeed cool. I wish I could code like that. I&#039;m still stuck at PHP, HTML, CSS and tables. ;-)</description>
		<content:encoded><![CDATA[<p>This is indeed cool. I wish I could code like that. I’m still stuck at PHP, HTML, CSS and tables. <img src='http://blog.fluther.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: omfgTALIjustIMDu</title>
		<link>http://blog.fluther.com/howd-they-do-that-correcting-punctuation/comment-page-1/#comment-94</link>
		<dc:creator>omfgTALIjustIMDu</dc:creator>
		<pubDate>Tue, 25 Mar 2008 16:31:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.fluther.com/blog/index.php/2008/03/25/howd-they-do-that-correcting-punctuation-and-capitalization/#comment-94</guid>
		<description>Erik, this is SO cool.  I&#039;ve always been fascinated with code and how people actually get websites up and running.  Thanks for sharing!</description>
		<content:encoded><![CDATA[<p>Erik, this is SO cool.  I’ve always been fascinated with code and how people actually get websites up and running.  Thanks for sharing!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.290 seconds -->

