Skip to content
This repository has been archived by the owner on Jul 25, 2019. It is now read-only.

sowcow/goospell

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Goospell

Goospell uses the undocumented google spell checking api at https://www.google.com/tbproxy/spell

Installation

Add this line to your application's Gemfile:

gem 'goospell'

And then execute:

$ bundle

Or install it yourself as:

$ gem install goospell

Commandline Usage

goospell "Thas sentnince iss spellleded awell rong"
---
Thas:
- This
- Th as
- Th-as
- Thais
- Thaws
- Thad
sentnince:
- sentence
- sentience
- sentences
- sentencing
- sentience's
iss:
- is
- Isa
- Issi
- Issy
- OSS
- USS
spellleded:
- spelled
- pelleted
- spilled
- superseded
- secluded
awell:
- a well
- aw ell
- aw-ell
- awe ll
- awe-ll
- Ewell
rong:
- Ring
- ring
- tong
- wrong
- Rog

goospell 

Ruby Usage

Goospell::spell('Thas sentnince iss spellleded awell rong')
#{"Thas"=>["This", "Th as", "Th-as", "Thais", "Thaws", "Thad"], "sentnince"=>["sentence", "sentience", "sentences", "sentencing", "sentience's"], "iss"=>["is", "Isa", "Issi", "Issy", "OSS", "USS"], "spellleded"=>["spelled", "pelleted", "spilled", "superseded", "secluded"], "awell"=>["a well", "aw ell", "aw-ell", "awe ll", "awe-ll", "Ewell"], "rong"=>["Ring", "ring", "tong", "wrong", "Rog"]}

Prerequisites

  • uri
  • net
  • rexml

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

References

Released under the GPLv3 license

Copyright (c) 2012 Domain7

About

Spellchecker using google spell checking service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%