Okay, I figured it all out. I did archive the root directory and not just its contents. Once I fixed that, it worked like a charm.
So basically I replaced the word count with code that set the book text to lowercase, split it into a list, and then made a set of the list and counted the length of the set.
I am actually shocked at how many different words are even in the simplest of children's books! But I have a much better idea of where I'll be starting now.
Thanks to everyone for all their help!
|