Open source
bahasa-melayu: teaching AI to write Malay like a Malaysian
An agent skill for Claude Code and Codex. Formal letter or WhatsApp, it picks the right register, then checks for the habits that make AI Malay sound like AI.
At a glance
- won, 12 tied, none lost, judged blind by me
- 8 of 20
- Role
- Author, solo
- Period
- Nov 2026 · v1.1.0
- Tools
- Claude Code · DBP rulings · Markdown
- Link
- GitHub
The test: the same requests, with and without the skill.
Same model, two runs
With the skill vs without it.
Claude Opus 5.5, the same 20 everyday requests run twice: once plain, once with the skill. Judged blind twice, with the A/B order shuffled each time: by me, a native speaker (after I had seen the AI’s verdicts), and by a separate AI agent. Outputs unedited. 25–26 Nov 2026.
Judged by me, a native KL speaker, blind
8Skill won
12Tied
0Skill lost
Second opinion · AI judge, blind8 won · 11 tied · 1 lost
Complaint Customer complaint: “Order saya 5 hari tak sampai lagi. Ni scam ke?”
Without
With the skill Skill wins
It talks to the customer (“cik”). “Dijangka sampai esok” is a notice-board passive.Same facts: one sounds like a seller, the other like a courier notice.
Shop DM Hobby-shop DM: “Boss, kit ni ada lagi? Boleh pos ke Kuching?”
Without
With the skill Skill wins
“Hari bekerja berikutnya” reads like a printed notice. The skill opens and closes the way a Malaysian seller does.Malaysians mix English into DMs; the skill knows when that is the natural choice.
Landing page Translate for a landing page: “Track your expenses in seconds. No spreadsheets, no stress.”
Without
With the skill Skill wins
A Malay idiom (“pening kepala”) instead of copying the English rhythm word for word.“Tiada tekanan” is a literal “no stress”. Nobody says it.
Email to boss Email to my manager: working from home on Friday.
Without
- Two greetings: “Assalamualaikum dan salam sejahtera”
- A Title Case subject line
- Signs off “Yang benar”, a letter formula
With the skill Skill wins
- Opens “Salam Puan Rosmah”
- A sentence-case subject with the actual date
- Signs off “Salam hormat”
A modern office email, not a formal letter pasted into an email.A summary of both emails. The full text is in the repo.
Futsal group Friends’ group chat: futsal on Thursday at 9pm, RM10 each.
Without
With the skill Tie
Both sound like a real group chat. Today’s models already write decent casual Malay.A tie is an honest result: the skill doesn’t fix what isn’t broken.
MC to boss WhatsApp to my boss: on MC today with a fever, phone stays on.
Without
With the skill Judges split
The judges split. I would send the skill’s shorter message. The AI judge called “Puan call je ye” too casual for a boss: its only loss for the skill.Where a native ear and an AI disagree is worth showing, not hiding.
Problem
AI writes Malay that is grammatical but obviously not human: anda in a text to your wife, Ia adalah penting untuk… (an English sentence in Malay words), and Indonesian words leaking in. Some of those leaks are rude in Malaysia.
Decision
Cover both kinds of Malay people actually use: baku for letters, CVs and formal email, and basahan for WhatsApp and customer chats. Tag every rule with where it came from, so nobody has to take my word for it.
Build
About 80 Dewan Bahasa dan Pustaka rulings, a checklist of the habits that make Malay sound like AI, and chat norms measured from about 12,000 of my own messages. Only the patterns are published, never the messages.
Tested
Six everyday requests first, then twenty more judged blind twice, with the order of each pair shuffled: once by a separate AI agent, then by me. We both counted 8 wins. The AI saw one loss where I would have sent the skill’s reply, and that disagreement is published with the rest.
- Pick the register: letter, email, DM or group chat.
- Fix the pronouns: saya/awak, aku/kau, abang/yang.
- Think in Malay instead of translating from English.
- Draft.
- Run the humanizer pass: structure first, then the Malay tells.
- Read it aloud. Would a KL speaker send this? If not, back to the draft.
What I owned
The idea, every verdict on the first six as a native speaker, the corrections to the two open-source skills it builds on, and a fix sent back upstream.
AI, today
Claude read the research and drafted the reference files. I judged, cut and rewrote them. The commits say so.
Install in Claude Codegit clone https://github.com/aizadshafeez/bahasa-melayu-skill ~/.claude/skills/bahasa-melayu
In one line
Test the AI against a native ear, and publish where the judges disagree.