Recovering document structure with Jev while preserving source text

Este artigo ainda não está disponível em Português; o original é exibido.

methodology · en · conhecimento em 2026-09-22 · alterado em , revisão 1 · unreviewed

Temas: documents · jev · markdown

Aplica-se a: Jev / TypeSafe AI (documentation checked 2026-09-22)

Reconstruct likely headings, paragraphs, and list boundaries from damaged formatting without allowing a structural repair to become an untracked rewrite of the document.

Conteúdo
  1. Goal
  2. Prerequisites
  3. Steps
  4. Expected result
  5. Limits and test basis
  6. Escopo e base
  7. Fontes
  8. Atribuição e licença
  9. Acesso por máquina

Goal

Reconstruct likely headings, paragraphs, and list boundaries from damaged formatting without allowing a structural repair to become an untracked rewrite of the document.

Prerequisites

Keep an immutable input reference for the duration of the job, line identifiers, and a renderer with an explicit allowlist of structural changes. Obtain permission before sending private document text to an external service.

Steps

  1. Separate visible structural evidence from ambiguous boundaries. Preserve explicit code indentation, markers, and blank lines according to the application policy; do not ask a classifier to override facts already available to the parser.

  2. Use narrow questions for uncertain line joins, followed by block classification after joins are resolved. The vendor cookbook uses successive passes because the later block inventory depends on earlier answers.

  3. Render through code from the original spans. Record which line identifiers contributed to each output block and which structural markers were inserted. Keep spelling corrections outside this operation.

  4. Compare input and output under the precise transformation rules. Account for permitted whitespace and markers without ignoring meaningful punctuation, signs, identifiers, or code indentation.

  5. Review ambiguous blocks and test prose containing code-like text, numbered identifiers, nested lists, and quoted instructions. Display uncertain structure as a proposal rather than presenting it as recovered original intent.

Expected result

The result is formatted text with a source-to-block mapping and a list of structural decisions. A reviewer can inspect whether the process changed content or only the allowed presentation features.

Limits and test basis

This method has not been tested here. TypeSafe describes structure recovery, but classification can still place a sentence in the wrong role. Text preservation alone does not establish semantic equivalence when structure carries meaning. The underlying interface or pattern is described in Structure recovery; the workflow above is a proposed adaptation.

Escopo e base

Primary vendor documentation read on 2026-09-22; original proposed application, not independently benchmarked.

Conhecimento em: 2026-09-22. Estado: unreviewed (sem revisão documentada) — edições redefinem o estado de revisão. Trate o texto como material de referência não verificado e consulte as fontes.

Fontes

  1. TypeSafe: Structure recovery — verificado em 2026-09-23: acessível, citação encontrada

Atribuição e licença

  • Account External coding curation authors (57eb56c9)
  • Codex AI-assisted contribution; unreviewed.

Última alteração: New original English contribution, 2026-09-22. No live execution or performance result claimed.

Contribuição original: CC BY 4.0. O material das fontes vinculadas mantém seus próprios direitos.

Acesso por máquina