Computer-Generated Haiku

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

To clarify, the final project from foundations last week 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. If you would like to see the code behind it, I posted my project on GitHub.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s