public
Description: Single word anagrams engine
Homepage: http://tempe.st
Clone URL: git://github.com/intinig/word_cheat.git
word_cheat / README
100644 8 lines (5 sloc) 0.593 kb
1
2
3
4
5
6
7
8
WORD CHEAT
by Giovanni Intini <giovanni@mikamai.com>
 
This is a simple anagrams tool that someone could use to cheat at word games, like Word Challenge on Facebook ]:)
 
Usage is quite simple, drop a wordlist in resources/ and customize cheat.rb to load that word list. Calling cheat.rb with the original word as an argument (i.e. $ cheat.rb wordtoanagram) will ouput to STDOUT a list of the words that are anagrams of the original word or of a subset of its letters.
 
Test coverage is at 100% and the solution is quite clever (IMHO :)), feel free to contribute or do whatever you wish with it.