EnglishDictionary
A simple gem that checks if a word is in the English dictionary. I'm using the word list that LetterPress uses here.
Installation
Add this line to your application's Gemfile:
gem 'english_dictionary'
And then execute:
$ bundle
Or install it yourself as:
$ gem install english_dictionary
Usage
require './english_dictionary'
EnglishDictionary.load_words()
EnglishDictionary.is_word("cat") #returns true
EnglishDictionary.is_word("catr") #returns false
Contributing
- Fork it ( https://github.com/psoshnin/english_dictionary/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request