Manywords
You may be playing a word game and be stuck. Use this gem to find all of the possible words that exist with a given word combination. You can also provide a regular expression to filter you search.
Installation
Add this line to your application's Gemfile:
gem 'manywords'
And then execute:
$ bundle
Or install it yourself as:
$ gem install manywords
Usage
To just find all possible words, run the following:
$ manywords abcde
To filter your search, run the following:
$ manywords ^...$
By default, manywords uses the UNIX standard dictionary file, /usr/share/dict/words
. If your platform doesn't have this file, or you would like to provide your own, use the --dictionary
flag.
$ manywords --dictionary /path/to/dict abcde
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request