The Zen Haiku Database (lit. Complete Haiku Database)contains a database of all 631134233006543551770782470703125 possible 5-7-5 poems.
For example, さみだれを あつめてはやし もがみがわ is haiku No. 77016092317948049706681803472219
Haiku Encoding
Rather than storing all possible haikus, the Haiku Database can be thought of Japanese text into a numerical value. There are a few limitations on the encoding:
Only 17 character haikus are allowed (omitting haikus with Jiamari and Jitarazu)
Multi-character syllables are not properly encoded (this is fixed in Version 2)
The numbering starts at one
The encoding works like this:
Each kana is assigned a value with あ starting at 0 and ん being 84
The haiku is treated as a base 85 number and converted to decimal