詩三唐百首 Tang Three Hundred Poems
This generator generates a five-syllable rhyming jueju (quatrain) (五言絕句), based solely on the tonal metrical distribution of phrases in the anthology of Tang dynasty poems 《唐詩三百首》 Three Hundred Tang Poems. Poems are metrically well-formed, but not semantically nor syntactically well-formed. (And hence the title.)
The meter scheme of jueju stipulates the distribution of ping (平, "level") tones and shang (上, "rising"), qu (去, "departing"), and ru (入, "entering") tones (collectively ze (仄) tones). A "—" denotes a ping tone and a "｜", a ze.
Inspired by Matt Treyvaud ("No-sword"), who wrote a program called the 『乱葉集』 Ranyōshū (link) that generates a "semi-random waka" using the distribution of syllables in the classical Japanese poetry anthology 『万葉集』 Manyōshū).
- Text: 《唐詩三百首》 compiled by 孫洙 Sun Zhu, 1711-1778 (衡塘退士 Hengtang Tuishi); digitized/edited by 邱奕南 Qiu Yinan (青衫詩客 Qingshan Shike), Nov 1996 (?). Downloaded from here.
- Rhymes: 《校正宋本廣韻》 (Guangyun, Song dynasty edition), digitized/edited/released by the Kanji Database Project.
- Clean-up/programming: self, with Papa Parse and JQuery.