(function attachOperatorLabels(global) {
  const riskLabels = {
    high: "높음",
    medium: "중간",
    low: "낮음",
    failed: "실패",
    pending: "대기",
  };

  const decisionLabels = {
    unreviewed: "미심사",
    held: "보류",
    rejected: "반려",
    approved: "승인",
    corrected: "보정됨",
  };

  const providerLabels = {
    internal: "내부 분석",
    naver: "네이버 검색",
    naver_blog: "네이버 블로그 검색",
    naver_web: "네이버 웹문서 검색",
    google: "구글 이미지",
    google_search: "구글 근거 검색",
    llm: "내부 요약",
  };

  const sourceLabels = {
    internal: "내부",
    fingerprint: "이미지 유사도",
    face: "얼굴/인물 감지",
    naver: "네이버",
    google: "구글",
    llm: "내부 요약",
    failure: "실패",
  };

  const providerStatusLabels = {
    ok: "정상",
    covered: "근거 있음",
    empty: "결과 없음",
    failed: "실패",
    disabled: "중지",
    skipped: "건너뜀",
    pending: "미실행",
    not_run: "미실행",
  };

  const candidateStatusLabels = {
    candidate: "후보",
    promoted: "반영됨",
  };

  const evidenceStatusLabels = {
    used_for_judgment: "판단에 사용",
    irrelevant: "무관",
    false_positive: "오탐",
    ignored: "미사용",
    pending: "보류",
  };

  const knowledgeStatusLabels = {
    confirmed: "확정 DB",
    watchlist: "주의 후보",
    excluded: "제외됨",
  };

  const provenanceLabels = {
    manual: "수동 등록",
    automatic: "자동 등록",
    external_evidence: "외부 근거",
  };

  const knowledgeTypeLabels = {
    celebrity: "연예인/유명인",
    public_figure: "연예인/유명인",
    work: "작품",
    character: "캐릭터",
    game: "게임",
    rejected_image: "반려 이미지",
    rejected_reference: "반려 이미지",
    other: "기타",
  };

  global.OperatorLabels = {
    riskLabels,
    decisionLabels,
    providerLabels,
    sourceLabels,
    providerStatusLabels,
    candidateStatusLabels,
    evidenceStatusLabels,
    knowledgeStatusLabels,
    provenanceLabels,
    knowledgeTypeLabels,
  };
})(window);
