Skip to content

Concepts, Skills, and annotations

Every Concept (in a shared libraries/<lang>/ file or a course’s local_concepts.yaml) declares a kind directly or inherits it from its enclosing Concept Set.

An independently meaningful word, compound, phrasal verb, or clause-internal lexicalized multi-word expression (such as a little, one more, by the way, or idioms).

  • Identity: language + normalized text + target-language sense + optional pos
  • sense is required and written in the study language (not an L1 translation).
  • pos is optional; include it when grammatical behavior differs or to disambiguate homographs.
  • idiomatic: true may be set alongside decomposition when a multi-word lexical item is non-compositional.
  • id: Required on every Concept inside a shared language library (libraries/<lang>/) so cross-course references and learner state remain stable. Optional in course-local local_concepts.yaml (where an ID is scoped to that course track and used to disambiguate Concepts that share surface text).
- name: Uses of bus
kind: lexical
concepts:
- id: lex-bus-vehicle
text: bus
sense: a large road vehicle that carries passengers along a route
pos: noun
- id: lex-bus-tables
text: bus
sense: to clear used dishes from tables in a restaurant
pos: verb

2. Communicative expression (kind: communicative_expression)

Section titled “2. Communicative expression (kind: communicative_expression)”

A fixed, slot-free Situation-Bound Utterance or pragmatic routine (greetings, apologies, repairs, transactional formulas such as bonjour, my bad, mit Karte, bitte). Has a required target-language pragmatic/situational sense and no owning Skill, <slot> placeholders, or UD pattern. Any semi-fixed frame with an open slot (how much is <item>, where is <place>) belongs in kind: skill (type: construction). Free literal compositional sentences must be annotated through their component words and grammar rather than coined as standalone expressions, unless explicitly marked with graduated_by_skill as an early pre-grammatical scaffold retired once the learner acquires that Skill.

- name: Polite responsibility
kind: communicative_expression
concepts:
- id: sorry-for-the-short-notice
text: Sorry for the short notice
sense: apology for informing someone too close to the time of an event

A directly practiceable grammatical form, pattern, paradigm form, or structural realization owned by one Skill.

  • Identity: owning Skill + normalized text + optional sense + optional pos
  • Angle-bracket tokens like <Nomen>, <Subjekt>, <Verb>, or <country> mark productive template slots that learners fill with other Concepts.
  • May declare realizes_concept to link an inflected realization to a Lexical Concept without collapsing their learner states.
- name: Relativsätze im Dativ
kind: skill
skill:
name: Relativsätze im Dativ
type: clause_linking
concepts:
- text: <Nomen>, dem <Subjekt> <Verb>
- text: <Nomen>, der <Subjekt> <Verb>
- text: <Nomen>, denen <Subjekt> <Verb>

An exact written form taught intentionally as a lesson target. Has no Skill, sense, or pos.

- name: Written forms
kind: orthography
concepts:
- text: 行

Mark a Concept Set support_only: true for incidental items that appear in examples (such as fictional people’s names or sample cities) so they satisfy annotation coverage without being counted as assessed learning targets:

- name: Example names
kind: lexical
support_only: true
concepts:
- id: name-anna
text: Anna
sense: fictional person's name used in examples

Declare reusable literal components once on a multi-word Concept so you do not have to repeat nested annotations in every lesson example:

- id: and-you-576af0eaab
text: and you
sense: returning a question to the person who asked it
decomposition: '[and](concept:and) [you](concept:you-subject-pronouns)'
idiomatic: true

Skills represent assessable linguistic operations—not vocabulary topics.

Type Learner operation Examples
function_words Choose or use a closed-class grammatical item articles, pronouns, particles, adpositions
morphology Form or select inflection, agreement, tense, aspect, gender, or case verb conjugation paradigms, case endings
syntax Apply a structural rule outside clause linking or linear ordering negation, question formation, valency
clause_linking Connect independently expressible propositions relative, causal, temporal, conditional clauses
word_order Place constituents in required linear order V2 verb position, inversion
construction Use a language-specific form–meaning or argument frame periphrastic constructions, complex prepositions

