<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Meandering Life! &#187; perl</title>
	<atom:link href="http://manku.thimma.org/category/perl/feed/" rel="self" type="application/rss+xml" />
	<link>http://manku.thimma.org</link>
	<description>Hither, Thither ...</description>
	<lastBuildDate>Sat, 21 Jan 2012 06:07:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Truly Plural!</title>
		<link>http://manku.thimma.org/2007/06/truly-plural/</link>
		<comments>http://manku.thimma.org/2007/06/truly-plural/#comments</comments>
		<pubDate>Fri, 22 Jun 2007 19:24:41 +0000</pubDate>
		<dc:creator>shashi</dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://manku.thimma.org/?p=25</guid>
		<description><![CDATA[I was working on a small shell script to generate stubs for a project we&#8217;re working on. After arriving at a rough design and deciding on the class names, method names to be generated, I started generating the stubs (scaffolding?). &#8230; <a href="http://manku.thimma.org/2007/06/truly-plural/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was working on a small shell script to generate stubs for a project we&#8217;re working on. After arriving at a rough design and deciding on the class names, method names to be generated, I started generating the stubs (scaffolding?). And came across an amusing non technical issue. getBench() was fine, but getBenchs() wasn&#8217;t.  It should&#8217;ve been getBenches().</p>
<p>Uh, oh! There might be a tool that can generate plurals given a word ?</p>
<p>Doing a quick search threw up a <a href="http://search.cpan.org/dist/Lingua-EN-Inflect/">perl library</a> to achieve the same. Three cheers for <a href="http://www.perl.com/">Perl</a> !!! I&#8217;m always amazed at the huge number of modules Perl has. Anyway&#8217;s <a href="http://people.inf.in/shashi/playground/pluralize.txt">here&#8217;s a simple wrapper</a> I wrote for that library which you can use to get plurals for most nouns.</p>
<p>shashi@anacoluthon:~$ pluralize.pl bench<br />benches</p>
<p>While at it, I happened to notice there&#8217;s an <a href="http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/413172">implementation for Python</a> and also a <a href="http://www2.gsu.edu/%7Ewwwesl/egw/pluralsn.htm">Grammar ruleset</a> for implementing elsewhere.</p>
<p>PS: Title Inspiration: &#8220;<span style="font-style: italic;">A truly rural frugal ruler&#8217;s mural</span>&#8221; &#8211; tongue twister</p>
]]></content:encoded>
			<wfw:commentRss>http://manku.thimma.org/2007/06/truly-plural/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

