All work

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
Figure 1

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

20 requestsNever worse

Second opinion · AI judge, blind8 won · 11 tied · 1 lost

Complaint Customer complaint: “Order saya 5 hari tak sampai lagi. Ni scam ke?”

Without

Salam, maaf sangat atas kelewatan ni. Bukan scam ya. Saya dah semak tracking, parcel tersangkut di hub Pos Laju Shah Alam. Dijangka sampai esok. Kalau esok masih tak sampai, saya refund caj pos tu.

With the skill Skill wins

Maaf cik, bukan scam ye. Saya dah check, parcel cik tersangkut kat hub Pos Laju Shah Alam. Sepatutnya esok sampai. Kalau esok tak sampai juga, saya refund kos pos.

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

Ada lagi boss, tinggal 2 unit je. Boleh pos ke Kuching, caj pos ke Sarawak RM15. Barang saya pos hari bekerja berikutnya.

With the skill Skill wins

Salam boss, kit ni ada lagi, tinggal 2 je. Boleh pos ke Kuching, kos pos ke Sarawak RM15. Lepas bayar, saya pos next working day ya 😊

“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

Rekod perbelanjaan anda dalam beberapa saat. Tiada spreadsheet, tiada tekanan.

With the skill Skill wins

Catat perbelanjaan dalam beberapa saat. Tak perlu spreadsheet, tak perlu pening kepala.

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

Geng, futsal Khamis ni pukul 9 malam. Court dah book kat Kelana Jaya. RM10 sorang. Siapa join? Tulis nama 👇

With the skill Tie

Weh, futsal Khamis ni 9 malam. Aku dah book court kat Kelana Jaya, RM10 sorang. Siapa on?

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

Assalamualaikum Puan Rosmah. Saya mohon maaf, hari ini saya MC sebab demam. Saya akan pastikan telefon sentiasa on, jadi kalau ada apa-apa yang urgent, Puan boleh call atau WhatsApp saya. Terima kasih Puan.

With the skill Judges split

Assalamualaikum Puan Rosmah, hari ni saya MC sebab demam. Phone saya on, kalau ada apa-apa urgent Puan call je ye. Maaf atas kesulitan.

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.

Wavy what gives it awayTeal what fixed itDotted where the judges split All 20 pairs, the key and the verdicts on GitHub
The story

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.

How the skill writes
  1. Pick the register: letter, email, DM or group chat.
  2. Fix the pronouns: saya/awak, aku/kau, abang/yang.
  3. Think in Malay instead of translating from English.
  4. Draft.
  5. Run the humanizer pass: structure first, then the Malay tells.
  6. Read it aloud. Would a KL speaker send this? If not, back to the draft.
My part

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.