Skip to content
←Back to the portfolio
  1. Home
  2. / Projects
  3. / AI-Powered Haiku Generator

Build notes · Goh Kun Ming

AI-Powered Haiku Generator

Creative · Public project

Apr 2025 – May 2025

Project overview

A command-line haiku tool combining word transformations, Markov-chain generation, syllable checks and optional audio narration.

A command-line haiku tool combining word transformations, syllable-aware Markov generation and optional narration. The project explores how explicit language rules and bounded generation can produce a reproducible 5–7–5 poem.

Inside this build

  • Built synonym, shortest-synonym, antonym and batch-permutation modes with punctuation and capitalisation handling.
  • Implemented syllable-aware Markov generation with bounded retries and fallbacks for the 5–7–5 structure.
  • Added optional WAV narration assembled from word-level audio clips.
  • Separated tokenised lines, keyword indexing, syllable counting, thesaurus lookup, haiku generation and file handling into six abstractions.
  • Validated command-line input and file availability, and added 16 tests with 54% coverage.
  • Recorded a deterministic 5–7–5 example from a 12-line corpus; this demonstrates the generation path rather than general poetic quality.

Project files

Original project files are in English.

  • Project report

    PDF · 1.1 MB

    Document preview

    Use the page controls to browse. Enlarge a page to read the details.

    Loading document…

    Open full-size page ↗

    When enlarged, scroll within the page to see more.

    Page text

    Text is extracted from the original English document. Charts, images and reading order may need the PDF for context.

    View PDF ↗ Download PDF ↓

Source code & links

Source code↗Read on LinkedIn↗
Inspect the project chest →
PrivacyTermsSecurityAccessibility Third-party notices

Independent portfolio. Not an official Minecraft website. Not approved by or associated with Mojang or Microsoft.

Leave this world?

You are opening another website.

Destination
Full link