Homework 4

Please, look at homework 4 assignments.
That technically works, but it kind of goes against the grain of the idea behind the assignment. The idea is that a particular author sounds a certain way, because they tend to use words in a certain order, so you can make something random that sort of sounds like the author by mixing the words up, but not too much. This is why when you create your 'random' text based on their writing, you follow two words they use together with a third word that they used (at least once) to follow the first two. If you make a big catch-all of the leftover words, this ordering gets lost. To preserve the intent of the assignment, you would make the entire text into one big list of words, and then put it into the dictionary: the first two words linked to the third word, the second and third word linked to the fourth word, and so on, for the entire text.