Every kind: skill Concept pairs a machine-readable UD pattern: (for deterministic matching) with a human-facing text: signature (rendered in Course Reference sites, Library Reference sites, and HTML Analysis Reports). Follow these four rules so signatures stay consistent across all languages:

  1. Always provide a non-empty text: on every kind: skill Concept—never leave text blank or rely on an internal slug ID as a display label.
  2. Wrap open grammatical slots in <angle brackets> in the study language, keeping literal words bare:
    • English: on <day>, in <time period>, <clause> because <clause>, if <subject> <past>, <subject> would <verb>
    • German: bis <Zeitangabe>, nicht <Satzglied>, sondern <Satzglied>
    • Spanish: acabar de <infinitivo>, porque <oración>, para <destinatario>
    • French: Il faut que <proposition au subjonctif>, <proposition> parce que <proposition>
    • Mandarin: 因为<原因>, 所以<结果>
  3. Keep fixed multi-word forms and conjugation paradigms literal (without brackets, using / for compact alternatives): zu Hause, in the morning, fa caldo, ich bin, er/sie/es ist, je sois.
  4. Never use CamelCase provider names or raw slug IDs in text: (e.g., use <noun phrase> instead of NounPhrase, and <verb>-ed or regular past (-ed) instead of verb-ed).

openl2 library validate audits all four rules via library-skill-signature.

Annotations link realized target-language spans in exercises and dialogues back to Concepts:

[surface text](concept:<text-or-id>)

OpenL2 resolves <text-or-id> by exact id first, then by exact unique Concept text. Use the id whenever surface text is ambiguous (for example, come in as “arrive at work” vs. “enter a room”):

# By unique Concept text
annotated_text: I'm [calling in sick](concept:call in sick) today.
# By explicit Concept ID
annotated_text: I can't [come in](concept:lex-come-in) to work today.
  1. Annotate the exact realized span (including inflections):
    annotated_text: '[Er](concept:er) [spricht](concept:sprechen) [mit](concept:mit) [dem Mann](concept:der Mann).'
  2. Nest template fillers; never cross spans:
    annotated_text: '[I am from [France](concept:France)](concept:I am from <country>).'
    Outer annotations identify the enclosing Skill pattern; nested annotations identify the Concept filling each <slot>. Crossing spans are invalid.
  3. Do not repeat literal decompositions: Declare reusable fixed components in decomposition on the Concept instead of repeating nested annotations in every exercise.
  4. Include determiners with nouns when not separately annotated as a taught article/case/determiner target (e.g., [dem Mann](concept:der Mann), [this bag](concept:bag)).

Not every grammatical pattern requires manual nested brackets on every sentence. OpenL2 pairs explicit lexical annotations with dependency-matched Skill rules and provider restrictions so the compiler can distinguish between recognizing a grammatical structure and having prepared the learner to produce it.

Consider a simple location sentence: I am at the cafe.

  1. What the author annotates: The author annotates the lexical and functional spans—[I](concept:...), [am](concept:...), [at](concept:...), [the cafe](concept:cafe).
  2. Which grammar Skill earns credit: The dependency analyzer inspects the sentence’s grammatical structure (am + at + oblique place noun cafe) and matches the locative Skill pattern (e.g., be at <place>), crediting that Skill automatically when its dependency rule and slot restrictions match.
  3. Why I am at the book. fails the restriction: The <place> slot is constrained to a provider set of place nouns (such as cafe, office, station). Because book is not in the place provider set, the dependency rule rejects the book—preventing invalid substitutions from earning grammar credit.
  4. What happens if the construction is withheld: Even when the analyzer recognizes be at <place> in a sentence, the compiler checks the course’s teaching plan. If the learner has not yet been taught be at <place> in an earlier or current lesson, strict closure flags it as an unprepared target—separating “this sentence contains the grammar” from “the learner is prepared to produce it.”