WordFinder

A high-level wrapper around libaspell, to find words in an ordered stream of characters.

Requirements & Installation

This depends on libaspell, via ffi-aspell. In order to install it, you'll need to make sure you have aspell installed, with the development package.

On Ubuntu:

sudo apt-get install libaspell-dev
gem install wordfinder

You may also add a line to your Gemfile:

gem "wordfinder"

Usage

There is only one method in WordFinder.

require "wordfinder"

WordFinder.words_in("threelittlepigswenttomarket")
#=> ["three", "little", "pigs", "went", "to", "market"]

Copyright © 2012 Chris Corbyn Refer to the LICENSE file for details.