Computer-Generated Haiku

Better watch out. The machines can write poetry now, which means the next step is world domination.

To clarify, I just finished Foundations at Grace Hopper Academy, one of the many popular ‘coding bootcamps’ in New York. The final project from Foundations, a four-week remote pre-course, was to write a program that randomly generates haiku. I thought I would share some highlights here. Luckily, computers are still pretty bad at poetry, although the first one seems a bit too accurate.

STRANGE INAUDIBLE

MINISUPERCOMPUTER

DISSERVICE THORO

~~~

FRIEND DECOMPRESSION

UNPROFITABLITY

INNOCENT FORK-LIFT

~~~

ENDEAVOR DODSWORTH

PATRONIZES PATIOS

PROLETARIAN

~~~

HATMAKER COWARD

INCONSTANCY INDERAL

IMMEASURABLY

~~~

DERMATOLOGISTS

UNILATERALISM

IRRESPONSIBLE

The program can also find haiku naturally occurring in a text. Here are a few from The Importance of Being Earnest.

ON A SALVER ALGERNON

INSPECTS THEM TAKES TWO AND SITS

DOWN ON THE SOFA

~~~

FURNISHED THE SOUND OF

A PIANO IS HEARD IN

THE ADJOINING ROOM

~~~

BEING EARNEST A

TRIVIAL COMEDY FOR

SERIOUS PEOPLE

And here are two from my senior thesis!

CAT RENOIRS ONLY

MALE NUDE IS AN INTRIGUING

PAINTING YET IT IS

~~~

OVER HIS SHOULDER

IS INSCRUTABLE IS IT

SADDENED DREAMY COY

Let me know if you have a text that you need to find haiku in. Also, if you want to hear about the rest of my experiences at Grace Hopper Academy, you can follow me on my blog at http://galencorey.wordpress.com.