Municipal Sky

U.S. Occupations Treemap

In my experiments with LLMs, the text I’ve had the most fun working with is Gargantua and Pantagruel, a series of novels first published in the 16th century by a French monk turned satirist, François Rabelais. I’ve found the 1693 translation of these books available on Project Gutenberg to be a rich source of material for writing challenging prompts, because the novels are full of elaborate wordplay, rarely used words, and a Renaissance frame of reference that does not fit neatly into modern categories.

They are also really funny, with a violent, vulgar sense of humor that rivals the shock value of anything you might see on South Park. For example, in Book 2 Chapter 30, titled “How Epistemon, who had his head cut off, was finely healed by Panurge, and of the news which he brought from the devils, and of the damned people in hell,” the tutor Epistemon is resurrected after another character stitches his decapitated head back onto his body. The first sign that this medical procedure has worked is when Epistemon “lets a great household fart.” In Rabelais, it is the lower bodily stratum that is the source of life (and most of his jokes).

After this resurrection, Epistemon shares with his companions what he saw during his brief tour of the underworld. He recounts a procession of famous figures from history and mythology (emperors, popes, mythic heroes), and describes the humble occupations they’ve been assigned in the afterlife:

…Their estate and condition of living is but only changed after a very strange manner; for I saw Alexander the Great there amending and patching on clouts upon old breeches and stockings, whereby he got but a very poor living.

Xerxes was a crier of mustard. Romulus, a salter and patcher of pattens. Numa, a nailsmith. Tarquin, a porter. Piso, a clownish swain. Sylla, a ferryman. Cyrus, a cowherd. Themistocles, a glass-maker. Epaminondas, a maker of mirrors or looking-glasses. Brutus and Cassius, surveyors or measurers of land. Demosthenes, a vine-dresser. Cicero, a fire-kindler. Fabius, a threader of beads. Artaxerxes, a rope-maker. Aeneas, a miller. Achilles was a scaldpated maker of hay-bundles. Agamemnon, a lick-box. Ulysses, a hay-mower…

Rabelais lists the underworld occupations for over 90 figures, including Roman emperors, popes, mythological heroes, and knights of medieval romance. The jobs these figures are assigned represent a kind of inversion, where “all who are highest are debased, all who are lowest are crowned” (Bakhtin 383).

Rabelais’s novels are full of long, absurd lists like this one, and in my work on RLHF projects, I’ve found that these sorts of lists make for great material for categorization prompts. For this passage, I wanted to see how well LLMs could classify the underworld occupations using structured categories: specifically the Standard Occupational Classification (SOC) from the U.S. Bureau of Labor Statistics (BLS).

The SOC system is a statistical standard established by the U.S. federal government for classifying all occupations in which work is performed for pay or profit. It organizes the world of work into a four-level hierarchy that moves from broad to specific. At the top are 23 Major Groups, which branch into 98 Minor Groups, then into 459 Broad Occupations, and finally into 867 Detailed Occupations.

I sent Rabelais’s list of underworld occupations to three large language models (Claude, Gemini, and ChatGPT) and asked each to classify every figure’s job using the SOC system. The three models agreed on the Detailed Occupation for about two-thirds of the ninety figures. That agreement was good enough for me; for the remaining thirty, I reviewed the three responses by hand and picked the one that best fit the job Rabelais described.

Using a federal statistical standard to classify this text allows for a quantitative analysis of the workforce in Rabelais’s underworld. It also makes it possible to compare it to the U.S. workforce in 2024 using data from the BLS and other sources that use the SOC system.

Gathering the damned…

The Labor Market in Rabelais's Underworld

Woodcut of a flying demon carrying a couple — from Rabelais

Most Overrepresented in the Underworld

Loading major group data…

The Underworld Labor Market

Loading major group data…

The results show what you might expect: the workforce in Rabelais’s underworld is underpaid and overrepresented in occupations with unpleasant working conditions. I created a few visualizations summarizing these results, as well as an interactive dashboard where you can explore the results (and BLS data more broadly) for yourself. The dashboard visualizes the U.S. workforce using a treemap with ghosts depicting each of the figures in Rabelais’s underworld.

All Occupation Groups

Click to drill down. At detailed occupation level, click a cell to see the dashboard.

v1.9

Works Consulted

Bakhtin, Mikhail. Rabelais and His World. Translated by Hélène Iswolsky. Bloomington: Indiana University Press, 1984.