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.

Vocabulary Coding And Language Engineering | Can We Build a Minimum Viable Meaning Engine and Test Its First Semantic Invariants?

A minimum viable meaning engine is a deliberately small computational demonstration of Vocabulary Coding and Language Engineering. Rather than claim to understand every sentence or reconstruct a human mind, it checks whether two supplied structured records preserve a few explicitly defined semantic properties. For example, a fictional record stating that two completed sessions totalled thirty minutes can be compared with a record expressing the same duration as half an hour. A record changing the duration to two hours, or changing observed activity into planned activity, must not be accepted as the same meaning merely because it uses familiar words.

This companion turns selected ideas from the eduKate vocabulary-engineering architecture into an executable reference exercise. It defines a restricted input representation, normalises compatible duration units, compares mandatory fields and returns ACCEPT, REJECT or REVIEW. The JavaScript demonstration was executed against twelve synthetic cases during article preparation; all twelve matched their specified reference outcomes. That is a limited implementation check on invented structured records, not evidence that the engine can parse arbitrary language, verify external facts, improve student outcomes or operate as a deployed production service. Its value is to establish a small, inspectable bridge between vocabulary, compositional thought, programming and the responsible transfer of knowledge at every zoom level.

  • Word zoom: assign a scoped identity and version to a concept.
  • Thought zoom: represent the subject, quantity, status, condition and evidence reference explicitly.
  • Learning zoom: compare equivalent descriptions without relying on surface spelling.
  • Engineering zoom: normalise only declared units, test invariants and preserve missing-information states.
  • Human–AI zoom: distinguish a structured comparison from source verification or permission to act.
  • Civilisation zoom: use small inspectable components as research foundations rather than claim a complete language infrastructure.
  • Practical action: run the twelve supplied cases, add unfamiliar examples and document what the engine cannot determine.

Reading route

1. Why the first engine should be small

The previous companions developed a broad proposed architecture: registries, intermediate representations, meaning contracts, benchmarks, independent validation and refactoring. The vocabulary refactoring companion established that a useful change must preserve specified interpretations or document an intentional migration. This chapter takes a narrow slice of that architecture and implements it.

The first engine accepts a human-prepared structured source record and a human-prepared candidate record. It compares a duration and six mandatory contextual fields. It does not accept arbitrary prose as an input requiring automatic interpretation. That boundary is essential: a working comparator on explicit fields is different from a natural-language understanding system.

A small prototype allows a researcher to identify precisely what is implemented, inspect the procedure and reproduce a test. If the demonstration fails, it can be corrected without claiming that an entire theory of language has been disproved. If it passes, it supports only the narrow implementation claim.

The longer-term research question is whether appropriately constructed representations and checks can improve human learning, reduce consequential meaning errors and support knowledge transfer. The empirical pilot companion explains why those questions require separate studies.

2. Define the meaning representation and its contract

The ambiguity-aware intermediate representation companion considered how selected semantic properties can be represented explicitly. This demonstration uses seven compared properties: concept identity, concept version, subject, observed or planned status, condition, evidence reference and duration in seconds. The input duration is supplied as a value and a unit.

The prototype adopts a specific contract. It accepts exact matches for the six contextual fields and permits exact duration equivalence under a limited unit conversion. It accepts only the declared unit names second, minute and hour. Values must be nonnegative finite numbers that convert to safe whole numbers of seconds. Missing fields lead to review unless a known mismatch already establishes non-equivalence.

Input fieldIllustrative valueIntended comparison
conceptsession-durationSame defined concept
versionv1Same referenced version
subjectexercise-ASame exercise identity
statusobservedSame claim status
conditiontwo completed sessionsSame explicit condition token
evidencefictional-record-01Same evidence reference
value and unit30 minuteEquivalent duration after conversion

The contextual strings are opaque comparison tokens. This engine does not recognise that different strings may express equivalent conditions. It treats a different evidence reference or definition version as non-equivalent under this strict task, not as evidence that the alternative reference or version is false.

The versioned meaning registry companion explains the need for persistent identifiers and meaningful scope. A real registry would need actual record resolution and governance. Here the identifiers are invented and the engine does not retrieve their contents.

3. Three outcomes, not a universal truth value

ACCEPT means that the known required fields of the supplied records match under the declared conversion rules. REJECT means that at least one known required field differs. REVIEW means that the comparison cannot establish equivalence because a field is missing or the input fails a supported format check. If a definite mismatch and a missing field coexist, the implementation reports REJECT and also identifies the missing field.

These results concern the specific equivalence contract. ACCEPT is not a guarantee of truth, authorised action, appropriate evidence or general semantic equivalence. REJECT is not a declaration that the candidate is false. A planned duration and an observed duration can both be accurately reported while still representing different claims.

The compositional meaning contracts companion distinguishes what an output establishes from what the next component may require. A receiving system should not treat the result of this comparator as proof of external facts or readiness.

