rails/rails — pull request #14330 by reuben-sutton (2014-03-08 23:54:17+00:00)
Title: Add indefinite articles to Inflector

I have added indefinite_article and with_indefinite_article
to ActiveSupport::Inflector and wrapper methods to core_ext for String

This allows the following:

"elephant".indefinite_article
# => "an"
"x-ray".with_indefinite_article
# => "an x-ray"
"cat"with_indefinite_article
# => "a cat"