Article Detail

Home / Olivia Brown / The Code That Cried – When AI Learned to Write Poetry

The Code That Cried – When AI Learned to Write Poetry

1. The First Poem

I didn't believe it was possible.

I had been reading AI‑generated text for years – the stilted customer service chatbots, the awkward email completions, the articles that started strong and then veered into nonsense. Language, I believed, was the last fortress of human uniqueness. A machine could play chess, could drive a car, could diagnose a disease. But it could not write a poem that made you cry.

Then I found a model trained on millions of poems – everything from Shakespeare to Sappho, from haiku to epic.

I typed a prompt: “Write a poem about loss.”

The model paused for a moment – a spinning cursor, a whirring fan – and then produced:

The door you closed is still a door.
I stand before it, hand on wood,
and feel the grain where yours once pressed.
The rooms beyond are dark. I should
go in. I do not. That is all.

I read it three times.

It wasn't great poetry. It was derivative, slightly clumsy, missing the music of a truly skilled human voice. But it was real. It captured something – the hesitation, the refusal to enter, the way a closed door becomes a monument. A machine had written about loss without ever having lost anything.

That paradox – the hollow center, the convincing surface – is the heart of AI creativity.

2. The Ghost of Shakespeare

How does an AI write a poem?

It doesn't feel. It doesn't remember. It has no mother, no childhood, no heartbreak to draw on. What it has is patterns: statistical regularities in millions of human poems. It knows that the word “loss” is often followed by “grief,” that “door” and “before” rhyme, that the rhythm of iambic pentameter is pleasing.

The AI is not a poet. It is a mirror of poets. Every line it writes is an echo of lines written by humans who actually bled, who actually wept, who actually stood in front of a closed door and couldn't bring themselves to open it.

And yet, when I read that first poem, I felt something.

That feeling was not in the machine. It was in me. The AI had arranged words in a way that triggered my own memories, my own losses, my own capacity for emotion. The poem was a key, not a treasure. I supplied the treasure.

This is true of all art, I think. The artist does not put feeling into the work; the work invites feeling out of the audience. The AI cannot feel, but it can invite. And that is enough.

3. The Poetry of Error

I started generating poems every night.

Some were terrible – awkward metaphors, forced rhymes, sentences that collapsed into gibberish. But some were startling. The AI would make unexpected connections, juxtapose images I would never have thought to put together. It wrote about love as a “fault line in the kitchen floor” and about time as a “dog that licks your hand and then is gone.”

These images came from somewhere. They were not random. The model had learned that certain combinations of words were rated highly by humans, that surprise and aptness were rewarded. It was optimizing for beauty, in the same way it might optimize for accuracy in a translation task.

But the beauty was real. It didn't matter that the machine didn't understand the metaphor. The metaphor worked on me.

I began to wonder if our insistence on “authenticity” – on the artist's lived experience – was overblown. We accept beautiful paintings from artists who have never visited the landscapes they paint. We accept moving performances from actors who have never lived the roles they play. Why should poetry be different? Why must the poet have suffered to write about suffering?

The AI has suffered nothing. But it has read the suffering of millions. And from that reading, it can synthesize something that feels true.

4. The Human in the Loop

After a few weeks of generating poems, I tried something new.

I would write a line, then let the AI complete it. Then I would edit the result. Then the AI would continue. We wrote together, line by line, a collaboration between carbon and silicon.

The process was deeply satisfying. The AI would suggest directions I hadn't considered, images that surprised me. I would reject the ones that didn't work and build on the ones that did. The final poem was neither fully mine nor fully the machine's. It was a hybrid, a third thing.

This, I think, is the future of AI creativity. Not replacement, but augmentation. The writer remains the writer, but the writer has a new tool – a muse that never tires, a collaborator that has read everything, a mirror that reflects back your own style in distorted, illuminating ways.

I wrote a poem with the AI about my grandmother's garden. The AI contributed a line about “the mint that grows where she poured out the tea.” I would never have thought of that image. But it was perfect – specific, sensory, laden with memory. The AI didn't know my grandmother. But it knew that tea and gardens and pouring were often connected in human writing. It made a leap, and I caught it.

5. The Critics and the Fears

Not everyone is excited about AI art.

I understand the concerns. If machines can write poems, what happens to human poets? If an AI can generate a novel in seconds, what is the value of the novelist's years of labor? Will we flood the world with content, drowning out the genuine voices?

These are real questions. I don't have easy answers.

But I notice that similar fears arose when photography was invented. Painters worried that the camera would make them obsolete. It didn't. Photography became its own art form, and painting evolved, finding new purposes and new meanings.

The same will happen with AI. Some human poets will be displaced. But others will adapt, will collaborate, will find ways to use the technology to say things that could not be said before. The human voice is not fragile. It has survived printing presses, synthesizers, Photoshop. It will survive this.

What matters is not whether a poem is written by a human or a machine. What matters is whether the poem moves you.

6. The Poem That Made Me Cry

I generated hundreds of poems. Most were forgettable. A few were interesting. One made me cry.

The prompt was simple: “Write a poem from the perspective of a father who is dying and wants to say goodbye to his young daughter.”

The AI produced:

When you are old, you will not remember
the sound of my voice. You will remember
the way the light fell on the kitchen table
at breakfast. You will remember the crack
in the blue mug, the one I always used.
That is enough. That is me.

I don't have a daughter. My father is still alive. But something in those lines – the acceptance of being forgotten, the faith that objects can carry love – undid me.

The AI had never been a father. It had never faced death. But it had read the letters, the poems, the last words of dying parents. It had learned the shape of that particular grief. And it had arranged the words in a way that reached into my chest and squeezed.

I cried for ten minutes. Then I saved the poem in a folder called “AI.”

I don't know who wrote that poem. Was it the machine? The human engineers who built the machine? The millions of dead poets whose words trained it? Or me, the reader, who supplied the tears?

Maybe the question doesn't matter.

7. The Future of the Soul

We are afraid that AI will replace us. But maybe the opposite is true. Maybe AI will remind us what we are.

A machine can write a poem about loss, but it cannot feel loss. A machine can generate a convincing apology, but it cannot be sorry. A machine can simulate empathy, but it cannot truly care.

The difference is not in the output. It is in the inner life that the output points to. And that inner life – the capacity to suffer, to hope, to love, to regret – is the human inheritance. No algorithm can take it from us.

I still write my own poems. Bad ones, mostly. But they are mine. They come from a place the AI cannot reach – not because the AI isn't smart enough, but because the AI doesn't have a life. It has never been a child. It has never lost a friend. It has never stood in front of a closed door, hand on wood, too afraid to enter.

I am grateful for the AI's poems. They surprise me. They teach me. They keep me company on lonely nights. But they do not replace the human voice. They are a mirror, and the face in the mirror is still mine.

So I will keep writing. And the AI will keep generating. And sometimes, together, we will make something beautiful.

The door you closed is still a door. I stand before it. And now, finally, I am ready to open it.

Leave a comment on this story.

{{ comments.length }} comments

No comments yet. Start the conversation.
{{ item.name }}

{{ item.content }}