<?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>various stuff, mostly boring</description>
	<lastBuildDate>Mon, 14 May 2012 23:53:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Write your own PHP MVC Framework (Part 2) &#171; dingswords</title>
		<link>http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/comment-page-1/#comment-390554</link>
		<dc:creator>Write your own PHP MVC Framework (Part 2) &#171; dingswords</dc:creator>
		<pubDate>Sun, 29 Jan 2012 05:22:45 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/#comment-390554</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: Sho</title>
		<link>http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/comment-page-1/#comment-300344</link>
		<dc:creator>Sho</dc:creator>
		<pubDate>Fri, 24 Sep 2010 18:57:04 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/#comment-300344</guid>
		<description>Good comments, David and Christian. Thanks.</description>
		<content:encoded><![CDATA[<p>Good comments, David and Christian. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Stone</title>
		<link>http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/comment-page-1/#comment-300342</link>
		<dc:creator>David Stone</dc:creator>
		<pubDate>Fri, 24 Sep 2010 18:33:54 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/#comment-300342</guid>
		<description>Mpdreamz: the is_plural and is_singular code functions don&#039;t work in every case. 
Inflect::pluralize(&#039;geese&#039;) returns &#039;geeses&#039; so it would return false when in fact it is plural. It&#039;d be nice if there was reliable function for is_plural or is_singular but that seems like it&#039;s be a completely different set of code. 

As is it works very well for creating a search function that searches the plural form and the singular of the input query.</description>
		<content:encoded><![CDATA[<p>Mpdreamz: the is_plural and is_singular code functions don&#8217;t work in every case.<br />
Inflect::pluralize(&#8216;geese&#8217;) returns &#8216;geeses&#8217; so it would return false when in fact it is plural. It&#8217;d be nice if there was reliable function for is_plural or is_singular but that seems like it&#8217;s be a completely different set of code. </p>
<p>As is it works very well for creating a search function that searches the plural form and the singular of the input query.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Roy</title>
		<link>http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/comment-page-1/#comment-300049</link>
		<dc:creator>Christian Roy</dc:creator>
		<pubDate>Mon, 20 Sep 2010 17:52:58 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/12/17/improved-pluralizing-in-php-actionscript-and-ror/#comment-300049</guid>
		<description>Hello Sho,

Thanks for sharing this with the community.

I noticed that human is pluralized to humen but should be humans.
I fixed this by adding an entry to the irregular right before &quot;man&quot;:
  &quot;human&quot; =&gt; &quot;humans&quot;

Is that the right way to do it you think?

I found this which is an updated list of plurial forms which seems more complete:
http://code.jeremymcanally.com/acts_as_good_speeler/lib/inflections.rb</description>
		<content:encoded><![CDATA[<p>Hello Sho,</p>
<p>Thanks for sharing this with the community.</p>
<p>I noticed that human is pluralized to humen but should be humans.<br />
I fixed this by adding an entry to the irregular right before &#8220;man&#8221;:<br />
  &#8220;human&#8221; =&gt; &#8220;humans&#8221;</p>
<p>Is that the right way to do it you think?</p>
<p>I found this which is an updated list of plurial forms which seems more complete:<br />
<a href="http://code.jeremymcanally.com/acts_as_good_speeler/lib/inflections.rb" rel="nofollow">http://code.jeremymcanally.com/acts_as_good_speeler/lib/inflections.rb</a></p>
]]></content:encoded>
	</item>
	<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>
</channel>
</rss>

