The challenge
Quote channels run into two quiet problems: popular quotes credited to the wrong person, and newer authors who are still under copyright. Checking by hand works for a handful of quotes and does not scale to a batch of thirty.
A tool that claims to check truth has to be careful not to overclaim, so the design question was what the word safe is allowed to mean.
How I approached it
- 01
An honesty rule, written into the logic
safe is returned only when the work is public domain in the chosen profiles and the exact wording was checked against a source. Anything unverified is review, known misattributions and still-protected works are avoid, and a network failure degrades to review, never to safe.
- 02
Copyright as date arithmetic
Life + 70, life + 50 and the US rule for works published 95 or more years ago are plain functions of two years, with the boundary cases covered by tests (a work published in 1930 is free in 2026, one from 1931 is not).
- 03
Fuzzy matching without dependencies
Text is normalised (case, accents, punctuation, curly quotes) and compared with the standard library's difflib, so a pasted quote with different punctuation still matches, and a close paraphrase is reported with its similarity instead of being passed off as exact.
- 04
Sources behind an injectable fetcher
The Wikiquote and Wikidata lookups take a fetch function, so every online path is tested with canned responses and no test touches the network. Wikiquote sections (sourced, disputed, misattributed) are parsed from wikitext.
- 05
Three interfaces, one engine
The CLI (single quote, batch file or versereel spec), the Python API and the MCP server (vet_quote, pd_status, check_known_misattribution) call the same functions, and a Claude skill tells the assistant never to upgrade a review to safe by itself.
Deliberate trade-offs
- The Wikiquote lookup follows the page layout Wikiquote documents and is tested against fixtures in that layout. I could not verify it on live pages from my development machine, so the README marks it as beta.
- The US rule uses the publication date only; renewal rules for 1931 to 1977 works are not modelled.
- It is a screen, not legal advice: copyright terms vary by country and by work.
What I built
- Wrote down the plan and the honesty rule before any code, then built in phases: core logic, online sources, MCP server and skill.
- Curated a short list of well-known misattributions, each with a note and where to check it, and kept it deliberately small rather than pretending to be exhaustive.
- Wrote 24 tests including boundary years, true-source handling, network failure and the MCP tools.
- Ran my own mcp-ship-check against it in CI, and fixed the CI matrix when that tool correctly needed Python 3.11.
- Published to PyPI, tagged a release and submitted the listing to the MCP directories.
What this project demonstrates
- Designing a tool whose output must not overclaim
- Rights and attribution thinking for content creators
- Testing network code without the network
- Shipping a Python package, MCP server and skill end to end


