Test if a word is singular or plural in Ruby on Rails

Viewed 16520

Quick question.

How can I test a word to see if it is singular or plural?

I'd really like:

test_singularity('word') # => true
test_singularity('words') # => false

I bet rails is capable!

Thanks.

3 Answers
Related