LOLWUT: computer poetry

May 15, 2025

In 1961, Nanni Balestrini created one of the first computer-generated poems, Tape Mark I, using an IBM 7090 mainframe. Each execution combined verses from three literary sources following algorithmic rules based on metrical compatibility and group constraints. This generator reproduces Balestrini's original algorithm, generating new stanzas through the same computational poetry process described in Almanacco Letterario Bompiani, 1962.

This code is a JavaScript implementation of the LOLWUT 8 command from Redis, originally authored by Salvatore Sanfilippo (antirez). The Redis implementation is Copyright (c) 2025-Present, Redis Ltd., and is available under RSALv2, SSPLv1, or AGPLv3 licenses. The algorithm is based on the Almanacco Bompiani description and the original Python code written by Emiliano Russo.