- Convert roman numerals to arabic numerals.
- Convert Arabic numerals to spelled-out words. Special handling for things that look like years.
- Spell out ordinals (1st becomes first, 37th becomes twenty-seventh, etc).
- Strip out things that aren't apostraphes or alphanumerics.
Updated custom syllable count dictionary.
Save (or append) lines to a file.
Last resort: use a heuristic algorithm that someone else made.
Remove duplicate lines saved in a given file.
Script prints haiku lines in a nice, HTML-friendly format.