Korean particles after placeholders: why {item}를 breaks, and how to fix it

A short guide for developers and localization teams shipping Korean UI strings.

The bug

Korean attaches particles (조사) directly to nouns, and several of them have two forms. Which form is correct depends on whether the noun's last syllable ends in a consonant (받침). A translator who sees Delete {item}? has to pick one form, for example {item}를 삭제할까요?. That line is right for 방패 (shield) and wrong for 검 (sword), which needs 검을. With a mixed item list, roughly half your strings read as broken grammar.

The pairs that change

RoleAfter a final consonantAfter a vowelExample
Object을를검을 / 방패를
Subject이가물약이 / 무기가
Topic은는빵은 / 사과는
And / with과와칼과 / 친구와
By / toward으로로 (also after ㄹ)검으로 / 나무로 / 활로

Note the exception in the last row: nouns ending in ㄹ take 로, not 으로 (활로, 칼로).

Three ways to fix it

1. Notation. Write both forms: {item}을(를) 삭제할까요?. Korean players recognize this convention from many apps. It is safe and needs no code, but looks mechanical in story text.

2. Pick the particle at runtime. Precomposed Hangul syllables (U+AC00 to U+D7A3) encode the final consonant, so a small function can choose the form:

function josa(word, pair) {
  // pair: '을/를', '이/가', '은/는', '과/와', '으로/로'
  const [withBatchim, withoutBatchim] = pair.split('/');
  const code = word.trim().slice(-1).charCodeAt(0);
  if (code < 0xAC00 || code > 0xD7A3) {
    return word + withBatchim + '(' + withoutBatchim + ')'; // digits, Latin: fall back to notation
  }
  const jong = (code - 0xAC00) % 28;        // 0 = no final consonant, 8 = ㄹ
  if (withBatchim === '으로') return word + (jong === 0 || jong === 8 ? '로' : '으로');
  return word + (jong === 0 ? withoutBatchim : withBatchim);
}

josa('검', '을/를');    // 검을
josa('방패', '을/를');  // 방패를
josa('활', '으로/로');  // 활로
josa('HP', '을/를');    // HP을(를)

Names that end in digits or Latin letters (HP, 3, Lv.10) depend on how they are read aloud, so the function falls back to notation instead of guessing.

Prefer a maintained library? Open-source options include k-popo and postposition (JavaScript), pyjosa (Python) and Josa.kt (Kotlin).

3. Rewrite so no particle touches the variable. 삭제할 아이템: {item} or {item} 삭제. Often the cleanest choice for buttons and labels.

Check your files automatically. Hangul Lint scans JSON or CSV locale files in the browser (nothing is uploaded) and flags fixed particles after placeholders, particles that don't match the final consonant, missing variables, mixed speech levels and common misspellings. Also available as a CLI and GitHub Action.

Need the strings themselves? The free 30-string Korean game UI sample uses particle-safe placeholders in both polite 해요체 and formal 합니다체. The full pack has 183 strings.

Other things that trip up Korean UI