check_yo_spelling
This gem offers spelling suggestions for cities and states in the United States.
Installation
Add this line to your applications's Gemfile:
gem 'check_yo_spelling'
and then execute:
$ bundle
or install it yourself as:
$ gem install 'check_yo_spelling'
Examples
# State Checking
# Checks against all states in the U.S.
CheckYoSpelling::USA.check_state("Alabma")
# => "Alabama"
# City Checking
# Checks for cities in the state for suggestions
CheckYoSpelling::USA.check_city("Montgomry", "AL")
# => "Montgomery"
Contributing
- Fork it ( http://github.com/Spokeo/CheckYoSpelling/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Write specs!
- Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Running the Specs
$ rake