views:

592

answers:

5

I'm looking for a good inflection (or well, a library that can turn plural into singular and vice verse - which a kind of inflection) library for PHP, it could be a part of some current framework or a stand alone library the only requirement I have is that it's compatible with the MIT license.

+4  A: 

There is one included with Code Igniter, you could check it out and see if it meets your needs.

Rich Bradshaw
+5  A: 

You'll find a good example on the one that comes with CakePHP:

inflector.php

It's part of a framework and it's MIT licensed.

Gustavo Carreno
A: 

http://solarphp.com/class/Solar_Inflect

A: 

If you would like to knock up your own plural inflector this may help:

wiki.answers.com

Question Mark
+1  A: 

I'm using this one Improved Pluralizing in php actionscript and ROR. It's released with an MIT license and isn't part of a framework.

jg