I believe you're mixing it up. There are two arrays of words in the source code. One that contains all the solutions in order, and one that contains all the possible words without repeating any words in the solutions list
So the 10638 words are the set of all possible guesses minus the set of all the solutions.