{
  "benchmark_card": {
    "benchmark_details": {
      "name": "Medieval Manuscripts",
      "overview": "Evaluates models on the diplomatic transcription of pages from a mid-15th-century manuscript in late medieval German, the pilgrimage accounts of Hans and Peter Rot held by the Universitätsbibliothek Basel (H V 15). The model must keep historical spelling and abbreviations, identify the folio number, and separate main text from marginal additions without being given their regions (an implicit segmentation).",
      "data_type": "image",
      "domains": [
        "history",
        "medieval studies",
        "palaeography"
      ],
      "languages": [
        "German"
      ],
      "similar_benchmarks": [
        "Not specified"
      ],
      "resources": [
        "https://rise-services.rise.unibas.ch/benchmarks/p/benchmarks/medieval_manuscripts",
        "https://github.com/RISE-UNIBAS/humanities_data_benchmark/tree/main/benchmarks/medieval_manuscripts"
      ],
      "authors": [
        "Ina Serif",
        "Maximilian Hindermann"
      ]
    },
    "purpose_and_intended_users": {
      "goal": "Measure how well vision-language models produce a diplomatic transcription of late medieval German handwriting: the main text block, the folio number and each marginal addition as separate fields, with historical spelling kept and abbreviations left unresolved. The results are meant for AI researchers and model developers comparing models on historical handwriting, and for practitioners in historical research, archives and digital humanities choosing a model to transcribe medieval manuscripts.",
      "audience": [
        "humanities researchers",
        "archivists and librarians",
        "AI researchers",
        "model developers"
      ],
      "tasks": [
        "diplomatic transcription of handwritten text from images",
        "separation of main text, folio number and marginal additions"
      ],
      "limitations": "12 pages from a single manuscript, written by two scribes in one regional variety of German; results do not transfer automatically to other scripts, hands, languages or layouts. The transcription conventions (superscript letters written after the base letter, MUFI characters for abbreviation signs) are those of the prompt and the annotator, so the score measures agreement with them. Several scoring properties bias results (see Calculation): only the first entry of the response is scored, so a model that splits a page into several entries is scored on the first alone; marginal additions beyond those keyed in the ground truth are ignored; the page score weights the one- or two-character folio number as much as a main text of several hundred characters.",
      "out_of_scope_uses": [
        "evaluating expansion of abbreviations or normalisation to modern German",
        "evaluating text in other languages or scripts",
        "evaluating page segmentation as a geometric task (no regions or coordinates are scored)"
      ]
    },
    "data": {
      "source": "Pages of Basel, Universitätsbibliothek, H V 15, \"Hans and Peter Roth, Pilgrimages to Jerusalem 1440 and 1453\" (the e-codices title; the authors are named Rot below), digitised by e-codices: https://www.e-codices.unifr.ch/en/list/one/ubb/H-V-0015. The small parchment manuscript (105 folios, 14 × 10.5 cm) contains the accounts of Hans Rot († 1452) and his son Peter Rot († 1487) of their pilgrimages to the Holy Land, possibly in their own hands. The 12 pages are folios 3r, 4v, 9v, 18r, 23v, 52v, 62v, 69r, 70v, 73r, 90r and 93r.",
      "size": "12 evaluated objects",
      "format": "One JPG image per page, 1872×2808 px and 1.1–1.3 MB each. The ground truth is one JSON file per page, keyed by the folio reference, with one entry holding the folio number as written on the page (empty if none is visible), the main text with line breaks as `\n`, and one field per marginal addition. The response follows the `Document` dataclass in `dataclass.py`: a list `folios` of such entries, with fields `addition1` to `addition3`.\n\n```json\n{\n  \"[9v]\": [\n    {\n      \"folio\": \"\",\n      \"text\": \"vnd die insel ist bi ccc mil\n wit vnd ist der venediger\n Itꝰ von kurfun vntz gon\n ...\",\n      \"addition1\": \"Candia vff\n Creta\",\n      \"addition2\": \"Virum\n Malva\n ricum\",\n      \"addition3\": \"Rhodꝰ.\"\n    }\n  ]\n}\n```\n\nMain texts are 274–710 characters long. Six pages carry a folio number; six have at least one marginal addition. Every ground-truth file has an `addition1` field, empty where the page has no addition; only the page shown above has more than one.",
      "annotation": "Transcribed by Ina Serif (domain expert) following the transcription rules in the [prompt file](prompts/prompt.txt): historical spelling kept, abbreviations not resolved, superscript letters written after the base letter (e.g. `uo`), abbreviation signs as MUFI characters such as `ꝛ` and `ꝰ`.",
      "size_breakdown": {
        "image files": 12
      },
      "collection_date": "Source documents: mid-15th century; the pilgrimages described took place in 1440 and 1453. Added to the benchmark: October 2025.",
      "contamination_controls": "None. The images, prompt and ground truth have been public in this repository since October 2025."
    },
    "methodology": {
      "methods": [
        "one page image per request with the prompt [`prompt.txt`](prompts/prompt.txt), the only variant; it includes an illustrative output example, and no benchmark page is supplied as a demonstration",
        "all tests use temperature 0 and the same system role (a historian with expertise in medieval manuscripts and palaeography)",
        "structured JSON output requested with the `Document` dataclass",
        "output capped at the repository default of 16,384 tokens per request, adjusted per model in `scripts/benchmark_base.py`"
      ],
      "metrics": [
        "Character Error Rate (`cer`, used for ranking)",
        "fuzzy similarity (`fuzzy`)"
      ],
      "calculation": "The page's single ground-truth entry is compared with the first entry of the response's `folios`. The fields compared are `folio` (when either side has a value), `text` (always) and the marginal additions present in the ground truth (when either side has a value); empty, null and whitespace-only values count as empty. Each field gets two scores:\n\n- fuzzy: the rapidfuzz ratio of the two strings, scaled to 0–1; case and line breaks count\n- CER: the Levenshtein distance divided by the length of the ground truth, after lowercasing and collapsing whitespace; capped at 1\n\nA page's fuzzy and CER are the unweighted means over its fields, and the benchmark scores the unweighted means over pages, all rounded to three decimals. A missing entry or a response that cannot be parsed scores fuzzy 0 and CER 1 on every field.\n\nExample: ground truth `Vnd ein pferit die mir vnd`, response `und ein pferit die mir vnd`: fuzzy 0.962, CER 1/26 = 0.038.",
      "interpretation": "Both scores range from 0 to 1; lower CER is better, higher fuzzy is better. CER ignores case and line breaks, while fuzzy counts them, so a model that reads the letters correctly but merges lines or changes capitalisation loses fuzzy score but not CER. CER is capped at 1 per field, so a field at 1 is not necessarily wrong in every character.",
      "baseline_results": "Model results are on the [benchmark page](https://rise-services.rise.unibas.ch/benchmarks/p/benchmarks/medieval_manuscripts) and in `results/<date>/<test_id>/` at the repository root. Compare runs with the same prompt, scoring rules and ground-truth revision. No fixed model baseline is defined.\n\nStored results, snapshot 2026-11-20 (`cer`, lower is better; the latest stored run of each active test, by prompt): `prompt.txt`, 118 tests: median 0.296 (interquartile range 0.206–0.436), best 0.088 (claude-fable-5, gemini-4-argon), 3 at 1. 3 active tests have no scored run by that date.\n\nObserved across models: main text is read considerably better (median CER 0.19 per page) than marginal additions (0.37 for the first, 0.88 and 1.0 for the second and third, which occur only on [9v]). The hardest pages are [9v], with three additions, and [70v], with a 279-character marginal note.",
      "validation": "The ground truth was produced by the domain expert (see Annotation). Scoring is deterministic; the CER calculation and page averaging are covered by `tests/test_medieval_manuscripts_scoring.py`.",
      "human_baseline": "Not specified",
      "judge_uses_llm": false,
      "judge_num": "Not specified",
      "judge_models": [
        "Not specified"
      ],
      "judge_score_consolidation": "Not specified",
      "validity_justification": "CER is the standard measure for handwritten text recognition and reflects the correction effort needed to turn a model transcription into an edition-ready one."
    },
    "ethical_and_legal_considerations": {
      "privacy_and_anonymity": "The manuscript dates from the mid-15th century. Its authors, Hans Rot and Peter Rot, died in 1452 and 1487, and every person it mentions died centuries ago. It contains no data about living persons.",
      "data_licensing": "Source material: Public Domain. Ground truth, prompts and other data created for this benchmark: CC BY 4.0.",
      "consent_procedures": "Not specified",
      "compliance_with_regulations": "No data-protection rules apply to a 15th-century manuscript. e-codices marks the images of H V 15 as public domain, usable without restriction. No ethical review was carried out."
    }
  },
  "card_info": {
    "schema": "evaleval/auto-benchmarkcard@342c1ac7d278a93be75de713c151142b25f635d0",
    "source": "README.md"
  }
}
