structured_language_form/
lib.rs

1use ai_descriptor::*;
2use rand_construct::*;
3use std::borrow::Cow;
4
5#[derive(Plural,Default,RandConstruct,ItemFeature,PartialEq,Eq,Hash,Copy,Clone,Debug)]
6pub enum StructuredLanguageForm {
7    #[ai("a poem structured in four lines with classical quantitative meter, typically dactylic or trochaic, evoking ancient Greek lyric tradition")]
8    AlcaicStanza,
9
10    #[ai("a narrative poem composed of quatrains with alternating rhyme schemes (ABAB or ABCB), often recounting dramatic, folkloric, or romantic tales in a rhythmic and melodic style")]
11    Ballad,
12
13    #[ai("a poem written in unrhymed iambic pentameter, characterized by its regular rhythmic pattern and flexibility for elevated, dramatic, or reflective themes")]
14    BlankVerse,
15
16    #[ai("a poem with six-line stanzas, adhering to the traditional Scottish form known as the Standard Habbie, with a rhyme scheme of aaabab; often humorous or reflective in tone")]
17    BurnsStanza,
18
19    #[ai("a lyrical composition in the troubadour tradition, frequently written in strophes and exploring themes of courtly love, idealized devotion, or chivalric ethos")]
20    Canso,
21
22    #[ai("a sophisticated Italian or Provençal song form, characterized by intricate stanza structures, rich in musicality and often exploring themes of love or philosophy")]
23    Canzone,
24
25    #[ai("a compact five-line poem with varied syllable patterns, emphasizing vivid imagery or focused emotional expression")]
26    Cinquain,
27
28    #[ai("a whimsical biographical poem of four lines with an AABB rhyme scheme, often humorous or satirical, focusing on an individual's peculiar traits or actions")]
29    Clerihew,
30
31    #[ai("a concise poetic form consisting of two rhyming lines, often used to distill meaning or emphasize contrast through parallelism or juxtaposition")]
32    Couplet,
33
34    #[ai("a seven-line, diamond-shaped poem with a fixed structure that visually mirrors its central theme, often employing descriptive or contrasting imagery")]
35    Diamante,
36
37    #[ai("a vivid poetic form inspired by or describing a specific piece of visual art, aiming to translate its essence or emotional resonance into language")]
38    Ekphrastic,
39
40    #[ai("a reflective and solemn poem typically mourning a loss or meditating on mortality, written in a somber yet elevated tone")]
41    Elegy,
42
43    #[default]
44    #[ai("an extended narrative poem of significant length, often heroic or mythological in subject, combining elevated diction and grand themes to celebrate cultural values or legendary figures")]
45    Epic,
46
47    #[ai("a succinct and witty poem, typically satirical or aphoristic, aimed at delivering a sharp or memorable observation in a few lines")]
48    Epigram,
49
50    #[ai("a ceremonial poem written to celebrate and honor a wedding, blending lyrical beauty with themes of love, union, and festivity")]
51    Epithalamium,
52
53    #[ai("a minimalist poetic form using syllabic progression based on the Fibonacci sequence (1, 1, 2, 3, 5, 8...), creating a spiraling structure of brevity and growth")]
54    Fib,
55
56    #[ai("a poem without a fixed rhyme scheme or meter, allowing unrestricted exploration of rhythm, imagery, and meaning")]
57    FreeVerse,
58
59    #[ai("a poetic form of rhyming couplets with repeated phrases and refrains, traditionally emphasizing themes of love, loss, or spiritual longing")]
60    Ghazal,
61
62    #[ai("a reflective Iberian verse form elaborating on a quatrain from another poet, blending commentary with creative extension in a uniquely interpretative structure")]
63    Glosa,
64
65    #[ai("a concise three-line poem adhering to a syllabic structure of 5-7-5, traditionally focusing on nature or a moment of epiphany, rooted in Japanese aesthetics")]
66    Haiku,
67
68    #[ai("a contemplative ode written in regular, balanced stanzas, named for the Roman poet Horace and characterized by its reflective and restrained tone")]
69    HoratianOde,
70
71    #[ai("a poetic form composed of quatrains, with a refrain repeated at the end of each stanza, often exploring spiritual or meditative themes")]
72    Kyrielle,
73
74    #[ai("a medieval French poetic form characterized by varying line lengths and intricate rhyme schemes, blending lyricism with narrative complexity")]
75    Lai,
76
77    #[ai("a humorous five-line poem with a distinct AABBA rhyme scheme, employing a sing-song rhythm to deliver witty or absurd narratives")]
78    Limerick,
79
80    #[ai("a haiku-like poetic form structured around three lines of 3-5-3 words rather than syllables, often exploring concise and evocative imagery")]
81    Lune,
82
83    #[ai("a short, lyrical Renaissance poem often set to music, celebrated for its intricate wordplay and themes of love, beauty, and harmony")]
84    Madrigal,
85
86    #[ai("a compact four-line poetic form, typically ranging from 20-25 syllables, exploring themes of daily life or philosophical reflections in a straightforward style")]
87    Naani,
88
89    #[ai("a nine-line poem beginning with nine syllables and decreasing by one syllable per line, creating a tapering effect that mirrors descent or resolution")]
90    Nonet,
91
92    #[ai("an eight-line stanza or the opening section of a sonnet, characterized by thematic setup or argument, often with an ABBAABBA rhyme scheme")]
93    Octave,
94
95    #[ai("a formal, lyrical poem that expresses deep admiration or reverence for its subject, blending emotional intensity with elevated diction")]
96    Ode,
97
98    #[ai("a complex poetic form of quatrains with repeated lines, using a weave-like structure to emphasize cyclical or reflective themes")]
99    Pantoum,
100
101    #[ai("a fourteen-line sonnet with an ABBAABBACDECDE rhyme scheme, traditionally associated with themes of unrequited love or idealized beauty")]
102    PetrarchanSonnet,
103
104    #[ai("a classical ode structured in strophes, antistrophes, and epodes, imitating the choral odes of ancient Greek drama to celebrate triumphs or heroes")]
105    PindaricOde,
106
107    #[ai("a stanza of four lines often adhering to a consistent rhyme scheme, serving as the foundational unit of many poetic traditions")]
108    Quatrain,
109
110    #[ai("a stanza of five lines, typically employing a varied rhyme scheme and meter, blending structural freedom with lyrical expression")]
111    Quintain,
112
113    #[ai("a fifteen-line poem with a refrain and intricate rhyme scheme (aabba aabR aabbaR), conveying layered themes or emotional echoes")]
114    Rondeau,
115
116    #[ai("a lyrical French poetic form of thirteen or fourteen lines with two rhymes, balancing musicality and formal precision to evoke timeless themes")]
117    Rondel,
118
119    #[ai("a seven-line poem with a refrain, blending lyrical brevity with a dance-like rhythm through its A repeated refrain structure")]
120    Rondelet,
121
122    #[ai("an eleven-line poetic form with a refrain and intricate rhyme scheme (ababB abaBab abB), interweaving repetition and variation")]
123    Roundel,
124
125    #[ai("a quatrain-driven poetic form with a rhyme scheme of AABA, often used for meditative or mystical reflections, rooted in Persian tradition")]
126    Rubaiyat,
127
128    #[ai("a short three-line poem structurally similar to haiku, but focusing on human foibles, wit, or satire, with a syllabic pattern of 5-7-5")]
129    Senryu,
130
131    #[ai("a stanza of seven lines with varied rhyme and meter, serving as a versatile structure for narrative or descriptive poetry")]
132    Septet,
133
134    #[ai("a stanza or poem of six lines, often used as the concluding section of a sonnet to resolve or reflect upon its thematic arc")]
135    Sestet,
136
137    #[ai("a complex poetic form of thirty-nine lines, comprising six sestets and a tercet, with a fixed pattern of word repetition at the line endings")]
138    Sestina,
139
140    #[ai("a fourteen-line poem with the ABABCDCDEFEFGG rhyme scheme, often exploring themes of love, conflict, or introspection")]
141    ShakespeareanSonnet,
142
143    #[ai("a highly formalized poetic form of fourteen lines with a wide variety of rhyme schemes, often centered on love or philosophical themes")]
144    Sonnet,
145
146    #[ai("a truncated sonnet form with ten or twelve lines, offering a condensed exploration of the traditional sonnet’s thematic intensity")]
147    Sonnetina,
148
149    #[ai("a Spenserian sonnet composed of fourteen lines with a unique ABABBCBCCDCDEE rhyme scheme, blending lyricism with structural unity")]
150    SpenserianSonnet,
151
152    #[ai("a traditional Japanese form of five lines with a syllabic pattern of 5-7-5-7-7, evoking deep emotion and natural imagery")]
153    Tanka,
154
155    #[ai("a tercet-based poetic form with an interlocking rhyme scheme (aba bcb cdc...), allowing a flowing and interconnected progression of themes")]
156    TerzaRima,
157
158    #[ai("a Burmese poetic form of three lines with rhyming syllables and compressed themes, blending brevity with linguistic playfulness")]
159    ThanBauk,
160
161    #[ai("an eight-line poem with a refrain and a fixed ABaAabAB rhyme scheme, emphasizing lyrical repetition and melodic harmony")]
162    Triolet,
163
164    #[ai("a six-line poem where the first four lines consist of two-syllable descriptive words, leading to a vivid central theme")]
165    Tyburn,
166
167    #[ai("a lyrical Spanish or Portuguese poetic form with a refrain, often celebrating cultural or religious themes with a song-like rhythm")]
168    Villancico,
169
170    #[ai("a nineteen-line poem with five tercets and a concluding quatrain, employing the refrain-based ABA ABA ABA ABA ABA ABAA rhyme scheme")]
171    Villanelle,
172
173    #[ai("a medieval French poetic form with multiple stanzas and refrains, blending musicality with narrative intricacy")]
174    Virelai,
175}
176
177#[cfg(test)]
178mod tests {
179    use super::*;
180
181    #[test]
182    fn test_plural() {
183        let f = StructuredLanguageForm::random();
184        println!("{}", f.plural());
185    }
186}