Christmas haiku - in Swedish

Here are five automatically generated "haiku" verses in Swedish. They are based on several popular Swedish christmas tunes. Refresh the page to get a new set!

Stallyktan flämtar
Så har festat på tårna
Låtit maten land

Fram med sina möss
På vägg i väldig iver
Se min kind ty kall

Natten närapå
Kära jul igen, och jag
God är jag spiller

Nisse, stackar mer
Nej, ingen går ju så bra
Hejsan, falle-ra

Kilovolt i kväll
Pappa, mamma mus och små
Hejsan, falle-ra

The algorithm is pretty interesting. It is based on an old idea from Scientific American (vol 249, no 5, Nov 1983, pages 18-28: "Computer Recreations - A progress report on the fine art of turning literature into drivel" by Brian Hayes) and uses frequency data from a given text to calculate probability weights to be used in random character selection. This means that new "words" could possibly be generated from existing word parts, and new sentences will usually be produced, often by combining parts from many different sentences in the source text. By combining source texts in wildly different styles, one can get surprising results.
The frequency table doesn't simply contain simple character frequencies but rather the probability for a given character to appear as continuation of an existing sequence of characters. The sequence length is a parameter to the program and it affects the result significantly, with the gibberish level increasing for smaller values.

Worth noting is also that it's not anywhere near as easy to auto-generate haiku in English. Syllables are easy to identify in Swedish, with near 100% correctness. In English, automatically identifying syllables is a far more daunting task.