SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.15267 · EMNLP · 2024

Evaluating Diversity in Automatic Poetry Generation

Steffen Eger, Sina Zarrieß, Yanran Chen, Hannes Gröner

arXiv · PDF · Open in the Atlas

Code that ran

8 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 4 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 6 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2406.15267.json · badge: /api/ran/2406.15267.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
hgroener/diversity_in_poetry_generation canonical (classifier label)
classifier basis: census
8 ran · 6 no recorded run
FunctionStatusWhere it lives
chi2_test Ran
ran, honoured the contract we drafted
hgroener/diversity_in_poetry_generation/diversity-in-poetry-generation/analysis/meter_rhyme.py
pointer only (licence: GPL-3.0) · get_code("58f88b7ed149b0f4")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, hgroener/diversity_in_poetry_generation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

flatten_list Ran
ran, honoured the contract we drafted
hgroener/diversity_in_poetry_generation/diversity-in-poetry-generation/helper_functions.py
pointer only (licence: GPL-3.0) · get_code("e24a0f7cee08a0d6")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, hgroener/diversity_in_poetry_generation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

format_func Ran
ran; our contract draft was wrong, not the code
hgroener/diversity_in_poetry_generation/diversity-in-poetry-generation/analysis/topic_modeling.py
pointer only (licence: GPL-3.0) · get_code("2ec743297576d834")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, hgroener/diversity_in_poetry_generation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_contigents_len Ran
ran, honoured the contract we drafted
hgroener/diversity_in_poetry_generation/diversity-in-poetry-generation/analysis/length.py
pointer only (licence: GPL-3.0) · get_code("63f09d7aaebf6c14")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, hgroener/diversity_in_poetry_generation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_dataset Ran
ran; our contract draft was wrong, not the code
hgroener/diversity_in_poetry_generation/diversity-in-poetry-generation/helper_functions.py
pointer only (licence: GPL-3.0) · get_code("873b466167adf60b")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, hgroener/diversity_in_poetry_generation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

histogram_intersection Ran
ran, honoured the contract we drafted
hgroener/diversity_in_poetry_generation/diversity-in-poetry-generation/analysis/length.py
pointer only (licence: GPL-3.0) · get_code("d2f5b927b2ba7d06")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, hgroener/diversity_in_poetry_generation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

join Ran
ran; our contract draft was wrong, not the code
hgroener/diversity_in_poetry_generation/diversity-in-poetry-generation/helper_functions.py
pointer only (licence: GPL-3.0) · get_code("2f3a197c01bcd196")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, hgroener/diversity_in_poetry_generation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

split_sonnets Ran
ran; our contract draft was wrong, not the code
hgroener/diversity_in_poetry_generation/diversity-in-poetry-generation/training_data/parse_sonnets.py
pointer only (licence: GPL-3.0) · get_code("3d7c3b1d3cd1f421")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, hgroener/diversity_in_poetry_generation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

chi_square_len Not yet run
unverified (harvested, no recorded run)
hgroener/diversity_in_poetry_generation/diversity-in-poetry-generation/analysis/length.py
pointer only (licence: GPL-3.0) · get_code("741b08fb3bb70955")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, hgroener/diversity_in_poetry_generation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

memorization Not yet run
unverified (harvested, no recorded run)
hgroener/diversity_in_poetry_generation/diversity-in-poetry-generation/analysis/memorization.py
pointer only (licence: GPL-3.0) · get_code("3231ddbd7853c739")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, hgroener/diversity_in_poetry_generation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

meter_rhyme_metrics Not yet run
unverified (harvested, no recorded run)
hgroener/diversity_in_poetry_generation/diversity-in-poetry-generation/analysis/meter_rhyme.py
pointer only (licence: GPL-3.0) · get_code("519524442639ccf7")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, hgroener/diversity_in_poetry_generation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

plot_stacked Not yet run
unverified (harvested, no recorded run)
hgroener/diversity_in_poetry_generation/diversity-in-poetry-generation/analysis/meter_rhyme.py
pointer only (licence: GPL-3.0) · get_code("9ccad04d5816cb53")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, hgroener/diversity_in_poetry_generation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

process_ds Not yet run
unverified (harvested, no recorded run)
hgroener/diversity_in_poetry_generation/diversity-in-poetry-generation/sampling/process_deepspeare_sample.py
pointer only (licence: GPL-3.0) · get_code("54e9c411dfa41569")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, hgroener/diversity_in_poetry_generation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

process_sa Not yet run
unverified (harvested, no recorded run)
hgroener/diversity_in_poetry_generation/diversity-in-poetry-generation/sampling/process_structured_adversary_sample.py
pointer only (licence: GPL-3.0) · get_code("c414508a819b535d")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, hgroener/diversity_in_poetry_generation, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 14 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Natural Language Generation (NLG), and more generally generative AI, are among the currently most impactful research fields. Creative NLG, such as automatic poetry generation, is a fascinating niche in this area. While most previous research has focused on forms of the Turing test when evaluating automatic poetry generation -can humans distinguish between automatic and human generated poetry -we evaluate the diversity of automatically generated poetry (with a focus on quatrains), by comparing distributions of generated poetry to distributions of human poetry along structural, lexical, semantic and stylistic dimensions, assessing different model types (word vs. character-level, general purpose LLMs vs. poetry-specific models), including the very recent LLaMA3-8B, and types of fine-tuning (conditioned vs. unconditioned). We find that current automatic poetry systems are considerably underdiverse along multiple dimensions -they often do not rhyme sufficiently, are semantically too uniform and even do not match the length distribution of human poetry. Our experiments reveal, however, that style-conditioning and character-level modeling clearly increases diversity across virtually all dimensions we explore. Our identified limitations may serve as the basis for more genuinely diverse future poetry generation models. 1

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2406.15267")
get_code_for_paper("2406.15267")
have("2406.15267")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2406.15267.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2406.15267.svg)](https://syntology.ai/paper/2406.15267)

Connect an agent — have() is free.