Curated override file for bad or missing translations #71

Closed
opened 2026-09-26 13:58:59 +00:00 by belvedere · 1 comment
Collaborator

Objective: Machine-derived links will be wrong sometimes; there must be a reviewed,
version-controlled way to fix them without patching the importer.

Files:

  • Create: priv/data/overrides/translations.csv
  • Create: lib/first_thousand_words/import/overrides.ex
  • Modify: mix f1000.import.concepts

Steps:

  1. CSV columns: source_lang,source_word,target_lang,target_word,action
    (action in set | replace | exclude).
  2. Loader applies overrides after machine import, in the same transaction.
  3. Log every override applied with counts, so the delta from machine output is visible.

Verify: add an override for a deliberately wrong link, re-run, assert the link changed and
the run reported 1 override applied.

**Objective:** Machine-derived links will be wrong sometimes; there must be a reviewed, version-controlled way to fix them without patching the importer. **Files:** - Create: `priv/data/overrides/translations.csv` - Create: `lib/first_thousand_words/import/overrides.ex` - Modify: `mix f1000.import.concepts` **Steps:** 1. CSV columns: `source_lang,source_word,target_lang,target_word,action` (`action` in `set | replace | exclude`). 2. Loader applies overrides after machine import, in the same transaction. 3. Log every override applied with counts, so the delta from machine output is visible. **Verify:** add an override for a deliberately wrong link, re-run, assert the link changed and the run reported `1 override applied`.
Author
Collaborator

Duplicate of #19 — created by a re-run whose pagination helper only saw the first page of issues. Closing to keep the backlog clean. Repo owner can delete this outright.

Duplicate of #19 — created by a re-run whose pagination helper only saw the first page of issues. Closing to keep the backlog clean. Repo owner can delete this outright.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nickkeers/first-thousand-words#71
No description provided.