Semantic regression testing, as proposed within eduKate’s Vocabulary Coding and Language Engineering programme, asks whether a change to a definition, translation, instruction, knowledge record or AI-generated explanation has broken a meaning that the system was supposed to preserve. In software engineering, a regression test checks whether an existing expected behaviour still works after a change. Language systems face a related problem: replacing may with must, deleting a condition or silently substituting one technical sense for another can alter a claim or decision even when most of the surrounding words remain unchanged. A language-engineering test makes the intended meaning, expected invariants and deliberately changed properties inspectable.
Learners, educators, researchers and organisations can build a small suite of meaning tests using original expressions, acceptable paraphrases, deliberately altered examples, boundary cases and documented expected interpretations. Test the relevant scope, relationships, units, uncertainty, authority, evidence and provenance before accepting an update. Semantic regression testing is presented here as an educational and engineering synthesis, not a claim to have invented software testing, formal semantics or an established universal measure of language fidelity. Natural-language interpretation is context-dependent; important cases require appropriate human and specialist review. The aim is to detect unintended changes in meaning before they propagate across learners, AI workflows and institutions.
- Word zoom: distinguish a changed label from a changed concept.
- Thought zoom: identify the scope, modality, relationships and evidence that should survive an edit.
- Learning zoom: compare acceptable paraphrases with changes that alter a claim.
- Engineering zoom: build versioned reference cases, negative cases and dependency tests.
- AI zoom: check generated summaries, translations and structured outputs against the source and intended task.
- Civilisation zoom: prevent silent semantic changes from distorting records, decisions and historical comparisons.
- Practical action: create a semantic test register and rerun it whenever a consequential definition or workflow changes.
Reading route
- 1. Why meaning can break even when the sentence still looks correct
- 2. A semantic mutation laboratory: change one expression at a time
- 3. Identify the meaning dimensions that matter
- 4. Create a reference corpus without pretending there is one universal answer
- 5. A proposed test-register format
- 6. What can formal validation do, and what can it not do?
- 7. Semantic regression in AI-generated summaries and translations
- 8. Definition changes: audit the downstream dependencies
- 9. Teach semantic tests with the vocabulary ladder and Fencing Method
- 10. A four-week pilot and measurable evaluation
- 11. All zoom levels and the frontier of meaning assurance
1. Why meaning can break even when the sentence still looks correct
A sentence can remain grammatical while its meaning changes. Suppose a source states that a particular resource was tested with one learner under specified conditions. A later summary says that the resource has been proven effective for learners. The revised statement is fluent but changes the kind and scope of the evidence.
The Age 17 research and reproducibility chapter distinguished observations, hypotheses and broader conclusions. Semantic regression testing develops a way to retain those distinctions across later revisions. The critical issue is not whether two sentences contain the same words. It is whether the revised expression supports the interpretations that the task requires and avoids introducing unsupported ones.
Sometimes an intentional change is desirable. If a definition no longer serves its stated purpose, revise it through an appropriate process and document the consequences. A regression test is not an instruction to freeze language. It helps distinguish an intended revision from an accidental failure.
The first task is to specify which properties should remain invariant. An accessible paraphrase may change the vocabulary and sentence structure while preserving the relevant claim. A technical correction may deliberately change a previous conclusion. The expected outcome must reflect the purpose of the revision.
2. A semantic mutation laboratory: change one expression at a time
Start with a fictional statement: Two of six resources were independently checked against the stated examples on Monday. The important information includes the number checked, the size of the collection, the kind and scope of the check, and the time. A paraphrase can preserve those properties without repeating the original wording.
Create deliberately altered versions by changing one important component. This is a classroom analogue of mutation testing: introduce a controlled error and examine whether the review procedure detects it. A test that accepts every altered expression does not provide much assurance.
| Version | Change | Expected review |
|---|---|---|
| Two resources in a set of six underwent the specified independent check on Monday | Paraphrase | Accept for the stated purpose |
| All six resources were independently checked | Quantity expanded | Reject: scope changed |
| Two resources were checked against every possible example | Test coverage expanded | Reject: unsupported universality |
| Two resources may have been checked | Observed event weakened to possibility | Review modality change |
| Two resources were checked by their original authors | Independence changed | Reject: reviewer relationship altered |
| Two of six resources were independently checked | Time omitted | Accept only if time is irrelevant to the intended use |
These expected results are based on the invented source and the specified task; they are not universal judgements about every use of the sentences. The omitted time might be harmless in one summary and consequential in an audit. This is why a semantic test should retain the context of its acceptance criteria.
The learner can build the same exercise from a safe science explanation, an ordinary story or a fictional classroom rule. Avoid private records and real administrative decisions. Start with a few clearly distinguishable changes before introducing ambiguous cases.
3. Identify the meaning dimensions that matter
Useful dimensions include the identity of the entity, the concept sense, the type of relationship, the actor, the action, the direction of a condition, the quantifier, the time, units, uncertainty, source, authority and relevant exceptions. Not every task requires every dimension.
The Age 13 chapter on formal semantics and scope supplies examples of quantifiers, modality and conditions. A change from every to some can weaken a claim. Moving only can restrict a different component. Replacing a prediction with a report of an observed event can change the type of statement altogether.
For a numerical explanation, preserving units and measurement conditions may be critical. For a translated rule, the identity of the authority, scope and exceptions may matter. For a story, preserving perspective or an ambiguity intended by the author may be more important than formalising every expression.
Design the test around the intended function. A literal word match is often too restrictive for a paraphrase task and too weak for detecting a change of reference or implication. Semantic assurance concerns relevant meaning, not mere textual sameness.
4. Create a reference corpus without pretending there is one universal answer
A reference corpus is a collection of examples with documented expected interpretations for a specified task. Include straightforward positive examples, valid paraphrases, examples that contain clear errors, cases with insufficient information and cases with several reasonable readings.
Keep the original expression and the rationale for the expected judgement. If two reviewers disagree, investigate the source of disagreement. Perhaps the intended context was missing, the rubric did not address the ambiguity or the text genuinely permits multiple interpretations.
Use an explicit outcome such as accepts, rejects, requires clarification or intentional change. Do not force a binary answer where the information does not justify one. The reference set should make uncertainty visible rather than reward unsupported certainty.
Separate examples used to refine the review procedure from held-out examples used to examine whether the procedure transfers. A test suite tailored to a tiny set of known phrases may perform poorly on unfamiliar cases. Report the limits of coverage honestly.
5. A proposed test-register format
Give each test an identifier, an original expression, a source or version, a purpose, the meaning dimensions that must survive, the candidate expression, the expected interpretation, the observed interpretation and a decision with reasons. Where appropriate, record the reviewer and unresolved questions.
For example, test Q-01 might concern a quantifier in a fictional resource report. The invariant is the scope of the checked collection. A candidate saying all resources were checked fails if the source only establishes two checks. Test P-02 might concern permission: a suggestion to publish must not become a record of publication.
Store the acceptance criteria separately from the candidate result. If the expected meaning changes after a new definition is adopted, record that intentional change and review affected tests. Do not silently replace expected outcomes to make a failing result pass.
The Age 14 knowledge architecture chapter explains why stable concept identifiers, provenance and labelled relationships help make such dependencies visible. A paper register is sufficient for a learning exercise; larger systems may benefit from machine-readable records.
6. What can formal validation do, and what can it not do?
Some components of a structured knowledge resource can be checked automatically. The W3C Shapes Constraint Language (SHACL) specification describes how constraints can be applied to RDF graphs and how validation reports can identify violations. A project might require a concept record to have a suitable identifier and a source field, or restrict the type of value used for a particular property.
Such validation can reveal missing or malformed data. It cannot automatically establish that a cited source supports the record, that a proposed concept is useful, or that a rule is fair. A structurally conforming graph can still contain false information or inappropriate relationships.
The W3C SKOS Reference also illustrates why mapping relationships matter. Its exact-match property is transitive, whereas close-match is not. A chain of close relationships must not be treated as proof that the end concepts are interchangeable. This is a specific example of a testable relationship constraint.
Use automated checks where the expected structural condition is explicit. Use source verification, domain expertise and human review where meaning depends on interpretation, evidence or consequences. Treat these as complementary forms of assurance rather than competing claims about whether machines or people are always correct.
7. Semantic regression in AI-generated summaries and translations
An AI-generated summary may omit a qualifier, conflate two entities or transform a proposal into an apparent decision. A translation may preserve a familiar label while changing the relationship it expresses. In both cases, inspect the source and the target against the intended use.
Start with a small fictional source containing a number, a condition and an exception. Ask for an accessible summary. Compare the result with the original: which components remain, which are omitted and which are newly asserted? A model’s agreement with its own previous answer is not independent confirmation.
An automated similarity score may be useful for identifying candidates for review, but high similarity does not establish equivalence. Two sentences that differ by not can have nearly identical words and opposite assertions. Two accurate paraphrases may look quite different at the surface level.
For consequential materials, preserve the source, model or tool version when relevant, task specification, output and review result. Require appropriate human approval before accepting interpretations that affect other people. The Age 18 human–AI knowledge governance chapter develops the wider coordination framework.
8. Definition changes: audit the downstream dependencies
Suppose a fictional learning centre changes completed from submitted to reviewed and accepted. That intentional revision alters the interpretation of a performance indicator. It may also affect reports, notifications, training material and records that relied on the older criterion.
The Age 15 institutional language chapter demonstrated why different measurements can produce different counts from the same underlying records. A semantic regression suite can test that historical records remain interpretable, revised counts are labelled correctly and comparisons do not imply a change in performance without appropriate evidence.
Before accepting the new definition, identify dependent resources, classify the intended changes, retain the earlier version where needed and check boundary cases. If a dependent expression should change, update its expected outcome transparently. If it should remain stable, a changed result is a reason for investigation.
The companion Who Defines AI? illustrates why research concepts, commercial descriptions and formal regulatory definitions may have different purposes and scope. Versioned checks are especially valuable where a single label occurs across several systems. The relevant authority and actual characteristics still need to be evaluated independently.
9. Teach semantic tests with the vocabulary ladder and Fencing Method
The eduKate L0–L15 vocabulary ladder is a proposed educational framework that includes understanding, transfer, formalisation, semantic revision, critique, governance and pioneering expression. A meaning test provides an activity through which learners can practise several of these operations on a particular word or sentence.
The Fencing Method builds a base expression by adding detail, tone, logical relationships and transfer. Add one element at a time and examine whether it preserved, qualified or intentionally changed the base meaning. An added reason must be supported; a changed quantity must be justified.
Try the sentence The library may accept the request. Change may to must. Ask which function has changed and who, in the fictional setting, has authority to establish such an obligation. Next create a paraphrase that preserves permission or possibility in the specified context. This exercise connects expressive construction with checking.
Young learners can use cards, pictures and familiar examples. Older learners can construct test matrices, structured concept records and supervised technical experiments. Select the next appropriate operation rather than requiring a particular level by age.
10. A four-week pilot and measurable evaluation
In week one, choose a small source collection and identify the meaning dimensions relevant to its intended use. Create clear examples and document expected interpretations. In week two, introduce controlled changes and valid paraphrases, and ask a second person to assess them.
In week three, review disagreements and construct a small held-out set. Record which important alterations were detected, which were missed and which acceptable paraphrases were incorrectly rejected. If the reference decisions are uncertain, retain the uncertainty rather than inventing ground truth.
In week four, revise the procedure, repeat the held-out evaluation and record the limitations. Report counts with denominators and examples of remaining errors. A small informal pilot does not establish universal validity or a guaranteed reliability improvement.
Useful measures can include missed consequential changes, unjustified rejections of valid variants and cases appropriately referred for clarification. These measures depend on the quality and scope of the reference cases. A high pass rate on easy examples is not enough to establish safety for more difficult tasks.
11. All zoom levels and the frontier of meaning assurance
At the individual zoom, a learner checks whether a sentence still expresses the intended thought. At the family and classroom zooms, people can compare explanations and detect misunderstandings. At the organisation zoom, meaning tests help inspect whether updated documentation, classifications and derived reports remain appropriate.
At the international and historical zooms, the same discipline helps preserve important qualifications during translation, crosswalk construction and archival revision. At the civilisation zoom, reliable knowledge transfer depends on retaining the ability to reconstruct and challenge the meaning of the records people inherit.
This is a frontier direction for the eduKate framework: connect expressive learning, structured knowledge, software-inspired testing and human judgement. It is not a proof that all language can be formally verified or that one semantic evaluator can replace specialist review.
The next companion chapter extends this work into human–AI interoperability. If meanings can be specified and tested, they can be handed between people and tools with clearer responsibility, acceptance criteria and repair routes. The objective remains greater shared understanding and independent judgement, not the elimination of human interpretation.