This is a modification of a diastic word generator, so that the output takes the form of a haiku poem. The source text is H. P. Lovecraft's At the Mountains of Madness.
Diastic means, that the first word in the haiku must contain the first letter of the seed.
The second word must contain the second letter of the seed and so on.
In addition to this, words are chosen to conform to the classic haiku structure.
I.e. 5 syllables in the first line, 7 syllables in the second line, and yet again 5 syllables in the last line.
If the seed is not long enough to provide sufficient words to complete the haiku, it starts over from the first letter.
Unfortunately, this procedure does not guarantee the presence of a kigo,
the traditional seasonal indicator.