Sonnet Generator

14-ish lines of somewhat-rhyming iambic pentameter (if you're lucky).

About this project

In college, I built a sonnet generator that just randomly matched lines from Shakespeare's sonnets for a class project. It accidentally became the third highest-ranking poetry generator on Google so I kept it around and tried to improve it.

A few years later, the GPT API was released and I built a real sonnet generator. However it turns out putting an unauthenticated and unsecured API endpoint on the internet is a bad idea. Good thing I had a lot of OpenAI credits.

This page is currently pending updates due to issues with the transformers.js dependencies. I'm working on finding a better solution for local inference.

This page is currently pending updates due to issues with the transformers.js dependencies. The sonnet generator is temporarily disabled while we work on a solution.