Campaign-driven pipeline that finds people missing from English Wikipedia, verifies every fact against real sources, and hands a human a research dossier — it never writes article prose.
Project description
Wikipedia Gap Finder v2
A campaign-driven pipeline that finds people from an underrepresented group who should have an English Wikipedia article but don't, checks every fact against real sources, and hands a human a research dossier they write the article from.
The tool never writes article prose. English Wikipedia banned LLM-generated/-rewritten article text (RfC, March 2026). This tool does detective work, verification, and structure only — a human writes every sentence. That isn't a limitation to route around; it's the product's integrity claim: AI found her and checked the facts; a human wrote her story.
Pipeline
- Intake — names from CSV/txt lists and/or an optional Wikidata SPARQL redlist query.
- Gap check — per name: enwiki title + fuzzy search, redirect detection,
Draft:namespace, deletion-log history, and Wikidata sitelinks. Verdicts:GAP / EXISTS / REDIRECT_ONLY / DRAFT_EXISTS / DELETED_BEFORE / TRANSLATE_CANDIDATE(⭐ candidates that already exist in another language are the highest-value, since translation is an allowed path). - Notability triage (planned) — coverage search scored against WP:GNG.
- Source vetting → dossier — see below.
Source vetter
The vetter is two processes across a two-file JSON boundary, so each side is testable in isolation:
gap_finder.py --dossier → vetting_worklist.json → Claude vet-sources subagent
│
dossier.md ← gap_finder.py --dossier ← vetting_verdicts.json
-
Python (keyless): gathers coverage, tiers each source against Wikipedia's perennial-sources list (WP:RSP), and renders the dossier.
-
The Claude subagent (
skills/vet-sources): classifies reliability and traces breadcrumbs, sorting every claim into one of three buckets:Bucket Meaning Dossier section VERIFIED a single reliable source names the subject and supports the claim, with a verbatim quote Verified facts table LEAD a breadcrumb is real, but no reliable source names the subject yet Research leads — chase before writing DEAD_END no corroboration found UNVERIFIED — do not use
The never-stitch rule (WP:SYNTH): the vetter may not promote a LEAD to VERIFIED by combining a subject-naming unreliable source with a fact-confirming reliable source. Two half-sources stay a LEAD. And the renderer structurally refuses to print any fact backed only by an unreliable source — even if a verdicts file claims otherwise.
Install
pip install wiki-gap-finder # installs the `gap-finder` command
pip install "wiki-gap-finder[ui]" # + Rich-rendered tables
pip install "wiki-gap-finder[chase]" # + the Firecrawl coverage backend
Or clone this repo and run python3 gap_finder.py ... directly — same CLI
(pip3 install requests PyYAML jsonschema --break-system-packages).
Usage
Commands read and write paths relative to the current directory, so run them
from your project root (campaign paths like input/candidates.csv resolve
from there, and results land in output/<campaign>/).
gap-finder --campaign campaigns/<campaign>.yaml --check # stages 1–2
gap-finder --campaign campaigns/<campaign>.yaml --check --no-sparql --limit 5
gap-finder --campaign campaigns/<campaign>.yaml --report # table from saved state
gap-finder --campaign campaigns/<campaign>.yaml --dossier "Name Here"
gap-finder --campaign ... --dossier "Name" --search-backend firecrawl
A campaign is one small YAML — swapping demographics is a new file, zero code changes. Minimal example:
name: my-campaign
description: Who this campaign is about
intake:
name_lists:
- "input/candidates.csv" # CSV with a `name` column, or one name per line
# optional: a Wikidata SPARQL WHERE-clause body for redlist intake
search_hints: # appended to coverage searches
- "activist"
Other flags: --refresh-rsp re-fetches the WP:RSP reliability cache (stored
under ~/.cache/wiki-gap-finder/), -v logs every request.
Heads-up on the keyless search default: DuckDuckGo increasingly serves a
bot challenge to non-browser clients. If coverage search comes back empty, the
tool now says so loudly — use --search-backend firecrawl (with the
firecrawl CLI installed) for dependable coverage gathering.
Conventions
Zero API keys on the default path (MediaWiki + Wikidata + DuckDuckGo are keyless;
Firecrawl is opt-in). Polite User-Agent, ≥1s between requests with exponential
backoff.
python3 -m pytest # 44 tests
Layout
gap_finder.py— back-compat shim; the CLI lives ingapfinder/cli.pygapfinder/— the package (cli, contract, rsp, search, worklist, verdicts, dossier)gapfinder/data/rsp_seed.json— curated WP:RSP reliability seed (ships in the wheel)skills/vet-sources/SKILL.md— the Claude subagent contractcampaigns/— one YAML per campaigndocs/superpowers/— design spec and implementation plan
MIT licensed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wiki_gap_finder-2.0.1.tar.gz.
File metadata
- Download URL: wiki_gap_finder-2.0.1.tar.gz
- Upload date:
- Size: 31.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00a2f385e282af22d60f6544f59da909246ee3289833992ee9fa13dce4878403
|
|
| MD5 |
8f6e00823474c7fc59c38b0424902a5d
|
|
| BLAKE2b-256 |
d904c215eca17efb7095d4171de3ee1f4766cf916fec5ccdcf90e530f1878a5a
|
File details
Details for the file wiki_gap_finder-2.0.1-py3-none-any.whl.
File metadata
- Download URL: wiki_gap_finder-2.0.1-py3-none-any.whl
- Upload date:
- Size: 26.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2a0ccc76bfe347194210ed3d33996db4cd58ba2f4d9bf1b5350509b6716969f
|
|
| MD5 |
5ca4dab4903cc7de36e394f52b0e252f
|
|
| BLAKE2b-256 |
773c67fc67aaeb0cc73170a7384ab1f93871190b7f35b4010abbe106e28170ee
|