Is there any inflector like library that can return a word based on a number?

Posted by stacker on Stack Overflow See other posts from Stack Overflow or by stacker
Published on 2010-05-30T03:45:20Z Indexed on 2010/05/30 3:52 UTC
Read the original article Hit count: 214

Filed under:

I'm using inflector Pluralize and Singularize functions.

I want to know if there is a ready library that know to decide if a word needs to be Pluralize or Singularize based on a number.

Like:

0 articles
1 article
2 articles

© Stack Overflow or respective owner

Related posts about inflector