Loop through all permutations that are the same length as the original word.
For each permutation check if it is a word or if the first 3 letters are a word, first four letters, five letters, etc.
If it is a word, check and see if you already have it.
You could check if you already have that word first instead of if its a word.
For each permutation check if it is a word or if the first 3 letters are a word, first four letters, five letters, etc.
If it is a word, check and see if you already have it.
You could check if you already have that word first instead of if its a word.