日英翻訳の用語集チェック(訳語のゆれ・訳し漏れ)

Translation glossary guard for Japanese-English

用語集(CSV)をもとに日本語と英語の翻訳ファイルを照らし合わせ、用語の訳し漏れ・禁止訳の使用・翻訳しない語の誤訳・訳し残しを行番号つきで見つけます。

ClaudeHermes AgentCodexCursorMIT(改変・再配布・商用利用可)Python

できること

日本語⇔英語の翻訳で、用語をそろえるためのスキルです。用語集(CSV)を「正しい訳語の一覧」として使い、原文と訳文のファイルを読み取り専用で照合します。

  • 原文にある用語の訳語が訳文にない(訳し漏れ・別の訳語)
  • 使ってはいけない訳語(例: sign in に統一しているのに log in)
  • 翻訳しない語(ブランド名・製品名・コマンド)が訳されている・抜けている
  • 訳し残し: 英訳に日本語が残っている、和訳に英文が4語以上続いている、原文と同じ行がそのまま残っている
  • 用語集にない、原文で何度も出てくる語の候補を一覧にする(--suggest)

原文と訳文の行数がそろっていれば、1行ずつ対応づけて「どの行のどの用語か」を示します。コード・URL・HTML タグは対象外です。用語集の書式(ja, en, dnt, avoid, notes)のひな形も付いています。

使い方

python scripts/glossary_guard.py --glossary glossary.csv --source ja/guide.md --target en/guide.md --src-lang ja

エージェントは、用語集を確認してから翻訳し、このチェックを実行し、指摘を直して再実行するという手順で、用語がそろった訳文と残った指摘の理由、用語集への追加案を報告します。

必要な環境

  • Python 3(標準ライブラリのみ)
  • UTF-8 の CSV とテキスト/Markdown ファイル

注意点

  • 確認するのは用語と訳し残しだけで、訳文の自然さや正確さは判定しません。
  • 日本語は部分一致なので、短すぎる用語は誤検出が増えます。
  • 英語の不規則な変化形(signed in など)は用語集に書き足してください。
  • ファイルの書き換えやネットワーク通信は行いません。
English description

Check a Japanese-English source and translation pair against a glossary CSV for missing or inconsistent terms, do-not-translate violations and untranslated leftovers, with line numbers.

What it does

Keeps terminology consistent when translating between Japanese and English. A glossary CSV is the single source of truth, and the script compares the source and target files read-only.

  • Glossary terms in the source whose approved translation is missing from the target
  • Discouraged translations (for example "log in" when the glossary says "sign in")
  • Do-not-translate terms (brand names, product names, commands) that were translated or dropped
  • Untranslated leftovers: Japanese characters in an English target, runs of 4+ English words in a Japanese target, or lines identical to the source
  • Candidate terms that recur in the source but are not in the glossary (--suggest)

When both files have the same number of non-empty lines, they are compared line by line, so each finding points at the exact lines. Code, URLs and HTML tags are skipped. A glossary template (ja, en, dnt, avoid, notes) is included.

How to use

python scripts/glossary_guard.py --glossary glossary.csv --source ja/guide.md --target en/guide.md --src-lang ja

The agent confirms the glossary, translates with it, runs the check, fixes findings and re-runs, then reports the remaining items with reasons and proposed glossary additions.

Requirements

  • Python 3 (standard library only)
  • UTF-8 CSV and text or Markdown files

Caveats

  • It checks terminology and leftovers only, not fluency or accuracy.
  • Japanese terms match as substrings, so very short terms cause more false positives.
  • Add irregular English forms (such as "signed in") to the glossary explicitly.
  • No file edits and no network access.

インストール方法

  1. ダウンロードしたZIPを展開します(中に translation-glossary-guard/ フォルダと SKILL.md があります)。
  2. フォルダごと、使うエージェントのスキル置き場にコピーします。
    • Claude:~/.claude/skills/(プロジェクト単位なら .claude/skills/)
    • Hermes Agent:~/.hermes/skills/
    • Codex:~/.agents/skills//Cursor:~/.cursor/skills/
    • Claude アプリ(claude.ai):「カスタマイズ → スキル」からZIPをアップロード
  3. エージェントを再起動し、スキル一覧に表示されることを確認します。

Windows・Mac 別、エージェント別のインストール手順

出品者

AI Skill Market 公式

出品スキル 44 件

出品者のプロフィールとスキル一覧