Coverage report for the top 1000 concepts per language #21

Open
opened 2026-09-26 13:58:34 +00:00 by belvedere · 0 comments
Collaborator

Objective: Know whether "the first 1000 words" is actually achievable for a given language
before promising it in the UI.

Files:

  • Create: lib/mix/tasks/f1000.coverage.ex
  • Create: lib/first_thousand_words_web/live/language_coverage_live.ex (admin view)

Steps:

  1. Per language: count words imported, count words with ≥1 concept link, count concepts with
    ≥1 word in both languages of a pair, and list the worst-covered concepts.
  2. Print a table from a mix task.
  3. Surface the same numbers on an admin page.

Verify:

mix f1000.coverage
# language | words | linked | paired | worst gaps

Notes: this is the gate for enabled? on a language. Do not enable a pair with terrible
coverage; the practice UI will feel broken.

**Objective:** Know whether "the first 1000 words" is actually achievable for a given language before promising it in the UI. **Files:** - Create: `lib/mix/tasks/f1000.coverage.ex` - Create: `lib/first_thousand_words_web/live/language_coverage_live.ex` (admin view) **Steps:** 1. Per language: count words imported, count words with ≥1 concept link, count concepts with ≥1 word in *both* languages of a pair, and list the worst-covered concepts. 2. Print a table from a mix task. 3. Surface the same numbers on an admin page. **Verify:** ``` mix f1000.coverage # language | words | linked | paired | worst gaps ``` **Notes:** this is the gate for `enabled?` on a language. Do not enable a pair with terrible coverage; the practice UI will feel broken.
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#21
No description provided.