There was a HN title generator done a few years ago:
https://veekaybee.github.io/2015/08/24/markov-in-python/
And one for generating (unrelated) comments to a title: https://github.com/leod/hncynic
And one for generating (unrelated) comments to a title: https://github.com/leod/hncynic