Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Indefinite article identification for Ruby strings
Ruby
branch: master

Merge pull request #9 from gmcnaughton/fix-digits

Support for digits (e.g., "an 8" or "an 11" vs. "a 4" or "a 5")
latest commit 1681612099
@rossmeissl authored

README.markdown

indefinite_article

Adds indefinite article methods to String and Symbol so that you can do:

>> 'apple'.indefinite_article
=> 'an'
>> 'banana'.with_indefinite_article
=> 'a banana'
>> 'university'.indefinitize
=> 'a university'

Installation

$ gem install indefinite_article

Acknowledgements

@shanebdavis helped immensely with his contributions in #5. Inspiration and special cases drawn from @rigoneri's indefinite-article.js.

Copyright

Copyright (c) 2010 Andy Rossmeissl. See LICENSE for details.

Something went wrong with that request. Please try again.