Jonathan Earp Projects / 03
● Project 03 / 2026 ~8,000 lines of Python Runs on a local model, $0 a card

SSearch, HHighlight, RRead-back, EEmphasis, DDocx

Debaters read evidence out loud from "cards", cut by hand from articles. I give this a claim. It finds articles that argue it and cuts them into finished cards, without changing a word of the source.

970
Human-cut cards
parsed from my team
40/40
Card bodies exactly
matching the source
38.1
Highlight F1 against
a human, held out
$0
Per card, on
a local model
01

What a card is

A card is a quote from a source with three layers of formatting on top, plus a one-line summary and a citation.

The tag is the claim in a few words. The cite says who wrote it and why they'd know. The body is a long excerpt, usually hundreds of words, where the underlined parts carry the argument, the highlighted parts are what actually gets read out in the round, and a few boxed words get stressed. The rest is shrunk down but kept, so anyone can check the context.

Cutting one well takes judgment. The words read aloud have to make sense as speech and prove the tag without saying anything the author didn't mean.

Try it Two ways to cut the same paragraph Switch cuts, read the bottom line
Trees cut urban heat illness, cheaply and for decades
Example 26, a paragraph I wrote for this demo, not a real source

Words read aloud · Read words boxed ·

Cut A is closer to how my team's files look: tiny pieces and heavy boxing. Cut B keeps a subject and a verb in every piece, so it sounds like sentences. Section 07 is about why the difference mattered more than I expected.

02

It can't change a word

A card has to quote its source exactly, so the model never types the evidence.

The source gets split into numbered words, and every stage that marks up the card answers with word indices: underline words 40 to 71, highlight 44 to 49. The text itself only ever comes from the source. A final check confirms the body is an exact, contiguous excerpt that starts on a sentence boundary, and if anything fails, nothing is exported.

Hand edits get the same treatment. In the web UI you can change the highlighting, underlining and boxes freely, and every export re-checks the body against the source.

03

Reading my team's files

Before it could cut anything, it had to read how my team cuts. That meant parsing Word's formatting at the character level.

Debate files are Word documents built on a shared template, and the layers live in styles, direct formatting, highlight colours and box borders, sometimes all at once. The parser turns each card into its text plus per-character spans for every layer. It read 970 cards from four of my team's files.

To check the parser, I run it both ways. The round-trip check parses every card, writes it back out as Word, parses that again, and fails if anything comes back different. All 970 come back identical.

What the 970 cards look like, medians
MeasureMedian
Body length257 words
Share of the card underlined35.0%
Share of the card highlighted12.3%
Share of the underline that's boxed29.8%
Tag length6 words

One surprise was that 66% of cards highlight part of a word, like reading "biod" out of "biodiversity" or just the first letter of "impact". 2,386 words in all. A word-level tokenizer would have thrown that away, so the format stores formatting per character.

The parsed cards do two jobs. A few of the most similar ones go into each prompt as examples, and 100 of them are held back as the test set in section 06. None of them ever goes on this page or into the public repo.

04

Cutting one card

Each layer is its own stage with its own prompt, and code checks every answer before the next stage sees it.

01
Locate

Pick the best run of paragraphs, 350 to 900 words.

02
Underline

Whole clauses that carry the argument.

03
Highlight

What gets read aloud, inside the underline.

04
Box

A few stressed words, capped by code.

05
Tag

Written from the read words, never stronger.

06
Cite

Author, quals, date, from the page and Crossref.

07
Check

Read-back, author's view, exact-text verify.

Everything runs on a 27B-parameter Qwen model in Ollama on my laptop, so a card costs nothing. Each stage can be pointed at a hosted model instead, and paid calls are never made quietly: it prints an estimated cost and asks first, and stops at a spending cap.

Some of the most useful rules are plain code. A highlight that's more than 1.5 times its target gets cut back by whole sentences. A one- or two-word gap of underlined words between highlighted words in the same sentence gets filled in. A highlighted "not" whose word isn't read gets fixed or dropped, because "the goal isn't … Russia at a disadvantage" says the opposite of the article it came from.

Cites without made-up quals

Quals, the part of a cite that says why the author is credible, are the easiest thing for a model to invent. So the model can only copy names and quals from text it was shown: the journal's affiliation tags, OpenAlex, author boxes on the page, or the author's profile page. Anything not found there word for word gets dropped, and an unknown field shows up as a visible [quals?].

