Read the existing text file Convert the text file into dictionary Start with blank sentence Choose the starting word from the dictionary randomly Put that word in the sentence at the beginning Set the first counter to zero Specify the number of words to create a sentence Repeat the iteration until counter is less the number of words in a sentence specified create an empty list set the second counter to zero