Where scripts can’t run
Discord, Reddit, forums, LinkedIn, Substack, Medium, Patreon and email newsletters don’t let anyone add a script, so the badge can’t appear there. A verified piece says it’s verified anyway, in its own last line.
The verification line
When a verified piece leaves PeopleWritten as text, it ends like this:
PeopleWritten Verified: https://wrt.pe/CERTIFICATE_IDThe link is that piece’s own record, and no other piece has it. The line is added by PeopleWritten, at the moment the piece leaves, and only to the verified text. So wherever it appears, it means one thing: this piece was verified as written by a person. It’s the badge, for places that can’t show one.
On the platforms that preview links, the line unfurls into a card with the piece’s title, the writer’s name, the date it was verified and the piece’s own stamp. The record behind it shows how the piece was written.
When it’s added
- Copying the whole piece. Select all of a verified story on PeopleWritten and copy it: the story comes alone, without the page around it, and the line comes with it. On a story of their own, writers also get a button that copies the whole story.
- The PeopleWritten app. Once a document in the app has a certificate, copying all of it and every export (Word, Rich Text, HTML, PDF, Markdown and plain text) end with the line. The app doesn’t issue certificates for its documents yet.
- Only the whole piece. Copy a paragraph and you get the paragraph: the line speaks for the whole piece and nothing less.
- Only the verified version. Change a word after the piece was verified and the line stops being added, until the new version is verified too. On PeopleWritten, a withdrawn certificate’s line is never added.
In rich text the address is a link. In plain text it’s the full address, starting https://, because that’s what Discord, Reddit and most forums need before they make text a link. Pasting into a platform needs nothing more: the line is already there.
The line isn’t handed out on its own, and a writer has nowhere to copy it from without the piece. Don’t type it out or move it to another piece: it names one piece’s record, and that record shows the piece’s title.
Platform by platform
| Platform | What happens when the piece is pasted |
|---|---|
| Substack, Medium, Patreon, Ghost, LinkedIn articles | Their editors take the rich text, so the line arrives as a link. It goes out in the email edition too. |
| Email newsletters | The same: a link in the last line. Email never runs scripts, wherever it’s sent from. |
| Discord, Reddit, Discourse, phpBB, XenForo and most forums | They take plain text, and turn the address into a link. Discord, LinkedIn posts, Discourse, Facebook, Bluesky, Mastodon and Slack also show the card. |
Post the piece as it was copied. Platforms that read Markdown, like Reddit and Discord, treat *, _ and # as formatting, so a piece that uses them as characters can lose them there.
On a site that runs scripts, use the badge instead. If a piece exported with its line is published under the badge too, the HTML export marks the line data-peoplewritten-ignore, so the badge reads past it.
For moderators
Discord servers, subreddits and forums that want writing to be people’s own can ask for verified posts. The editor can’t be embedded there, so members write on PeopleWritten (start a story) or in the PeopleWritten app, have the piece verified, and paste it in whole. It arrives ending with its verification line. A post without the line isn’t a verified piece.
A rule you can adapt for your community’s rules or sidebar:
Posts marked "Human-written" must be pasted whole from PeopleWritten, ending with the line "PeopleWritten Verified: https://wrt.pe/…" that PeopleWritten adds to verified writing.If your community has its own website as well, with a form for submissions, put the editor there and members can write without leaving it. The editor on your site
For bot builders
A Discord bot, a Reddit bot or a forum plugin can confirm that a post is the piece its line names, with the same endpoint the badge uses: take the certificate ID from the line, fingerprint the rest of the post, and ask. Use it to label or approve posts automatically.
import { createHash } from "node:crypto";
// The same rules as the badge: drop whitespace and invisible characters, keep the rest in order.
const INVISIBLE = /[\p{White_Space}\p{Cc}\p{Cf}\p{Cs}\p{Co}\p{Default_Ignorable_Code_Point}]/gu;
// The verification line: "PeopleWritten Verified: https://wrt.pe/CERTIFICATE_ID", even if a platform wrapped it.
const LINE = /PeopleWritten Verified:\s*https?:\/\/(?:peoplewritten\.com\/v|wrt\.pe)\/([a-z0-9]{8,32})(?![a-z0-9])/;
async function checkPost(postText) {
const id = postText.match(LINE)?.[1];
if (!id) return { verified: false, reason: "no verification line" };
// Fingerprint the piece without its verification line.
const body = postText.replace(LINE, "");
const printable = body.replace(INVISIBLE, "").normalize("NFC");
const fp = createHash("sha256").update("peoplewritten.certificate-text/1\n" + printable).digest("hex");
const answer = await fetch(`https://peoplewritten.com/api/certificates/${id}/check?fp=${fp}`).then((r) => r.json());
if (answer.match) return { verified: true, latest: answer.latest, record: "https://peoplewritten.com" + answer.href };
if (answer.withdrawn) return { verified: false, reason: "certificate withdrawn" };
return { verified: false, reason: "not the piece its line names", characters: answer.characters };
}GET https://peoplewritten.com/api/certificates/:id/check?fp=…answers{ "match": true, "latest": true, "href": "/v/…", … }for the verified text, with"latest": falsefor a version the writer has updated since, and{ "match": false, "characters": 1234 }otherwise, with the number of printable characters in the latest verified text. A withdrawn certificate never matches, and answers{ "match": false, "withdrawn": true }.- The fingerprint is the SHA-256, in hex, of
peoplewritten.certificate-text/1, a line break, and the printable text. Only the fingerprint is sent, never the text. - Fingerprint the text as it’s shown, not as it’s typed: the reader sees “really”, not
**really**. - The endpoint is open to any origin and every request is answered. Checks are counted as badge checks with no site, so ask once per post, not on every view.