VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

What Is Vocabulary Coding and Engineering | Can We Test a Definition Like Software Before Changing It?

Yes, important definitions can be tested before they are released—but testing language is not the same as proving it permanently correct. A company can take a proposed meaning for “approved”, “eligible”, “urgent” or “safe”, write sample cases, and check whether independent reviewers classify those cases consistently. It can then compare results with the previous definition. This is similar to regression testing in software, where a change should not silently break behaviour that still matters. The result is especially useful when words determine benefits, payments, automated workflows or safety decisions.

Vocabulary Coding and Engineering treats a definition as a testable agreement with specified boundaries, not as a phrase that magically controls human interpretation. A robust review records the concept, purpose, inclusion criteria, exclusions, evidence, source authority, edge cases, expected outcomes and date of use. The W3C’s Shapes Constraint Language (SHACL) demonstrates how structured data can be validated against declared constraints, while the SKOS standard shows how concepts, labels and notes can be represented. Neither standard alone proves a human definition fair or true. This article converts the analogy into a step-by-step method spanning individual conversations, software systems, institutions and public consequences.

  • Word zoom: Negation, quantity and modal verbs can reverse or narrow a rule.
  • Boundary zoom: Positive examples, non-examples and borderline cases expose hidden assumptions.
  • Schema zoom: Automated validation can check explicit conditions on structured records.
  • Human zoom: Readers can disagree about a concept even when the data schema passes.
  • Regression zoom: Old and new versions may classify the same cases differently.
  • Governance zoom: Authorities, affected people and appeal processes matter alongside tests.
  • Society zoom: A classification rule can determine which experiences become visible in public data.
  • Practical output: A twelve-case test suite, semantic-diff report and safe release procedure.

Begin with the dangerous assumption: everyone knows what “approved” means

Consider an imaginary organisation that pays contractors for approved work. One manager marks work approved when it has been submitted. Another requires a technical inspection, while a third waits for the customer’s sign-off. The field value is the same word, yet its consequences for payment and accountability differ.

Before changing the label, ask the managers to classify a few real or fictional scenarios. The disagreement will reveal whether the organisation actually has one shared concept. Testing starts with exposing that gap, not with writing a longer paragraph and hoping everyone interprets it in the same way.

A definition is a specification only when its limits are visible

A useful working definition for this fictional process might read: “Approved work is a submitted deliverable that passed the documented technical check and received sign-off from the designated reviewer.” This sentence is more testable than “work accepted by management”, but important questions remain. What counts as passing? Which reviewer? Can someone approve their own work? What if the reviewer is absent?

The definition therefore needs accompanying rules and examples. It should not attempt to hide every necessary condition inside one dense sentence. A short public description can point to a more complete operating procedure, much as a software interface points to validation rules.

The first six tests are about ordinary meaning

  • Positive: Deliverable submitted, passed the check and reviewed by the authorised signer.
  • Negative: Deliverable submitted but no technical check was performed.
  • Negative: Technical check failed although a manager casually said “looks fine”.
  • Negative: A reviewer signed who lacked the required authority.
  • Boundary: The check passed but formal sign-off is pending.
  • Boundary: Sign-off was recorded after the reporting cut-off time.

Each example asks an observable question. If reviewers answer differently, record the reason. It may indicate missing data, an unclear definition, conflicting policies or a genuine difference in judgement. The test should not simply declare the most senior person’s intuition automatically correct.

The next six tests are about mistakes and changing conditions

  • Wrong identity: A signature belongs to a different project.
  • Wrong version: The technical check applies to an earlier revision of the deliverable.
  • Revocation: An approval was valid but later withdrawn with a documented reason.
  • Exception: A formally authorised emergency override is invoked.
  • Missing evidence: The database contains approval=true but no audit trail.
  • Mixed system: An external supplier calls “approved” what the company calls “submitted”.

These cases test different failure modes. The correct expected outcomes must be agreed under the applicable rules; they are not universal answers supplied by this article. The aim is to expose places where the term cannot be safely used without a documented exception, clarification or human review.

Zoom 1: the word “not” can outweigh a full paragraph

Compare “approved unless the reviewer objects” and “not approved until the reviewer signs”. Both may appear to describe review, but the default result is different. Under the first wording, silence might be interpreted as approval. Under the second, silence leaves approval pending. That changes who bears responsibility for a missed step.

Other small words carry similar force: “all”, “any”, “only”, “before”, “after”, “may”, “must” and “except”. A definition diff should flag these even when the rest of the text is identical. Automated comparison can highlight changes; a knowledgeable reviewer must determine their real effect.

Zoom 2: semantic regression is not a spellchecker

Spellcheck tells us whether words resemble valid spellings. Ordinary software regression tests tell us whether code continues to behave as expected on specified inputs. A semantic regression test, as used here, asks whether a new definition preserves or intentionally changes the classification and consequences of established example cases.

For every sample, record four things: the case facts, the old expected classification, the new expected classification and the reason any difference is acceptable. A passing result does not mean nothing changed; sometimes the desired release deliberately moves particular cases to another category. The important point is that the change is known and justified.

A worked example: a small threshold with a large impact

Imagine a fictional travel grant requiring a household income below 3,000 units per month. A revised rule increases the threshold to 3,200. Cases at 2,900 remain eligible; a case at 3,100 changes from ineligible to eligible; and a case at 3,300 remains ineligible. Exactly at 3,000 or 3,200, the difference between below and at or below matters.

The number of households affected cannot be inferred from the two thresholds alone. It depends on the actual distribution of incomes and the governing eligibility method. Good vocabulary engineering combines the text diff with a permitted impact calculation and an explanation to affected people.

Zoom 3: SHACL tests structure, not the entire truth of a concept

