Inspiration

Research essays are graded on more than the argument. Teachers check whether the sources say what you claim. With three sources open in three tabs, it's easy to paste a sentence and forget the quotation marks, mistype a number, quote from memory, or cite the wrong author. None of that is cheating on purpose, but it reads like it.

Plagiarism checkers look for other people's writing in yours. We wanted something for checking your own work before you hand it in: paste the essay and the sources you actually used, and see every claim next to the passage it came from.

What it does

Paste your essay (MLA, APA (including "Okafor (2023) found") or [1]-style citations) and the text of each source, or load a source as a PDF. Receipts reads every sentence and:

  • Matches it to the passage it leans on and marks the words they share.
  • Too close: seven or more words in a row from a source, or 45% or more of a sentence's three-word sequences, with no quotation marks.
  • Misquote: text inside quotation marks that doesn't appear word for word in any source (ellipses and [brackets] are allowed). It names the closest source sentence.
  • Wrong figure: a number with the same unit as one in the source but a different value ("43 minutes" where the source says "34 minutes").
  • No citation: the sentence uses a source but nothing cites it.
  • Wrong citation: it cites one source but matches another much better, or cites a source that says nothing like it.
  • Your own: sentences that match no source are left alone. That's your argument.

Click any sentence to see the matched passage, the shared words and what to fix.

The sample essay has eight planted problems. Receipts finds seven by matching words. The eighth is a real paraphrase ("Only about a third of high schoolers sleep the recommended amount...") that shares almost no words with its source. Turn on the on-device model and it's matched by meaning and flagged for a missing citation.

How we built it

Plain JavaScript, no build step, hosted on GitHub Pages. There's no server and no account. Your essay stays in the browser.

  • Sentences (js/text.js): a splitter that doesn't break on "p.m.", "et al.", initials or decimals; figures with their units, skipping clock times and years.
  • Matching (js/match.js): TF-IDF over word stems and stem pairs with cosine similarity. Source passages are a sentence plus its neighbor, so a claim that spans two source sentences still finds them.
  • Checks (js/check.js): longest run of identical words, three-word-sequence containment, word-for-word quotation lookup (case and punctuation ignored, ellipses and [brackets] allowed), unit-aware figure comparison, and citation parsing.
  • PDFs are read in the browser with Mozilla's pdf.js.
  • 28 automated tests cover every planted problem, the splitter, quotations, figures, citations and the Claude check.

Where AI fits

  • On-device model (optional): all-MiniLM-L6-v2, quantized to 23 MB (about 27 MB to download with its runtime, cached after the first visit), run in the browser by Transformers.js. It embeds every sentence and passage, so a paraphrase that shares few words with its source still matches at a cosine of 0.62 or more. Nothing is uploaded.
  • Ask Claude (optional, your own API key): for any matched sentence, Claude says whether the passage supports it, partly supports it, or doesn't. Its answer has to quote the passage word for word, or the page throws it out. The key stays in the tab and goes only to api.anthropic.com.
  • We used Claude Code as a coding assistant. We decided what to build and how it should behave, and we reviewed and tested what it wrote.

Challenges

  • Splitting sentences. "11 p.m." and "3.5 hours" end in periods but don't end sentences. We mask abbreviations, initials and decimals before splitting, and only as whole words: otherwise "sleep." looks like "p." and two sentences become one.
  • Numbers. "8:35", "2024" and "43 minutes" are all numbers. Only figures with a unit are compared, and only against the same unit in the source.
  • Paraphrase. Word overlap can't see a real paraphrase. The on-device model can, but it can also over-match, so it only fills in when word matching finds nothing.
  • Citations that come a sentence later. A citation in the next sentence only covers this one when both sentences use the same source.

What we learned

Most citation problems are small and mechanical, and they're easy to catch once each sentence sits next to its source. The hard part is not flagging too much. A tool that marks every sentence teaches you to ignore it.

What's next

Footnote and bibliography parsing, a Chrome extension for Google Docs, and testing on real essays that students share with us.

Try it

Built Nov 11-12, 2026. The commit history shows each step.

The sample essay and its three sources are made up. Receipts helps you check your own work. Its flags are suggestions to review, not verdicts.

Built With

Share this project:

Updates

Submission history