Skip to content
LexyMaat
STRUCTURED DOCUMENT INTELLIGENCE

Document Memory for Consistent Translation

Structured working memory retains document-specific linguistic evidence throughout translation.

A term defined in the first chapter of a contract must remain meaningful in its final clauses. An abbreviation introduced in a technical manual must be handled consistently dozens of pages later. A translation system needs more than access to previous translations to make these decisions.

LexyMaat separates structured working memory for the active document and run from Translation Memory, approved terminology, and retrieval over external resources. Document Memory includes durable exemplars, deterministic section summaries, scoped reuse, provenance, and invalidation. The model organizes working evidence across ten complementary layers.

STRUCTURED DOCUMENT INTELLIGENCE

Ten complementary memory layers

  1. 01Structural MemorySections and original document locations
  2. 02Segment MemoryTranslation state and segment identity
  3. 03Entity MemoryNames, designations, and entities
  4. 04Term-Choice MemoryDocument-specific terminology decisions
  5. 05Abbreviation MemoryExpansions and abbreviation handling
  6. 06Repetition MemoryRepeated and boilerplate passages
  7. 07QA / MQM MemoryQuality findings and resolution state
  8. 08Coverage / Alignment MemoryCompleteness and source–target correspondence
  9. 09Section Summary MemoryCompact section-level context
  10. 10Style / Register MemoryDocument-specific linguistic conventions

The approved Document Memory model describes working evidence for the current document and run, not automatically approved reusable knowledge.

0101 / STRUCTURED WORKING MEMORY

Structure and scope of document-level memory

Document Memory maintains a structured record of the current document rather than relying on a single free-form summary. Structural and segment information associates linguistic decisions with the original section and source location. Entity, term-choice, abbreviation, and repetition evidence help keep recurring expressions consistent within the active document.

QA and coverage information, section summaries, and style/register evidence complete the approved model. These layers express distinct kinds of working knowledge; they are not ten independent long-term translation memories.

In the approved storage model, SQLite is the primary store for structured memory records, statuses, provenance, and mappings. Qdrant may optionally index selected chunks or summaries for retrieval, with minimized payload metadata; it is not the authoritative memory store. Source, target, and extracted text remain in controlled local storage where required.

  • Structural and segment identity
  • Entities, terminology choices, abbreviations, and repetitions
  • QA, coverage, section summaries, style, and register
  • SQLite as the authoritative store; optional Qdrant retrieval index
0202 / DISTINCT KNOWLEDGE AUTHORITIES

Document Memory and other linguistic resources

Translation Memory retrieves previous bilingual translations. Termbase represents approved terminology. Retrieval-augmented generation (RAG) selects evidence from reference documents. Document Memory records contextual decisions and state within the current document and run.

Working evidence can help maintain the translation of a defined term or the treatment of an acronym, but it cannot override an approved Termbase, the Translation Brief, or applicable Linguistic Convention Packs. Confirmed knowledge becomes reusable only through the appropriate resource governance.

Memory is scoped to the project, document, and translation run. Document-specific records are not shared between projects or clients unless eligible knowledge is explicitly distilled and approved through the relevant resource policy. Ordinary logs contain operational metadata such as identifiers, counts, statuses, and timings, rather than document-memory content.

The Translation Brief, applicable TM policy, approved terminology, and Linguistic Convention Packs govern reuse of working evidence. A term choice or abbreviation recorded during a run is contextual evidence, not a new prescriptive rule.

  • Distinct roles for TM, Termbase, RAG, and Document Memory
  • Evidence tied to the current document and translation run
  • Explicit authority boundaries
  • Project and client isolation with content-safe diagnostics
0303 / ADAPTIVE CONTEXT

Adaptive context selection and evidence reuse

Document Memory supports compact context packs for translation, revision, consistency analysis, and quality checks. The minimum-sufficient-context resolver progressively selects evidence from the segment, its neighbors, the document, and relevant reference resources. It stops when the requirements are satisfied rather than indiscriminately sending the entire document to the model.

Section summaries and exemplars are bound to their scope and provenance. Evidence affected by changed source or target state must be invalidated rather than silently reused. In multilingual projects each target branch maintains its own language-specific working decisions, even where verified source-only evidence is shared.

  • L1 segment → L2 neighbors → L3 document → L4 semantic retrieval
  • Deterministic section summaries and durable exemplars
  • Scoped reuse, provenance, and invalidation
0404 / LONG-DOCUMENT CONSISTENCY

Document Memory lifecycle and linguistic consistency

The lifecycle initializes Document Memory after source extraction, structural analysis, segmentation, and chunking. Candidate entities, abbreviations, term choices, and repetition groups populate the working state. Compact memory packs then inform translation, and records are updated as translation decisions and statuses change. During document-level consistency assessment and combined Revision & Autocorrection, the relevant memory supports quality findings, coverage checks, and eligible repairs.

At completion of automated processing, the current working memory becomes a retained project artifact. Subsequent human validation remains a separate authority boundary: only eligible, validated knowledge may be transferred into long-term linguistic resources through the Knowledge Building or Controlled Learning process.

Consider a technical manual that introduces a device designation, defines an abbreviation, and repeats a safety instruction in several sections. Document-level evidence can connect those occurrences and support consistent treatment while preserving the context of each individual passage.

The same principle applies to definitions in contracts, recurring clinical terminology, and repeated elements in presentations. After human validation, approved bilingual units or linguistic preferences may enter governed reusable resources through Knowledge Building or Controlled Learning. Working memory itself does not automatically become approved Translation Memory or terminology.

  • Consistent treatment of document-specific terms, entities, and repeated passages
  • Separate working state from approved reusable knowledge
  • Human-governed learning across subsequent projects
  • Initialization, candidate population, scoped updates, consistency assessment, and retained working state
THE LEXYMAAT PRINCIPLE

Document-level working memory supports consistent translation across the entire document.