W3C SHACL is a Recommendation for validating RDF graphs against structured constraints. For example, a record representing an approved deliverable could be required to have one reviewer identifier, one review date and a permitted status value. The official specification defines how shapes and validation reports work.

But an RDF graph that passes such checks could still contain a forged reviewer identifier or an incorrect real-world claim. Structural conformance is not proof of honesty, sound clinical judgement or legal authority. This limitation matters because the word “validated” often sounds much stronger than the actual automated test.

Zoom 4: fairness and affected people require different tests

Suppose a policy treats two applicants with essentially similar circumstances differently because a poorly chosen proxy field is used. A technical validator might accept both records as well formed, yet the policy could still be unfair or unlawful in context. Fairness requires a separate assessment of purpose, evidence, impacts and applicable obligations.

The testing team should consult the people affected and record whether a new rule creates unexpected exclusions. It should not use a confident automated classification as proof that a public decision is just. Data quality and moral legitimacy are related questions, not synonyms.

Zoom 5: test disagreement, not only agreement

A strong pilot gives the same fictional cases to people from different functions—operations, legal, product, customer support and data analysis—without initially telling them the intended answers. Their explanations can reveal competing interpretations. Measuring the extent of disagreement may help prioritise unclear cases.

An apparently perfect agreement rate can be misleading if the examples are too easy or the reviewers all share the same assumptions. Include difficult boundary cases and solicit reasons for disagreement. When judgement is genuinely required, say so; do not invent an objective binary rule where evidence and values remain contested.

Zoom 6: a test suite becomes a living document

As new scenarios appear, the team can add them to the test suite. When definitions are revised, existing cases should be rerun. This is analogous to software tests protecting against repeated bugs. Yet cases should be retired or updated when the underlying policies or scientific knowledge change; the test suite is not a sacred text.

Every change should include an effective date and an owner. Historical reports should remain interpretable under the definitions used when they were produced. A silent retrospective reclassification can create false narratives about trends or performance.

Zoom 7: communicating the change is part of the release

Suppose “customer complaint resolved” changes from “response sent” to “customer confirms the issue is resolved”. A support dashboard may show fewer resolved cases under the new rule, even though employees are working just as hard. Staff and managers need a visible release note explaining which cases now count and how old and new figures compare.

External audiences may also need an explanation if the change affects published statistics or contractual obligations. A software release that updates a field but leaves customer-facing explanations unchanged is incomplete. The wording and its downstream interfaces must move together.

Zoom 8: AI output should be tested against the same spine

An AI assistant might summarise a policy accurately one day and omit a crucial exception in another version. For a high-impact definition, create a compact set of invariants: the scope, threshold, exception, uncertainty and relevant authority must remain visible. Test several paraphrases against the original source, not merely against another generated answer.

The tests should include deceptive simplifications such as replacing “may qualify” with “automatically qualifies” or “under this regulation” with “everywhere”. Those are semantic changes even if an answer is grammatically polished.

Zoom 9: how to recognise test-induced overconfidence

Testing twenty cases does not establish that millions of possible real-world cases will be classified correctly. The sample can miss unfamiliar circumstances, rare exceptions and missing-data problems. A validation report should state coverage and known limitations rather than advertise that the definition is “100% proven”.

The most trustworthy systems include monitoring, appeal and correction channels after launch. Testing reduces known risks; it does not eliminate human ambiguity or uncertainty about future events.

A practical semantic regression report

  • Concept: The identifier and human-readable label.
  • Version: Previous rule and proposed new rule.
  • Purpose: What decision the concept is intended to support.
  • Coverage: Which examples, records and environments were tested.
  • Changed cases: What moved between categories and why.
  • Unchanged cases: Which expected behaviours remain stable.
  • Open disputes: Where reviewers disagreed or evidence is missing.
  • Authority: Who may approve the rule and exceptions.
  • Release: Effective date, updated documents and feedback route.

The ten-step release checklist

  1. Write the current definition and name its owner.
  2. Identify the proposed change and the purpose it serves.
  3. Record examples, non-examples and genuine edge cases.
  4. Specify the facts each classification requires.
  5. Run old and new rules against the same synthetic cases.
  6. Where authorised, estimate effects on real records and affected groups.
  7. Check downstream software, dashboards, contracts and public messages.
  8. Obtain legal, technical or domain review appropriate to the stakes.
  9. Publish the approved version and explain changes in plain language.
  10. Monitor outcomes and preserve a way to correct harmful classifications.

Frequently asked questions

Can a definition be unit-tested?

Specific operational rules can often be tested on explicit examples, including boundary values. But tests cannot settle every linguistic, legal or ethical disagreement or prove a definition permanently correct.

If a data record passes validation, is the underlying claim true?

No. Structural validity checks the declared constraints. Truth requires evidence about what actually occurred, and legal or ethical validity may require further review.

Should old cases always receive the same result after a revision?

No. Some revisions intentionally change eligibility or classification. The difference should be identified, authorised and communicated rather than hidden.

Is semantic regression testing a W3C standard?

Not under this article’s terminology. It is a practical analogy inspired by software testing. W3C SKOS and SHACL provide relevant established mechanisms for organising concepts and validating structured data.

Conclusion: make the edge cases visible before the decision is real

A definition is most dangerous when its familiar words hide untested boundaries. Vocabulary Coding and Engineering invites teams to treat critical terms as inspectable specifications: explain them, test them, record revisions and allow challenge. A test suite cannot replace human judgement or law, but it can prevent avoidable misunderstanding from quietly scaling through digital systems and institutions.

Sources and related reading

Scope note: The examples and term “semantic regression testing” are part of this article’s practical framework. They do not certify a legal, medical, financial or AI system as safe or compliant.