/indefinite_article

Indefinite article identification for Ruby strings

Primary LanguageRubyMIT LicenseMIT

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'

Installation

The gem is hosted at github.com/kenglishhi/indefinite_article. Put the following in your Gemfile

gem 'indefinite_article', '0.1.1', :git => 'git://github.com/kenglishhi/indefinite_article.git'

Notes

This was forked from github.com/rossmeissl/indefinite_article but updated to use Rails 3.0.

Copyright © 2010 Andy Rossmeissl. See LICENSE for details.