Mutatis Check a medicine
Method

How Mutatis decides a section changed, and what it ignores

Page numbers, repeated table headers and reflowed lines all look like edits to a naive diff. How Mutatis removes them, and how it measures the rest.

Glass vials and an infusion bottle on a dark surface, graded green

A change record is only useful if "changed" means a real edit. This is how Mutatis gets there, and how often it is wrong.

What a naive comparison gets wrong

Two consecutive annexes of the same medicine differ in many ways that are not edits. In building Mutatis, each of these produced false or hidden changes until it was handled:

  • page numbers and running headers, which move whenever the text above them grows;
  • table header rows repeated on each continuation page, which appear and disappear as a table crosses a page break;
  • table cells that re-wrap, and underlines that a parser reads as cell borders;
  • characters drawn from the Symbol font, such as the sign for "greater than or equal", which come out as private code points;
  • a fixed crop of the page margin, which once deleted real text at the foot of a page;
  • a border drawn around every page, which made one medicine's whole annex look like a single table cell.

What Mutatis does

It extracts every line of the PDF with its position, font and the drawn rules, then makes each layout decision in tested code. Running headers and page numbers are removed by pattern and by how often they recur, not by a fixed crop. Repeated table headers are dropped only when the table continues from the previous page. Ruled tables are read cell by cell. A heading is accepted only with its QRD number, its title and its place in the template, so section 4.9 cannot swallow section 5 and a cross-reference never starts a new section.

Then each section is reduced to a key with all whitespace removed. A section counts as changed only when that key differs, so a reflowed paragraph or a word split across two lines never counts.

Four kinds of change

The latest Juluca record, decision (2026) 7746 of 23 October 2026, shows three of them:

  • Text: section 4.8 lost 4 words and gained 28, in six edits.
  • Editorial: sections 4.2, 4.4, 4.5 and 5.2 changed only in punctuation, case or hyphenation. They are reported, marked editorial, and an agent can leave them out with wording_only.
  • Same characters: section 5.1 holds exactly the same characters as before in a different order, 31 words moved in nine places. Mutatis reports it and flags it, because moving a reaction to another frequency row is a real edit.

The fourth kind, layout only, covers text inside charts and blocks of four or more identical words moved across a page break; it is reported apart and never counted as a change of substance.

How it is measured

A golden set of 30 consecutive annex pairs, from 30 products and PDF generators between 2014 and 2026, was labelled by hand and checked against an independent second split of the same PDFs. Over 1,576 sections, Mutatis found all 224 real changes (recall 1.0) and reported 5 that were not (precision 0.978). All five were reorders in tables without full ruling. The test suite fails any parser change that drops recall below 1.0 or precision below 0.95, so it cannot ship.

That is a measurement on those 30 pairs, not a promise for every document. Text inside images is not read at all. The how it works page has the rest of the method, and every record links both PDFs so the comparison can be checked by eye.

Written for Mutatis with the help of a language model, from Mutatis's own data and the official sources linked in the text, and checked against that data at build time. Photo: National Cancer Institute, Unsplash.

Automated and unreviewed. Mutatis reads official sources automatically and no person checks each answer. Data can be incomplete, late or wrong. Always verify against the official source linked with every answer before you act. Not legal, tax, customs or medical advice. Not medical advice: ask a pharmacist or doctor. A change record says where an official document changed, not what the change means for a patient, and it is not a clinical recommendation.