Concepts, Skills, and annotations
Concept kinds
Section titled “Concept kinds”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.
1. Lexical (kind: lexical)
Section titled “1. Lexical (kind: lexical)”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 senseis required and written in the study language (not an L1 translation).posis optional; include it when grammatical behavior differs or to disambiguate homographs.idiomatic: truemay be set alongsidedecompositionwhen 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-locallocal_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: verb2. 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 event3. Skill (kind: skill)
Section titled “3. Skill (kind: skill)”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_conceptto 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>4. Orthography (kind: orthography)
Section titled “4. Orthography (kind: orthography)”An exact written form taught intentionally as a lesson target. Has no Skill, sense, or pos.
- name: Written forms kind: orthography concepts: - text: 行Optional Concept & Set metadata
Section titled “Optional Concept & Set metadata”support_only
Section titled “support_only”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 examplesdecomposition
Section titled “decomposition”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: trueSupported Skill types
Section titled “Supported Skill types”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 |
Skill display signatures (text)
Section titled “Skill display signatures (text)”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:
- Always provide a non-empty
text:on everykind: skillConcept—never leavetextblank or rely on an internal slug ID as a display label. - 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:
因为<原因>,所以<结果>
- English:
- 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. - Never use CamelCase provider names or raw slug IDs in
text:(e.g., use<noun phrase>instead ofNounPhrase, and<verb>-edorregular past (-ed)instead ofverb-ed).
openl2 library validate audits all four rules via library-skill-signature.
Inline concept annotations
Section titled “Inline concept annotations”Annotations link realized target-language spans in exercises and dialogues back to Concepts:
[surface text](concept:<text-or-id>)Referencing by text vs. by ID
Section titled “Referencing by text vs. by 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 textannotated_text: I'm [calling in sick](concept:call in sick) today.
# By explicit Concept IDannotated_text: I can't [come in](concept:lex-come-in) to work today.Core annotation rules
Section titled “Core annotation rules”- Annotate the exact realized span (including inflections):
annotated_text: '[Er](concept:er) [spricht](concept:sprechen) [mit](concept:mit) [dem Mann](concept:der Mann).'
- Nest template fillers; never cross spans:
Outer annotations identify the enclosing Skill pattern; nested annotations identify the Concept filling eachannotated_text: '[I am from [France](concept:France)](concept:I am from <country>).'
<slot>. Crossing spans are invalid. - Do not repeat literal decompositions: Declare reusable fixed components in
decompositionon the Concept instead of repeating nested annotations in every exercise. - 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)).
How grammar earns credit
Section titled “How grammar earns credit”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.
- What the author annotates: The author annotates the lexical and functional spans—
[I](concept:...),[am](concept:...),[at](concept:...),[the cafe](concept:cafe). - Which grammar Skill earns credit: The dependency analyzer inspects the sentence’s grammatical structure (
am+at+ oblique place nouncafe) and matches the locative Skill pattern (e.g.,be at <place>), crediting that Skill automatically when its dependency rule and slot restrictions match. - Why
I am at the book.fails the restriction: The<place>slot is constrained to a provider set of place nouns (such ascafe,office,station). Becausebookis not in the place provider set, the dependency rule rejectsthe book—preventing invalid substitutions from earning grammar credit. - 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 taughtbe 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.”