feat(db): complete deck generation script for top english nouns
- add deck_terms to schema imports - add addTermsToDeck — diffs source term IDs against existing deck_terms, inserts only new ones, returns count of inserted terms - add updateValidatedLanguages — recalculates and persists validated_languages on every run so coverage stays accurate as translation data grows - wire both functions into main with isNewDeck guard to avoid redundant validated_languages update on deck creation - add final summary report - fix possible undefined on result[0] in createDeck - tick off remaining roadmap items
This commit is contained in:
parent
7fdcedd1dd
commit
3bb8bfdb39
12 changed files with 442 additions and 875 deletions
34
packages/db/src/data/wordlists/top1000englishnouns-missing
Normal file
34
packages/db/src/data/wordlists/top1000englishnouns-missing
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
a
|
||||
other
|
||||
us
|
||||
may
|
||||
st
|
||||
paul
|
||||
new
|
||||
software
|
||||
oxford
|
||||
english
|
||||
mary
|
||||
japan
|
||||
while
|
||||
pp
|
||||
membership
|
||||
manchester
|
||||
tony
|
||||
alan
|
||||
jones
|
||||
un
|
||||
northern
|
||||
simon
|
||||
behalf
|
||||
co
|
||||
graham
|
||||
joe
|
||||
guy
|
||||
lewis
|
||||
jane
|
||||
taylor
|
||||
co-operation
|
||||
travel
|
||||
self
|
||||
thatcher
|
||||
Loading…
Add table
Add a link
Reference in a new issue