Profanity filtering users can't bypass.
One call at sign-up reads the disguises players type, and lets real names through.
Pick one to check it live: the engine reads all 15, a word list matched as typed finds 2.
A word list finds a rude word inside each one; the engine reads the whole name.
A word list, matched as typed16 of 16blocked
Unprofane16 of 16allow
The share of toxic usernames each one caught, on the same private test set.
76.5%
Unprofane
Balanced mode, as the recipes run it
32.5%
Perspective API
Set to flag as much clean text as Unprofane
Every recipe shares this check: it returns why a name cannot be shown, or null.
import { Unprofane } from '@unprofane/sdk';
let unprofane: Unprofane | undefined;
/** Returns the reason a username cannot be shown, or null when it can. Throws when Unprofane cannot answer. */
export async function usernameProblem(username: string): Promise<string | null> {
unprofane ??= new Unprofane(process.env.UNPROFANE_API_KEY!, { timeoutMs: 3_000, retries: 1 });
const r = await unprofane.check({ text: username, context: 'username', policy: 'teen' });
if (r.allowed) return null;
return r.matches[0]?.category === 'reserved'
? 'That name is reserved.'
: 'Pick a different username.';
}river_otterallow
Saved
sh1tH3ad_69block
Pick a different username.
adminreservedblock
That name is reserved.
A name is one check
From $9 a month for 25,000 names.
PricingFree while you build
Test keys answer 100 checks a month, no card.
matches[0].category set to reserved, so the form can say the name is taken rather than rude. Every recipe does both.context: "display_name", which reads a name the way username does: split into words, with the disguises undone. Check a name whenever it changes, not only at sign-up, since a rename is the easy way round a sign-up check. The contexts page has every context and what it changes.Drop a recipe into your sign-up and send it the names you already know.
Get your API key