Ancient "AI" fun?

So, a kind of probabilistic substitution into a template? You’ve given me a flashback to my schooldays - as a paper exercise, and probably in Basic, I wrote many pages of spaghetti code with the aim of filling in sentences from a grammar (although I didn’t think of it as a grammar, and didn’t have anything you’d call a data structure - it was all in the code.) I had to stop as it was becoming a…