Inflector.Net

Posted by Andrew on October 04, 2006

I’ve just completed a port of Rails’ Inflector class for .NET. The Inflector primarily allows you to determine the plural or singular of a given word, which can be useful for things like code generation. For example:

Inflector.Pluralize("address");

produces “addresses”. Whereas,

Inflector.Pluralize("species");

yields “species”;

The code is currently lacking some argument validation and doc comments but all of the tests have also been ported and are all passing.

Get the source here from my dedicated page.

I welcome your feedback and please let me know if you find any problems.

Enjoy.

Trackbacks

Use this link to trackback from your own site.

Comments

Leave a response

  1. GangNo Gravatar Tue, 28 Nov 2006 04:12:39 CST

    Nice work man, you’ve done a feature expected in .NET Framework 5 :)

  2. andrewpetersNo Gravatar Tue, 28 Nov 2006 09:40:13 CST

    Cheers man

Comments