public
Description: Single word anagrams engine
Homepage: http://tempe.st
Clone URL: git://github.com/intinig/word_cheat.git
Giovanni Intini (author)
Tue Mar 10 02:26:57 -0700 2009
commit  bde50be80dc3a785e95551845264c74a9939654a
tree    f056e45d59a0270a6b40bced639b400f4d3a2a28
parent  751f3e1b71443aa0074c0db78d1b2076010d5825
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.