06

Scoring against people

The eval gives the cutter a held-out card's plain text and tag, then compares its cut with the human one, character by character.

The 100 held-out cards are split three ways: a test set (30), a dev set I tuned prompts on (30), and 40 that no run had touched until the end. The score is F1 per layer, the balance of how much of the cutter's marking the human also marked and how much of the human's it found.

F1 against the human cut, per layer. Each row is different cards, so rows don't compare cleanly
RunUnderlineHighlightBoxes
Test set, first night (30 cards)35.436.929.1
Test set, second night (30 cards)42.035.629.7
Untouched set, final (40 cards)52.638.131.6

Underlining now marks about as much as my team does, a median of 50 words a card on the test set, same as the human cuts. Highlighting is still off. On the test set the model highlighted about 34 words a card in about 6 runs of 6 words. My team highlights about 21 words in 9 runs of 2.4.

The one thing that moved highlighting was letting the model think before answering: highlight F1 went from 36.4 to 42.2 on 10 dev cards. It also took about 5× as long, 6.7 minutes a card instead of 1.3, so it's a separate setting instead of the default.

On the final 40, every card body matched its source exactly (40 of 40). Each card took about 4.5 minutes and cost $0. The read-back judge, which scores whether the read-aloud words make sense, passed 30% of the cutter's cards. As a sanity check on the judge, it passes about 60% of my team's own cuts (18 of 30 on the dev set).

07

Chasing the wrong score

The best-scoring version was tuned to match my team's files. The people reading its cards didn't like them.

The feedback on the first batch was that a lot of the cards were "way too short", some were "badly cut", and they boxed far too much. They were right, and it came from chasing F1. My team's files read pieces of about two words and box about half of what's read. To score well against that, the cutter learned to do the same, and the result was choppy.

So I changed what it aims for. Cards got longer. The highlight prompt asks for phrases that keep each sentence's subject and verb. The trim that squeezed highlights down to two-word pieces got switched off, and boxes were capped at about one read word in ten. Then I re-cut the same ten sources for the same claims.

Same 10 sources and claims, before and after. Medians
MeasureBeforeAfter
Words in the card207378
Words read aloud2863
Boxes per card73–4
Read words that are boxed74%8%
Read pieces that are a single word10%0%

The new cards are further from my team's files, so they'd score worse on the eval. The old style is still there as a setting. A later batch of 14 cards for 9 new claims came out the same shape: 375-word cards, 57 words read, 4 boxed words, about 7% of what's read.

08

Catching bad cards

Most of the work after cutting is the cutter checking itself, so a weak card arrives with a warning on it.

A read-back judge reads the highlighted words against the claim and scores them on whether they make sense out loud and whether they prove the tag. Low scores get flagged, and so do possible power-tags, where the tag says more than the card does.

A second check reads the card against the whole article and asks whether the author agrees with the point, only partly agrees, or disputes it. That catches cards that read a view the author only brought up to argue against. The model has to quote the author's conclusion, and the quote is only shown if it's in the article word for word. Auto mode never uses a card the author disputes.

A card that drifts off the claim is dropped, and one that only shows part of it is held back with a note saying which part is missing. After all of that, the exact-text check from section 02 runs on every card before it's exported.

When I tested it on a weak source, a Wikipedia article saved as a PDF for a claim the article barely makes, it cut both cards and flagged both: read-back 1 to 2 out of 5, plus a power-tag warning.

09

Still broken

  • Most cards still need a human pass. It finds good sources and the right argument, but highlighting usually needs a word or two added by hand, and tags sometimes overclaim ("inevitable" where the card says "could").
  • The judge got easy. On the newer, longer cards the read-back judge gave 5/5/5 to 9 of 14, so on its own its score isn't much help anymore. My notes on each card were the better guide.
  • Quals are often missing. News authors frequently have no stated credentials on the page, so their cites say [quals?]. That beats a made-up qual, and it still has to be filled in.
  • Search results change between runs. The same claim can come back with different sources on different days. The free scholarly search also shares one daily budget per IP address, and it ran out on 12 November.
  • It's slow on a laptop. 3 to 5 minutes a card, and an auto run for 2 cards takes 15 to 30 minutes.
  • F1 measures agreement with one person's cut. Two good debaters would disagree too, and I don't have a human-versus-human number for these files.