Spell check for Ruby String.
Add this line to your application's Gemfile:
gem 'ru_bee'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ru_bee
#correct?
Checks String for misspelled words. Returns boolean.
#correct? language: 'english'
Other languages coming...
"This is a correct sentence. It works well and is pretty cool. You can also use numbers 123!".correct?
"This santence contains a typo.".correct?
#spell_check
#spell_check language: 'english'
Returns array of hashes consisting of word and suggestioned corrections.
'fla'.spell_check
#misspellings
Array of misspellings from String
"This is a correct sentence. It works well and is pretty cool. You can also use numbers 123!".misspellings
"This santence contains a typo.".misspellings
fork or pr away
Add issue or submit pull request to add different languages or make additions to the library. Each dictionary is in lib/dictionaries