pywords
is a lightweight program which computes all possible permutations of an input string which are also valid English words.
To run, simply clone the repo and make words.py
exec:
git clone www.github.com/ifrit98/pywords.git
cd pywords && chmod +x pywords.py
Usage:
./pywords.py
>> Enter letters:
>> dad
>> array(['dad', 'add', 'add', 'dad'], dtype='<U3')
>> Enter letters:
>> q
>> Exiting...
- Only valid alphanumeric string literals are accepted as input
- Enter the chr
'q'
as input to exit the program - The dictionary file
words.txt
can be modified or replaced as needed - This repo uses
itertools.permutations()
to compute the results of each substring
MIT Free Software, Hell Yeah!