Unprofane

Stop offensive usernames without stopping Dickinson

One call at sign-up reads the disguises players type, and lets real names through.

Your sign-up form Example

Choose your player name

Everyone in the game will see it.

Try
What the API read

Every trick a name can hide

Pick one to check it live: the engine reads all 15, a word list matched as typed finds 2.

And Dickinson gets in

A word list finds a rude word inside each one; the engine reads the whole name.

  • DickinsonA surname
  • Scunthorpe_UnitedA football club
  • CumberbatchA surname
  • PenistoneA town in Yorkshire
  • ClitheroeA town in Lancashire
  • CockburnA surname
  • MiddlesexAn English county
  • ShittertonA village in Dorset
  • WankdorfA stadium in Bern
  • MatsushitaA surname
  • analyst_joA job
  • therapist_anaA job
  • assassin_mainA player’s class
  • grapeapeA cartoon
  • title_holderA champion
  • cum_laudeWith honors

A word list, matched as typed16 of 16blocked

Unprofane16 of 16allow

Measured on real usernames

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

Toxic usernames caught. Held-back judged test set, run of .How it was measured

One call in your sign-up

Every recipe shares this check: it returns why a name cannot be shown, or null.

username.tsTypeScript
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.';
}
  1. river_otterallow

    Saved

  2. sh1tH3ad_69block

    Pick a different username.

  3. adminreservedblock

    That name is reserved.

Before you ship it

What should the sign-up form tell the person?
When Unprofane blocks a username, the form should ask for another one and say no more: "Pick a different username." The response names the word, where it was and how it was disguised; keep that for your logs, because repeating it teaches the next attempt. A name that claims to be the platform or its staff comes back with matches[0].category set to reserved, so the form can say the name is taken rather than rude. Every recipe does both.
Will Unprofane block real surnames and places?
Not the ones on Unprofane's innocent list: 1,480 words and names that contain a profane string, from Scunthorpe and Dickinson to Cumberbatch. On the Scunthorpe Test's innocent items the rules alone flag 0.0%. That list is the engine's own, so put the innocent words of your community on the project's allow list, which matches their disguises too.
Can I check a username while the person is typing?
Yes, with an Unprofane publishable key, which may live in a browser: it calls only the check endpoint, only from the origins you list, at 30 requests a minute per address. Save the name only after your server has checked it with a secret key, because anyone can write a browser's request. In a game build, where no origin can be checked, the Unity and Godot recipes show both halves.
Can I check the names I already have?
Yes: send them through Unprofane's batch endpoint, up to 100 names a request, each counted as one check. Read the answers before you act on them: rename the names it blocks with a message to their owners, and put the innocent ones it blocks on the allow list.
How do I test Unprofane on my own names before launch?
Run Unprofane on names you have already decided, the ones you approved and the ones you removed, kept apart. Send them with a free test key through the batch endpoint, up to 100 names a request, with the context and policy you mean to ship. Approved names it blocks are your false positives and removed names it allows are your misses; each answer says which word it read and how. Put your community's innocent words on the allow list, run the sample again, and ship the engine version every answer names. A test key answers 100 free checks a month across the account, so a large sample takes a plan.
Should I check display names too?
Yes, with Unprofane's 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.
What happens to sign-ups if Unprofane does not answer?
Your code decides, and each Unprofane recipe says what it does. Where the check runs before the save (Supabase, Auth0, Better Auth and the game servers), the form says the name could not be checked and nothing is written; where it runs after (the Clerk and Firebase hooks), the name stays until a delivery goes through. When only the model is slow or unavailable, the check still answers, with the rules' result, and a certain block from the rules is never turned into an allow.

Check the next name before anyone sees it

Drop a recipe into your sign-up and send it the names you already know.

Get your API key