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.
“to take a liquid into the mouth and swallow it”
“a liquid prepared for drinking”
Skills model reusable grammatical operations applied across Lexical Concepts. Two Skills fire in the same sentence:
Subject <Adverb> MainVerb — places usually before the verb.
<Verb>s — inflects drink → drinks (linked via realizes_concept).
A Universal Dependencies (UD) parse turns any sentence into a grammar tree, and the Skill’s UD pattern matches it deterministically—powering course validation, text analysis, and SRS credit without hand-tagging every rule.
predicate -[advmod]-> adverb; subject << adverb - ✓ She usually drinks coffee. — matches Mid-position frequency adverb
- ✓ He never eats fish. — different Lexical Concepts, same Skill matched
- ✗ She drinks coffee usually. — adverb isn’t before the verb
Greetings, apologies, and pragmatic frames are modeled as Communicative Expressions—taught as cohesive units with optional decomposition into underlying Concepts.
“apology for informing someone too close to the time of an event”
and you-subject-pronouns Decomposition declared once in the library.
Orthography Concepts schedule and track character or spelling mastery separately from spoken Lexical Concepts.
Tracks recognizing and writing the character itself—no owning Skill, sense, or pos.
Spoken vocabulary mastery tracked independently from character writing.
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.
libraries/de (v1.0.0) skills/*.yaml— 137 UD-matched grammar skill groupsexpressions.yaml— 40 communicative expressionslexicon/*.yaml— 374 canonical lexical entries
118 ordered tasks from survival basics to connected speech.
Browse CEFR German →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.
Complete a short predictable transaction for basic food, drink, or travel (level.yaml).
Concrete communicative scenario in CEFR A1 Italian.
Core introduces only the Concepts needed for the task; Perform practices them in a guided exchange.
[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):
Every lexical span is taught, cafe belongs to the <place> provider set, and the UD parse credits the be at <place> Skill automatically.
office is not taught yetoffice is a valid <place> filler in the library, but it is introduced in a later task—separating “known to the language” from “prepared for this learner.”
book is not a <place>Even though book is a known noun, the <place> slot is constrained to place-noun providers—preventing nonsensical substitutions from earning grammar credit.
The library defines I am and she is; She am fails surface and UD pattern validation.
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.
Next steps
- Getting started — install OpenL2 and pick your workflow (adapt a course, analyze text, export to Anki/Jetway, or integrate in Python).
- Build a learner model & SRS — track per-Concept/Skill mastery and exchange state with
openl2-study. - Read the OpenL2 Specification — schemas for Concepts & Skills, Language Libraries, Courses, and Study Interchange.