KU-LANG Logo

ku-lang: a poetic programming language (esolang) where haikus become executable code. Write beautiful 5-7-5 syllable programs—the user gets playful, poetic feedback: variables, functions, and conditions all expressed in verse.

WHAT'S
A HAIKU?

ha·ku | 'hīˌko͞o | noun (plural haiku or plural haikus | 'hīˌko͞oz |) a Japanese poem of seventeen syllables, in three lines of five, seven, and five, traditionally evoking images of the natural world. • a poem in English written in the form of a haiku. ORIGIN Japanese, contracted form of haikai no ku ‘light verse’.

WHAT'S
A SYLLABLE?

syl·la·ble | 'sɪləb(ə)l |
A syllable is a part of a word that contains a single vowel sound and that is pronounced as a unit. ORIGIN Greek syllabē (συλλαβή), meaning "that which is held together" or "a taking together".

how to use ku-lang

feature example what it does
variable/operators
the moon remembers
five plus two in the night sky
echo moon bright now
Assigns and prints variable
summon function
summon the sun now
the light remembers the day
three plus four is bright
Defines a function
call function
call the sun now
the light remembers
five plus five
Calls a function
if statement
Case 1: True Condition
the stars remember
five plus two in the dark night
echo stars shine bright

the sum remember
one plus one in the bright sky
echo sum again

if stars is greater than three
this is a haiku line
this is another line

the sum remember
one plus one in the bright sky
echo sum again
Case 2: False Condition
the stars remember
five plus two in the night sky
echo stars again

the sum remember
one plus one in the bright sky
echo sum again

if stars is greater than ten
this is a haiku line
this is another line
Case 3: Variable Not Set
if moon is greater
the stars remember
one plus one
Conditional execution with different test cases
regular haiku
the river is calm
three plus three is flowing now
echo river now
Assignment/echo (default)
palindrome
the sun remembers
one plus two plus two civic
echo civic now
Reverses haiku if palindrome word found
rhyming
the stars remember
five plus two in the dark night
echo stars shine bright
Doubles variable value if lines rhyme
function fusion
summon magic now
civic flows at dawn today
birds fly in the sky

call the magic now
kayak glides on lake today
ripples in the blue
Fuses summoned and calling haikus, reverses if palindromes found
loop
count from one to three
words disappear one by one
until none remain
Loops and consumes words
comments
the moon remembers
five plus two // assign value
echo softly now
Ignores // comments
english validation
the moon remembers
five plus two in the night
echo moon bright
Validates all words are English
visual feedback
🔮 Summoned function
🧚🏼 Palindrome detected
✨ Fused Haiku
Emojis for different actions
error
this is not right
too many syllables here
error will appear
Prints error with visual feedback
Walking unicorn