<?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: Improved pluralizing in PHP, ActionScript, and RoR</title>
	<atom:link href="http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/feed/" rel="self" type="application/rss+xml" />
	<link>http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/</link>
	<description>music, technology, interfaces, people</description>
	<lastBuildDate>Mon, 19 Oct 2009 16:37:14 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rob Morris</title>
		<link>http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/comment-page-1/#comment-295223</link>
		<dc:creator>Rob Morris</dc:creator>
		<pubDate>Mon, 12 Oct 2009 18:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/#comment-295223</guid>
		<description>Perfect.  Thanks so much.  To anyone finding this post at this late date, you may be interested in a post I wrote that expands on this functionality to do intelligent conditional pluralization on phrases containing a number, eg:

&quot;Buy $num hot dog&quot; =&gt; &quot;Buy 1 hot dog&quot; / &quot;Buy 25 hot dogs&quot;

When integrated into Smarty or used to generate vars, can really clean up your code. 

Post is here: http://thecodingway.com/blog/robs-tips-and-tricks/php-pluralizing-with-style/</description>
		<content:encoded><![CDATA[<p>Perfect.  Thanks so much.  To anyone finding this post at this late date, you may be interested in a post I wrote that expands on this functionality to do intelligent conditional pluralization on phrases containing a number, eg:</p>
<p>&#8220;Buy $num hot dog&#8221; =&gt; &#8220;Buy 1 hot dog&#8221; / &#8220;Buy 25 hot dogs&#8221;</p>
<p>When integrated into Smarty or used to generate vars, can really clean up your code. </p>
<p>Post is here: <a href="http://thecodingway.com/blog/robs-tips-and-tricks/php-pluralizing-with-style/" rel="nofollow">http://thecodingway.com/blog/robs-tips-and-tricks/php-pluralizing-with-style/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marlin</title>
		<link>http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/comment-page-1/#comment-295030</link>
		<dc:creator>Marlin</dc:creator>
		<pubDate>Fri, 09 Oct 2009 08:46:52 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/#comment-295030</guid>
		<description>Found a funny one:

complex =&gt; complices

Should be complexes, imo. :)</description>
		<content:encoded><![CDATA[<p>Found a funny one:</p>
<p>complex =&gt; complices</p>
<p>Should be complexes, imo. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zack</title>
		<link>http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/comment-page-1/#comment-291863</link>
		<dc:creator>Zack</dc:creator>
		<pubDate>Thu, 20 Aug 2009 04:28:20 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/#comment-291863</guid>
		<description>Two minor changes to the PHP version that I&#039;ve found useful for pluralizing items in a list of equipment for example &quot;Network Card&quot; to &quot;Network Cards&quot;. Here are the modified last two lines of the $plural array:

        &#039;/s$/&#039;                 	   =&gt; &quot;s&quot;,
        &#039;/(\D)$/&#039;                  =&gt; &quot;$1s&quot;

The first change makes pluralize not convert all caps acronyms that end in an S, such as &quot;Tripp-Lite UPS&quot; to &quot;UPs&quot;.    The second change makes it so that an s isn&#039;t tacked onto the end of a word that ends in a number (such as &quot;Microsoft Office 2008&quot;).</description>
		<content:encoded><![CDATA[<p>Two minor changes to the PHP version that I&#8217;ve found useful for pluralizing items in a list of equipment for example &#8220;Network Card&#8221; to &#8220;Network Cards&#8221;. Here are the modified last two lines of the $plural array:</p>
<p>        &#8216;/s$/&#8217;                 	   =&gt; &#8220;s&#8221;,<br />
        &#8216;/(\D)$/&#8217;                  =&gt; &#8220;$1s&#8221;</p>
<p>The first change makes pluralize not convert all caps acronyms that end in an S, such as &#8220;Tripp-Lite UPS&#8221; to &#8220;UPs&#8221;.    The second change makes it so that an s isn&#8217;t tacked onto the end of a word that ends in a number (such as &#8220;Microsoft Office 2008&#8243;).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rohan</title>
		<link>http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/comment-page-1/#comment-291852</link>
		<dc:creator>Rohan</dc:creator>
		<pubDate>Wed, 19 Aug 2009 21:59:53 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/#comment-291852</guid>
		<description>This class (I used the PHP version) has been really useful to me. Slotted it into my code and it worked like a dream. Thanks for sharing it!</description>
		<content:encoded><![CDATA[<p>This class (I used the PHP version) has been really useful to me. Slotted it into my code and it worked like a dream. Thanks for sharing it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brent</title>
		<link>http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/comment-page-1/#comment-290047</link>
		<dc:creator>Brent</dc:creator>
		<pubDate>Tue, 21 Jul 2009 16:56:48 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/#comment-290047</guid>
		<description>Amazing class for helping with pluralizing! Thanks you to you and Paul and any others. Was looking to write my own for helping with an abstract interface tieing together models and views, but this is quite polished :D</description>
		<content:encoded><![CDATA[<p>Amazing class for helping with pluralizing! Thanks you to you and Paul and any others. Was looking to write my own for helping with an abstract interface tieing together models and views, but this is quite polished :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/comment-page-1/#comment-286898</link>
		<dc:creator>George</dc:creator>
		<pubDate>Wed, 17 Jun 2009 02:10:50 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/#comment-286898</guid>
		<description>Thanks for a great script. Just thought I&#039;d mention that the script bummed out with a syntax error on PHP 5.1.4 running on Redhat EH4. It worked fine for PHP 5.2.9-2 running on XP. I fixed the syntax error by changing the double quotes surrounding the array contents to single quotes (e.g &quot;$1zes&quot; became &#039;$1izes&#039;).</description>
		<content:encoded><![CDATA[<p>Thanks for a great script. Just thought I&#8217;d mention that the script bummed out with a syntax error on PHP 5.1.4 running on Redhat EH4. It worked fine for PHP 5.2.9-2 running on XP. I fixed the syntax error by changing the double quotes surrounding the array contents to single quotes (e.g &#8220;$1zes&#8221; became &#8216;$1izes&#8217;).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tagz &#124; &#34;kuwamoto.org » Blog Archive » Improved pluralizing in PHP, ActionScript, and RoR&#34; &#124; Comments</title>
		<link>http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/comment-page-1/#comment-280084</link>
		<dc:creator>Tagz &#124; &#34;kuwamoto.org » Blog Archive » Improved pluralizing in PHP, ActionScript, and RoR&#34; &#124; Comments</dc:creator>
		<pubDate>Sat, 16 May 2009 17:04:38 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/#comment-280084</guid>
		<description>[...]               [upmod] [downmod]     kuwamoto.org » Blog Archive » Improved pluralizing in PHP, ActionScript, and RoR  (kuwamoto.org)    0 points posted 10 months, 1 week ago by jeethu  tags english programming [...]</description>
		<content:encoded><![CDATA[<p>[...]               [upmod] [downmod]     kuwamoto.org » Blog Archive » Improved pluralizing in PHP, ActionScript, and RoR  (kuwamoto.org)    0 points posted 10 months, 1 week ago by jeethu  tags english programming [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simple PHP Pluralize &#124; Nerdy Dork</title>
		<link>http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/comment-page-1/#comment-275075</link>
		<dc:creator>Simple PHP Pluralize &#124; Nerdy Dork</dc:creator>
		<pubDate>Mon, 13 Apr 2009 16:12:27 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/#comment-275075</guid>
		<description>[...] wrote a simple function that did the task for me. I know there are PHP Pluralize functions out there, but they are a bit overkill for my needs. I got this idea from the way Django templates handles [...]</description>
		<content:encoded><![CDATA[<p>[...] wrote a simple function that did the task for me. I know there are PHP Pluralize functions out there, but they are a bit overkill for my needs. I got this idea from the way Django templates handles [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Write your own PHP MVC Framework (Part 2) &#124; anant garg</title>
		<link>http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/comment-page-1/#comment-268892</link>
		<dc:creator>Write your own PHP MVC Framework (Part 2) &#124; anant garg</dc:creator>
		<pubDate>Mon, 30 Mar 2009 06:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/#comment-268892</guid>
		<description>[...] However, for a more full-fledged version, we now use the inflection class originally created by Sho Kuwamoto with slight modifications. If you have a look at the class, it makes use of simple regular [...]</description>
		<content:encoded><![CDATA[<p>[...] However, for a more full-fledged version, we now use the inflection class originally created by Sho Kuwamoto with slight modifications. If you have a look at the class, it makes use of simple regular [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mpdreamz</title>
		<link>http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/comment-page-1/#comment-250134</link>
		<dc:creator>Mpdreamz</dc:creator>
		<pubDate>Fri, 30 Jan 2009 21:25:07 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/#comment-250134</guid>
		<description>Bit late but for reference for those who might be wondering how to check if a word  is actually plural or not:

public static function is_plural ($string)
{
	return Inflect::pluralize($string) == $string;
}
public static function is_singular ($string)
{
	return Inflect::singularize($string) == $string;
}

Great Class Btw!</description>
		<content:encoded><![CDATA[<p>Bit late but for reference for those who might be wondering how to check if a word  is actually plural or not:</p>
<p>public static function is_plural ($string)<br />
{<br />
	return Inflect::pluralize($string) == $string;<br />
}<br />
public static function is_singular ($string)<br />
{<br />
	return Inflect::singularize($string) == $string;<br />
}</p>
<p>Great Class Btw!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
