Skip to content
@unprofane

Unprofane

A profanity and toxicity API that is hard to fool, and a drop-in replacement for Google's Perspective API.

A profanity and toxicity API that is hard to fool. One call says whether to allow a text, with the evidence: which words, where, how they were disguised, how severe, and a censored copy. It is also a drop-in for Google's Perspective API, which stops answering after December 31, 2026.

curl https://api.unprofane.com/v1/check \
  -H "Authorization: Bearer $UNPROFANE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"sh1tH3ad_69","context":"username","policy":"teen"}'
{
  "allowed": false,
  "action": "block",
  "severity": "strong",
  "evasion": ["leetspeak"],
  "censored": "********_69",
  "reason": "Blocked under the teen policy for swearing in the wording and an insult: \"sh1tH3ad\" (shithead), typed with leetspeak."
}

The Scunthorpe Test, the public dev split, 15,550 items, 2026-10-25. Trap FPR is the share of innocent items (Scunthorpe, cockatoo, breast cancer) a filter blocked.

System F1 Trap FPR
unprofane-fast 0.920 0.0%
openai-moderation 0.553 3.2%
obscenity 0.364 20.2%
perspective 0.314 3.0%
bad-words 0.142 12.5%
2toad-profanity 0.128 11.5%
leo-profanity 0.057 8.7%
Repository
unprofane-js npm install @unprofane/sdk
unprofane-python pip install unprofane
moderate-action A GitHub Action that hides abusive issue, pull request and discussion comments
scunthorpe-test The benchmark: the dev split, the runner and adapters for open-source filters
perspective-api-client Perspective's Node client with the host configurable
discourse-perspective-api Discourse's Perspective plugin with the host as a setting

Docs · Playground · Pricing · Moving off Perspective

Pinned Loading

  1. unprofane-js unprofane-js Public

    JavaScript and TypeScript client for the Unprofane profanity and toxicity API (@unprofane/sdk)

    TypeScript 1

  2. perspective-api-client perspective-api-client Public

    The Node.js client for Google's Perspective API with a configurable host, for after Perspective shuts down on 2026-12-31

    JavaScript

  3. discourse-perspective-api discourse-perspective-api Public

    Discourse's Perspective API plugin with a setting for the API host, for after Google's Perspective API shuts down

    Ruby

  4. unprofane-python unprofane-python Public

    Python client for the Unprofane profanity and toxicity API (pip install unprofane)

    Python

  5. scunthorpe-test scunthorpe-test Public

    The Scunthorpe Test: a profanity-filter benchmark where blocking Scunthorpe counts against you

    TypeScript

  6. moderate-action moderate-action Public

    A GitHub Action that hides abusive issue, pull request and discussion comments with the Unprofane profanity and toxicity API

    TypeScript

Repositories

Showing 7 of 7 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…