Edge Technology for Vocabulary becomes executable when a quantity carries its meaning into the calculation. A learner may correctly calculate 18 divided by 24 and still report the result for an entire school instead of the 24 survey respondents. An AI can make exactly the same mistake. A number with its unit, measured property, population, period and denominator is a different engineering object from a bare number. The proposed eduKate Executable Quantity Type turns those vocabulary distinctions into checks that can stop an unsupported comparison before it becomes a fluent answer.
This article develops the first implementation-oriented extension of the earlier sense graph and semantic test harness. It contains an original, small JavaScript demonstrator that was executed on twelve synthetic cases, including correct conversions and intentionally unsupported comparisons. The result establishes only the declared behaviour of the toy checker. It is not a deployed tuition application, a complete unit engine, an independent benchmark or evidence of improved student results. The engineering question is whether a machine can preserve the meaning of a numerical statement before applying arithmetic.
- Attach a typed meaning to a number before arithmetic.
- Keep unit, quantity kind, group, period and reference separate.
- Run a small executable comparator with explicit HOLD outcomes.
- Inspect the twelve actual synthetic test results and reproduction inputs.
- Connect the mechanism to classroom Fencing and L0–L15 without claiming a deployed product.
Contents
- 1. Why the centre is not enough
- 2. Five independent layers of quantitative meaning
- 3. Established engineering and the proposed vocabulary layer
- 4. Fencing a quantity from plain words to a machine-readable record
- 5. A minimal machine-readable quantity
- 6. Working prototype: bounded direct comparison
- 7. Actual local execution: twelve synthetic cases
- 8. Three worked interpretations for learners
- 9. Centre-to-edge learning operations
- 10. Where this component belongs in EDUKATEAI
- 11. From demonstration to defensible evidence
- 12. Four-week research laboratory
- 13. References and connected research
1. Why the centre is not enough
The centre of school vocabulary teaches a child what fraction, ratio, rate, accuracy and percentage mean. That knowledge is indispensable. A typical calculator, however, accepts 18 and 24 without asking whether they represent respondents, invitations, visits or unique people. A word-processing AI can calculate the fraction correctly and then change the group in its explanation. Neither arithmetic competence nor fluency establishes that the result answers the question. At the edge, the meaning must travel with the number. The earlier Secondary 1 ratios and rates guide and Secondary 3 sampling guide already identify this teaching need. Here the distinction becomes an explicit software contract.
Consider 75% of 24 reading-club respondents and 75% of a whole-school population. They use the same numeral and percent symbol. Without an appropriate study, the first claim does not establish the second. Likewise, twenty visits can arise from fewer than twenty distinct people. A dimension checker alone cannot catch the distinction because both are counts. This is why quantity semantics needs more than physical units. An educational interface can show a short sentence explaining the reference, while the technology checks the representation underneath.
2. Five independent layers of quantitative meaning
| Layer | Question | Example |
|---|---|---|
| Value | What numerical value is represented? | 75 |
| Unit/dimension | What measurement convention applies? | cm or m, percent or count |
| Quantity kind | What property or event does it measure? | Visits, distinct visitors, average speed |
| Scope and period | Which population, object, interval or trial? | Reading-club respondents during a stated consultation |
| Basis | What reference or denominator controls the comparison? | Respondents, initial membership, elapsed time |
A fully specified scientific measurement may need additional fields for uncertainty, reference standard, measurement method, significant figures and conditions. The toy model does not include them. A realistic statistical comparison may require different groups or times to be compared deliberately. The demonstration chooses a conservative direct-equality and ordering contract: compare only within identical declared context labels after an allowed unit conversion. A mismatch means that this operation lacks an authorised comparison rule; it does not mean all cross-group or cross-period comparison is mathematically impossible. A separate trend or group-comparison operation would need an explicit contract for what may vary and which assumptions must hold.
3. Established engineering and the proposed vocabulary layer
The Unified Code for Units of Measure (UCUM) specifies a language of unit symbols and their algebraic meanings. It distinguishes commensurable units from equal ones. The prototype uses a tiny hand-written conversion table inspired by this problem; it is not a conforming UCUM parser. Its local kind, scope and basis fields are additional educational semantics, not UCUM extensions. A production design should use a tested implementation of appropriate unit standards and an explicit domain vocabulary, rather than assume that a homemade list covers all measurement systems.
The earlier sense-aware knowledge graph article gives meaning records stable identities. This design can link quantity kinds and contextual definitions to those records. The versioned vocabulary article explains why a changed definition or source should remain traceable. Neither a graph link nor a unit code validates the original measurement. A verified source, reviewer and purpose are still needed. Use a standard unit system for physical conversion; use reviewed semantic fields for the distinctions that dimensional analysis cannot represent.
4. Fencing a quantity from plain words to a machine-readable record
Start with an ordinary statement: eighteen respondents chose afternoon. Add the whole: eighteen of twenty-four respondents. Add the source context: twenty-four reading-club volunteers completed the consultation, each selecting one option. Add the calculation: 18/24 equals 75%. Finally, state the boundary: this is the share among the respondents, not an estimated school-wide preference. Each additional layer has a job. Stop when the requested meaning is complete.
| Layer | Human-readable statement | Machine check |
|---|---|---|
| Base | 18 selected afternoon. | Count and outcome |
| Denominator | 18 of 24 respondents. | Group and reference |
| Operation | 18/24 = 75%. | Arithmetic |
| Scope | Among these reading-club respondents. | Population label |
| Transfer | New survey with invitations and nonresponse. | Use the correct denominator and qualify unknowns |
A learner does not have to write JSON to develop the distinction. They can label a bar model or explain the relationship aloud. The technical representation belongs behind the learning interface. A teacher can inspect why a calculation was held, identify the missing quantity label, and teach the exact meaning rather than assign another page of arithmetic. Fencing controls complexity; it does not turn every answer into a mandatory long paragraph.
5. A minimal machine-readable quantity
{
"value": "75",
"unit": "%",
"kind": "preference share",
"scope": "reading club",
"period": "same exercise",
"basis": "respondents"
}
This local synthetic record is intentionally small. In a production system, kind, scope, period and basis should normally use stable reviewed identifiers, not arbitrary text copied from an AI. The checker below compares them as exact strings. It cannot know that two differently spelled descriptions are equivalent or that an identical label is misleading. Before executing any comparison, a source-grounded human or other suitably verified process must establish that the fields actually describe the evidence. Missing fields are not filled with plausible guesses.
6. Working prototype: bounded direct comparison
The following JavaScript function is the code used for this article’s local synthetic run. It accepts only integer strings of up to twelve digits and a declared unit list. BigInt and cross multiplication avoid floating-point rounding for the supported rational conversions. The method uses an allow-list, refuses unknown or incomplete inputs and checks dimension, kind and context before comparing. It deliberately rejects decimals, arbitrary unit expressions, uncertain measurements and cross-period comparisons. Those capabilities need their own tested implementation.
function compare(a,b){
const units={"m":["length",1n,1n],"cm":["length",1n,100n],"km":["length",1000n,1n],"s":["time",1n,1n],"min":["time",60n,1n],"m/s":["speed",1n,1n],"km/h":["speed",5n,18n],"count":["count",1n,1n],"%":["fraction",1n,100n]};
const required=["value","unit","kind","scope","period","basis"];
if(![a,b].every(x=>x&&required.every(k=>typeof x[k]==="string"&&x[k].trim()!=="")))return "HOLD_MISSING";
if(!Object.hasOwn(units,a.unit)||!Object.hasOwn(units,b.unit))return "HOLD_UNIT";
if(!/^-?\d{1,12}$/.test(a.value)||! /^-?\d{1,12}$/.test(b.value))return "HOLD_VALUE";
const [da,na,qa]=units[a.unit], [db,nb,qb]=units[b.unit];
if(da!==db)return "HOLD_DIMENSION";
if(a.kind!==b.kind)return "HOLD_KIND";
if(a.scope!==b.scope||a.period!==b.period||a.basis!==b.basis)return "HOLD_CONTEXT";
const lhs=BigInt(a.value)*na*qb,rhs=BigInt(b.value)*nb*qa;
return lhs===rhs?"EQUAL":lhs>rhs?"GREATER":"LESS";
}
HOLD is a request for review, clarification or another appropriate operator; it is not a declaration that the underlying proposition is false. The ordering result is valid only under the supplied fields and prototype assumptions. The code does not establish their truth, retrieve source evidence, infer missing values or authorise an action. It is a small proof of executable vocabulary contracts, not a general reasoning system.
7. Actual local execution: twelve synthetic cases
The checker ran against 12 author-defined synthetic cases on 2 December 2026. 12 of 12 observed results matched the predeclared expected strings. The inputs and expectations were authored for this demonstration, not independently adjudicated or sampled from real student work. These cases test a bounded rule implementation, not accuracy on real language.
| Test | Expected | Observed | Why it matters |
|---|---|---|---|
| Q01 | EQUAL | EQUAL | A familiar unit conversion preserves length. |
| Q02 | LESS | LESS | Compare values after conversion, not visible digits. |
| Q03 | HOLD_DIMENSION | HOLD_DIMENSION | Length and time cannot be directly compared by this operator. |
| Q04 | EQUAL | EQUAL | Exact rational conversion, 36 × 5/18 = 10. |
| Q05 | HOLD_KIND | HOLD_KIND | Twenty visits need not mean twenty people. |
| Q06 | HOLD_CONTEXT | HOLD_CONTEXT | Same percentage, different population. |
| Q07 | HOLD_CONTEXT | HOLD_CONTEXT | Reference base changes the claim. |
| Q08 | HOLD_CONTEXT | HOLD_CONTEXT | This conservative equality operator does not decide cross-period trends. |
| Q09 | HOLD_MISSING | HOLD_MISSING | An absent denominator label cannot be inferred. |
| Q10 | HOLD_UNIT | HOLD_UNIT | A legitimate but unsupported unit must be held, not guessed. |
| Q11 | HOLD_VALUE | HOLD_VALUE | The prototype accepts bounded integers only. |
| Q12 | EQUAL | EQUAL | Same elapsed time in different units. |
Reproduction inputs
const cases = [
{
"id": "Q01",
"a": {
"value": "2",
"unit": "m",
"kind": "length",
"scope": "demo object pair",
"period": "same exercise",
"basis": "specified comparable measure"
},
"b": {
"value": "200",
"unit": "cm",
"kind": "length",
"scope": "demo object pair",
"period": "same exercise",
"basis": "specified comparable measure"
},
"expected": "EQUAL"
},
{
"id": "Q02",
"a": {
"value": "150",
"unit": "cm",
"kind": "length",
"scope": "demo object pair",
"period": "same exercise",
"basis": "specified comparable measure"
},
"b": {
"value": "2",
"unit": "m",
"kind": "length",
"scope": "demo object pair",
"period": "same exercise",
"basis": "specified comparable measure"
},
"expected": "LESS"
},
{
"id": "Q03",
"a": {
"value": "3",
"unit": "m",
"kind": "length",
"scope": "demo object pair",
"period": "same exercise",
"basis": "specified comparable measure"
},
"b": {
"value": "3",
"unit": "s",
"kind": "duration",
"scope": "demo object pair",
"period": "same exercise",
"basis": "specified comparable measure"
},
"expected": "HOLD_DIMENSION"
},
{
"id": "Q04",
"a": {
"value": "36",
"unit": "km/h",
"kind": "average speed",
"scope": "demo object pair",
"period": "same exercise",
"basis": "specified comparable measure"
},
"b": {
"value": "10",
"unit": "m/s",
"kind": "average speed",
"scope": "demo object pair",
"period": "same exercise",
"basis": "specified comparable measure"
},
"expected": "EQUAL"
},
{
"id": "Q05",
"a": {
"value": "20",
"unit": "count",
"kind": "visits",
"scope": "club survey",
"period": "same exercise",
"basis": "specified comparable measure"
},
"b": {
"value": "20",
"unit": "count",
"kind": "distinct visitors",
"scope": "club survey",
"period": "same exercise",
"basis": "specified comparable measure"
},
"expected": "HOLD_KIND"
},
{
"id": "Q06",
"a": {
"value": "75",
"unit": "%",
"kind": "preference share",
"scope": "reading club",
"period": "same exercise",
"basis": "specified comparable measure"
},
"b": {
"value": "75",
"unit": "%",
"kind": "preference share",
"scope": "entire school",
"period": "same exercise",
"basis": "specified comparable measure"
},
"expected": "HOLD_CONTEXT"
},
{
"id": "Q07",
"a": {
"value": "25",
"unit": "%",
"kind": "change",
"scope": "club",
"period": "term 1 to term 2",
"basis": "initial membership"
},
"b": {
"value": "25",
"unit": "%",
"kind": "change",
"scope": "club",
"period": "term 1 to term 2",
"basis": "final membership"
},
"expected": "HOLD_CONTEXT"
},
{
"id": "Q08",
"a": {
"value": "12",
"unit": "count",
"kind": "completed tasks",
"scope": "same group",
"period": "week 1",
"basis": "specified comparable measure"
},
"b": {
"value": "12",
"unit": "count",
"kind": "completed tasks",
"scope": "same group",
"period": "week 2",
"basis": "specified comparable measure"
},
"expected": "HOLD_CONTEXT"
},
{
"id": "Q09",
"a": {
"value": "75",
"unit": "%",
"kind": "preference share",
"scope": "demo object pair",
"period": "same exercise",
"basis": ""
},
"b": {
"value": "75",
"unit": "%",
"kind": "preference share",
"scope": "demo object pair",
"period": "same exercise",
"basis": "specified comparable measure"
},
"expected": "HOLD_MISSING"
},
{
"id": "Q10",
"a": {
"value": "1",
"unit": "furlong",
"kind": "length",
"scope": "demo object pair",
"period": "same exercise",
"basis": "specified comparable measure"
},
"b": {
"value": "1",
"unit": "m",
"kind": "length",
"scope": "demo object pair",
"period": "same exercise",
"basis": "specified comparable measure"
},
"expected": "HOLD_UNIT"
},
{
"id": "Q11",
"a": {
"value": "1.5",
"unit": "m",
"kind": "length",
"scope": "demo object pair",
"period": "same exercise",
"basis": "specified comparable measure"
},
"b": {
"value": "150",
"unit": "cm",
"kind": "length",
"scope": "demo object pair",
"period": "same exercise",
"basis": "specified comparable measure"
},
"expected": "HOLD_VALUE"
},
{
"id": "Q12",
"a": {
"value": "180",
"unit": "s",
"kind": "duration",
"scope": "demo object pair",
"period": "same exercise",
"basis": "specified comparable measure"
},
"b": {
"value": "3",
"unit": "min",
"kind": "duration",
"scope": "demo object pair",
"period": "same exercise",
"basis": "specified comparable measure"
},
"expected": "EQUAL"
}
];
for (const c of cases) console.log(c.id, compare(c.a,c.b), c.expected);
The successful local run is narrow evidence: a developer can reproduce the declared comparisons by copying the function and inputs into a compatible JavaScript runtime. It is not a result from the website itself, and the website has not been configured to execute the code. A test that is based on a manually supplied quantity label cannot demonstrate the accuracy of a language model extracting that label from a passage.
8. Three worked interpretations for learners
Case A: Two metres and 150 centimetres
The visible 150 is larger than 2. Yet two metres is 200 centimetres, so the first length is greater by 50 centimetres. The representation separates the numeric value from its conversion scale. Ask a student to predict the result, explain why the visible digits are misleading, and then compare a different pair. The code’s Q02 returns LESS when the left record is 150 cm and the right record is 2 m. The learner must still interpret the direction of the answer.
Case B: The same digits and the wrong population
A report of 75% among club respondents and a proposed 75% whole-school claim have equal numerical values. The comparison is held because the declared scopes differ. This is not a claim that the two real percentages cannot happen to be equal. It means that an equality conclusion about the wider group is unsupported by this data. A legitimate comparative study might separately measure both groups and define the intended comparison. The task is to establish the correct evidence rather than change the group in a sentence.
Case C: One denominator changes the calculation
Suppose membership increases from 40 to 50. The absolute change is 10; relative to 40, the percentage increase is 25%. Ten as a share of the final 50 is 20%. The base is part of the meaning. A production percentage-change operation would take the original and final quantity records, verify the comparable population and period relationship, check the initial value is nonzero, and return a labelled result. The prototype does not implement this derived operation; Q07 tests the narrower principle that bases should not be silently interchanged.
9. Centre-to-edge learning operations
The L0–L15 learning ladder offers a proposed way to organise instruction. It is not a validated scale or a compulsory sequence.
| Rung | Observable task |
|---|---|
| L0 | Attend to the problem and labels |
| L1 | Identify the relevant quantities |
| L2 | Name the unit and comparison |
| L3 | Explain the reference whole |
| L4 | Recall the distinction later |
| L5 | Read/write the notation |
| L6 | Relate unit, kind and denominator |
| L7 | Combine the result and correct unit |
| L8 | Disambiguate two numerical meanings |
| L9 | Transfer to a fresh word problem |
| L10 | Interpret a misleading numerical statement |
| L11 | Apply the formal subject definition |
| L12 | Trace changes in a measure over time |
| L13 | Critique an invalid comparison |
| L14 | Maintain a reviewed quantity register |
| L15 | Propose and test a needed new semantic type |
One child can explain ratios well while still needing support with rate units. Select the task that matters now. Do not force a child to implement the code or infer a permanent ability label from one observation. A parent can ask: ‘What does the number count? What is its reference? Are you comparing like with like?’
10. Where this component belongs in EDUKATEAI
A possible architecture has six separable components: source register, sense and quantity dictionary, evidence extraction, operator contract, execution and return. The source register retains the supplied record and its scope. The dictionary defines quantity kinds and units. Extraction proposes fields and highlights supporting source phrases. The operator contract decides which comparisons or transformations are permitted. Execution performs bounded arithmetic. Return explains the result, flags missing or contradictory information and routes corrections to the appropriate source or derived item. The component must not be authorised to act simply because it can calculate. A teacher or other responsible human determines the applicable educational decision.
This fits the broader eduKate world knowledge crosswalk concept: two sources may use the same term while reporting different quantities. A typed interface makes that mismatch visible rather than treating a shared label as a join key. The result could become a small portable record passed from a tutor to an AI assistant or from one data-processing component to another. Portability means keeping the meaning and its evidence recoverable, not assuming that every recipient automatically accepts the definition.
11. From demonstration to defensible evidence
The next software evaluation should use independently reviewed examples not created to fit this implementation. Include conversions, unknown units, ambiguous text, incompatible bases, comparable-but-different groups under a separate explicit comparison operator, valid decimals, uncertainty and extraction errors. Measure false accepts, false holds and the number of cases actually resolved. Keep extraction accuracy distinct from arithmetic correctness. Compare with an ordinary unit converter and a human-reviewed source-aware baseline. The declared twelve-case suite is useful for regression checks, but it is too small and tailored to estimate general reliability.
A teaching pilot would instead ask whether students independently choose the correct denominator, unit and reference on unfamiliar school-aligned tasks after instruction. Match time and support across comparison conditions. Record delayed transfer, teacher correction effort and learner experience. A study involving children requires appropriate permissions, consent or assent, safeguards and privacy protection. No such study was performed. Do not publish identifiable student work or use an automated score as a substitute for teacher judgement.
12. Four-week research laboratory
| Phase | Activity | Evidence |
|---|---|---|
| Week 1 | Review ten synthetic or teacher-approved quantity statements; annotate kind, units and scope. | Reviewed fields and explicit unresolved cases. |
| Week 2 | Run the demonstrator and add independently proposed near-misses. | Actual output and expected result kept separate. |
| Week 3 | Design one new operator, such as percentage change, with explicit preconditions. | A bounded contract and independent tests. |
| Week 4 | Check fresh school-aligned interpretations and examine whether the interface is helpful. | Separate technical and learner evidence; teacher review and limitations. |
For a Secondary 1 learner, the paper version is enough: label quantities, explain per, identify the whole and choose a calculation. For engineers, build a tested converter and source-linked typed record. For researchers, freeze the proposed outcome before comparing interventions. At the centre the student learns meaning; at the edge the infrastructure must preserve it. The value of the system is measured by the useful decisions it enables after correction, time and coordination costs, not by the number of fields it contains.
13. References and connected research
- UCUM specification
- Official SEAB school-candidate SEC syllabus directory
- Secondary 1: Fractions, ratios and rates
- Secondary 3: Population, sample and representativeness
- VCE: Semantic Aggregation Integrity Map
- Edge Technology: Semantic Test Harness
- eduKate Fencing Method
The 2027 SEC directory establishes the applicable Singapore curriculum listings. These original technology experiments are not official SEC assessment requirements. The local code and run establish only the narrow comparisons described. Future testing should expand the supported domain only after new contracts and evidence are available.
