A playful profanity filter API for developers
Paste a URL and see the magic happen - side by side comparison of original vs. cleaned text.
Base URL: https://api.gawrshdarn.com
Check if text contains profanity and get a list of matches.
curl -X POST https://api.gawrshdarn.com/api/detect \
-H "Content-Type: application/json" \
-d '{"text": "What the hell?"}'
{
"contains_profanity": true,
"matches": ["hell"],
"count": 1
}
Censor or remove profanity from text.
curl -X POST https://api.gawrshdarn.com/api/filter \
-H "Content-Type: application/json" \
-d '{"text": "What the hell?", "mode": "censor"}'
{
"filtered": "What the h***?",
"original": "What the hell?",
"changes": 1
}
Mode options: censor (default) or remove
Replace profanity with playful, family-friendly alternatives.
curl -X POST https://api.gawrshdarn.com/api/replace \
-H "Content-Type: application/json" \
-d '{"text": "What the hell is this damn thing?"}'
{
"replaced": "What the heck in a handbasket is this dadgummit thing?",
"original": "What the hell is this damn thing?",
"substitutions": 2
}
Fetch a webpage and clean its text content.
curl -X POST https://api.gawrshdarn.com/api/fetch \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/page"}'
{
"original": "The extracted text from the page...",
"cleaned": "The cleaned text with replacements...",
"substitutions": 5,
"url": "https://example.com/page"
}
Built in Rust with Aho-Corasick algorithm for O(n) pattern matching. Sub-millisecond response times.
Smart detection avoids false positives. "class" won't trigger a match, but "ass" will.
Replacements match the original case. "DAMN" becomes "DADGUMMIT", "Damn" becomes "Dadgummit".
Family-friendly alternatives that keep the spirit of the original. Great galloping gooseberries!