Skip to content

Course format

A Course (courses/<id>/) defines what to teach, in what order, and with what material for a single study language, resolving its vocabulary and grammar Skills against a shared Language Library.

OpenL2 resolves every course directory into two axes:

Course → Level
  • Course: The named single-language curriculum (e.g., cefr-de, hsk, latin, calling-in-sick). Related courses sharing a framework (such as CEFR) can be grouped under a common subdirectory like courses/cefr/de/, courses/cefr/fr/.
  • Level: One ordered progression stage within a course (e.g., a1, a2, b1, or 1–6).

OpenL2 infers the directory layout directly from course.yaml and your folders—no explicit axis flags are needed:

courses/calling-in-sick/ # Flat single-level course (tasks.yaml in root)
courses/hsk/1/ # Multi-level course (level subdirs or `levels:` in course.yaml)
courses/cefr/de/a1/ # Multi-level course grouped under a framework folder
course-root/
├── course.yaml # Course metadata, language, instruction_language, uses_library
├── <level>/
│ ├── level.yaml # Exit criteria (summary, outcomes, conditions, boundaries)
│ ├── local_concepts.yaml # Optional course- or level-local Concept Sets
│ ├── tasks.yaml # Ordered Spine task IDs
│ ├── tasks/
│ │ └── <slug>.yaml # Task definition, lessons, and exercises
│ ├── vocab_packs.yaml # Optional ordered off-spine Vocab Pack IDs
│ └── vocab_packs/
│ └── <slug>.yaml # Optional topical or exam Vocab Pack definition
├── analysis/ # Optional cached linguistic analysis
└── audits/ # Persisted audit results

For single-level courses, level.yaml, local_concepts.yaml, tasks.yaml, and tasks/ sit directly inside course-root/. All levels in a course are loaded together so cross-level references and shared Skills resolve cleanly.

course_id: cefr-de
name: CEFR German
framework_id: cefr
description: Practical German for everyday communication across CEFR levels A1–B1.
language: de
instruction_language: en # Language for learner-facing explanations
default_level: a1
uses_library: de@^1.0
exercise_source: course
validation:
closure: strict

Key fields:

  • language: Lowercase BCP 47 language tag for the study language (see Language codes).
  • uses_library: SemVer reference to a Language Library under libraries/ (declared at course level or per track).
  • instruction_language: Lowercase BCP 47 language tag used for learner-facing explanations (must differ from language; can be overridden per track).
  • validation.closure:
    • open: Permits open-world surrounding text while still checking declared targets and annotations. Recommended for focused, situation-specific courses.
    • strict: Every content span in authored exercises, Perform turns, and Listening cues must be covered by course Concepts (punctuation/spacing exempt). Recommended for ground-up progressions (e.g., CEFR A1).
  • exercise_source:
    • course (default): Exercises are authored in task files.
    • runtime: The learning application generates practice from declared lesson targets; authored exercises are disallowed.
exit_criteria:
title: A1 — Breakthrough
summary: Learner can handle very simple communication on concrete, familiar topics with substantial support.
outcomes:
- id: exchange-basic-personal-information
statement: Ask for and provide basic personal information about identity, origin, residence, family, or work.
conditions:
- input is short, clear, predictable, and familiar
- speech is slow and carefully articulated
boundaries:
- no sustained conversation
- no abstract explanation or argument

Every outcome.id uses lowercase kebab-case and can be referenced by tasks via level_outcome_refs.

level.yaml may also declare an optional top-level proficiency_range: [min, max] (with 0 <= min < max <= 100) placing the level on OpenL2’s canonical 0–100 proficiency scale. When omitted, OpenL2 uses the built-in scale for framework_id (cefr: A1 0–20, A2 20–40, B1 40–60, B2 60–80, C1 80–92, C2 92–100; jlpt: N5 0–20, N4 20–35, N3 35–55, N2 55–75, N1 75–92; hsk: Levels 1–9), or subdivides 0–100 evenly for custom frameworks.

Course-local concepts (local_concepts.yaml)

Section titled “Course-local concepts (local_concepts.yaml)”

When a course needs domain-specific vocabulary, expressions, or incidental example names not in the shared library, add them in local_concepts.yaml inside the level or course root using the same concept_sets schema as a Language Library:

concept_sets:
- name: Nomi di esempio
kind: lexical
description: Fictional example names; not assessed vocabulary.
support_only: true
concepts:
- id: nome-anna
text: Anna
sense: nome proprio di una persona negli esempi