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 | Could a Semantic Compiler Turn Human Instructions Into Safer Decisions?

A semantic compiler is a useful proposed engineering idea: take a consequential human instruction, identify what it means in context, represent its important conditions explicitly, check those conditions, and only then allow an authorised system or person to act. Ordinary software compilers transform code according to a defined programming language. Human language is harder because a sentence can be ambiguous, indirect, sarcastic or dependent on unstated facts. “Approve the application” does not establish who is authorised, which application is meant or whether the required evidence exists. A semantic compiler therefore cannot responsibly turn every fluent sentence directly into a binding action or promise that its interpretation is infallible.

To test this idea, begin with a small, clearly governed workflow. Preserve the original text; identify the speaker, domain and intended action; map terms to documented concepts; represent conditions and permissions; reject or flag missing information; and compare outcomes against approved examples. Use existing tools such as decision tables, knowledge graphs and validation rules where suitable, while keeping professional or human authority where the decision requires it. The goal is not to replace human judgment with a mythical universal program. It is to make language-to-action transformations more inspectable, testable and correctable.

  • Input zoom: An instruction arrives with a speaker, audience, time, context and purpose.
  • Parsing zoom: Grammar can reveal candidate actors, actions, conditions and relationships.
  • Meaning zoom: Word senses and institutional definitions must be chosen with evidence.
  • Type zoom: A payment, permission, recommendation and final approval are different kinds of acts.
  • Validation zoom: Required fields, logical constraints and boundary cases should be checked.
  • Execution zoom: Only actual authorised tools or decision-makers may perform the action.
  • Audit zoom: Preserve source, interpretation, version, test results and external confirmation.

What is a compiler?

In conventional computing, a compiler translates source code into another representation or executable form according to specified language rules.

The compiler may parse the input, build an internal representation, check types or other constraints, and produce output for a defined environment. The exact steps differ among programming languages and compilers.

The important feature is not that all compilers work identically. It is that the source language has specified semantics that make transformations and errors more testable than unrestricted human conversation.

What is meant by semantic compiler here?

Here, semantic compiler names a proposed workflow for turning natural-language instructions into structured, reviewable representations before any consequential action.

It is not presented as a recognised universal technical standard. Some existing systems already perform related tasks through natural-language interfaces, semantic parsing and decision modelling.

The proposal adds a strict separation between understanding the request, checking evidence and authority, and confirming whether an external action actually occurred.

Why natural language is unlike ordinary source code

A programming language may define precisely what a syntactically valid expression means within its semantics. Human language often relies on context and conventions that cannot be fully recovered from a single sentence.

“Can you open the door?” normally functions as a request in some settings, but grammatically resembles a question about ability. “The request has been approved” may be a factual assertion rather than permission to approve it anew.

A compiler that treats every imperative-like phrase as an executable command could act on statements never intended as authorisations.

Why the original text must remain available

A structured interpretation can omit details or choose one sense of an ambiguous term. Preserving the source allows independent reviewers to test whether those choices were justified.

If a system converts “submit before Friday” into a timestamp, it should also explain which Friday and timezone were selected. Where those facts are unknown, the system should ask or flag the uncertainty.

An uninspectable intermediate representation risks turning a mistaken assumption into a permanent decision.

Stage one: identify the speech act

Before extracting nouns and verbs, ask whether the input is a request, question, assertion, warning, promise, instruction or formal declaration.

A user asking “Has the invoice been paid?” is requesting a status check. A user asking “Please pay the invoice” is requesting an action. They cannot safely be processed as identical commands.

The Stanford Encyclopedia of Philosophy on speech acts explains why linguistic form and communicative action must be distinguished.

Stage two: parse roles and relationships

A parser can help identify candidate subjects, objects, conditions and modifiers in a sentence.

“Send the report to the auditor” and “send the auditor to the report’s author” contain related words but different actions. The roles matter more than simple word overlap.

Parsing is only a first step. A grammatically plausible interpretation may still assign the wrong referent or miss an implied requirement.

Stage three: resolve ambiguous terms

The word “approved” can mean reviewed favourably, authorised for testing or cleared for full release depending on the workflow.

A semantic compiler should use an appropriate domain glossary, identify the relevant version and avoid silently borrowing meanings from a different institution.

The W3C SKOS Primer shows how controlled concepts can be distinguished from the words used to label them.

Stage four: capture context

Context can include the named people, affected documents, jurisdiction, time, audience, prior conversation and relevant organisational rules.

“The deadline is tomorrow” is incomplete for a durable record unless the date of the utterance and relevant timezone are known. “Approve it” may not identify the object.

A reliable system records unresolved context as uncertainty instead of manufacturing facts to make the intermediate representation appear complete.

Stage five: create an intermediate representation

An intermediate representation, or IR, could capture a structured record such as actor, action, object, required permission, condition, deadline, source and intended result.

For example, “Eligible applicants may request review until Friday” could become a permission to submit a review request, restricted to a defined population and effective period.

The IR is not the truth itself. It is a proposed interpretation that must be checked against the source and relevant domain rules.

What are semantic types?

A semantic type distinguishes categories of information or action within a controlled model.

For example, a recommendation is not a binding approval, a person identifier is not a permission, and a requested transfer is not a completed payment.

A type-checking stage can flag an attempt to use one state where another is required. That is valuable because natural-language words such as “done” often collapse several operational states.

Type checking cannot prove factual correctness

A structured record might contain an applicant identifier, a valid date and an appropriately typed approval status.

Those types can be correct while the recorded approval is false. A technical validator checks whether the information meets certain formal conditions, not whether a real authorised event occurred.

A semantic compiler needs separate provenance and authoritative evidence checks rather than presenting “valid structure” as “true claim”.

What is a decision model?

A decision model organises the criteria and information required for a decision. It can show which inputs feed which rules and where a human judgment is needed.

The Object Management Group’s Decision Model and Notation provides a standard for describing decisions and business rules using comprehensible diagrams and decision tables.

DMN is an established modelling standard, not proof that natural language has become universally unambiguous. The source interpretation remains critical.

Decision tables can expose hidden ambiguity

Imagine a service that permits access when a user is authenticated and possesses the required role.

A decision table can test users with both conditions, one condition or neither. An accidental replacement of AND with OR becomes visible.

If the requirements themselves are contested, the table does not resolve the dispute. It reveals the choice so that authorised people can decide and document it.

What is a validation constraint?

A validation constraint tests whether structured information satisfies a specified condition. This can include required fields, allowable values or relationships.

The W3C Shapes Constraint Language recommendation defines validation of RDF graphs against shapes containing constraints.

SHACL can help check a data representation. It cannot independently establish that the writer’s interpretation of the original sentence was correct.

Why a constraint checker needs a source

Suppose a rule engine validates an applicant as “at least 18”. If the actual law requires a different calculation date or includes an exception, the schema may faithfully enforce the wrong rule.

A formal check is only as appropriate as its source specification. The compiler must identify which authority adopted the condition and when it applied.

The purpose is traceability, not merely green lights on an internal dashboard.

What is a semantic compile error?

In this proposed framework, a semantic compile error would be a condition preventing safe completion of an interpretation.

Examples include an unknown recipient, conflicting instructions, missing authority, ambiguous deadline, absent source or contradictory eligibility conditions.

The system should report a meaningful explanation, such as “The required approving authority is not identified,” rather than quietly choose a convenient default.

Warnings versus blocking errors

Not every uncertainty needs to stop every task. A creative writing system may safely proceed with a reasonable assumption about tone while revealing the choice.

A payment system should not guess a recipient or amount. A medical information tool should not silently remove a safety qualification.

The right severity depends on the stakes and the actual action. An explicit risk policy should determine what requires clarification or human review.

Stage six: inspect permissions and authority

A person may ask a system to perform an operation that the system cannot legitimately execute.

Producing a sentence such as “The contract is terminated” does not grant the system legal authority to terminate the contract. Nor does it prove that the underlying external process occurred.

A responsible semantic compiler separates a validly expressed request from the permissions and systems needed to carry it out.

Stage seven: execute or draft

Some requests should lead to a draft for a human to inspect. Others may lead to an authorised tool call, depending on capabilities, permissions and risk.

A system should identify which mode it is in. “Drafted an email” differs from “sent an email successfully”.

This prevents a fluent description of action from masquerading as the completed action itself.

Stage eight: verify the outcome

If a tool is used to submit a form, send a payment or change a database record, an authoritative result should determine whether the operation completed.

A generated response cannot substitute for a successful external confirmation. If the tool fails, the system should report failure or uncertainty rather than claim completion.

The compiler’s output should distinguish requested, attempted, confirmed and failed states.

What does provenance add?

Provenance describes the activities, people and source material involved in producing a result.

The W3C PROV-O ontology supports recording derivations, revisions and relationships among entities and activities.

A record of a language-to-action transformation could show which source sentence, rule version, software process and reviewer produced the result. That helps investigators find an error without asserting that every recorded interpretation was correct.

Why version control matters

A term such as “eligible” may change its operational definition over time. A compiler built on the old definition may continue making decisions after the authoritative rule changed.

The relevant glossary and decision-model versions should therefore be linked to every consequential execution.

When rules change, dependent processes need testing rather than assuming the old interpretation remains compatible.

What should be tested?

Tests should include ordinary qualifying cases, obvious nonqualifying cases and difficult boundaries.

For a minimum age of 18, test immediately before, exactly at and after the threshold. For a deadline, test both sides of the cutoff and the relevant timezone.

A system that works only on simple examples can still fail systematically at the point where people most need the rule to be precise.

Regression testing for meaning

When the compiler, glossary or rule changes, rerun representative prior examples to detect unexpected decision changes.

A valid update may intentionally change some results. The regression report should identify which changes were expected and which are defects.

The purpose is to make semantic impact visible, not to forbid every new interpretation.

What about multiple languages?

A multilingual compiler could translate source expressions into a shared domain-specific representation before generating messages in other languages.

This may improve consistency for narrow workflows, but a one-word equivalent is not always available. Language-specific grammar, politeness and context may require explanation.

The source text and uncertainty should remain accessible for human review; the intermediate layer must not erase legitimate linguistic distinctions.

Why a semantic compiler needs a source hierarchy

An institution may have a law, regulation, policy manual, operational note and website FAQ that use similar words.

These sources may have different authority and effective dates. A compiler should not treat whichever document it retrieves first as controlling every decision.

Where legal interpretation is unsettled, an authorised person or competent process must resolve the issue. Automated parsing does not itself confer jurisdiction.

A fictional customer refund case

A customer writes: “Cancel the order and refund my payment.” The system must distinguish an order, its current status, the amount paid, the applicable policy and the permission to perform each action.

A draft reply saying “Your refund is processed” would be wrong if the refund tool has not succeeded. A proper workflow checks the order and executes authorised actions before reporting results.

This illustrates why meaning, permission and confirmation belong to separate stages.

A fictional safety notice

A message says: “Do not enter the workshop until the safety officer authorises reopening.”

The compiler should identify a prohibition, affected location, relevant authority and condition that ends the prohibition. A rewrite saying “Entry is discouraged” would weaken the rule.

Human verification is still needed for the actual safety status. The structured representation cannot assess every physical hazard by itself.

A fictional public-service application

A rule permits residents meeting specific criteria to apply for assistance. A compiler records the criteria and returns preliminary eligibility.

It must not change “permitted to apply” into “guaranteed to receive assistance.” Final approval may require documentary checks or a discretionary process.

A clear explanation should show the applicant which conditions have been checked and what remains pending.

A fictional AI publishing workflow

An editorial team asks an AI assistant to improve the readability of a safety guide. The assistant can revise sentence structure but may not alter numeric limits or sources without approval.

A semantic compiler could extract those critical invariants, compare the rewrite and flag changed conditions.

Publication would still require factual and editorial review. The system can reduce unnoticed changes without certifying the truth of the original article.

Human feedback is part of the design

A reviewer may find that the parser assigned the wrong meaning to a term. The system should allow correction and preserve the original interpretation for audit.

Feedback can improve future rules and test sets, but it should not silently overwrite prior records when people relied on them.

The result is a cycle of documented improvement rather than an assertion that the semantic compiler can never be wrong.

The danger of a universal semantic compiler claim

A vendor may claim that one model can convert any sentence into perfect executable meaning. Such a promise ignores ambiguity, historical change, contested categories and domain-specific authority.

A credible system states its supported languages, domains, error rates and test conditions. It can refuse to compile an unsupported or ambiguous instruction.

Honest limitations are part of reliability, not evidence that the broader idea has no value.

A proposed semantic compiler specification

For one limited application, define input requirements, trusted sources, concept identifiers, roles, conditions, possible output types, uncertainty categories and verification procedures.

Add versioned test cases, rules for blocking unsafe operations and clear ownership of decisions. Record exactly when human approval is required.

Only then implement the processing stages. A small, testable compiler is more useful than an enormous architecture built around undefined claims of perfect understanding.

Seven questions for a compiled instruction

  • Source: What exact sentence and context are being interpreted?
  • Meaning: Which actor, action, conditions and referents were extracted?
  • Type: Is the output a recommendation, request, permission, decision or confirmed action?
  • Authority: Who may authorise the actual operation?
  • Evidence: Which facts and rule versions support the result?
  • Validation: Which boundary cases and contradiction checks were applied?
  • Confirmation: Did the relevant external action actually succeed?

A seven-day semantic compiler exercise

  • Day 1: Choose a fictional workflow with one clear action and three conditions.
  • Day 2: Separate requests from assertions and status reports.
  • Day 3: Build a structured intermediate record of actor, action and conditions.
  • Day 4: Create a decision table and test the boundaries.
  • Day 5: Add a required-authority and human-review stage.
  • Day 6: Distinguish draft responses from verified action results.
  • Day 7: Document errors, version changes and the right correction procedure.

Common questions

Is a semantic compiler already a universal international standard?

No. Here the term describes a proposed design drawing on established parsing, validation and decision-modelling ideas.

Can syntax alone determine what a user wants?

No. Context, word sense, speaker intention and authority may be needed.

Could it prevent all AI hallucinations?

No. It may flag certain inconsistencies and unsupported transformations but cannot verify every factual claim automatically.

Is DMN the same as natural-language understanding?

No. DMN models decisions and rules; translating natural-language requirements into it remains a separate task.

Can SHACL certify that a claim about the real world is true?

No. SHACL validates RDF data against specified constraints.

Does generated text saying “approved” prove an action occurred?

No. The relevant authority and external system must confirm the actual result.

Conclusion: compile meaning only when its limits are visible

Software engineering offers useful disciplines: parsing, typed representations, validation, testing and execution control. Human language brings additional challenges involving context, ambiguity and social authority.

A carefully scoped semantic compiler can bridge those fields by preserving the source, interpretation, constraints, authorised decision, test results and actual outcome. Its strongest feature would not be pretending to understand everything. It would be knowing when an instruction is clear enough to act on—and when it is not.

Continue the Vocabulary at Every Zoom Level

These related guides connect language creation, semantic compilers, dependency graphs, contradictions and accountable vocabulary engineering across individual, institutional and global contexts.

Sources and further reading