Additional fields outside the stated comparison are ignored. This is a deliberate restriction of the prototype, not a recommendation for high-stakes data intake. A broader implementation would require a validated schema, a defined extension policy and appropriate review of any unmodelled information.

4. Executable JavaScript reference exercise

The following self-contained code implements the narrow comparison. It can be copied into a suitable JavaScript runtime without installing packages. It performs no network requests, accesses no external records and takes no external action. The source and all test inputs are invented.

function normalise(record) {
  const textFields = ["concept","version","subject","status","condition","evidence"];
  if (!record || typeof record !== "object" || Array.isArray(record)) return {error:"invalid record"};
  const result = {};
  for (const key of textFields) {
    const value = record[key];
    if (value === undefined || value === null) result[key] = null;
    else if (typeof value === "string" && value.trim()) result[key] = value;
    else return {error:"invalid " + key};
  }
  const factors = {second:1, minute:60, hour:3600};
  const v = record.value, u = record.unit;
  if (v === null || v === undefined || u === null || u === undefined) result.seconds = null;
  else if (typeof v !== "number" || !Number.isFinite(v) || v < 0 ||
           !Object.prototype.hasOwnProperty.call(factors,u) ||
           !Number.isSafeInteger(v*factors[u])) return {error:"invalid duration"};
  else result.seconds = v*factors[u];
  return {fields:result};
}

function compare(source, candidate) {
  const s=normalise(source), c=normalise(candidate);
  if (s.error || c.error) return {outcome:"REVIEW", reasons:[s.error || c.error]};
  const changed=[], missing=[];
  for (const key of Object.keys(s.fields)) {
    if (s.fields[key]===null || c.fields[key]===null) missing.push(key);
    else if (s.fields[key]!==c.fields[key]) changed.push(key);
  }
  if (changed.length) return {outcome:"REJECT", reasons:changed.concat(missing.map(k=>"missing "+k))};
  if (missing.length) return {outcome:"REVIEW", reasons:missing.map(k=>"missing "+k)};
  return {outcome:"ACCEPT", reasons:[]};
}

const source = {
  "concept": "session-duration",
  "version": "v1",
  "subject": "exercise-A",
  "status": "observed",
  "condition": "two completed sessions",
  "evidence": "fictional-record-01",
  "value": 30,
  "unit": "minute"
};

const cases = [
  [
    "P01",
    "Identical structured record",
    {},
    "ACCEPT"
  ],
  [
    "P02",
    "Equivalent half-hour duration",
    {
      "value": 0.5,
      "unit": "hour"
    },
    "ACCEPT"
  ],
  [
    "P03",
    "Equivalent 1,800 seconds",
    {
      "value": 1800,
      "unit": "second"
    },
    "ACCEPT"
  ],
  [
    "P04",
    "Duration changed to two hours",
    {
      "value": 2,
      "unit": "hour"
    },
    "REJECT"
  ],
  [
    "P05",
    "Observed becomes planned",
    {
      "status": "planned"
    },
    "REJECT"
  ],
  [
    "P06",
    "Different evidence reference",
    {
      "evidence": "fictional-record-02"
    },
    "REJECT"
  ],
  [
    "P07",
    "Completion condition changed",
    {
      "condition": "two scheduled sessions"
    },
    "REJECT"
  ],
  [
    "P08",
    "Unreviewed definition version",
    {
      "version": "v2"
    },
    "REJECT"
  ],
  [
    "P09",
    "Missing evidence",
    {
      "evidence": null
    },
    "REVIEW"
  ],
  [
    "P10",
    "Unrecognised duration unit",
    {
      "unit": "session"
    },
    "REVIEW"
  ],
  [
    "P11",
    "Missing duration value",
    {
      "value": null
    },
    "REVIEW"
  ],
  [
    "P12",
    "Different exercise",
    {
      "subject": "exercise-B"
    },
    "REJECT"
  ]
];

for (const [id, label, patch, expected] of cases) {
  const result = compare(source, {...source, ...patch});
  console.log(id, label, expected, result.outcome, result.reasons);
  if (result.outcome !== expected) throw new Error(id + ' mismatch');
}

The test cases specify expected outcomes separately from the comparison function. For each case, a patch is applied to a copy of the source record and the resulting structured candidate is compared with that source. The test checks the returned outcome against the predefined reference outcome.

Only the declared conversion factors are used. Whole-second precision is the chosen restriction. A duration requiring finer precision, or an unrecognised unit such as session, is not interpreted by guessing. A broader measurement model would need its own representation and tests.

5. The actual twelve-case implementation check

During preparation of this article, the function above was executed using the twelve supplied cases. The observed outcomes matched their predefined expected categories in all twelve cases. The table below reports the actual deterministic execution of this synthetic example set, not student or AI-model benchmark results.

