Alif, the Arabic alphabet in tiny lessons
Alif teaches the Arabic alphabet as one straight line of tiny lessons: a letter, its sound, one question, Continue. 104 steps lead from the first letter, bāʾ, to reading words like kitāb and shams. Codex built the first version. I asked for it like this:
never mind the existing stuff (you can look at it but it's not important)... I need a tool that teaches the arabic alphabet rapidly... the letters, how to pronounce them and how to read words.
One line, no menu
The first version had eight chapters to choose between. Three and a half hours later:
way too many options. just one straight curriculum, tiny lesson after tiny lesson. no branching paths
Now every screen teaches one thing. Try it opens a single question with three answers. A wrong answer explains itself and keeps you on the question; Continue only appears once you pick the right one. The browser remembers your place, so a reload picks up where you left off.
The bread problem
The sounds were the weak part from the start. Letter sounds streamed from a university teaching site, words from Wikimedia Commons, and a synthetic Microsoft voice filled in wherever nothing was found. The same morning:
ok something is off.. either the lessons but I am guessing more the recordings... very evident at lesson "Read 'bread'" ... it says khubz but the recording reads more like khair
Codex pointed that lesson at another site's recording of food words and played only the 0.8 seconds that say bread. Two days later I took it to Claude Code:
ok I asked codex to make the arabic alphabet and reading app but I am not quite happy with it... some ideas: more repetition (to test existing letters) and better voice audios
The word recordings turned out to be different speakers in different dialects, several of them tagged as recorded in Morocco.
More repetition
Every four steps the course now brings back whichever letter you have gone longest without seeing. The wrong answers in a review come from every letter learned so far, not just the last two, which had made the old reviews too easy. Reviews went from 12 to 35, and the course from 86 steps to 104.
One voice
The first try was Gemini, because its key was already on the laptop:
yes do the gemini only thing for now so I can keep learning
Gemini's speech models refuse isolated Arabic syllables. A bare بَ came back empty on both the flash and the pro model, every time, and even whole words mostly failed: 6 of 27 came back. Six words in a third voice would have made things worse, so all of it was reverted. The attempt cost nothing.
ElevenLabs voiced the bare syllable on the first try. The first four voices to compare were its stock English voices speaking Arabic:
adam and george pronounce differently.... uh... why
They learned mostly from English speakers, and each one guesses Arabic through its own accent, worst on a lone consonant with a short vowel. A course that teaches pronunciation would pass those guesses on. So I added five Arabic voices to the account, and:
just use the most popular one
That was Mazen Lawand, a Modern Standard Arabic voice. All 61 clips, letters and words, were made again in that one voice and bundled with the page, so nothing streams from other sites any more and the course works offline. The next morning it went live.
- course
- 104 steps: 28 letters, 19 rules (vowel marks, joining, shadda, hamza and more), 22 words, 35 reviews
- audio
- 61 clips, one ElevenLabs voice (Mazen Lawand, Modern Standard Arabic), bundled
- built
- Codex on 28 Oct; Claude Code on 30 Oct for the repetition and the voice
- page
- plain HTML, CSS and JavaScript modules, no build step; your place saved in the browser
- tests
- 8 Node tests (every letter covered, one right answer per question, every clip present) plus a run through the whole course in Chromium
Still rough
The voice is synthetic: clear and the same everywhere, but not a teacher. It also never hears you. Nothing records or checks your own pronunciation.
Every word in the course carries its vowel marks, apart from one late step that shows a familiar word without them. Real unvowelled text needs vocabulary and context, and the course does not teach those.
Your place lives in one browser, so a phone and a laptop each keep their own.