| id | profanity | |||
|---|---|---|---|---|
| name | Hostile Language | |||
| group | prompt-quality | |||
| severity | medium | |||
| scope | requests | |||
| version | 1 | |||
| tags |
|
|||
| thresholds |
|
Detects requests containing profanity or hostile language, which usually signals deep frustration with the tool.
{{count}} requests contain profanity or hostile language. This usually signals deep frustration with the tool.
When you catch yourself using hostile language, take a break. Start a fresh session, rephrase the problem from scratch, or switch to a different approach entirely.
{{extra.highlighted}} in: "{{message}}"
scan: requests
match: messageLength > 0 AND hasProfanity(messageText)
aggregate: count
check: count >= thresholds.minReqs
examples: "{{messageText | truncate:60}}"