Word-shingled MinHash you can recompute by hand — not an AI opinion about "how similar" two texts are.
Paste two documents. This page splits each into overlapping K-word shingles, hashes them with SHA-256, and estimates their Jaccard similarity using a fixed, published MinHash permutation scheme. The verdict — IDENTICAL / NEAR-DUPLICATE / OVERLAPPING / DISTINCT — and the receipt hash beneath it are fully re-derivable: anyone with the same two texts and the algorithm spec below gets the exact same bytes back. No model reads your text and no server ever sees it — everything runs in this tab.
Kar-Shingle tells you how much word-for-word text two documents share: whether one was copied, padded or lightly reworded from the other. It runs entirely in this page: nothing you paste is sent anywhere, and no AI judges anything.
Below the tool: how it works · words on this page · blueprint · roll it out · for a business · FAQ
K,
take every contiguous run of K words and join them with a single space. Deduplicate
(a document's shingle set is a set, not a multiset). If the document has fewer than
K words, it has zero shingles.s, compute SHA-256(s) (UTF-8
bytes), take the first 8 hex characters, and read them as an unsigned 32-bit integer
h0(s).i = 0 … N-1, derive fixed constants once —
a_i = first 32 bits of SHA-256("kar-shingle-perm-a-" + i), forced odd
(a_i | 1); b_i = first 32 bits of SHA-256("kar-shingle-perm-b-" + i).
These sixteen-to-256 constants are the same for every user, every run, forever — they are not
random per session.h_i(s) = (a_i · h0(s) + b_i) mod 2^32, computed with
64-bit-safe (BigInt) arithmetic to avoid overflow.i of a document = min over all
its shingles s of h_i(s). A document with zero shingles has no signature
("insufficient data").sigA[i] === sigB[i]) / N. This is a standard unbiased MinHash estimator;
its standard error is roughly sqrt(p(1-p)/N), so more hash functions narrow the
estimate at the cost of more computation.SHA-256(normalize(A)) === SHA-256(normalize(B)) → IDENTICAL
(similarity is trivially 1.0). Else if similarity ≥ 0.75 → NEAR-DUPLICATE. Else if
similarity ≥ 0.35 → OVERLAPPING. Else → DISTINCT. If either document has zero
shingles → INSUFFICIENT-DATA.SHA-256 of that canonical string. Wall-clock
time is shown for humans but deliberately excluded from the hash.This is the entire algorithm — there is nothing else in the page that touches your text. View source to check; there are no network calls anywhere in this document.
kernel.mjs (the file the tests run) and into the script, so all three are the same code.kernel.mjs.if (count > 0) into if (count >= 0), then runs the tests. Every change must make a test fail. A change no test notices has survived: it would mean no test checks what happens at that exact point. A change reviewed as equivalent cannot alter any result (both versions give the same answer for every input), and the reason is written down and checked.build.mjs copies it byte for byte into kernel.mjs (which the tests and the mutation gate run) and into scripts/kar-shingle.mjs (the one-file agent skill). CI fails if the three ever differ, so the page you use, the code that is proven and the script an agent runs are the same code.kernel.test.mjs tests the kernel; skill.test.mjs runs the shipped script on its own, the way an agent platform runs it, against the expected outputs in examples/.< becomes <=, an && becomes ||) and re-runs the tests. Every change must make a test fail: that proves the tests check each of those points, rather than just running the code (see Mutation gate in Words on this page). From receipts/witness.json: reading the receipt…checkcase.mjs, tested and mutation-gated in the same way as the kernel, in its own CI job. It uses only published figures (the UK median wage and UK inflation), each linked under the table.node scripts/kar-shingle.mjs a.txt b.txt in CI or a script (Node.js 20 or later, no dependencies). It prints the verdict as JSON and exits 0 whenever a verdict was computed (2 if the input could not be read), so your step acts on the verdict, not the exit code. An AI agent can run the same script as a skill.Kar-Shingle turns a check that is usually done by eye, or not at all, into a verdict anyone can recompute: the same input gives the same answer and the same SHA-256 receipt on any machine, with no AI judging it.
What the checking costs today against running the tool. Staff time is at the UK median hourly wage with on-costs left out, so this is a floor; later years rise with UK inflation (CPI). Change any box to your own numbers and the table recalculates as you type.
How it is worked out. Today: checks a year (per week × 52) × minutes per check × the median hourly wage, plus anything you pay for a tool now. With the tool: the share it replaces takes the seconds you enter instead of the minutes, and the rest is still checked by hand. Each later year rises by one more year of inflation.
| year | checking by hand | with Kar-Shingle | saved |
|---|
Supplied by AI Native Solutions; start through that site. Support, any service level, warranty and liability are agreed per deployment, in each deployment's agreement. The software is MIT and keeps running without us.
A check that anyone can recompute replaces a check that has to be trusted, at no licence cost, without sending your data anywhere. Its logic is the code on this page, and its tests are themselves tested.
scripts/kar-shingle.mjs), usable as an agent skill before it publishes generated text.node --version shows which one you have): download scripts/kar-shingle.mjs (one file, no dependencies, no npm install) and run it with no arguments to see how to call it.