rossmeissl / Indefinite_article
Licence: mit
Indefinite article identification for Ruby strings
Stars: ✭ 58
Programming Languages
ruby
36898 projects - #4 most used programming language
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.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].