Skip to content

Limerick

limerick · form · validated

Five lines rhyming AABBA, the third and fourth notably shorter than the other three, usually comic in register. Only the rhyme scheme is checked: neither the anapestic metre nor the shorter middle couplet is scanned.

Provenance

  • Source: Traditional; popularised by Edward Lear, A Book of Nonsense (1846)
  • Attribution: traditional — classical or folk; no single origin to name
  • Checkability: self — decidable from the text and its parameters alone
  • Attested: codified — formulated as a rule by a tradition rather than declared by an author

Details

  • Kind: restrictive
  • Languages: en
  • Requires: tokens, phonemes
  • Deterministic: yes
  • In other languages: Limerick (de), Limerick (fr)

Notes

Only the rhyme scheme is checked: _check calls form_report with scheme="AABBA" and no metre, so the anapestic metre and the shorter middle couplet the definition names are never scanned. stress was declared for that unimplemented half and is removed rather than kept as an aspiration a caller cannot see is unreached.

Prompt hint

Write five lines rhyming AABBA with the middle two lines shorter.

Parameters

Name Type Default Description
allow_identical boolean False Permit a word to rhyme with itself, as Lear's limericks do; False reports a repeated end word as identical_rhyme.
unknown_rhyme string undecidable What a line ending absent from the pronouncing dictionary means: leave the pair unscored (undecidable), let it satisfy the scheme (free), or fail it (strict). A word repeated as its own rhyme is identical_rhyme under every setting of this parameter, unless the row's allow_identical is set.

Examples

lear-beard

en — this text does not satisfy the procedure.

There was an Old Man with a beard,
Who said, "It is just as I feared!--
Two Owls and a Hen,
Four Larks and a Wren,
Have all built their nests in my beard!"

Source: Edward Lear (d. 1888), The Book of Nonsense, limerick 1; Project Gutenberg ebook #982, https://www.gutenberg.org/cache/epub/982/pg982.txt, extracted by script 2026-10-12 (the file names no edition or year; Lear first published A Book of Nonsense in 1846). Rejected: identical_rhyme. Lear ends the first and last lines on the same word, 'beard', which strict practice counts a fault. Selected: of the 112 numbered limericks in this file, the checker rejects 109, 107 of them for identical_rhyme (measured 2026-10-14); 99 of the 112 end the last line on the first line's word. With allow_identical on it rejects 32, all for a line pair that does not rhyme (measured 2026-10-15).

lear-ryde

en — this text does not satisfy the procedure.

There was a Young Lady of Ryde,
Whose shoe-strings were seldom untied;
She purchased some clogs,
And some small spotty dogs,
And frequently walked about Ryde.

Source: Edward Lear (d. 1888), The Book of Nonsense, limerick 2; Project Gutenberg ebook #982, https://www.gutenberg.org/cache/epub/982/pg982.txt, extracted by script 2026-10-14 (the file names no edition or year; Lear first published A Book of Nonsense in 1846). Rejected: identical_rhyme. Lear ends the first and last lines on the same word, 'Ryde', which strict practice counts a fault; the pronouncing dictionary does not carry the place name, so the repeat is judged by spelling. Selected: of the 112 numbered limericks in this file, the checker rejects 109, 107 of them for identical_rhyme (measured 2026-10-14); 99 of the 112 end the last line on the first line's word. With allow_identical on it rejects 32, all for a line pair that does not rhyme (measured 2026-10-15).

lear-beard-identical-allowed

en — this text satisfies the procedure.

There was an Old Man with a beard,
Who said, "It is just as I feared!--
Two Owls and a Hen,
Four Larks and a Wren,
Have all built their nests in my beard!"

Parameters: allow_identical=True

Source: Edward Lear (d. 1888), The Book of Nonsense, limerick 1; Project Gutenberg ebook #982, https://www.gutenberg.org/cache/epub/982/pg982.txt, extracted by script 2026-10-15 (the file names no edition or year; Lear first published A Book of Nonsense in 1846). Passes only with allow_identical: Lear ends the first and last lines on the same word, 'beard', which the default reports as identical_rhyme. Selected: of the 112 numbered limericks in this file, the checker rejects 109 by default and 32 with allow_identical on, all 32 for does_not_rhyme (measured 2026-10-15); this case is one of the 80 that pass with the switch. Same text as lear-beard, landed as the switch-on half of an off/on pair. One text is therefore counted twice: this is a second external case of it in the external-case total and in limerick's external floor.

lear-kilkenny

en — this text satisfies the procedure.

There was an Old Man of Kilkenny,
Who never had more than a penny;
He spent all that money,
In onions and honey,
That wayward Old Man of Kilkenny.

Parameters: allow_identical=True

Source: Edward Lear (d. 1888), The Book of Nonsense, limerick 13; Project Gutenberg ebook #982, https://www.gutenberg.org/cache/epub/982/pg982.txt, extracted by script 2026-10-15 (the file names no edition or year; Lear first published A Book of Nonsense in 1846). Passes only with allow_identical: Lear ends the first and last lines on the same word, 'Kilkenny', which the default reports as identical_rhyme. Selected: of the 112 numbered limericks in this file, the checker rejects 109 by default and 32 with allow_identical on, all 32 for does_not_rhyme (measured 2026-10-15); this case is one of the 80 that pass with the switch.

lear-troy

en — this text satisfies the procedure.

There was a Young Lady of Troy,
Whom several large flies did annoy;
Some she killed with a thump,
Some she drowned at the pump,
And some she took with her to Troy.

Parameters: allow_identical=True

Source: Edward Lear (d. 1888), The Book of Nonsense, limerick 88; Project Gutenberg ebook #982, https://www.gutenberg.org/cache/epub/982/pg982.txt, extracted by script 2026-10-15 (the file names no edition or year; Lear first published A Book of Nonsense in 1846). Passes only with allow_identical: Lear ends the first and last lines on the same word, 'Troy', which the default reports as identical_rhyme. Selected: of the 112 numbered limericks in this file, the checker rejects 109 by default and 32 with allow_identical on, all 32 for does_not_rhyme (measured 2026-10-15); this case is one of the 80 that pass with the switch.

distinct-rhymes

en — this text satisfies the procedure.

there was an old man with a beard
who said it is just as i feared
two owls and a hen
four larks and a wren
have all flown away and disappeared

Source: constructed example

aabba

de — this text satisfies the procedure.

der Wandrer zieht durch jenes weite Land
das Feuer brennt und wärmt die kalte Hand
der Wandrer sieht ein Licht
der Bote spricht es nicht
die Blume welkt im Schatten an der Wand

Source: constructed example

aabba-fr

fr — this text satisfies the procedure.

Il y avait un chat nommé Amour
Qui cherchait le bonheur toujours
Il prit un jour un chemin
Et partit tôt le matin
Et rêva de son retour

Source: constructed example

rime-b-rompue

fr — this text does not satisfy the procedure.

Il y avait un chat nommé Amour
Qui cherchait le bonheur toujours
Il prit un jour un chemin
Et partit dans le froid gris
Et rêva de son retour

Source: constructed counterexample