Meaning / Read a passage
Read a passage
read reads a text or conversation as one document: reading-v1. Every record in it has an id and a span into the text you sent, so text.slice(...span) is always the words it is about. The layers go from what is exactly there (tokens, morphemes, phrases, clauses, what each clause asserts, what pronouns point to) through what is estimated (each word's sense, with its strength) to what the wording does to a reader (what it takes for granted, defines, disputes, leaves open, and how two passages differ).
const reading = await superb.read({ text: 'Fees may apply if you cancel after 30 days.' });
HTTP equivalent: POST /v1/read. Send text, or messages: [{ id, author?, text }] for a conversation, up to 8,000 characters in all. layers limits the work to some of tokens, morphology, structure, propositions, references, senses, sentences, inferences, definitions, disputes, suggestions and contrasts; the default is every layer except tokens and morphology, which are a record per word. format: 'markdown' reads Markdown as prose: code, HTML, link targets, addresses and formatting marks are blanked to spaces of the same length, so every span still indexes the text you sent.
Structure: exact where language is exact#
| Layer | Records | What they hold |
|---|---|---|
tokens |
t1… |
Every word, number and mark: span, pos (Universal part of speech), lemma, type, whether it sits in a negation's scope, and the unit it belongs to. |
morphology |
m1… |
Per word: lemma, listed (the dictionary has it), features (number, tense, person, form, degree, possessive) and morphemes: prefix, root, suffix and inflection, each with its meaning ("un" = not, "ness" = the state of being) and a basis. A prefix is reported only when the dictionary connects the word to its root or Wiktionary says it was formed from it; a root whose spelling changed names its dictionary form ("happi" → lemma: 'happy'). |
structure |
p1…, c1…, e1… |
phrases: noun, verb, preposition, adjective and adverb groups with a head token; a preposition's object is the group it governs. clauses: main, coordinate, subordinate or relative, with the relation its marker sets up (condition, cause, time, concession, contrast, result, content, place, addition, alternative) and the parent it depends on. entities: dates, times, durations, money, percentages and counts. |
propositions |
q1… |
What each clause asserts. actor, predicate, patient, recipient and complement, each with its phrase, lemma, quantifier (all, some, none, one, definite, …) and the sense the reading chose for its head. polarity, modality (none, possible, certain, required, advised, conditional), tense, aspect, voice. modifiers (prepositional phrases), time and figures (entities in the clause), the condition clause it depends on, and gaps. |
references |
r1… |
Names, and pronouns with their antecedent phrase, the candidates considered and a strength (clear for a relative pronoun, likely, close, or unresolved). A pronoun that needs a person is matched to a noun WordNet files as one. |
reading.propositions[0]
// { text: 'Fees may apply', polarity: 'affirmative', modality: 'possible', tense: 'present', voice: 'active',
// actor: { text: 'Fees', lemma: 'fee', quantifier: null, sense: { unit: 'u1', gloss: 'a fixed charge…', strength: 'clear' } },
// predicate: { lemma: 'apply', text: 'may apply' }, patient: null, condition: 'c2',
// gaps: [{ slot: 'amount', ask: 'How much?', phrase: 'p1' }] }
A gap is a slot the wording leaves empty, with the question a reader would ask: actor (an agentless passive: "Refunds are processed"), time (a vague time adverb with no date: "promptly"), amount (a cost with no figure: "fees may apply"), start (a duration with nothing it counts from: "within 30 days") and limit (an open adjective with no figure: "a reasonable charge").
Measured against a treebank (node scripts/structure-evaluate.mjs, Universal Dependencies English EWT test set, 1,788 sentences of web text, fetched locally): parts of speech agree with the gold tags 88% of the time; 94% of the gold clauses have a proposition on their verb, 39% with exactly the gold span; the actor matches the gold subject (or agent of a passive) 82% of the time and the patient the gold object 71%; voice 98%, negation 98%, modality 94%. Roles fail mostly on inverted questions, reduced relatives ("a review my colleagues published") and clausal complements.
These layers come from a pinned part-of-speech model (tagger in the response) and rules: a chunker for phrases, boundary rules for clauses (subordinators, relatives, clause-level coordination), and role rules that read the noun group before a verb group as its subject, the ones after it as what it acts on, a by phrase as the actor of a passive. There is no parse of the whole sentence, so a long or unusual sentence can be chunked wrong; what is returned is deterministic and carries no probabilities.
Senses: an estimate, with its strength#
Each item in units is one expression, the longest phrase the reference lists first ("financial institution" before "financial"), sitting on its tokens. It carries selected, the most likely sense, up to three alternatives with a share, and a strength: clear, likely or close (with pointsTo, the runner-up), or single-sense. prior is the reading from the word's own sentence before the trail, changed says whether the trail moved it, and movedBy names the words that pushed it hardest.
The prior weighs the reference's usual sense against the sentence's wording, two part-of-speech cues (the words on either side, and the tagger's tag for the word) and, when the usage assets are deployed, the specialist arbiter's own logit for each sense (specialist-arbiter-v4: usage profiles and prevalence from 146 million words of the open catalogue, placement frames, overlap). The response's model says whether the arbiter was in: sense-trail-v2+specialist-arbiter-v4. A word tagged as a preposition, determiner, pronoun, conjunction or auxiliary carries no reading to choose and is not a unit. The trail then lets nearby words pull on each other's readings through WordNet links, shared definition words and the words themselves; a repeated word leans toward one sense per discourse.
shifts lists an expression read two unrelated ways in one text; inside an argument it is an equivocation-candidate. sentences gives each sentence's reading (the sentence with its words glossed in the chosen senses), its units, clauses, propositions and the units still open.
Measured on held-out halves (node scripts/read-evaluate.mjs, words split in two by hash, tuned on one half and reported on the other):
| Set | Items | First listed sense | Prior | Trail |
|---|---|---|---|---|
| SemCor 3.0, hand-tagged natural prose, with the arbiter | 37,167 | 58.2% | 68.8% | 68.7% |
| SemCor 3.0, without the usage assets | 37,167 | 58.2% | 65.6% | 65.1% |
| Dictionary example sentences, held out of every sense, without the assets | 10,037 | 39.1% | 41.9% | 42.4% |
With the arbiter, a clear reading (64% of words) is right 79% of the time, likely (27%) 55% and close (10%) 39%; the strength bars move up with the assets (clear at a share of 0.9, likely at 0.6, chosen on the tuning half). The tagger's cue took natural prose from 60.7% to 65.1% and the arbiter's logit to 68.7%; on dictionary fragments, which tag poorly, the cue costs about three points. A small network over the arbiter's features was tried (scripts/train-sense-net.mjs) and adds 1.4 points only when its inputs are cross-fitted, so it stays off. Shares are not calibrated probabilities. Layers that rest on a sense use clear readings only.
Inferences#
What a reader is led to accept without being argued with:
| Layer | What it is | Example |
|---|---|---|
presupposition |
Taken for granted, and survives denial and questioning | "Why did the CEO lie?" → "The CEO did lie" |
implicature |
Suggested, and could be taken back (cancellable) |
"Some passed" → not all |
framing |
Shapes the inference without stating it | "Mistakes were made" (who?), "Experts say" (which?) |
Each presupposition is rebuilt as a proposition. Its status is read across the whole text: established (an earlier sentence already asserted it), accommodated (the reader is asked to take it on as background) or filtered (an "if" clause supplies it). Every inference has a challenge, the question that tests it.
Definitions#
Where the text sets what a word means: stipulative ("By sound I mean…"), persuasive ("Real freedom means…"), no-true, retreat ("All I meant was…"), diminishing ("just a theory") and scare-quotes. Each is compared with the reference's senses of the word: verdict is matches, narrows, widens, departs, contested or unlisted, and manufactured marks a definition built to win an argument rather than to inform.
Disputes#
Between named speakers, each disputes item names the pivot word, each side's reading of it, and the dispute's nature: verbal (the sides read the word differently), substantive (same reading, different facts), normative (same reading, different oughts) or mixed. Each side's claim is restated with the word replaced by what that side means by it, Chalmers's method of elimination; test is the question to put to both sides. A side that says what it means is read by that definition (reading.basis: 'own-definition').
Suggestions#
For a writer: the places a reader is left to guess, at the exact phrase.
const { suggestions } = await superb.read({ text: article, format: 'markdown', layers: ['suggestions'] });
| Kind | Severity | From | Example |
|---|---|---|---|
hidden-actor |
consider | a proposition's actor gap |
"Refunds are processed" |
vague-time |
fix | a time gap |
"processed promptly" |
unstated-cost |
fix | an amount gap |
"fees may apply" |
missing-start |
fix | a start gap |
"within 30 days" |
open-limit |
fix | a limit gap |
"a reasonable charge" |
shifting-term |
fix | shifts |
one word in two unrelated senses |
unnamed-source, absolute, assumed-knowledge, false-choice |
consider | framing inferences | "Experts say", "never", "Everyone knows" |
scare-quotes, loaded-definition, own-definition |
consider | definitions | your "free" plan |
Each has the quote at its span, why it matters, the question a reader would ask, how to fix it, and, when a proposition raised it, that proposition; one of a kind per sentence. Superb Support runs this check in its help-centre editor. Reviewed on 98 real help-centre articles, about half of the suggestions were judged useful (scripts/review-suggestions.mjs; the review was Claude's, not independent): hidden actors are raised only on verbs where accountability matters, and a cost or a deadline is a gap only when it is the reader's own and nothing in the clause points to the figure.
Contrasts#
For two or more messages on one subject: sentences are paired by the content words they share, and each contrasts item lists what differs: a figure (60 days, 30 days), a scope or modality of a different force ("every" against "some", "may" against "will"), or a word both passages share read in unrelated senses, each side restated. nature is substantive, verbal or mixed; test is the question that settles it.
Validate a reading#
The reading's schema ships with the SDK. The validator checks the shape, then what a schema can't: every span inside the text, every quote at its span, every id resolving, and every sense a proposition carries being the one its unit selected.
import { validateReading } from '@superbworks/sdk';
const { valid, errors } = validateReading(reading, [{ id: 'text', text }]);
Model reading: three tiers#
| Tier | How | Runs | Cost |
|---|---|---|---|
| Small | the default deterministic reading | in the Worker, every call | free, rate-limited by address |
| Medium | mode: 'model', effort: 'quick': Claude Haiku 5.5 |
Superb's API | from a plan's model budget, about a fortieth of the large tier per token |
| Large | mode: 'model', effort: 'standard' or 'deep': Claude Opus 5.5 at medium or high effort |
Superb's API | from a plan's model budget |
mode: 'model' reads the same layers with a model under the same sense inventory, adds each sentence's meaning in plain words, and keeps only what checks out: a sense must be one of the unit's listed candidates, cues must be real units, every quote must appear in the text. Where a check fails, the deterministic reading stands; checks counts what was proposed and kept. It needs an API key with the read scope and a Superb plan with model budget left; each call reserves its worst case, settles to the measured cost and returns the month's budget. Measured on held-out SemCor sentences (scripts/read-evaluate.mjs --mode=model): Claude Opus 5.5 at low effort picked the labelled sense 70.5% of the time on 271 items (about ±5 points), against 58.7% for the deterministic reading of that day on the same items. Claude Haiku 5.5 at low effort picked it 65.1% of the time on 1,076 items, against 67.8% for today's deterministic reading with the arbiter on the same items: the medium tier buys each sentence's meaning in plain words and the model's reading of the other layers, not better senses (Claude Sonnet 5.5 at low effort did worse on a small sample). The operator can move any tier to another model with CLAUDE_MODEL_POLICY.
Limits#
- Structure comes from a tagger and rules, not a full parse: long, inverted or unusual sentences can be chunked wrong, and a wrong tag becomes a wrong role. What is returned is deterministic and says nothing about probability.
- Senses are an estimate;
strengthis the signal to trust. Measure on your own text before relying on a single reading. - Inferences, definitions, disputes, suggestions and contrasts come from English wording patterns. They mark places to check, not what anyone meant.
- Only listed senses are read. A use no sense covers, such as slang, a name or a new sense, can't be told apart.
Offline#
@superbworks/read is the same engine as a package: createReader() reads against the superb.works assets, a local copy or a loader of your own, in Node, Workers or the browser, and returns the same document.
Next: Resolve a single word with its evidence and release, or a usage's stable identity.
Try it here
Read a text
Sent to this host’s deterministic API. This does not save an analysis or contact a model provider.