quote-vetter: Check a Quote Is Real and Public Domain Before You Publish It

An open-source tool I built for my own quote and poetry Shorts. Before a quote goes into a video it answers three questions: is it public domain where I publish, did that person really say it, and what credit line should I add. It returns safe, review or avoid with every reason, as a CLI, an MCP server and a Claude Code skill, and it reads versereel poem specs directly.

Open sourcePython
Illustration of the quote-vetter (PyPI) project
24
automated tests, CI on Python 3.10 and 3.13
3
copyright profiles: life + 70, life + 50 and the US publication rule
12
curated well-known misattributions, checked offline
0
runtime dependencies for the CLI

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

  1. 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.

  2. 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).

  3. 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.

  4. 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.

  5. 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.
MIT licensed. Install it with pip install quote-vetter. This is a screening tool, not legal advice.

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

Related case studies

Python / MCP / ffmpeg / Pillow / numpyOpen Source

versereel: Poem Videos With Original Ambient Music, as a CLI, MCP Server and Claude Skill

An open-source Python package I published to PyPI. It turns a poem or quote into a calm text-only vertical video (Shorts, Reels, TikTok) with an ambient music bed that is synthesised from scratch, so there is nothing to license. It handles Urdu Nastaliq and other right-to-left scripts, and ships as a CLI, a Python API, an MCP server and a Claude Code skill. It grew out of my own poetry Shorts channel, where the same code produced over a hundred videos.

Python / MCP / Developer tooling / CIOpen Source

mcp-ship-check: A Pre-Flight Checker for MCP Servers, as a CLI, MCP Server and Claude Skill

An open-source checker I built after shipping my own MCP server and losing a day to avoidable problems: missing tool annotations, a directory build that could not start the server, no release, no test per tool. One command now reports what is wrong and how to fix it. It is a CLI with no dependencies, an MCP server and a Claude Code skill, and it checks itself in CI.

Have a project like this in mind?

Tell me what you're building. I'll reply by email with questions or a suggested approach.