|
Project Information
|
allperms.py Workhorse function housing the allperms(word) function. Importing this module allows you to use the allperms(word) function which returns a generator of permutations, valid or invalid of the characters of word. Also has a main() function: ~$ python allperms.py word This will execute allperms(word) generating permutations of the command line argument. Dictionary.py Contains a definition for a Dictionary object. Think of it as an actual dictionary that validates the existence of words in the English language according to words.txt which is also included. getPermutations.py ~$ python getPermutations.py [--i] [--valid] Options: [--i], [--valid] [--i] will open interactive mode where you can enter a word to generate permutations for. [--valid] will only print out valid English words according to words.txt . Use this option if you want to see what permutations of a word are also words themselves. Written by Anthony Salgado. |