A simple text prediction software in C++ inspied by a Veritasium's video on Markov chains.
A sample output generated by the algorithm when trained with one of the text files is:
"That wild yell seemed to come a violent puff of wind, and the door to the winding stair blew to with a shock that set the dust from the lintels flying. When I ran to push it open, I found that it was hopelessly fast. I was again a prisoner, and that if I wished it I could have no choice. The Count saw his victory in my bow, and his mastery in the trouble of my face, for he said almost joyously:, you don't count now; the Master is at hand. The attendant thinks it is some sudden form of religious mania at once might be angerous. I got a ladder myself, and crossing the wall, dropped down on the other side of a true love episode of which I know one side already...."