Edge Technology for Vocabulary needs a source witness that survives beyond a plausible citation. A quotation may occur several times in a document; the Source-Span Witness checks its source identity, version, position, exact text and adjoining context before reporting a match.
This original eduKate checker was executed on fourteen synthetic cases. It verifies a bounded textual location, not truth or entailment. It is not a deployed annotation service, an independent benchmark or evidence of improved learning.
- Distinguish a source span from its claim.
- Preserve source and edition identifiers.
- Check Unicode code-point offsets and context.
- Hold stale or malformed anchors.
- Inspect reproducible synthetic results.
Contents
- 1. A quotation is not yet an argument
- 2. What must survive the handover
- 3. Five Fencing moves
- 4. Executable local checker
- 5. Executed local synthetic regression suite
- 6. From Secondary 1 to Secondary 4
- 7. Centre-to-edge vocabulary learning
- 8. VocabularyOS integration and four-week laboratory
- 9. Sources and connected research
1. A quotation is not yet an argument
A student can copy a true phrase from the wrong speaker. An AI can attach a genuine reference to a claim the reference never establishes. The first step is a location witness: show precisely where the words occurred in a declared source representation. The next, separate step is semantic review: establish whether those words support the claimed interpretation, including qualifications, attribution and surrounding evidence.
The W3C Web Annotation Data Model defines text position and text quote selectors. It distinguishes exact quoted text from surrounding prefix and suffix and uses Unicode code-point positions. This local example uses analogous fields without implementing the standard’s normalization rules or complete annotation model. It does not retrieve or authenticate the source.
2. What must survive the handover
| Field | Meaning |
|---|---|
| Source ID, version | Declared edition |
| Start, end | Zero-based code-point interval, end exclusive |
| Exact | Quoted substring |
| Prefix, suffix | Immediately adjoining text |
| Claim support | Separate reviewed judgement, outside the function |
{
"source": {
"id": "demo",
"version": "v1",
"text": "Some respondents chose A. Some respondents chose B."
},
"anchor": {
"source": "demo",
"version": "v1",
"start": 0,
"end": 4,
"exact": "Some",
"prefix": "",
"suffix": " respondents chose A."
}
}A version label does not authenticate content. A production system must bind a reviewed representation to its actual source, provenance and suitable integrity checks. Empty prefix or suffix supplies no contextual constraint. Even exact text can occur repeatedly; the location and context together identify the proposed occurrence.
3. Five Fencing moves
Start with the phrase Some respondents. Add the relevant sentence: those respondents chose A. Locate the specific occurrence. Preserve the group, attribution and edition. Finally examine whether the whole source supports the proposed conclusion. A learner should distinguish Some respondents chose B, even though the first two words are identical. A pencil underline can teach the same operation without software. At the edge the anchor makes it reproducible.
4. Executable local checker
function witness(source,anchor){
const str=x=>typeof x==="string"&&!/[\uD800-\uDFFF]/u.test(x);
if(!source||!anchor||![source.id,source.version,anchor.source,anchor.version].every(x=>str(x)&&x.length>0)||!str(source.text)||source.text.length>100000||!str(anchor.exact)||!anchor.exact.length||!str(anchor.prefix)||!str(anchor.suffix))return "HOLD_INPUT";
if(source.id!==anchor.source||source.version!==anchor.version)return "HOLD_VERSION";
const chars=Array.from(source.text),{start,end}=anchor;
if(!Number.isSafeInteger(start)||!Number.isSafeInteger(end)||start<0||end<=start||end>chars.length)return "HOLD_RANGE";
if(chars.slice(start,end).join("")!==anchor.exact)return "HOLD_QUOTE";
const pre=Array.from(anchor.prefix).length,post=Array.from(anchor.suffix).length;
if(start<pre||end+post>chars.length||chars.slice(start-pre,start).join("")!==anchor.prefix||chars.slice(end,end+post).join("")!==anchor.suffix)return "HOLD_CONTEXT";
return "SPAN_MATCH";
}SPAN_MATCH checks only the supplied text and anchor. HOLD_VERSION, HOLD_RANGE, HOLD_QUOTE and HOLD_CONTEXT identify different failures. The code counts Unicode code points, not UTF-16 units or grapheme clusters, and compares unnormalised strings exactly. It rejects ill-formed surrogate strings. The text-length bound is measured in JavaScript code units. A real implementation needs a declared extraction and normalization profile, resource limits, source authorization and separate semantic review.
5. Executed local synthetic regression suite
On 2 December 2026 the corrected fixture set was executed locally: 14 of 14 expected status strings matched. During development, the repeated-quotation fixture initially failed because its start index was 25 rather than 26. The fixture was corrected to point to the second occurrence, not the preceding space. This is a documented test-data correction, not an alteration of the checker or a changed expected verdict.
| ID | Expected | Observed | Purpose |
|---|---|---|---|
| S01 | SPAN_MATCH | SPAN_MATCH | Exact span and context |
| S02 | HOLD_CONTEXT | HOLD_CONTEXT | Repeated quote at wrong occurrence |
| S03 | HOLD_QUOTE | HOLD_QUOTE | Altered quantifier |
| S04 | HOLD_VERSION | HOLD_VERSION | Stale edition |
| S05 | HOLD_VERSION | HOLD_VERSION | Wrong source |
| S06 | HOLD_RANGE | HOLD_RANGE | Outside text |
| S07 | HOLD_RANGE | HOLD_RANGE | Empty interval |
| S08 | SPAN_MATCH | SPAN_MATCH | Unicode code-point positions |
| S09 | HOLD_QUOTE | HOLD_QUOTE | Wrong UTF-16-style position |
| S10 | HOLD_CONTEXT | HOLD_CONTEXT | Changed context |
| S11 | HOLD_CONTEXT | HOLD_CONTEXT | Prefix outside text |
| S12 | HOLD_RANGE | HOLD_RANGE | Fractional offset |
| S13 | HOLD_INPUT | HOLD_INPUT | Empty quote |
| S14 | HOLD_QUOTE | HOLD_QUOTE | Same claimed version, altered text |
const fixtures = [
{
"id": "S01",
"source": {
"id": "demo",
"version": "v1",
"text": "Some respondents chose A. Some respondents chose B."
},
"anchor": {
"source": "demo",
"version": "v1",
"start": 0,
"end": 4,
"exact": "Some",
"prefix": "",
"suffix": " respondents chose A."
},
"want": "SPAN_MATCH"
},
{
"id": "S02",
"source": {
"id": "demo",
"version": "v1",
"text": "Some respondents chose A. Some respondents chose B."
},
"anchor": {
"source": "demo",
"version": "v1",
"start": 26,
"end": 30,
"exact": "Some",
"prefix": "",
"suffix": " respondents chose A."
},
"want": "HOLD_CONTEXT"
},
{
"id": "S03",
"source": {
"id": "demo",
"version": "v1",
"text": "Some respondents chose A. Some respondents chose B."
},
"anchor": {
"source": "demo",
"version": "v1",
"start": 0,
"end": 4,
"exact": "All",
"prefix": "",
"suffix": " respondents chose A."
},
"want": "HOLD_QUOTE"
},
{
"id": "S04",
"source": {
"id": "demo",
"version": "v2",
"text": "Some respondents chose A. Some respondents chose B."
},
"anchor": {
"source": "demo",
"version": "v1",
"start": 0,
"end": 4,
"exact": "Some",
"prefix": "",
"suffix": " respondents chose A."
},
"want": "HOLD_VERSION"
},
{
"id": "S05",
"source": {
"id": "other",
"version": "v1",
"text": "Some respondents chose A. Some respondents chose B."
},
"anchor": {
"source": "demo",
"version": "v1",
"start": 0,
"end": 4,
"exact": "Some",
"prefix": "",
"suffix": " respondents chose A."
},
"want": "HOLD_VERSION"
},
{
"id": "S06",
"source": {
"id": "demo",
"version": "v1",
"text": "Some respondents chose A. Some respondents chose B."
},
"anchor": {
"source": "demo",
"version": "v1",
"start": 0,
"end": 999,
"exact": "Some",
"prefix": "",
"suffix": " respondents chose A."
},
"want": "HOLD_RANGE"
},
{
"id": "S07",
"source": {
"id": "demo",
"version": "v1",
"text": "Some respondents chose A. Some respondents chose B."
},
"anchor": {
"source": "demo",
"version": "v1",
"start": 0,
"end": 0,
"exact": "Some",
"prefix": "",
"suffix": " respondents chose A."
},
"want": "HOLD_RANGE"
},
{
"id": "S08",
"source": {
"id": "science",
"version": "v1",
"text": "A 🧪 result is provisional."
},
"anchor": {
"source": "science",
"version": "v1",
"start": 4,
"end": 10,
"exact": "result",
"prefix": "🧪 ",
"suffix": " is"
},
"want": "SPAN_MATCH"
},
{
"id": "S09",
"source": {
"id": "science",
"version": "v1",
"text": "A 🧪 result is provisional."
},
"anchor": {
"source": "science",
"version": "v1",
"start": 5,
"end": 11,
"exact": "result",
"prefix": "🧪 ",
"suffix": " is"
},
"want": "HOLD_QUOTE"
},
{
"id": "S10",
"source": {
"id": "demo",
"version": "v1",
"text": "Some respondents chose A. Some respondents chose B."
},
"anchor": {
"source": "demo",
"version": "v1",
"start": 0,
"end": 4,
"exact": "Some",
"prefix": "",
"suffix": " respondents chose B."
},
"want": "HOLD_CONTEXT"
},
{
"id": "S11",
"source": {
"id": "demo",
"version": "v1",
"text": "Some respondents chose A. Some respondents chose B."
},
"anchor": {
"source": "demo",
"version": "v1",
"start": 0,
"end": 4,
"exact": "Some",
"prefix": "x",
"suffix": " respondents chose A."
},
"want": "HOLD_CONTEXT"
},
{
"id": "S12",
"source": {
"id": "demo",
"version": "v1",
"text": "Some respondents chose A. Some respondents chose B."
},
"anchor": {
"source": "demo",
"version": "v1",
"start": 0.5,
"end": 4,
"exact": "Some",
"prefix": "",
"suffix": " respondents chose A."
},
"want": "HOLD_RANGE"
},
{
"id": "S13",
"source": {
"id": "demo",
"version": "v1",
"text": "Some respondents chose A. Some respondents chose B."
},
"anchor": {
"source": "demo",
"version": "v1",
"start": 0,
"end": 4,
"exact": "",
"prefix": "",
"suffix": " respondents chose A."
},
"want": "HOLD_INPUT"
},
{
"id": "S14",
"source": {
"id": "demo",
"version": "v1",
"text": "All respondents chose A."
},
"anchor": {
"source": "demo",
"version": "v1",
"start": 0,
"end": 4,
"exact": "Some",
"prefix": "",
"suffix": " respondents chose A."
},
"want": "HOLD_QUOTE"
}
];
for(const x of fixtures) console.log(x.id,witness(x.source,x.anchor),x.want);These tests are author-defined, not independent evaluation. They do not establish entailment, completeness, source reliability or retrieval accuracy. The code is published for reproduction, not executed on the website.
6. From Secondary 1 to Secondary 4
In Secondary 1 reading, identify who spoke and which event is described. In Secondary 2, preserve the original referent in a paraphrase. In Secondary 3 Science, distinguish an observation from an inferred mechanism. In Secondary 4, check whether a cited passage actually supports an argument. A matching phrase such as effective may be part of an opinion rather than a measured result. The learning evidence is a new independent explanation of the evidence, not a software match.
7. Centre-to-edge vocabulary learning
| Rung | Observable operation |
|---|---|
| L0 | Attend to the passage |
| L1 | Identify the relevant words |
| L2 | Name the source |
| L3 | Explain the quotation |
| L4 | Recall the distinction |
| L5 | Encode the span |
| L6 | Relate quote and claim |
| L7 | Combine a faithful answer |
| L8 | Disambiguate repeated wording |
| L9 | Transfer to a fresh passage |
| L10 | Interpret context |
| L11 | Apply a formal source convention |
| L12 | Trace editions |
| L13 | Critique a misleading citation |
| L14 | Maintain reviewed evidence |
| L15 | Propose a testable new distinction |
The proposed eduKate ladder is not an official grade scale or validated measurement instrument. Appropriate access support remains available. Do not infer mastery from a copied quotation.
8. VocabularyOS integration and four-week laboratory
The source registry retains the representation and version; the span witness checks location; human or otherwise appropriately verified adjudication establishes source facts; the semantic test harness compares the candidate claim; the return plane marks affected items for review after correction. A successful structural match does not grant permission to disclose private content.
| Week | Task | Evidence |
|---|---|---|
| 1 | Review synthetic passages and repeated expressions | Source-grounded annotations |
| 2 | Reproduce the suite and add independent Unicode cases | Observed matches and holds |
| 3 | Test text extraction and source-to-claim review separately | Extraction errors versus entailment errors |
| 4 | Use an authorised fresh reading task | Independent transfer and teacher effort |
No human experiment or production deployment occurred. Research with children requires appropriate permissions, consent or assent, privacy safeguards and suitable access arrangements. Use synthetic or appropriately authorized sources and minimize private data.
