Text Quality Indicators
The four dots above the text (PARA, MISS, OOV, SENT) judge the current Main Text and follow every edit after a short delay. Green is good, amber is worth a look, red needs attention, grey means not available. Click a dot for the figures of the current document. On Submit, the values are also stored per paragraph in the document's retrieved_text_postprocessed file.
Headings, titles, tables and images are not judged by PARA and SENT. The line below the dots shows the number of tokens (words), sentences and paragraphs.
PARA – paragraph plausibility
Share of text and list paragraphs that do not look broken. Green from 90%, amber from 75%. A paragraph is flagged as:
- Split mid-sentence: it starts with a lowercase letter, or the paragraph before it is a text paragraph of more than 3 words that ends without
. ! ? : ; (and is not heading-like).
- Stray fragment: at most 3 words, no full stop at the end and not heading-like (for example a lone page number or a broken line end).
- Merged: two or more inline bullets (• · ▪ …) or three or more inline enumerations (“1. A…”) inside one paragraph, so several list items were joined.
Lists: a separate paragraph per list item is expected and not flagged. A list item is a paragraph of type list-item, or one that starts with a bullet or an enumeration marker. A list item is only flagged as split if it starts lowercase and continues a long (more than 12 words) item that has no closing punctuation.
Heading-like: a short line (at most 12 words) that starts with a capital or digit, has no closing punctuation and does not end with a small word such as “and”, “of”, “the” – titles, place/date lines and labels. Bare numbers are never heading-like.
MISS – OCR word coverage
Share of the words detected by OCR that are present in the text. Green from 97%, amber from 90%. It detects text lost during retrieval or editing.
- The OCR word list is recorded once per full OCR retrieval (ocr.space or Surya word boxes, or a one-off word-detection pass for Markdown-only models) and stays fixed until the next full retrieval. Deleting a bubble therefore lowers MISS on purpose.
- Every OCR word is assigned to the smallest paragraph box that contains its centre (with a small tolerance) and looked up in that paragraph's text. Words that are in a sibling box of the same block, or elsewhere on the same page, still count as found (a placement problem, not a text problem).
- Hyphenated and glued words are matched by their parts.
- Page numbers and running headers/footers removed by the filter after full retrieval are also removed from the word list.
- Text-layer extracts have no word list of their own: MISS uses the list of an OCR extract of the same document. This is why a free OCR runs first when you start a text-layer extraction.
MISS_oop – out-of-place words: the reverse direction. Words in the text that cannot be assigned to any word registered by OCR, for example words added by hand or rewritten in post-processing. (An unknown word, OOV, still has an OCR word behind it; an out-of-place word has none.)
- Each paragraph's words are first matched against the OCR words inside its own box, then against the OCR words of the same page that are still unused. Words left over are out of place.
- Counted per paragraph, per page and per document: shown in the MISS dialog and in the table as
MISS_oop (with MISS_oop_examples).
- For now they only are reported: they are not counted in the total number of words for MISS (the OCR-detected words) and do not change the MISS percentage or level.
- Only available when an OCR word list exists (same as MISS).
OOV – out of vocabulary
Share of words unknown to the dictionaries of the document languages (English when none of them has a dictionary). Lower is better: green up to 3%, amber up to 8%.
- Only alphabetic words count; numbers and one-letter words are ignored.
- Acronyms of 2–6 capitals (EU, UNESCO) count as known, as do hyphenated words whose parts are all known.
- Turn on Spellcheck in the Main Text to underline unknown words; right-click one to correct it or add it to the dictionary. Added words lower OOV for every document.
- The document languages are the metadata Languages field (Language button, top right of the document view). Every paragraph is checked against the dictionary of its own detected language first, then against the other document languages. Languages without a dictionary are skipped.
SENT – sentence integrity
Share of sentences that start with a capital letter or digit and end with . ! ?. Green from 90%, amber from 75%. Common abbreviations, initials and numbering (“3.”, “iv.”) do not end a sentence.
- Distributed sentences (lists): list items count as parts of one sentence. An introduction ending with
: followed by a list or table is fine; items may start lowercase and end with ; , . : ! ?, or be short phrases of up to 12 words, or end with “and”/“or”.
- The first sentence of a paragraph that continues an unterminated paragraph is not counted against SENT (the split is flagged on PARA instead).
- Heading-like lines count as correct; headings, tables and images are not counted.
Editing and Shortcuts
Selecting and arranging
- The bubbles can be rearranged through drag & drop.
- Click a bubble, then Shift+click another to select every bubble in between. Ctrl+click toggles a single bubble.
- Box-select several bubbles by dragging in the empty area, or press B and drag to box-select even over a bubble.
- Double-click a bubble to edit its text. Delete removes the selected bubbles (with their word positions).
- Ctrl+Z undo, Ctrl+Shift+Z redo.
Split and merge
- M (or F) merges all selected bubbles into one.
- Hover a bubble to show its tools on the right: the scissors split it, ▲ merges it with the bubble above, ▼ with the bubble below.
- K splits the one selected bubble (also when it was selected in the document preview). The text opens enlarged; click where to cut – the cut snaps to the nearest word boundary and is applied immediately. Esc closes without splitting. Tables and images cannot be split.
- Each half gets the bounding box of its own words in the preview.
- Tables only merge with tables of the same number of columns (rows are appended, for tables continued over several pages). Adjust the columns first if they differ.
- Step 1 (Metadata) works the same way on the parsing results: click a box in the document preview or a Parsing results bubble to select it (Shift+click for a range, ⌘+click to toggle), or drag a frame over the empty preview area (B first to start the frame on top of a box). K splits the selected box, M merges the selected boxes, Esc clears the selection. Dragging a box without B still fills a metadata field.
- Text dropped on Umbrella Organization, Institutional Body, Document Type, Host Location, Title, Subtitle 1 or Subtitle 2 is cleaned on drop: line breaks become spaces and trailing punctuation such as
, . ; : is removed. Text written in capital letters is recased: Title Case for Umbrella Organization, Institutional Body, Document Type and Host Location; for Title and Subtitles Title Case in English and sentence case in French (“Convention concernant la lutte contre la discrimination”). Document symbols (A/RES/55/2), Roman numerals and the names and acronyms listed in dictionaries/case_entities.txt (“General Assembly”, “UNESCO”; one per line, extend it as needed) keep their exact form. Hold Alt/Option while dropping to keep the capitals. Text dropped on Publishing Date keeps only the day, month (name or abbreviation, English or French) and year and rewrites them as YYYY-MM-DD (or YYYY-MM / YYYY when parts are missing), so e.g. “Distr.: General 1 August 2000” becomes 2000-08-01. The ID is the document id generated on import and cannot be changed.
- The dropdown right of the Languages field marks the document languages as Original (written in these languages) or Translated. It applies to all languages of the document; each language is stored with its status, e.g.
(English, original); (French, translated) in the Document Table and documents.csv. Older entries without a status count as original.
OCR selection
- Press OCR selection, choose what the boxes contain – Texts, Tables or Images – and draw one or more boxes on the preview. Reset removes the drawn boxes, Esc cancels.
- Tables are converted into rows and cells: a pipe table in Markdown,
<table><row><cell> in TEI, and { CSV } in plain text. No header row is marked.
- Images are saved as JPEG in the document's shared
assets folder (used by all extracts) and appear as an image bubble.
Document preview
- Pinch, or Ctrl+scroll, over the preview zooms the document only. The default view is the most zoomed-out one.
Submitting and saving
- Layout and Post-processing edit the same paragraphs: a change in one tab is immediately in the other, and you can switch between them freely. Edits are autosaved after 5 seconds without activity (and when you leave the page).
- Every change is recorded in one change log with its source: manual edit, dictionary correction, line-break join, OCR selection, paragraph split / merge / delete / move, or an AI / VLM suggestion that was accepted, edited or rejected. Pending AI / VLM suggestions are not part of the text until you accept them.
- The document state on the server only changes when you submit. Quick Submit (Ctrl+Enter) writes
retrieved_text_postprocessed_<id>.json and adds the new changes to its log with the submission time; Submit Full Set additionally writes the .txt / .md / .xml files and is required before entering Section 3. A submit that changes the text resets Section 3 results (you are asked first).
- The untouched output of Full retrieval is kept in the extract's
initial/ folder (retrieved_text_initial_<id> .json / .txt / .md / .xml) and is never overwritten, so the original OCR can always be compared with the edited text. It also counts as the first submitted state.
- Reset reverts the text of both tabs to the last submitted state. Undo/Redo is shared by both tabs and keeps working across submits; undoing an already submitted change adds a “revert” entry to the log.
- Leaving an extract with unsubmitted changes asks you to Submit (Quick Submit), Dismiss changes (revert to the last submitted state, undoable) or Cancel.
- Save text as (txt / md / json / xml) saves the current text to a file on your computer via the system file dialog. Nothing is written on the server.
- With spellcheck on, right-click any word underlined in red: type a correction and press Enter to replace it, or press Tab to accept and jump to the next underlined word. Add adds the original word to the dictionary. Both are undoable.
- Show all unknown lists every unknown word of the text. Edit a word in the list to replace it everywhere in that text, or switch it on to add it to the dictionary (Select all / Deselect all set every switch). Words left switched off and uncorrected stay unknown. Apply is one undo step. Corrections (from this list and from the right-click menu) are logged per language in
dictionaries/corrections_<lang>.csv.
- Marking a tab/step complete highlights it green.
Interpretation / Analysis
Running an analysis
- The gear opens the Analysis settings: per part (paragraph type, paragraph categories) the engine – Decision Model (default) or LLM – and its model, plus one certainty threshold per engine (default 80%).
- Run analysis asks which parts to run (both the first time, then your last choice) and whether to save them into the open variation (overwriting that part) or a new one. Both parts run in parallel.
- On the first run of an extract the rules (introductory clause, “That/Que” continuation, numbering and keywords) type every paragraph once (
auto_type); they are recomputed only when the submitted text changes.
Certainty percentages
Every type and category has a certainty, e.g. Operative 82% or Access to education 74%. A label is assigned at or above its threshold; lower results are shown faded. Hover a badge to see where it comes from.
- Decision model (Jev, Laya, Nimble, Clef): real probabilities from the model (a yes/no question per label).
- LLM: a yes/no answer with a certainty (0–100) per label, with the neighbouring paragraphs as context for the type and one isolated prompt per paragraph for the categories. This is self-reported and not calibrated – read it as a hint, not a measurement.
- Review (red): no label above the threshold, both labels above the threshold or above 60%, or the rules and the AI disagree. Click the badge to set the type and tags by hand; the AI and rule results stay stored.
- Custom certainty thresholds (right pane) shows the distribution of all results of the variation in 5% bins. Moving a slider changes the current labels and the current / false positive / false negative values in the table; the initial threshold stays as recorded.
Self-hosting (local models)
Preferences › Self-hosting runs models on this computer instead of a cloud service: nothing leaves the machine and there is no per-call cost. It is only available when the app is installed and opened on the same computer (localhost); the online version shows a short note instead.
- Install Ollama opens a terminal window with the official installer from ollama.com/download (it may ask for your password) and starts the Ollama server. The status next to the button turns green once the server answers. Start Ollama appears when Ollama is installed but not running.
- Two columns: OCR lists the Python packages Surya and Docling (run inside the app) and the Ollama vision models; Language Models lists the Ollama text LLMs for analysis and AI post-processing, and the decision models Laya, Nimble and Clef (typed answers with probabilities, used for the preambular/operative decision in Step 3; Ollama 0.35 or later, Laya 0.40).
- Each card shows the download size, the memory needed while running and what the model is good at. Details opens its Hugging Face page, Install downloads it (with progress), Remove deletes it from this computer.
- Active decides whether an installed model appears in the selection lists: the engine Self-hosted AI Models (local) in Step 1/2, the model list in Analysis settings and the Local models of AI post-processing. Inactive or removed models disappear from the lists; existing extracts keep their text.
- Self-hosted OCR runs one document at a time, since local models need a lot of memory.
- Everything is logged to
logs/selfhost.log; the Ollama installer writes logs/ollama_install.log.