Skip to content

Key Concepts

OpenL2 is a typed knowledge model and compiler for second-language curricula. Instead of burying teaching decisions inside prose slides or spreadsheets, it breaks language learning into five explicit, machine-checkable building blocks.

1. Concepts & Skills

Everything starts with a Concept—a canonical, typed unit inside a language library (libraries/<lang>/) or course-local file (local_concepts.yaml). Every Concept has one of four explicit kind values: lexical, skill, communicative_expression, or orthography.

Each token resolves to a canonical Lexical Concept by its study-language sense, keeping homographs distinct across any learner L1.

drink in “She usually drinks coffee.”
drink verb · lex-drink-verb

“to take a liquid into the mouth and swallow it”

drink noun · lex-drink-noun

“a liquid prepared for drinking”

1 / 5

Because identity is explicit and senses are written in the study language, learner models and compilers can disambiguate homographs (drink verb vs. noun), match grammatical Skills via Universal Dependencies patterns, and reuse the same library across learners from any first language.

2. Language Libraries vs. Courses

OpenL2 separates what exists in a language (libraries/<lang>/) from what order to teach it (courses/<id>/). Multiple courses declare uses_library: de@^1.0 to share the same canonical grammar Skills and lexicon while sequencing them completely differently—and adding domain vocabulary in an optional local_concepts.yaml.

Language Library libraries/de (v1.0.0)
  • skills/*.yaml — 137 UD-matched grammar skill groups
  • expressions.yaml — 40 communicative expressions
  • lexicon/*.yaml — 374 canonical lexical entries
Browse German library →
Full Progression CEFR German (A1–B1)

118 ordered tasks from survival basics to connected speech.

Browse CEFR German →
Focused / Customized Domain or Goal Course

Reorders tasks for a specific job or goal + adds local_concepts.yaml.

3. Outcomes → Tasks → Lessons

Courses are designed backward from observable real-world performance—not alphabetical vocabulary lists. Each level defines explicit exit criteria and boundaries, fulfilled by ordered Tasks, each taught through focused Lessons and Exercises.

Level Outcome Handle a basic service transaction

Complete a short predictable transaction for basic food, drink, or travel (level.yaml).

Task Order a drink politely and confirm the choice

Concrete communicative scenario in CEFR A1 Italian.

Lessons Core lesson → Perform / Role-play lesson

Core introduces only the Concepts needed for the task; Perform practices them in a guided exchange.

Typed Sentence [Vorrei](concept:vorrei) [un caffè](concept:caffè).

Links directly to the lexical Concept caffè and the conditional Skill io vorrei.

4. Annotations & Grammar Matching

Authors annotate lexical spans in target sentences, while OpenL2’s analyzer parses each sentence with Universal Dependencies to match grammatical Skills automatically. Click through the four states below at a checkpoint where cafe and book are taught and office is in the library (taught later):

I am at the cafe.
Valid & prepared at this checkpoint

Every lexical span is taught, cafe belongs to the <place> provider set, and the UD parse credits the be at <place> Skill automatically.

5. Closure & Compilation

Different courses need different strictness, and one validated course source compiles to any delivery surface:

validation.closure: strict — Full progressions

Every word in every sentence must be accounted for by a prepared Concept. Ideal for ground-up CEFR A1–B1, HSK, or JLPT tracks.

validation.closure: open — Focused courses

Only annotated target Concepts are checked for teaching order; surrounding everyday words are allowed. Ideal for short domain courses.

YAML in GitCourses + Libraries
Validate & AuditCLI + MCP gates
Compile & PublishCourse Reference · HTML Analysis · Anki · Jetway · Python API

Next steps