florilegia

I tried imitating Carrie Bradshaw from Sex and the City using Markov Chains and it didn't work

Just a little failure update.

I know Markov Chains are used for text generations. I thought they were going to be a lot easier, but actually a bit harder to code than I thought. So I took the 92 questions from Carrie Bradshaw here and used rvest to scrape the text.

Some cleaning up later, I realized that I'm not someone who manipulates strings very much (Regular expression is the worst thing ever and I'm not ashamed that I use chatGPT for regular expression). I'm a bit ashamed to share the code (It's not useful). Also text generation is being wonky because I want it to ask questions, but the majority of the time, I'm getting complete nonsense.

Though I did get this one:

![Screenshot 2024-11-30 at 11]Screenshot 2024-11-30 at 11

#projects #thoughts