CaseChange or candidateExpectedObservedReason
P01Identical structured recordACCEPTACCEPTAll required normalised fields match
P02Equivalent half-hour durationACCEPTACCEPTAll required normalised fields match
P03Equivalent 1,800 secondsACCEPTACCEPTAll required normalised fields match
P04Duration changed to two hoursREJECTREJECTseconds
P05Observed becomes plannedREJECTREJECTstatus
P06Different evidence referenceREJECTREJECTevidence
P07Completion condition changedREJECTREJECTcondition
P08Unreviewed definition versionREJECTREJECTversion
P09Missing evidenceREVIEWREVIEWmissing evidence
P10Unrecognised duration unitREVIEWREVIEWinvalid duration
P11Missing duration valueREVIEWREVIEWmissing seconds
P12Different exerciseREJECTREJECTsubject

Observed results: 3 ACCEPT, 6 REJECT and 3 REVIEW. Agreement with the specified reference outcomes was 12/12 on this authored suite. The examples and the implementation were developed together; this is a development-set check, not an independent held-out evaluation.

The semantic benchmark companion explains why a larger evaluation needs separately constructed and reviewed reference cases, unfamiliar examples and explicit denominators. Reporting a perfect score on a small authored test suite must not be confused with demonstrating general reliability.

6. What the prototype does not do

The engine does not extract meaning from arbitrary sentences. For example, it cannot decide on its own that the phrase the activity took half an hour refers to the same exercise and conditions as the original record. A human or separate interpretation process must supply the structured fields. That interpretation can itself contain errors.

It does not verify that fictional-record-01 exists, that it supports the duration claim or that the observation actually occurred. Matching source identifiers proves only that the compared fields contain the same identifier. The knowledge supply-chain assurance companion distinguishes provenance, integrity, fidelity, evidence and permitted use.

It does not determine which definition is correct, establish compatibility across two versions or recognise every possible equivalence. An unreviewed version change is conservatively rejected for this specific exact-version comparison. A future version-aware component could evaluate approved mappings without silently treating all revisions as identical.

Finally, the prototype does not measure intelligence, comprehension or educational improvement. Those outcomes require appropriate observations of people and tasks. A structured record is a representation of selected meaning properties, not the whole of human thought.

7. How to build the next tests

Add a case where a condition is missing, a case where both records contain the same unknown field, and a case where one known mismatch coexists with missing information. Check that missing information is never accepted merely because it appears in both records.

Add zero duration, a negative value, a non-finite number and a duration that cannot be expressed as a whole number of seconds. Test deliberately different contextual labels that may nevertheless be semantically related. The current engine should not pretend to know their equivalence.

Create a separate collection of cases with another reviewer, without showing them the implementation’s results first. Preserve the expected outcome and rationale. The independent validation companion explains why reviewing the same assumptions is not the same as obtaining independent evidence.

Report the distinct classes of errors and their causes. The semantic observability companion proposes keeping observable inputs, transformations and review outcomes so failures can be examined. The semantic regression testing companion provides a route for rerunning the checks after changes.

8. The path from classroom activity to human–AI interoperability

A younger child can use pictures or objects to distinguish two sessions from the duration of those sessions. An older learner can compare minutes, hours and seconds, identify which contextual facts remain unchanged and explain why a planned activity is different from an observed one.

The Fencing Method offers a route for constructing increasingly informative sentences: begin with a clear meaning, add the quantity, unit, status and relevant condition, then examine whether a new expression preserves them. The eduKate L0–L15 mastery ladder provides a proposed set of instructional operations, not a compulsory developmental scale.

At the organisational zoom, a reviewed representation may support a larger information workflow. The prototype could become one limited checking component, provided its interfaces, error handling and applicable requirements are documented. Human reviewers and other components would still be necessary for interpretation, factual evaluation and governance.

At the civilisation zoom, the principle is modularity with humility. Build useful components that establish specific results, preserve the evidence and conditions needed by the next component, and do not claim capability beyond what has actually been tested. The Age 18 human–AI governance chapter places that idea within the wider proposed organisation of shared intelligence.

9. A minimum viable research programme

Phase one is the small reference implementation presented here. Phase two would add independent case construction, clearer input validation and a separate process for reviewing contextual interpretations. Phase three could examine selected interfaces with meaning registries, dependency records and approved mappings. Phase four would test a narrowly defined learning or knowledge-transfer outcome using an appropriate comparison design.

These later phases are proposals, not completed work. If any required source, tool or interpretation is unavailable, a system should report the narrower supported result rather than invent the missing information. The semantic resilience companion develops that principle.

Every new component should have a defined question, acceptance criteria, reproducible examples and a route for correction. Do not introduce a more complex architecture merely because it sounds closer to a universal language system.

The next frontier is to develop an inspectable interface between a natural-language statement and a reviewed structured representation. That is a separate and substantially harder problem from comparing two already structured records. The vocabulary-engineering programme advances when it can distinguish those achievements and test each one honestly.