DEV Community

Ameer Hamza
Ameer Hamza

Posted on

Why Japanese Surnames Break Name Parsers: Readings You Cannot Guess From the Kanji

If you have ever built a form, a search index, or a name-matching feature for Japanese users, you have probably assumed a name can be read from its characters. Japanese surnames disagree.

Some family names carry established readings that have almost nothing to do with the standard reading of their kanji. They are not typos or edge cases in the data. They are the data.

The riddle names

A few surnames work like word puzzles:

Surname Kanji What the kanji say Why the reading works
Takanashi 小鳥遊 small birds play read as "no hawks" — small birds can play because hawks are absent
Yamanashi 月見里 moon-viewing village read as "no mountains" — nothing blocks the view of the moon
Watanuki 四月一日 April 1st a calendar date whose reading comes from a seasonal custom, not the numbers
Ninomae 一 one a single character whose surname reading is not the common reading of "one"

Try deriving any of those readings with a rules engine. You cannot, because the reading is stored in tradition, not in the characters.

Length is not predictable either

Most surnames are two kanji, but the range is wide:

  • One kanji: Higashi (東, east), Minami (南, south), Tsuji (辻, crossroads)
  • Five or more: Saemonsaburou (左衛門三郎), Kadenokouji (勘解由小路), a name tied to an old Kyoto court office

Any validation rule like "surname must be 2-4 characters" will reject real people.

What this means if you handle name data

  1. Never guess a reading from kanji. Store the reading (furigana) as its own field, always.
  2. Never treat the romanized spelling as the complete name. The same reading can map to completely different kanji, and the same kanji can map to different readings.
  3. Expect regional variation. A surname that is almost unknown nationally may be common in one prefecture.

Japan ended up with this variety partly because of history: in 1875 the Meiji government required every household to register a surname, and families often chose names from local landmarks, occupations (Kaji, 鍛冶, means blacksmith), or symbols (Takara, 宝, treasure).

Going deeper

If you enjoy this corner of language and data, there is a longer guide to rare Japanese surnames with kanji meanings that covers how these names developed and why some of them are disappearing.

Have you hit a name in production data that broke your assumptions? I would like to hear it.

Top comments (0)