Curated override file for bad or missing translations #19

Open
opened 2026-09-26 13:58:34 +00:00 by belvedere · 0 comments
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`.
Sign in to join this conversation.
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#19
No description provided.