adding tasks
This commit is contained in:
parent
4ef70b3876
commit
a49bce4a5a
2 changed files with 3 additions and 2 deletions
|
|
@ -3,7 +3,8 @@
|
||||||
## tasks
|
## tasks
|
||||||
|
|
||||||
- pinning dependencies in package.json files
|
- pinning dependencies in package.json files
|
||||||
- add this to drizzle migrartions file:
|
- rethink organisation of datafiles and wordlists
|
||||||
|
- add this to drizzle migrations file:
|
||||||
✅ ALTER TABLE terms ADD CHECK (pos IN ('noun', 'verb', 'adjective', etc));
|
✅ ALTER TABLE terms ADD CHECK (pos IN ('noun', 'verb', 'adjective', etc));
|
||||||
|
|
||||||
## openwordnet
|
## openwordnet
|
||||||
|
|
|
||||||
|
|
@ -25,12 +25,12 @@ Goal: Word data lives in the DB and can be queried via the API.
|
||||||
Done when: `GET /api/decks/1/terms?limit=10` returns 10 terms from a specific deck.
|
Done when: `GET /api/decks/1/terms?limit=10` returns 10 terms from a specific deck.
|
||||||
|
|
||||||
[x] Run `extract-en-it-nouns.py` locally → generates `datafiles/en-it-nouns.json`
|
[x] Run `extract-en-it-nouns.py` locally → generates `datafiles/en-it-nouns.json`
|
||||||
-- Import ALL available OMW noun synsets (no frequency filtering)
|
|
||||||
[x] Write Drizzle schema: `terms`, `translations`, `language_pairs`, `term_glosses`, `decks`, `deck_terms`
|
[x] Write Drizzle schema: `terms`, `translations`, `language_pairs`, `term_glosses`, `decks`, `deck_terms`
|
||||||
[x] Write and run migration (includes CHECK constraints for `pos`, `gloss_type`)
|
[x] Write and run migration (includes CHECK constraints for `pos`, `gloss_type`)
|
||||||
[x] Write `packages/db/src/seed.ts` (imports ALL terms + translations, NO decks)
|
[x] Write `packages/db/src/seed.ts` (imports ALL terms + translations, NO decks)
|
||||||
[x] Download CEFR A1/A2 noun lists (from GitHub repos)
|
[x] Download CEFR A1/A2 noun lists (from GitHub repos)
|
||||||
[ ] Write `scripts/build_decks.ts` (reads external CEFR lists, matches to DB, creates decks)
|
[ ] Write `scripts/build_decks.ts` (reads external CEFR lists, matches to DB, creates decks)
|
||||||
|
[ ] check notes.md
|
||||||
[ ] Run `pnpm db:seed` → populates terms
|
[ ] Run `pnpm db:seed` → populates terms
|
||||||
[ ] Run `pnpm db:build-decks` → creates curated decks
|
[ ] Run `pnpm db:build-decks` → creates curated decks
|
||||||
[ ] Define Zod response schemas in `packages/shared`
|
[ ] Define Zod response schemas in `packages/shared`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue