Skip to content

rossmeissl/indefinite_article

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Indefinite article identification for Ruby strings

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages