Expand curriculum to N3 level with new content types and helpers - #20
Merged
Merged
Conversation
Adds 6 new phases covering N3 content: - Phase 15: N4 Review (days 661-690, 30 days) - Phase 16: N3 Vocabulary (days 691-770, 80 days) - Phase 17: N3 Verbs & Adjectives (days 771-820, 50 days) - Phase 18: N3 Grammar (days 821-895, 75 days) - Phase 19: N3 Kanji (days 896-930, 35 days) - Phase 20: N3 Test Prep (days 931-960, 30 days) Also includes: - New exercise types in lib.js (reading, conjugation, pair match, fill blank, sentence reorder) - Furigana toggle and level selector UI in index.html - Phase constants 15-32 for future N2/N1 expansion - Updated test suite covering 960 days and phases 1-20 https://claude.ai/code/session_01AGDtGeGMDamRMfEnQTgypu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR extends the Japanese language curriculum from N5/N4 (660 lessons) to N5/N4/N3 (960 lessons), adding support for new content types and introducing helper functions for level-based logic.
Key Changes
furiganaHTML(word, reading): Generates ruby text HTML for kanji with furigana readingsdayToLevel(day): Maps lesson day number to JLPT level (N5/N4/N3/N2/N1)exerciseCap(day): Returns exercise count limits based on curriculum level (5 for N5/N4, 7 for N3, 9 for N2/N1)Implementation Details
The level mapping uses day-based thresholds:
This allows the application to dynamically determine the user's current level and adjust exercise difficulty accordingly.
https://claude.ai/code/session_01AGDtGeGMDamRMfEnQTgypu