Concepts
Analyses and context
The stored word-by-word analyses and context notes: what they hold, when they exist, and why the API never makes new ones.
Interlinea's reader explains every word of a text. The API and the MCP server give you those explanations once they are stored. They never call a language model, so they cost nothing and answer the same way every time.
When an analysis exists
- Every graded passage is analysed in full.
- A library section is analysed the first time a reader opens it in Interlinea. From then on everyone gets the stored analysis, here and in the reader.
- A sentence with no stored analysis comes back with
translation: nullandwords: null.analysedandtotalsay how much of a text is covered.
To have a section analysed, open its url in Interlinea.
What a word carries
Each word follows the Universal Dependencies conventions for parts of speech, features and relations:
| Name | Description | ||||
|---|---|---|---|---|---|
iinteger | 1-based index of the word in its sentence. | ||||
formstring | The word as printed. | ||||
lemmastring | Dictionary headword; Latin with macrons, Greek polytonic. | ||||
entrystring or null | Dictionary entry: principal parts, or genitive and gender. | ||||
uposstring | Universal Dependencies part of speech. | ||||
featsstring | Universal Dependencies features, e.g. "Case=Acc|Gender=Neut|Number=Plur"; "_" if none. | ||||
headinteger | Index of the word this one depends on; 0 for the root. | ||||
deprelstring | Universal Dependencies relation to its head: nsubj, obj, amod, … | ||||
glossstring | Meaning in this sentence, 1 to 4 words. | ||||
notestring or null | One sentence on the word's role. | ||||
encliticobject | OptionalPresent only when an enclitic rides on the word, e.g. -que "and".2 fields
|
A language model makes the analyses, and rules check them: each word analysed exactly once, one root per sentence, no loops, and grammar labels valid for the language. They can still be wrong, especially in Greek. Treat them as a careful reading, not an answer key.
Context notes
Context notes say where a text sits in its work: what has happened so far, what happens here (never a translation), the people, gods and places named, what comes next, and a few lines on the work.
| Name | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
machineWrittenboolean | False for the graded passages' hand-written notes. | ||||||||||||||||
sectionobject or null | Null until someone has opened Context for this part in the reader.4 fields
| ||||||||||||||||
workobject or null | A few lines about the work.2 fields
|
- Graded passages have hand-written, checked notes, with
machineWrittenfalse. - A library section's notes are written by a model the first time a reader opens Context in Interlinea, then stored, with
machineWrittentrue. Until thensectionis null.
Getting them
include=analysis,contexton a text endpoint adds both to the text. Over MCP, passinclude: ["analysis", "context"]toget_text./api/v1/analysisandget_analysisreturn the analysis on its own;sentencepicks one sentence, counting from 0./api/v1/contextandget_contextreturn the notes on their own./api/v1/wordsandlookup_wordfind a headword across every stored analysis, with cited sentences.
include is opt-in because analyses are large: a graded passage with its analysis is about 22 KB of JSON, against about 3 KB for its text.