No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
LICENSE.txt
README.md
Rakefile
compressor.rb
ru_bee.gemspec

README.md

RuBee

Spell check for Ruby String.

Installation

Add this line to your application's Gemfile:

gem 'ru_bee'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ru_bee

Usage

###correct?

#correct?

######boolean

Checks String for misspelled words. Returns boolean.

######arguments

#correct? language: 'english'

Other languages coming...

######usage

"This is a correct sentence. It works well and is pretty cool. You can also use numbers 123!".correct?
=> true
"This santence contains a typo.".correct?
=> false

###spell_check

#spell_check

######array

#spell_check language: 'english'

Returns array of hashes consisting of word and suggestioned corrections.

######usage

'fla'.spell_check 
=> [{word: 'fla', suggestions: ["flab", "flabbergast", "flabbergastation", "flabbergasted"...]}]

###misspellings

#misspellings

######array

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
=> ['santence']

Contributing

Code

fork or pr away

Dictionaries

Add issue or submit pull request to add different languages or make additions to the library. Each dictionary is in lib/dictionaries