Add Bengali exercise instructions#54
Conversation
(a.)Exercise Language Not Found:If you added or altered an exercise instruction at instruction., then you have also toadd an identical instruction string arrayatinstruction_steps.. If the one exist and the other don't then the schema validator and the build will break. (b.)Schema Drift: If you are introducing a completely new language (like French fr), you have to update data/exercises.schema.json to allow fr under the language pattern maps. If you don't, the automated dataset validator (added in PR #36) will reject it. (c.)Trailing Commas / Invalid JSON Syntax. One missing or misplaced comma in a large 1,324 element JSON file would prevent it from being parsed entirely.
(a.)Path Format: The value for the image and gifurl fields within the JSON structure need to be represented as relative paths. (E.g., images/0001-2gPfomN.jpg rather than http://site.net/images/0001-2gPfomN.jpg) If you fail to align the image name along with the mediaid field, you'll get failed image rendering issues.
(a.)UI Dropdown Sync: Whenever a language is added, you need to update the menus inside index.html for language selection and filtering by client side (b.)Template Mismatch: The client-side script that auto-generates SQL for users will break if either the structure of the database generation script or the live LLM prompt in setup.html is modified. |
Adds instructions.bn and instruction_steps.bn to all 1,324 records in both data/exercises.json and the EXERCISES blob in index.html, registers Bengali in the browser UI language tabs, and updates the README (language count 10 -> 11, schema table, sample record, usage examples). Following the precedent of hasaneyldrm#43/hasaneyldrm#44, bn is added to the JSON Schema language maps as a required language. Also adds the instructions_fr / instructions_bn columns to the SQL templates and insert generator in setup.html — the French PR (hasaneyldrm#44) had updated the LLM prompt but not the SQL generation, so generated SQL silently dropped French text.
|
Thanks for the checklist, @riju568! Quick summary of where this PR stands on each point:
Also worth noting: after #44 merged, this branch conflicted with main (French touched every record), so I've rebuilt it on top of the current main — it's conflict-free and mergeable again as of the latest push. |
Adds Bengali (
bn) as the 10th instruction language, following the Hindi (#42) and Polish/Korean (118e4bd) convention: nestedinstructions.bn+instruction_steps.bnon all 1,324 records, no flat*_bnfields.Updates
data/exercises.json, the embeddedEXERCISESblob and SQL schemas/INSERT builder inindex.html, the same insetup.htmlplus its LLM-prompt field list, and the README (9 → 10 languages).Verification: validates against
data/exercises.schema.json(1,324 records, zero errors); both copies of the data are byte-identical; purely additive — strippingbnreproduces the previous data byte-for-byte, with everyattributionfield intact.Translations are AI-assisted and haven't had a native-speaker review yet — happy to revise terminology or register if you have preferences.