This is embarrassing: I haven't been able to go back and polish my code since last July. And it looks like I may not be able to for quite a while. So never mind, here is my unfinished code, together with a sample of the dictionary. I only tested a few words with it. I'll get back to it if I get a lull in my real life. In the meantime, anyone is free to borrow/read the code and/or sample dictionary (it is inside the 'output' directory):
https://github.com/ptoche/GDLC