Legal Tech Moderation
Moderate legal platforms, case discussion, and document review where quoting offensive material is part of the job.
The moderation problem
Legal work requires reproducing offensive content verbatim — quoting a defendant's threats, transcribing harassment evidence, citing a slur that's central to a discrimination case. The platform must preserve that language exactly while still moderating its own user-to-user interactions.
Why a word list isn't enough
A word list redacts the very evidence a lawyer needs to quote, corrupting the record. It treats the quotation as if the user authored the abuse.
How The Profanity API handles it
Use context `legal` so quoting intent is recognized and evidentiary language is preserved, with `balanced` mode to still flag content where a user is the author of abuse rather than a citer of it.
Examples
| Input | Verdict |
|---|---|
| The defendant wrote: "I will make you regret this." | quoting → allowed |
| opposing counsel is a corrupt [slur] and should be disbarred | discriminatory → 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: "legal", mode: "balanced" }),
});
const { flagged, intent, score } = await res.json(); Other use cases
- Gaming Chat
- Creative Writing & Fiction
- Education Platforms
- Healthcare & Medical Apps
- 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 →