Compare · Engineering

An answer that cannot disagree with its cell

Every comparison page now answers three questions in prose and in structured data. Both are generated from the table’s own cells, so neither can drift from it.


A comparison page carries two records of the same fact. The table has a cell: a tick, a half, or a dash, dated the day somebody read the rival’s site. The prose underneath says what the cell means in a sentence. The moment those are written separately, they can disagree, and on a page that promises to be checkable, two records of one thing that disagree is the worst fault it can have. We have found that fault in our own pages more than once, always the same way: the cell moved on a re-read and the sentence beside it did not.

Yesterday we added a third record. Search engines show a question-and-answer block from a page that marks its questions up in structured data, and the three questions anyone asks of an “us versus them” page are obvious: does the rival do food halls, what does it cost, and who should pick which. Writing those answers by hand for seven rivals would have been twenty-one more sentences that could drift. So they are not written. They are built.

The food-hall answer reads three cells from the rival’s column. If the one-basket cell and the money-split cell are both ticks, the answer opens “Yes, by their own pages.” If only the basket is a tick, it opens “Partly.” If both are dashes it opens “Their site does not describe it,” and goes on to say in so many words that a dash means their pages do not say, not that they cannot. Then it names the date that column was read, and adds a sentence about the meal-deal cell in whichever of its three states it is in. The cost answer is the price cell turned into a sentence: the small print that was a span becomes a dash, a span that opens “/mo” is read out as “a month”, and the whole thing is prefixed with the read date, because a number about somebody else has a date on it. The third answer is the two paragraphs the page already had under “who should pick whom”, joined into one, and that section is gone, because the answer to the third question is the only place it needs to be.

One function produces the cards on the page and the block in the page’s head. There is no second copy to keep in step. When a cell moves on the next read, the sentence moves with it, in both places, without anybody remembering to do it.

The test does not trust the function. It reads the seven pages as they are built, the thing a crawler actually fetches, finds the structured block, and checks every answer against the cell it claims to come from: “Yes” only where both cells are ticks, “Partly” only where the basket alone is, the meal-deal sentence matching the meal-deal cell, the cost answer opening with that rival’s own read date. It also checks that every question in the block is asked in the page’s visible text and every answer is given there, so the block never says something the reader cannot see. Before trusting the test we changed one word of one answer in one built page by hand, and both of that page’s checks failed by name. Then the build put the word back.

The principle is older than this page. If two things must agree, do not write them twice and check them; write them once and derive the other. The check is still there, but it is checking that the derivation held, which is a much smaller thing to ask of it than checking that two people agreed.


Try it on tonight’s service.

Nothing to install, no card. Not better by the weekend? Close the tab.