Skip to content

3/6 CAT item parameters for all five languages, exported from the R API - #619

Open
mcfrank wants to merge 1 commit into
phase2-mobilefrom
phase3-cat-params
Open

3/6 CAT item parameters for all five languages, exported from the R API#619
mcfrank wants to merge 1 commit into
phase2-mobilefrom
phase3-cat-params

Conversation

@mcfrank

@mcfrank mcfrank commented Jul 9, 2026

Copy link
Copy Markdown
Member

Part of the six-PR stack (merge after #618).

Ports the 2PL item banks from langcog/cdi-cat-api's combined_CAT_parms.Rdata into the existing webcdi CSV format (classic-b difficulty = -d/a1; reproduces the R values to 1e-14 on the English bank). Adds the missing Japanese/Dutch starting-words files, refreshes the stale French one, and points each CAT language's instruments.json entry at its own bank instead of the English placeholder.

Dutch is exported from the model object rather than the repo's coefs table, which comes from a different fit — see langcog/cdi-cat-api#14.

Validation: all five languages replay freshly generated mirtCAT ground-truth sequences with theta within 0.0024 and item selection matching 246/246 (harness ships in PR 6/6).

🤖 Generated with Claude Code

Exports the 2PL item banks from langcog/cdi-cat-api's
combined_CAT_parms.Rdata into the existing webcdi CSV format
(classic-b difficulty = -d/a1, matching [English_CAT].csv, which
reproduces the R values to 1e-14). Adds the missing Japanese and
Dutch starting-words files and refreshes the stale French one;
instruments.json now points each CAT language at its own item bank
instead of the English placeholder.

Dutch parameters are derived from the model object
(coef(irt_models$NL)) rather than the repo's irt_coefs table, which
comes from a different fit — see
langcog/cdi-cat-api#14.

Every language was validated against freshly generated mirtCAT
ground-truth sequences: theta trajectories match jsCat within 0.0024
at all 256 steps and maximum-information item selection matches
246/246.

These CSVs are data-only today (07_populate_cat_items has been dead
since the InstrumentItem model was removed in migration 0075); they
are the canonical source for the upcoming in-browser jsCat CAT.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant