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 Language Engineering for Teens Age 13–18 | How Can You Build a Semantic Compiler From Human Language to Structured Data and Back?

Three students in school uniforms work through open books at a classroom table, with textbooks and stationery nearby and study notes on the whiteboard behind them.

Vocabulary coding is the practice of constructing meaning with words, while language engineering tests whether that meaning survives when it is passed to another person, a computer or an artificial intelligence system. Teenagers aged 13–18 can begin building a semantic compiler: an educational model for transforming ordinary language into an explicit record of concepts, relationships, conditions and instructions, and then reconstructing a readable explanation from that record.

The comparison with computer programming helps us understand why a sentence can fail even when every word is correctly spelled. A software compiler translates formal source code into another representation according to defined rules. Human language, in contrast, contains context, ambiguity, intentions and cultural knowledge that may not be recoverable automatically. In this eduKate exercise, the semantic compiler is a supervised learning process, not a claim that all human thought can be compiled or that an AI interpretation is necessarily correct.

  • Word zoom: distinguish labels, concepts and entities.
  • Sentence zoom: identify actors, actions, objects, time, quantities, conditions and uncertainty.
  • Thought zoom: distinguish observations, claims, reasons and inferences.
  • Computer zoom: represent a bounded meaning in a structured record and validate it.
  • Organisation and civilisation zoom: preserve source meanings when information crosses systems.
  • AI zoom: test what survives interpretation, transformation and reconstruction before trusting an output.

Chapter navigation

Why we need a semantic compiler

Imagine a friend says, ‘We can use the room after the meeting if it is free.’ You probably understand the general intention, but a booking system needs considerably more information. Which room? Which meeting? When does it end? Does free mean unoccupied, unreserved or free of charge? Who has permission to use the room? Is the statement a suggestion, permission or confirmed booking?

A language engineer discovers the difference between what a sentence communicates in context and what a system needs to act responsibly. The missing details do not make the original speaker incompetent. Ordinary language relies on shared knowledge. The problem arises when the message moves to a receiver that does not share it. A compiler-like process helps expose those dependencies.

A compiler is an analogy, not an identity

Formal programming languages have specified syntactic and semantic rules. A compiler translates a source programme into another form, which might be executable machine code or an intermediate representation. Some errors can be detected during translation, while other problems emerge only when the programme is used.

Human language is less constrained. The expression ‘That’s just great’ could be praise or sarcasm. Its intended meaning may depend on tone and situation. A semantic compiler for teenagers is therefore a structured exercise in interpretation, clarification, representation and testing. It cannot guarantee that all intentions are captured, and unresolved meaning should remain unresolved rather than be guessed.

Layer one: capture the original message

Always preserve the source sentence. Suppose the fictional reading club records: ‘Members may borrow two books for a fortnight, unless a book is reserved.’ This sentence contains an action, a permitted group, a quantity, a duration and an exception. It may still leave questions about the club’s lending policy.

Keep the original wording alongside your interpretation. If you replace the sentence with a summary and delete the source, future readers cannot check whether the summary altered it. This is an essential habit when working with documents, AI-generated summaries and records from organisations. A source is not necessarily true, but it establishes where a particular assertion came from.

Layer two: identify the concepts

A word is not necessarily a unique concept. In the lending rule, members refers to a particular relationship with the club. Book may refer to a title or a physical copy. Reserved describes a status that must be understood before applying the exception. Fortnight denotes a period of fourteen days, but the exact return date still depends on when lending starts and how the policy counts days.

Write a concept card for each important term. Record its purpose, definition, examples, non-examples and conditions. If two words refer to the same concept in the context, note that relationship. If one word refers to different concepts, give them separate identifiers. This is how a vocabulary register becomes more useful than a collection of dictionary entries.

Layer three: identify relationships and roles

The phrase ‘the club lends a book to a member’ contains different roles: the club provides the loan, the member receives it, and the book is the resource being lent. The relationship is directional. ‘The member lends a book to the club’ does not express the same event.

Make a simple role map: actor, action, recipient, resource and context. Some sentences lack an explicit actor. ‘The booking was cancelled’ identifies a change but not necessarily who made it. Do not fill that role with an invented person. Mark the actor as unknown if the source does not establish it. Good structured language preserves both information and gaps.

Layer four: distinguish statement types

A sentence can report a fact, express an opinion, make a request, grant permission, impose an obligation, describe an intention or propose a hypothesis. These types should not be mixed. ‘The room is available’ is a claim about a state. ‘You may use the room’ is a permission in context. ‘Please book the room’ is a request.

The classification matters because a system could otherwise perform an action based on a sentence that was only discussing a possibility. When a friend says ‘We could book the room’, that does not necessarily authorise a booking. Separate proposals from approvals and approvals from completed actions. The distinction becomes especially important when software or AI can perform tasks for people.

Layer five: preserve modal meaning

Compare must, should, may and can. In ordinary English, their meanings depend on context. In technical specifications, a controlled convention can reduce confusion. The Internet Engineering Task Force’s RFC 8174, together with RFC 2119, specifies special interpretations for capitalised requirement terms in documents that adopt the convention.

Your own learning project can define a small set of categories: required, prohibited, permitted, recommended and unknown. Do not treat these categories as universal interpretations of every English modal verb. A sentence such as ‘You can borrow a book’ may communicate ability or permission depending on context. Inspect the source and ask for clarification when the difference affects an action.

Layer six: compile conditions and exceptions

A conditional statement has a condition and a result. Suppose the club permits a loan only if membership is confirmed, a copy is available and the loan limit has not been reached. The three conditions must be distinguished. Knowing that membership is confirmed does not establish the other two.

Create an invented test case for each combination that matters: all conditions satisfied, one condition not satisfied, conflicting records, or missing information. Preserve the exception for reserved copies. If the source states an exception but does not explain how reservation is checked, the compiler should not create an imaginary database rule. It should record the dependency.

Layer seven: distinguish unknown, false and not applicable

Imagine a record has no information about a book’s reservation status. That absence may not mean the book is unreserved. If a reliable reservation system explicitly confirms that no reservation exists, the situation differs. A missing field and an established negative result carry different meanings.

Create four states for the exercise: yes, no, unknown and not applicable. A children’s picture book may have no digital file size because the field does not apply to that physical copy. Another record may have an unknown file size because relevant information is missing. A responsible conversion preserves these distinctions. It does not replace every blank with zero, false or an empty answer.

Layer eight: build a structured record

A structured record separates information into named fields. For the fictional club rule, the fields could contain subject category, permitted action, resource, maximum quantity, duration, exception, definition source and unresolved questions. This makes the statement easier to inspect and compare with other rules.

A record need not be computer code. Start with a table on paper. Later, you can express it as JSON, a text-based structured data format described in RFC 8259. JSON provides a way to represent data; it does not itself establish what a field means, whether a record is accurate or whether an action is authorised.

Worked example: a reading-club rule

Source: ‘Confirmed members may borrow up to two available copies for fourteen days, unless a copy is reserved for another member.’ A simplified record could contain the following: actor category = confirmed member; action = borrow; modality = permitted; resource = available physical copy; maximum = two; duration = fourteen days; exception = reserved for another member.

The remaining questions include whether the quantity applies per loan or across all active loans, when the loan period starts, and how availability is established. Notice that a detailed structured record can still be incomplete. A useful compiler identifies those gaps rather than silently inventing answers. A real club would need to confirm its actual policy before using the record operationally.

Layer nine: validate syntax and meaning separately

A JSON document can be syntactically valid yet contain an incorrect interpretation. For example, a field named maximum_loans could contain 20 instead of 2 because someone made a transcription error. The document would remain readable by a computer. Its meaning would not match the source rule.

Validation therefore needs several checks. Is the format readable? Are the expected fields present? Are quantities expressed in appropriate units? Do the relationships match the source? Are exceptions preserved? Does the proposed action remain within the granted permission? A format check cannot substitute for checking the source and the real-world circumstances.

Layer ten: reconstruct a human explanation

After building a record, ask another person to reconstruct a readable version of the original rule using only that record. They might write: ‘A confirmed member is allowed to borrow at most two copies for fourteen days, provided the copies are available and are not reserved for someone else.’ Compare the reconstruction with the source.

The wording does not need to be identical. The relevant meaning needs to survive. If the reconstructed sentence says that members must borrow two copies, the conversion changed permission into obligation and maximum into exact quantity. This is a round-trip test. It helps reveal losses that a one-way conversion may hide.

A round trip is evidence, not proof

A successful reconstruction suggests that the representation preserved the tested distinctions. It does not demonstrate that all nuance, intentions and contextual meaning survived. A formal record may omit tone, emotional significance, the relationship between speakers or a culturally specific implication.

Document the intended purpose of the conversion. A loan record need not preserve the friendliness of the club’s announcement, but a personal message may require attention to tone. Do not apply the same conversion process to poetry, personal conversation, legal obligations and machine instructions without adapting it. Meaning preservation is always evaluated against a purpose.

Error laboratory: what changed?

Test a sentence such as ‘Only confirmed members may reserve a copy.’ A flawed record might treat confirmation as merely recommended. Another might convert permission to a requirement to reserve. A third might interpret only as restricting the number of copies. Identify the specific semantic operation that changed.

