辞書
出発点: ふつうの辞書 schema
外国人観光客向けの
type SushiTerm = {
romaji: string; // "otoro"
kana: string; // "おとろ"
kanji?: string; // "大トロ"
translation: {
en: string; // "fatty tuna belly (premium cut)"
zh: string;
ko: string;
};
example?: string; // "Can I have otoro, please?"
};
これで otoro, chutoro, akami, uni, ikura あたりまでanago を
- アナゴは
「煮 アナゴ」と 「ツメつき」では 客の 頼み方が 違う。 同じ単語? - ツメ
(詰め) は 調味料の 名前であり、 調理 ステップの 名前でもある。 別 エントリ? - "uni" は
北海道産か bafun か murasaki かで 全く 別物。 翻訳には 書けない。 - 季節
(旬) を 書きたいが、 exampleに押し込むと汚い。
観察: 辞書アプリは「言語間 1 対 1 対応」を前提にしすぎている
世の
寿司用語の
gariは「生姜の 甘酢漬け」の 翻訳だけでは 足りない。 「いつ食べるか」 「どれくらい 食べるか」 「板前に 頼むものか自分で 取るものか」が 一緒に ついてこないと、 観光客が 間違える agariは「お茶」の カウンター 用語だが、 お茶くださいとあがり下さいを客が 言うのは マナー 違反 (店員側用語) murasakiは「醤油」 だが、 shoyuと書いてもいい。 店に よる
結論: dictionary は文化スキーマの一部にすぎない
書き直した schema はこうなった。
type SushiTerm = {
id: string; // canonical id (e.g. "otoro")
forms: {
romaji: string;
kana: string;
kanji?: string;
chef_term?: string; // 板前側で使う別呼び (例: "agari")
customer_safe: boolean; // 客が口にしてよい単語か
};
meaning: {
short: Record<Locale, string>; // 簡潔翻訳
long: Record<Locale, string>; // 文化的注記つきの説明
};
context: {
when_to_use?: "ordering" | "during_meal" | "paying" | "never";
season?: Array<"spring" | "summer" | "fall" | "winter">;
typical_cuts?: string[]; // ネタの場合 (例: "akami", "chutoro", "otoro")
common_misuse?: Record<Locale, string>; // 観光客が陥る誤用
};
etiquette?: {
warning?: Record<Locale, string>;
do?: Record<Locale, string>;
dont?: Record<Locale, string>;
};
related_terms?: string[]; // related ids
};
ポイントを 4 つ書き残しておく。
1. customer_safe boolean
agari murasaki のようなcustomer_safe: false の
2. when_to_use discriminator
gochisousama deshita をwhen_to_use: "paying" | "during_meal" を
3. common_misuse を別 field に出す
これが i18n のomakase のomakase = all-you-can-eat と
common_misuse: {
en: "Often mistaken as 'all-you-can-eat' on travel forums. omakase = chef's selection, not a buffet."
}
ふつうの
4. etiquette を翻訳の中に埋め込まない
最初は etiquette のmeaning.long に
i18n を辞書 schema にぶつけてみる
Zenn 読者ならピンとRecord<K, V> のような i18n 表現を
具体的には、meaning.short.en と etiquette は
i18n を
おまけ: 辞書アプリで「翻訳」の語を使わない
副産物だが、
- Decode mode: 客が
聞いた 単語を 「何を 意味するか / どう振る 舞えばいいか」で 返す - Speak mode: 客が
言いたいことを 「何と 言えばいいか / 失礼に ならないか」で 返す
まとめ
「単語 → 翻訳」 schema は、 単語が 文化単位の 領域では 破綻する - 寿司のような high-context な domain の
辞書には 「context」 「misuse」 「etiquette」を 独立 field で 持たせる - i18n は
「言語の 分離」と 「著者の 分離」の 2 軸で 考えると 保守が 楽に なる - 辞書
アプリの 「翻訳」 ラベルは 方向を 曖昧に する。 動詞 (Decode / Speak) に 書き換えると UX が 安定する
辞書をRecord<Locale, string> を