feat(dictionary): add hnc_rank column to dictionary_entries #71

Merged
raisondetredev merged 1 commit from refs/pull/71/head into main 2026-07-02 01:19:03 +02:00
raisondetredev commented 2026-07-01 22:59:26 +02:00 (Migrated from codeberg.org)

Adds hnc_rank INTEGER (nullable) + a partial index on (language, hnc_rank).

1-based HNC frequency rank (1 = most common; NULL when the word isn't in the HNC lists). The nested hnc_lemma_words_<N> booleans give only a coarse 500-step band and can't order two words within the same band; hnc_rank is the per-word ordinal that lets bulk-add introduce Greek cards most-common-first.

Populated by the curator (seed_bilingual --hnc-bulk-dir at seed time, or backfill_hnc_rank for already-seeded rows — halkyon-curator#23). Safe, additive ADD COLUMN IF NOT EXISTS; apply via the SQL editor.

Adds `hnc_rank INTEGER` (nullable) + a partial index on `(language, hnc_rank)`. 1-based HNC frequency rank (1 = most common; NULL when the word isn't in the HNC lists). The nested `hnc_lemma_words_<N>` booleans give only a coarse 500-step band and can't order two words within the same band; `hnc_rank` is the per-word ordinal that lets bulk-add introduce Greek cards most-common-first. Populated by the curator (`seed_bilingual --hnc-bulk-dir` at seed time, or `backfill_hnc_rank` for already-seeded rows — halkyon-curator#23). Safe, additive `ADD COLUMN IF NOT EXISTS`; apply via the SQL editor.
Sign in to join this conversation.
No reviewers
No milestone
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
project-halkyon/halkyon-infra!71
No description provided.