I have a window that looks out on part of the reason I have embraced libraries for functionality like this.
I created BloggingBot as a Twitter bot in 2018.
I fed into the Python library Markovify 17 years worth
of blog posts from artlung.com, creating thousands of sentences.