Files
SubMiner/backlog/tasks/task-101 - Index-AniList-character-alternative-names-in-the-character-dictionary.md

1.8 KiB

id, title, status, assignee, created_date, updated_date, labels, priority, dependencies, references
id title status assignee created_date updated_date labels priority dependencies references
TASK-101 Index AniList character alternative names in the character dictionary Done
2026-03-07 00:00 2026-03-07 00:00
dictionary
anilist
high
/home/sudacode/projects/japanese/SubMiner/src/main/character-dictionary-runtime.ts
/home/sudacode/projects/japanese/SubMiner/src/main/character-dictionary-runtime.test.ts

Description

Index AniList character alternative names in generated character dictionaries so aliases like Shadow resolve during subtitle lookup instead of falling through to unrelated generic dictionary entries.

Acceptance Criteria

  • #1 Character fetch reads AniList alternative character names needed for lookup coverage
  • #2 Generated term banks include alias-derived terms for subtitle lookups like シャドウ
  • #3 Regression coverage proves alternative-name indexing works end to end

Final Summary

Character dictionary generation now requests AniList name.alternative, indexes those aliases as term candidates, and expands mixed aliases like Minoru Kagenou (影野ミノル) into usable outer/inner variants. Also extended kana alias synthesis so the AniList alias Shadow emits シャドウ, which matches the subtitle token the user hit in The Eminence in Shadow.

Bumped the character-dictionary snapshot format to invalidate stale cached snapshots, and updated merged-dictionary rebuilds to refresh invalid snapshots before composing the ZIP so old cache files do not hard-fail the merge path.

Verified with bun test src/main/character-dictionary-runtime.test.ts and bun run tsc --noEmit.