Comment Generator
The Comment Generator turns end-of-term mark capture into a one-click batch of personalised, edit-ready report comments. You author a template once, point it at a class, and Caliper produces a comment per learner — pulling in their actual scores, applying threshold-based phrasing, and giving you a per-learner review panel where you can tweak before exporting.
The current Comment Generator uses rule-based templates with {{variable}} substitution and threshold logic — no LLM-generated narrative. AI-assisted generation is on the roadmap for a future phase.
Where to find it​
In the main navigation, open Comment Generator (route: /comment-gen). The page is split into:
- Top bar — template selector, class selector, Generate / Save / New buttons
- Left pane — template editor (template body + variable mappings)
- Right pane — generated comments review (per-learner pills, current comment, export)
Quick start​
- Pick a template in the top bar (or click New to create one).
- Pick a class to generate for.
- Click Generate. Caliper produces one comment per learner in the class and shows them as a pill bar on the right.
- Click any learner's pill to read their comment. Click the comment text to edit it inline.
- When you're happy, Export to CSV (for spreadsheet workflows) or plain text.
That's the loop. The rest of this page covers each part in more depth.
Building a template​
A template is the recipe for one kind of report comment — typically scoped to a subject, grade, and term.
Template metadata​
| Field | What it's for |
|---|---|
| Template Name | How you'll recognise it in the dropdown — e.g. "Grade 11 IT — Term 1". |
| Subject | Free text (e.g. Information Technology). |
| Grade | Free text (e.g. Grade 11). |
| Term | 1, 2, 3, or 4. |
| Language | English or Afrikaans. The template body is written in the chosen language; this is metadata, not auto-translation. |
| Share with school | When on, other teachers at your school can use this template. When off, it's private to you. |
Template body​
The body is where you write the actual comment. Use {{variable}} placeholders wherever you want a learner-specific value to slot in.
{{learner_first_name}} achieved {{sql_score}}% on the SQL practical
this term and {{theory_score}}% on the theory test. Their strongest
areas were {{list_strong}}, and {{learner_first_name}} should focus
next term on {{list_weak}}.
As you type, Caliper highlights every {{variable}} it finds and shows a chip bar of the unique placeholders — handy for spotting typos like {{sql_scor}}.
A few placeholders are always available without configuration:
{{learner_first_name}}{{learner_name}}(full name)
Anything else in {{...}} needs to be defined in the Variables panel below the body.
Variables​
Each variable maps a placeholder to a value source. Click Add Variable for each one. There are two source types:
Assessment variables​
Pull a score from a specific assessment.
| Field | Notes |
|---|---|
| Key | The placeholder name without the braces (e.g. sql_score). |
| Label | A human-readable name for your reference. |
| Source | Set to Assessment. |
| Assessment | Pick the assessment whose score you want. |
| Field | Percentage or Raw Score. |
Computed variables​
Derive a value from the learner's existing scores. Four rules are available:
| Rule | What it produces |
|---|---|
| Threshold | A descriptive phrase based on which band a score falls into (e.g. "shows strong understanding" vs. "needs more practice"). |
| List Weak | A comma-separated list of topic/skill names where the learner scored below a threshold. |
| List Strong | The complementary list — topics the learner is doing well in. |
| Conditional | A custom branch based on a condition you define. |
Use computed variables when the same template phrase shouldn't be hard-coded for every learner. {{list_weak}} is the workhorse — it makes a single template feel personal across a whole class without you writing 30 variants.
Saving the template​
Click Save Template in the top bar. If you came in through New, it creates a new record; if you loaded an existing one, it updates in place.
Generating comments​
Once you've picked a template and class, Generate runs the template against every learner in the class and shows the results in the right pane.
The pill bar​
Each learner becomes a small chip with their first name, colour-coded by their average score across the template's variables:
- Green — average ≥ 80%
- Blue — average 60–79%
- Red — average below 60%
- Grey — no numeric variables resolved (rare; usually means a misconfigured assessment variable)
Click any pill to load that learner's comment in the card below.
The comment card​
For the selected learner you'll see:
- Their name at the top
- Score badges — every numeric variable that resolved, colour-coded by the same thresholds as the pills, so you can see at a glance whether the comment matches the data
- An
editedchip if you've already modified this comment - The rendered comment body (click to edit, see below)
Quick actions on the comment card​
- Copy (📋) — copies the rendered comment to your clipboard.
- Regenerate (🔄) — re-runs the template for this single learner. Useful if you've edited the template after the initial Generate, or if assessment scores have been updated.
Editing comments​
Click anywhere on the comment text and the card switches to an editable text area. Make your changes, then click Save to persist or Cancel to discard.
Edited comments get an edited chip — handy when reviewing a class to see which ones you've already touched.
If you find yourself writing the same edits across many learners, that's a signal to update the template (or its variables) and Regenerate, rather than fixing each comment by hand. Templates compound; manual edits don't.
Exporting​
Once the batch looks right, hit one of the export buttons in the comments header:
- CSV — one row per learner, suitable for pasting into a school report system or a spreadsheet review.
- Text — plain text, one comment per learner separated by blank lines.
Both formats include all comments currently in the right pane.
Tips​
- Start a Term 1 template now and reuse it. Templates copy forward — most teachers find that a single template per (subject, grade) covers the whole year, with maybe a few words swapped per term.
- Use
list_weakandlist_strongto avoid generic comments. They turn one template into N personalised paragraphs without writing the variants by hand. - Share school-wide once you're happy with one. Toggling Share with school lets colleagues use your template as a starting point — saves them an hour and pushes consistency across reports.
- Regenerate after late mark capture. If a teacher updates an assessment score after you've generated, re-click Regenerate on that learner's pill rather than re-running the whole batch (which would lose any inline edits you've already made on other learners).
- Switch language for parallel-medium classes. The Language field on the template is metadata only — the actual translation is up to you. Duplicate the English template, set Language to Afrikaans, and rewrite the body once. Both versions then live in the dropdown.
Related​
- Class management — selecting the right class to generate against
- For Teachers — overview — back to the teacher index