# screen.py — the Literome's batch screener

**[literome.phage-therapy.org](https://literome.phage-therapy.org/)** · companion to
[screen.py](screen.py) · last revised 25 November 2026

This describes the program that sorts candidate publications against the Literome's
[criteria for inclusion](https://literome.phage-therapy.org/#criteria). It is published so that
the collection can be checked and argued with, and so that anyone assembling a bibliography of
their own can take what is useful. The criteria themselves are on the page; this is only how they
are applied.

The program decides nothing on its own. It sorts, it explains each verdict in one line, and the
cases it cannot settle it hands over to be read. Every publication that enters the Literome was
read by a person first.

---

## What it does

Input is a batch from a PubMed search, as RIS or as the formatted bibliography Reference Manager
writes. Output is every record in one of seven piles, each with the reason:

| pile | meaning |
|---|---|
| **already held** | matched to a record in the collection |
| **duplicate in this batch** | the same paper arrived twice in one search |
| **preprint now published** | the journal version of a preprint already held, or the reverse |
| **tag** | meets a criterion: enters the Literome |
| **keep untagged** | phage work worth having in the reference database, but not phage therapy |
| **delete** | meets none of the criteria and falls under one of the exclusions |
| **needs a read** | the criteria do not settle it |

Run as:

```
python3 -I screen.py <batch.ris> <toolchain dir> <literome json dir> <out dir> [<held.ris> ...]
```

The trailing files are extra held-sets, for records added since the last full export. Forgetting
them is the commonest way to be told a record is new when it is already in hand.

## How a record is read

**Matching first.** Each record is compared with the collection by DOI, by PubMed identifier, by
exact title, and by first author with volume and first page. A preprint and its journal version
are recognized as one publication. Only unmatched records are screened.

**Then the text is normalized** — accents stripped, case folded, punctuation reduced to single
spaces. This is where the first bug lived: collapsing punctuation turns a line-broken
*macro-phage* into *macro phage*, which hands *phage* a word boundary it never had, and a
colorectal-cancer immunology paper with no phage in it was admitted on that alone. The normalizer
now rejoins split macrophages, and every phage pattern is bounded so that *macrophage* cannot
match while *mycobacteriophage*, *vibriophage*, *cyanophage* and *coliphage* all can.

**Then sentences are classified**, because where a claim sits decides whether it is evidence:

- *Background* — "antimicrobial resistance is a growing threat", "phage therapy has garnered
  attention". Almost every abstract in this field opens with one or two. Structured abstracts
  label them; unstructured ones are recognized by their shape.
- *Aspiration* — "will be instrumental in guiding the future design of phage cocktails",
  "a possible component of such a cocktail", "pending further investigation". A promise about
  what the work might support is not the work supporting it.
- *Provenance* — "isolated from shrimp-farm effluent", "from sewage". Where a phage was found is
  not where it was applied.
- *Work* — everything left, which is what the criteria are matched against.

**Then the criteria are tested**, each with a post-filter that requires the evidence to sit in
the title or in a work sentence. Then the exclusions, in a fixed order, because order is what
keeps a passing mention from outvoting what a paper says it is about: no phage at all, then
phage-protein-as-antibiotic, prophage biology, host-factor genetics, structural biology, method
and platform papers, phage display, off-target uses, reviews, characterization-only.

## Where it goes wrong

Measured, not estimated. Three control sets are run after every change:

- **A year of accepted records** (534 from 2025) screened against an empty held-set, so the
  sorting alone decides. It wrongly rejects **28**, about 5 per cent. Six of those are broad
  reviews that the stated criteria exclude but past practice admitted, so the real figure is
  nearer 4 per cent.
- **A batch of 323** on which the curator has ruled record by record.
- **A hand-picked set** of fourteen deliberate edge cases.

Known failure modes, each found by someone reading what the program produced:

- **Reviews.** A review of the gut microbiota and colorectal cancer always has one sentence about
  phages modulating a community, and an abstract match cannot tell that from a review of phage
  therapy. Requiring a phage word in a review's *title* removed 155 wrong admissions from a
  single year, at the cost of occasionally refusing a review that gives phages a third of its
  substance while naming none of its subjects in the title.
- **Antibody papers.** CAR-T constructs, nanobodies and epitope studies reach a phage-therapy
  search because phage display found the antibody. Twenty-five in one year.
- **Titles with no phage in them.** Across the collection 8.6 per cent of records have no phage
  word in the title; among wrongly admitted records the figure runs above 30 per cent. It is the
  single best predictor of an error, and a poor rule on its own — the early literature calls its
  subject *phagotherapy* or *bacterial viruses*, phage genus names carry no such word, and one
  Soviet-era trade name stops a letter short.
- **Records with no abstract.** Nothing is deleted on a title alone. A letter whose title reads
  like a technology with "an innovation in phage therapy" appended turned out to be about imaging
  phage penetration of biofilms and choosing doses. An absent abstract is missing evidence, not
  evidence of absence.
- **Rules built backwards from a handful of records.** Several have been written, measured and
  withdrawn, including one that refused to let a cell line count as animal work and another meant
  to admit receptor studies. Both looked right on the cases that prompted them and failed on the
  collection. The practice now is to measure a proposed rule against all three control sets before
  believing it.

## What it cannot do

It cannot tell a careful in vitro study from a routine characterization — that is the judgment the
criteria leave open, and such records are handed over rather than decided. It cannot find
publications a search never returned, which is the larger problem: a full-year re-run of one
search produced 88 qualifying records that eight months of monthly screening had missed, because
food-safety, aquaculture and plant-disease work often never says *therapy*. And it cannot settle a
boundary the criteria have not yet drawn.

## Reuse

Public domain as far as this file is concerned: copy, change and republish it without asking. The
patterns are tuned to one vocabulary and one collection's history, so the sentence classification
and the normalizer are likely to be more useful to you than the criteria patterns. If you find it
wrong about a publication of yours, say so — <literome@phage-therapy.org> — and it will be fixed
and the fix recorded.