Use an error log with source sentence, expected representation, received representation, difference, consequence and repair. The consequence may be small in a fictional example but important in a real system. After a repair, test an adjacent sentence in which the placement of only differs. This reveals whether the learner understands the distinction or merely memorised a correction.

Thought zoom: compile an argument without confusing its parts

A student writes, ‘The room was full on Tuesday, so the club should consider another session.’ The observation concerns one event. The recommendation concerns a possible response. The implicit reasoning is that demand might exceed capacity. The sentence does not establish that demand consistently exceeds capacity or that an additional session is feasible.

Separate observation, inference, proposed action, evidence needed and uncertainty. This structured representation helps another person inspect the reasoning. It is not a transcript of the writer’s private thoughts. It is an explicit record of the argument the writer chose to communicate. The purpose is to make the reasoning available for discussion and correction.

Team zoom: compile a shared task without losing responsibility

A group may say, ‘Everyone should review the draft before we publish.’ The task needs further definition. Who is responsible for review? What does review involve? Who may approve the final version? Does publication require every member’s agreement or the decision of a named coordinator? What happens if someone cannot respond?

A team can create a small workflow with distinct states: drafted, reviewed, approved, published and correction required. Each state should have a definition, permitted transitions and responsible people. A record of a review is not itself a grant of publication authority. These vocabulary distinctions make coordination clearer without removing the team’s ability to negotiate and adapt.

Institution zoom: one term may connect several databases

Consider two fictional libraries sharing availability information. One uses available to mean unreserved; another requires that a copy is present and ready to lend. A compiler that matches field names without checking definitions may tell a reader that a book can be borrowed when that is not established.

The W3C SKOS Reference supplies a standard model for representing concepts and mappings between knowledge organisation schemes. A student can use a paper crosswalk to compare the definitions, retaining both source meanings and recording where they overlap. A close mapping is not automatically an exact equivalence. The goal is to make the differences visible before systems exchange data.

Civilisation zoom: from sentences to durable knowledge

Scientific publications, library catalogues, public records and engineering documents carry knowledge across time and place. If a machine translates these materials into structured records, it can make them easier to search and compare. However, a conversion that discards source definitions, dates, authority or context can create errors on a large scale.

The W3C PROV overview provides a useful introduction to representing the origins of information and the activities and agents involved in producing it. A student project can start with a simple source record: who provided a statement, where it came from, when it was recorded and how it was transformed. Provenance supports evaluation; it does not prove that a claim is true.

AI zoom: ask for an interpretation before an action

A useful prompt for a fictional reading-club rule could ask an AI to identify the actor, permission, resource, quantity, duration, exceptions and missing information. Ask it to return both a structured record and a plain-language reconstruction, without inventing a policy. Then compare the result with the original source yourself.

An AI output is not automatically a reliable compiler. It may misunderstand scope, substitute a familiar rule for the actual one or present a guess as a fact. For consequential uses, use appropriate validation and human review, and do not allow an interpretation step to trigger an unauthorised action. Teenagers should follow the service’s age requirements and avoid entering personal information.

A vocabulary change can break an existing interface

Suppose the club changes the definition of available from not reserved to present, inspected and not reserved. The same word now has a narrower practical meaning. An old record marked available might not satisfy the new definition. Simply overwriting the glossary could make previously recorded data difficult to interpret.

Give the definition a version and effective date. Identify which records, instructions and tests depend on it. Decide how old data will be handled and inform the people who use the definition. The compiler should preserve the version of the meaning it applied. Vocabulary changes can alter outcomes when people and systems adopt them, but the effect depends on the actual implementation.

The age-by-age learning route

At 13, identify actors, actions and conditions in simple sentences. At 14, build a decision table and test unknown cases. At 15, structure an evidence-based argument while preserving uncertainty. At 16, inspect how a rule becomes a decision in a fictional organisation.

At 17, create a concept crosswalk and test a structured representation. At 18, prepare a complete handover including sources, definitions, validation tests and limitations. These are suggested routes, not universal age expectations. The same exercise can be adjusted to a learner’s readiness, and no AI tool is necessary to practise the central skill.

Build your first semantic compiler in four weeks

Week one: collect ten fictional sentences, classify their functions and create concept cards. Week two: represent the sentences in a structured table, including conditions and unknown values. Week three: ask a willing reader to reconstruct the sentences and compare interpretations. Week four: revise the representations and test them on new examples.

Retain the source sentences, structured records, error log and revised results. Explain what you verified and what remains unresolved. A successful project is not the largest collection of fields. It is a small, useful representation that another reader can inspect and use within its documented scope. This is where vocabulary learning begins to resemble the engineering of transferable intellectual capability.

Continue learning in the eduKate vocabulary ecosystem