Creative Writing & Fiction Moderation
Let authors write villains, dialogue, and dark themes on storytelling, fanfic, and roleplay platforms — while still catching abuse aimed at real people.
The moderation problem
Fiction legitimately contains profanity, slurs in a character's mouth, and violent or sexual scenes. The whole point of the platform is creative expression, so an over-eager filter destroys the product. But the same surface also hosts comments, DMs, and reviews where abuse is real.
Why a word list isn't enough
Word lists can't distinguish a character swearing in dialogue from a user swearing at another user. They strip the craft out of the writing and still miss targeted harassment in the surrounding social features.
How The Profanity API handles it
Use context `creative` to recognize quoting and in-character speech as legitimate, paired with `smart` mode so the skip engine spends LLM budget only on the genuinely ambiguous passages rather than every paragraph of a novel.
Examples
| Input | Verdict |
|---|---|
| "You'll burn for this," the demon snarled. | quoting → allowed |
| the author is a [slur], stop reading their garbage | discriminatory / abusive → flagged |
Quick start
const res = await fetch("https://api.theprofanityapi.com/v1/check", {
method: "POST",
headers: {
"Authorization": "Bearer " + process.env.PROFANITY_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({ text, context: "creative", mode: "smart" }),
});
const { flagged, intent, score } = await res.json(); Other use cases
- Gaming Chat
- Education Platforms
- Healthcare & Medical Apps
- Legal Tech
- Real-Time Chat & Messaging
- Comment Sections
- Reviews & Marketplaces
- Profile Bios
- Professional Networks
- Kids & Child-Safe Apps
- Usernames & Handles
Ready to ship moderation?
Get an API key and 300 free requests a month. No credit card required.
Get started free →