Build a learner model & SRS
Most language apps track completion at the level of “Unit 3 passed” or “Flashcard #42 missed.” OpenL2 gives app developers a typed knowledge model so learner state, spaced repetition, and data portability all operate on Concepts and Skills directly.
1. Key learner state to Concepts & Skills
Section titled “1. Key learner state to Concepts & Skills”Every annotated sentence in an OpenL2 course exposes its exact lexical Concepts and grammatical Skills. Consider a learner who hesitates on:
annotated_text: "[Ich](concept:ich) [möchte](concept:möchten) [einen [Kaffee](concept:der-kaffee)](concept:ein-akkusativ-maskulin), bitte."Keyed on (language, concept_key) (or the full self-contained concept object in openl2-study), your runtime can inspect mastery across every component of that sentence:
{ "(de, ich)": { "recognition": 0.98, "production": 0.95 }, "(de, möchten)": { "recognition": 0.92, "production": 0.88 }, "(de, der-kaffee)": { "recognition": 0.94, "production": 0.90 }, "(de, ein-akkusativ-maskulin)": { "recognition": 0.61, "production": 0.34 }}Instead of re-drilling Kaffee or möchten, your app diagnoses the actual gap—producing masculine accusative einen—and targets it specifically. When a Skill Concept inflects a base word (such as er spricht realizing sprechen), link it via realizes_concept so grammar and vocabulary mastery stay distinct.
2. Schedule contextual spaced repetition
Section titled “2. Schedule contextual spaced repetition”An SRS built on OpenL2—such as Jetway—schedules Concepts and Skills rather than static flashcards:
- Credit implicit reuse automatically: If a learner orders “Vorrei un tè” in a role-play or understands “Vorrei un’acqua” in a listening exercise, your runtime reads the annotations (
volere+ conditionalio vorrei) and credits review automatically. - Select varied, contextual sentences: When a Skill is due, pick a fresh sentence or dialogue that exercises that Skill alongside familiar vocabulary instead of repeating the same prompt.
- Prerequisite-aware recovery: When a learner repeatedly misses a complex construction, inspect
CompiledTask.prerequisites_by_ref(via Integrating OpenL2) to step back and reinforce the missing building block first.
3. Export & import portable memory state (openl2-study)
Section titled “3. Export & import portable memory state (openl2-study)”To let learners carry their progress between apps—or to replay review logs for FSRS weight optimization—serialize learner memory using the Study Interchange Format (.openl2-study.json):
{ "format": "openl2-study", "spec_version": "0.1.0", "exported_at": "2026-11-29T18:50:00Z", "scheduler": { "algorithm": "fsrs-6" }, "items": [ { "concept": { "language": "de", "kind": "skill", "skill": "Präsens (unregelmäßig)", "text": "er spricht", "realizes_concept": { "text": "sprechen", "concept_key": "sprechen" }, "concept_key": "sprechen-praesens-3sg" }, "status": "review", "due_at": "2026-12-06T12:00:00Z", "reps": 7, "lapses": 1, "fsrs": { "stability": 7.14, "difficulty": 5.82 } } ]}Because each item embeds a self-contained concept object, any SRS app can import the file without requiring an external OpenL2 Language Library, while OpenL2-aware apps can resolve concept_key back to canonical library entries downstream.