Yeats CFG — "The Second Coming" (Original lexicon only)
Recursive Production Grammar
Output
Widening and moving by a rocking nightmare a ceremony can hardly be a man; things reel somewhere; a ceremony can again be; mere anarchy slouches loosed towards some lion, the stony sight is drowned, and everywhere some sight to falconer comes drowned; a worst know all world, towards some best know slow to last image. round the lion is by head; round some Coming Bethlehem slouches as ceremony. a Second Coming! hardly reel those sands round when the mere falcon out towards Coming Spiritus is my falconer: round about sands as the body a sleep about conviction darkness and some shape towards a beast, the man slow and pitiless at a gyre, comes rocking my indignant words, upon all while I reel birds in some indignant innocence birds. a nightmare comes round; but somewhere it are in twenty centuries at blank tide were loosed to nightmare as a turning gyre, but what passionate revelation, my conviction come hardly by blank, comes of Mundi to be loosed?
CFG Script
# ==============================================
# William Butler Yeats — "The Second Coming"
# Stanford/Penn POS-based CFG Template
# Original words only | Bounded | No recursion
# Parser-safe (no $, uses DTS/DTP)
# ==============================================
S -> L1 {br} L2 {br} ... L22
# ---- Line templates ----
L1 -> VBG CC VBG IN DTS VBG NN
L2 -> DTS NN MD RB VB DTS NN ";"
...
L22 -> VBZ IN NNP TO VB VBN "?"
# ---- Lexicon (excerpt) ----
DTS -> "the" | "a" | "some"
JJ -> "mere" | "stony" | "pitiless" | "indignant"
NN -> "gyre" | "falcon" | "falconer" | "lion" | "body" | "nightmare" | "conviction"
RB -> "hardly" | "again" | "round" | "everywhere"
VBG -> "turning" | "widening" | "moving" | "rocking"
VBZ -> "is" | "slouches" | "comes"
NNS -> "birds" | "sands" | "centuries"
NNP -> "Second" | "Coming" | "Spiritus" | "Mundi" | "Bethlehem"
...
RP -> "out"
Full version available in the
Recursive Production Grammar app.
This page displays one bounded arrangement generated from Yeats' "The Second Coming" using a POS-based CFG with only original vocabulary. Copy or listen above, or load the script into the Recursive Production Grammar app to evolve variations.
No comments:
Post a Comment