The haiku is a three-line poem of seventeen syllables arranged five, seven, five, traditionally carrying a seasonal reference and a quiet turn between two images. This generator respects the form literally: every phrase in its vocabulary is hand-counted for syllables, and each line is built by adding phrases until the count lands exactly on five or seven, so the metre is never broken.
How it works
The vocabulary is split into syllable-tagged buckets — single-syllable words, two-syllable phrases, and so on — grouped by season. To build the first line the tool needs five syllables, so it picks a phrase, subtracts its syllable count from five, and keeps adding phrases that fit the remaining budget until the line totals exactly five. It repeats with a budget of seven for the middle line and five for the last. Because the budget is enforced at each step, the output is guaranteed to be 5-7-5. The season filter simply restricts which bucket the seasonal image is drawn from.
Tips and examples
A generated haiku might read: “cold moon over snow / the silent crows are waiting / one branch lets go now”. Generate several and keep the one where the two images create a small jolt of surprise — that contrast is what separates a memorable haiku from a list of pretty words. The per-line syllable counts shown beneath each poem let you verify the form at a glance or learn the pattern by example.