I have no real need to improve it, it\'s just for fun. Right now it\'s taking about a second on a list of about 200K words.
I\'ve tried to optimize it as much as I know
Organize your data better. Instead of reading through a linear dictionary and comparing, you could pre-build a tree structure with those letter count vectors (well, "vectors"), and save that to a file.