WordUp

TODO: Write a gem description

Installation

Add this line to your application's Gemfile:

gem 'word_up'

And then execute:

$ bundle

Or install it yourself as:

$ gem install word_up

Usage

Generate all forms of a word

    "swimming".forms # => ["swim", "swimming", "swimmings", "swims"]

    "bill".forms # => ["bill", "billed", "billing", "billings", "bills"]

    "composing".forms # => ["compose", "composed", "composer", "composers", "composes", "composing"]

    "notarealword".forms # => []

Determine the distance between two words

    "I met a gypsy and she hipped me to some life game".word_distance("gypsy", "hipped") # => 2

    "A tornado flew around my room before you came".word_distance("tornado", "before") # => 4

Find which word follows another

  "Until the end of time".word_after("of") # => "time"

  "Educated on these cold streets".word_after("cold") # =>streets 

Find out whether a word is capitalized

    "Outkast".capitalized? # => true

    "watching".capitalized? # => false

Contributing

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