Grammar, schema, constrained decoding, syntactic validity and semantic validation are different layers of language engineering. A grammar describes allowable structures; a schema specifies the expected shape and constraints of a data object; constrained decoding limits the outputs a model can generate according to an implemented constraint. None automatically proves that the resulting statement is true, that its meaning was preserved or that its proposed action is authorised. As AI moves from answering questions to supplying information to other systems, this distinction becomes a practical foundation for dependable intelligence.
The next frontier in vocabulary is to make the important distinctions in language survive a transition from human expression to machine-readable representation, verification and use. OpenAI’s Structured Outputs documentation distinguishes adherence to a supported JSON Schema from correctness of the values and business rules outside that schema. eduKate’s Vocabulary Coding and Engineering (VCE) framework builds on this gap as a proposed research programme: preserve the source, subject, condition, scope, unit, evidence and uncertainty of a claim while allowing it to be processed. This is not a claim that a universal semantic compiler already exists.
- Grammar: rules defining acceptable structures in a particular formal language.
- Syntax: the arrangement and well-formedness of an expression.
- Schema: declared requirements for the structure and permitted properties of data.
- Constrained decoding: controlling generation so that completed outputs satisfy implemented structural constraints.
- Semantic validity: whether an interpretation satisfies a specified meaning-related requirement.
- Grounding: the relationship between a claim and its relevant evidence or referent.
- Authorisation: permission to act, separate from successful generation and validation.
- Frontier question: can a meaning-aware validation layer catch consequential errors that ordinary schema checks cannot?
Chapter index
- 1. Begin with a form that looks perfect
- 2. Grammar, syntax and schema answer different questions
- 3. Constrained decoding: control the space of possible expressions
- 4. Six different checks before a statement becomes useful
- 5. A worked semantic regression example
- 6. Missing, unknown and not applicable are not empty synonyms
- 7. A vocabulary becomes an interface contract
- 8. Text zoom TX0–TX6: preserve the proposition rather than the surface
- 9. Civilisation zoom Z0–Z2: a word becomes a decision
- 10. Civilisation zoom Z3–Z6: structured language becomes infrastructure
- 11. Ztime: valid yesterday may not mean valid today
- 12. A frontier experiment: semantic validation beyond the schema
- 13. Measure usable intelligence, not merely output compliance
- 14. Four-week learning programme and open questions
- Comparison table
- Conclusion
- References
1. Begin with a form that looks perfect
Imagine an imaginary library form with a required field for the date a book was returned. A language model fills it with a correctly formatted date. The date exists, the field is present and the entire object passes its structural check. Yet the original document records the date on which the book was borrowed, not returned. The program accepts an object whose shape is right and whose proposition is wrong.
The interesting error is not a spelling mistake. It occurs because one event has been substituted for another. Human language depends on these distinctions, and software often acts on the fields it receives. A vocabulary engineer must ask how the event type and supporting evidence remain attached to the value as it travels from the original source into a machine-readable record.
2. Grammar, syntax and schema answer different questions
A formal grammar specifies ways in which symbols can be combined into admissible expressions. Syntax describes the structure of those expressions. JSON supplies a syntax for representing data; a JSON Schema can add constraints about expected properties, types and values. Natural-language grammar serves a related but much broader set of linguistic purposes. Do not assume that the grammar of a programming language captures all the meaning of ordinary language.
A schema might say that a field called status accepts only pending, confirmed or unknown. That helps prevent unsupported spellings or categories. It cannot, without additional evidence and rules, tell whether a particular order really has been confirmed. The allowed label and the condition under which the label applies are distinct pieces of knowledge.
3. Constrained decoding: control the space of possible expressions
Autoregressive models generate sequences through successive token predictions. An implementation of constrained decoding can restrict admissible next tokens according to the current prefix and a formal constraint. OpenAI’s technical explanation of Structured Outputs describes an approach using grammar-based constraints. Its API documentation makes clear that supported schemas have defined limitations and that refusals and incomplete responses require handling.
This is a significant technological capability. An application can receive data in a predictable structure instead of attempting to recover arbitrary formatting from a paragraph. However, the guarantee is bounded by the supported constraint and successful completion. Structural success is not a general guarantee of truth, usefulness, legal compliance or safety. A downstream system must still evaluate the relevant claims.
4. Six different checks before a statement becomes useful
Consider a fictional record stating that a person has completed an imaginary library induction. A syntax check asks whether the record can be parsed. A schema check asks whether the required fields and permitted values are present. A domain check asks whether the values obey the stated business rules. A grounding check asks whether the source supports the particular claim. A meaning-preservation check asks whether the original scope and conditions survived the transformation. An authority check asks whether the receiving system is entitled to perform the proposed action.
These tests can fail independently. A record with a valid date could refer to the wrong event. A supported claim could concern the wrong person. An accurate instruction could be outside the receiving actor’s permission. The distinction prevents a successful early-stage check from being used as a certificate of the whole process.
5. A worked semantic regression example
Imagine the source reads: ‘Members may reserve a room after receiving written confirmation, and the reservation applies only on the specified date.’ Output A records permission after confirmation, with the specified date. Output B says members are permitted to reserve rooms without conditions. Both can fit a schema with fields for subject, status and date. Only A preserves the source’s conditional relationship in the fictional exercise.
A meaning-aware test could compare the condition, actor, action, time and commitment strength of each representation. The expected answer must be independently established from the source; the model producing the record should not be its sole evaluator. This is a toy semantic regression case, not experimental proof that a system can recognise every meaning change.
6. Missing, unknown and not applicable are not empty synonyms
A schema may permit an empty value, but the reason for the absence can be important. A source might never mention the date, the date might be withheld, or the field might not apply. A record that treats each as zero, false or a blank string can silently change the meaning. A model may even invent a value when forced to populate a field that the source cannot support.
Design for honest incompleteness. The representation can include states such as observed, unknown, not applicable and disputed, where they are appropriate to the domain. Preserve the original evidence and explain which states have been inferred. A schema that permits uncertainty can help communication, but choosing the right state still requires an appropriate evaluation.
7. A vocabulary becomes an interface contract
When software consumes terms such as completed, confirmed, valid and authorised, each label participates in a larger interface. A change in definition can alter which downstream actions occur, even if the field name and type remain unchanged. In that sense, vocabulary becomes part of the operating contract of a system.
The proposed VCE approach is to associate concept identifiers with definitions, scope, examples, exclusions, source versions and intended uses. A schema version alone cannot explain every semantic change. A versioned meaning record can help reveal when a label has acquired a different interpretation. The approach requires governance and testing; it is not a substitute for the applicable domain’s authoritative specifications.
8. Text zoom TX0–TX6: preserve the proposition rather than the surface
At TX0, approved is a word. At TX1, approved for review identifies a phrase. At TX2, a sentence states a particular object’s status and conditions. At TX3 and TX4, surrounding passages provide relevant qualifications and evidence. At TX5, the document establishes the complete context. At TX6, multiple sources and institutions supply a wider network of interpretation.
A structurally valid object may retain TX0 while losing the TX2 condition or the TX5 authority. A meaningful transfer does not require reproducing every word, but it must preserve the information needed for the intended use. The eduKate zoom model is an organising proposal for identifying these boundaries, not an established universal numerical scale.
9. Civilisation zoom Z0–Z2: a word becomes a decision
At Z0, an individual reads a message and interprets its meaning. At Z1, two people coordinate a task using a shared set of terms. At Z2, a group records responsibilities and decisions in forms or other shared documents. A missing condition can create confusion even when everyone uses the same vocabulary.
Education can train people to distinguish a well-formed sentence from a supported statement. The Fencing Method develops this skill through counterexamples: a correct format with a wrong value, a true fact with a wrong scope and an accurate statement with no permission to act. Understanding these distinctions is more important than merely recognising technical terminology.
10. Civilisation zoom Z3–Z6: structured language becomes infrastructure
At Z3, organisations exchange machine-readable records and use them to coordinate services. At Z4, public institutions need accurate interpretations of rules, eligibility and observed outcomes. At Z5, international networks exchange records across languages and legal frameworks. At Z6, future generations require information that remains intelligible after its original formats and systems change.
When an AI-generated record crosses an institutional boundary, its errors can be multiplied by automation. A vocabulary system that preserves scope and evidence could reduce some such errors, but its performance needs to be tested. This connects VCE with the Second Intelligence Pool: human and machine capabilities are more useful together when the information passed between them remains reliable.
11. Ztime: valid yesterday may not mean valid today
At T0, a source document and its definitions exist. At T1, an extraction creates a structured record. At T2, a new source version may change the original condition. At T3, a receiving system may reinterpret a field. At T4 and beyond, formats and definitions may evolve. These are possible transitions rather than a prescribed lifecycle.
Keep the source version, extraction time, effective date and validation method. A structural check performed against an earlier schema does not establish that a later use is appropriate. Where a definition changes, record the relationship between versions rather than silently reinterpret historical records. Meaning conservation must respect time as well as format.
12. A frontier experiment: semantic validation beyond the schema
Create a synthetic test corpus of fictional policies and harmless administrative notices. For each passage, independently annotate its actor, action, scope, condition, commitment, time and evidence. Generate two sets of transformations: ones that preserve meaning and ones that deliberately change a single consequential distinction. Keep the same schema for both sets so that structural validity cannot distinguish them.
Compare a schema-only baseline with a proposed VCE validator on held-out examples. Measure detection of meaning-changing edits, false alarms on equivalent paraphrases, unresolved cases and reviewer time. Split by original source rather than letting close variants of the same source appear in both training and evaluation. Include independent annotation and disagreement resolution. This is an experimental design; no improvement is claimed until the test is actually run and reviewed.
13. Measure usable intelligence, not merely output compliance
A system may produce a high percentage of structurally valid records while requiring substantial human correction. Another may abstain when evidence is inadequate and produce fewer usable records initially. Evaluate the whole task, including correctness, coverage, review effort and the consequences of downstream mistakes.
In eduKate’s conceptual EnDist framework, net usable capability reaching a recipient is what matters after rework and coordination losses. A structure-only improvement can reduce formatting friction; a meaning-aware layer might reduce other losses. EnDist is a proposed nonphysical organising concept, not a validated unit of intelligence. The experiment should test whether actual readers or receiving systems benefit.
14. Four-week learning programme and open questions
Week one: distinguish a grammatical expression, a valid data object and a true statement with fictional examples. Week two: construct simple paper schemas and identify the domain constraints they cannot establish. Week three: annotate meaning-changing transformations and equivalent paraphrases. Week four: compare independently reviewed outputs and document failures, uncertainty and scope. Do not connect toy examples to live systems that perform consequential actions.
The frontier questions remain open: how should a system represent context that cannot easily fit a fixed schema? How should disagreement among reviewers be handled? Which checks remain reliable in new domains and languages? A vocabulary engineer should make these limitations measurable, not assume that formal structure has solved human meaning.
Comparison table
| Term | Meaning or question | Does not establish |
|---|---|---|
| Syntax | Can the representation be parsed? | Truth |
| Schema | Does the object satisfy the specified structure? | Correct values |
| Domain rule | Are declared domain constraints satisfied? | All relevant contextual conditions |
| Grounding | Does evidence support the claim? | Permission to act |
| Meaning preservation | Were relevant distinctions retained? | Universal equivalence |
| Authorisation | May the actor perform the action? | Successful execution |
| Outcome evidence | What actually occurred? | Correctness of every earlier interpretation |
Conclusion
The frontier is not simply teaching AI to produce better-formatted language. It is designing interfaces where the consequential parts of meaning remain available for independent inspection. A perfectly valid data structure can still carry the wrong world model. Vocabulary Coding and Engineering proposes a way to investigate that gap with evidence, tests and explicit limitations.
Continue reading
- What is Vocabulary? Definition and Explanation
- Scale, scope, resolution, granularity and zoom level
- Schema, type, contract, interface and protocol
- The semantic commit boundary in AI agents
- The Second Intelligence Pool
Frontier technology: companion articles
- Machine unlearning and semantic revocation
- Selective prediction, abstention and deferral
- Speculative decoding and semantic acceptance