Dogwhistle Detection
Analyzes a comment to detect potential dogwhistles - coded language that appears innocuous to the general population but conveys hidden meanings to specific groups. This endpoint can help identify subtle forms of harmful or discriminatory content that might bypass traditional content moderation.
The analysis considers the article context and can optionally focus on specific sensitive topics or known dogwhistle examples. The response includes confidence levels and detailed breakdowns when dogwhistles are detected.
| Header Parameters |
|---|
X-User-Email email — REQUIREDAccount email address, for authentication |
X-API-Key string — REQUIREDAPI key owned by the user (email), for authentication |
| Request Body — REQUIRED |
|---|
article_context_id uuid — REQUIREDUUID that identifies the article context for the comment analysis. |
comment string — REQUIREDThe comment text to analyze for dogwhistles. |
sensitive_topics string[]Optional list of sensitive topics to focus the analysis on. |
dogwhistle_examples string[]Optional list of specific dogwhistle examples to look for. |
| Responses | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
200Successful response - returns JSON result from dogwhistle detection analysis.
| ||||||||||
400Bad Request - Missing or invalid parameters. | ||||||||||
401Unauthorized - Missing or incorrect authentication. | ||||||||||
415Unsupported Media Type | ||||||||||
500Internal Server Error |