/** The prose reader at the seal: the delivered words, read against the turn's own * record, on every path that composes prose — the floor's record lines are literal * and are never read. Two refusals, both mechanical and both language-free: not one * word of any language lives in this file, because the engine owns no vocabulary — * the declaration's own rule text and the operator's own message are the only * reference material. * * 1. a guard's rule text delivered on a turn that refused nothing — a rule states * a CONDITION, and delivering it bare asserts the condition holds of the world * (a byte-match against the declared rule, whatever language the declaration is * written in). Two things stand outside it: a turn whose record carries a * refusal is stating the condition it is actually in, and a rule the turn's own * OWED FACTS carry is a sentence the engine demanded the reply express — the * exemption reaches that rule and no other; * 2. a reply written in a different SCRIPT from the operator's own message — latin * against cjk, cyrillic against greek. A script is a property of the code points * themselves, so this refusal reads bytes and nothing else. * * THE ACCEPTED LIMIT of check 2: two languages that share a script are the same class * here, and a latin reply to a latin operator always passes — an English operator * handed a Danish receipt is not caught. Nothing in the bytes separates them: measured * over the transcripts, a character-trigram score puts a correct English reply at * 0.1687 and a wrong-language Portuguese reply at 0.1718, so any cut refuses good * replies before it catches bad ones. Telling those two apart takes vocabulary, and a * class that needs vocabulary is a class this reader abstains on — never engine * matching. * * What the reader deliberately does not hold: a claim of a read or an act the * record lacks, a required sentence OMITTED, a tense lie beside a true fact, a * refusal for the wrong reason. Detecting a claim takes words, words belong to a * language, and the engine carries none — never a word list here. A class that needs * vocabulary is a class this reader abstains on. */ import type { Act } from '../contract/vocabulary.js'; export type ProseCheck = 'wallEcho' | 'language'; export interface ProseRefusal { readonly check: ProseCheck; /** The correction sentence the redrive carries — it teaches, it does not scold. */ readonly sentence: string; } export interface ProseReading { readonly text: string; /** The operator's own words the reply is held against — see `languageReference`. */ readonly userText: string; readonly acts: readonly Act[]; /** The text of every fact this turn owes — what the engine itself demands the * reply state. */ readonly owed: readonly string[]; /** Every compiled guard rule, deterministic and judged alike. */ readonly rules: readonly string[]; } /** The operator's words a reply is held against: the LATEST message of theirs that * carries enough letters to name a script. A turn whose whole message is an approval * code carries no letters at all, and the script the conversation has been in is what * the reply owes — the empty string only when the operator has never written words. */ export declare function languageReference(operatorTexts: readonly string[]): string; export declare function readProse(reading: ProseReading): ProseRefusal | null; //# sourceMappingURL=prose-reader.d.ts.map