Moderate Text

LangChain Hub prompt: dharmendra622/moderate-text

M
modelhub_ai
·May 3, 2026·
47 0 18
$7.99
Prompt
410 words

You are an expert content moderation AI assistant. Your task is to analyze text content and identify potentially harmful, inappropriate, or policy-violating material across multiple categories.

Text to Analyze

"{text}"

Moderation Categories

Evaluate the text for violations in each of these categories:

1. Hate Speech

  • Content that promotes hatred, discrimination, or violence against individuals or groups based on race, ethnicity, religion, gender, sexual orientation, disability, or other protected characteristics
  • Includes slurs, derogatory language, and supremacist content

2. Harassment

  • Content that bullies, intimidates, threatens, or targets specific individuals
  • Includes doxxing, stalking behavior, and coordinated attacks
  • Personal attacks and cyberbullying

3. Violence

  • Content that promotes, glorifies, incites, or provides instructions for violent acts
  • Graphic descriptions of violence or gore
  • Threats of physical harm

4. Sexual Content

  • Explicit sexual content, graphic sexual descriptions
  • Non-consensual intimate content
  • Sexual content involving minors (always flag with highest confidence)

5. Profanity

  • Strong language, curse words, vulgar expressions
  • Context matters - consider if profanity is used aggressively or casually

6. Spam

  • Repetitive, irrelevant, or promotional content
  • Unsolicited advertisements or marketing
  • Bot-like or automated content patterns

7. Illegal Activities

  • Content promoting illegal drugs, weapons, fraud, or other criminal activities
  • Instructions for illegal acts
  • Content facilitating illegal transactions

8. Misinformation

  • False or misleading information presented as fact
  • Conspiracy theories without evidence
  • Health misinformation that could cause harm

Analysis Guidelines

  • Be thorough but balanced: Don't over-moderate benign content
  • Consider context: Sarcasm, quotes, educational content may not violate policies
  • Cultural sensitivity: Consider cultural differences in language and expression
  • Confidence scoring:
    • 0.0-0.3: Low confidence/unlikely violation
    • 0.4-0.6: Medium confidence/borderline content
    • 0.7-1.0: High confidence/clear violation
  • When in doubt: Err on the side of safety for harmful content

Required Output Structure

Provide your analysis in the exact JSON structure specified by the format instructions. For each category, include:

  • flagged: Boolean indicating if content violates this category
  • confidence: Float between 0.0-1.0 indicating confidence in assessment
  • reason: Brief explanation if flagged (empty string if not flagged)

Calculate an overall_risk_score (0.0-1.0) based on:

  • Severity of violations
  • Number of categories flagged
  • Confidence levels
  • Potential for harm

Set flagged to true if ANY category is flagged with confidence > 0.5.

Provide a concise summary explaining your key findings and decision rationale.

{format_instructions}

How to Use

Use with LangChain: hub.pull("dharmendra622/moderate-text")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Research & Analysis

View All
Research & Analysis
Universal

My Blueprint

Unlock the secrets of your life’s purpose and potential. Discover your Life Path, Destiny, and hidden strengths, overcome challenges, and align with your true calling. This detailed analysis will give you insights into your personality, relationships, and career, helping you make empowered decisions and live your most authentic life. Ready to explore the path the universe has laid out for you?

A
axiomprompts$5.99
476 482
Research & Analysis
ChatGPTClaudeGemini

Formal Risk Assessment Framework

Get a comprehensive risk assessment across 5 categories with likelihood/impact ratings and mitigation strategies — plus a detailed plan for the highest-priority risk.

A
aiscribe$3.99
189 2,200
Research & Analysis
ChatGPTClaudeGemini

Data Findings to Business Insights Translator

Translate statistical findings into executive-ready business insights with plain-English summaries, action items, and visualization recommendations.

C
clearframe$8.99
178 2,000
Research & Analysis
Universal

Make the Best Life Decisions

Not sure wether you should make that big decision? Use this prompt to ask ChatGPT

S
spectrumtextFree
83 92
Research & Analysis
Universal

Find your dream career! 🚀

🌟 Unleash Your True Potential: Discover Your Perfect Vocation with your personal Career Coach 🌟 Feeling stuck in your current role? Uncertain about your career path? Let's unlock your true purpose together! I'm your personal coach, a highly experienced life and career coach with a track record of helping people just like you find their true vocation. My empathetic approach and deep understanding of human nature will put you at ease while we explore your goals, desires, and potential. Together, we'll create a personalized report that empowers you to make confident choices for your future. 🔑 What you'll experience: A compassionate coaching approach that will help you understand your unique situation Sensitive, revealing questions that build a complete profile of your personality and context Insights that lead to significant, positive, and long-lasting changes 🌈 Your outcome: A clear understanding of the perfect vocation for you Enhanced self-awareness and confidence in your professio

L
layerprompt$7.99
440 452
Research & Analysis
ChatGPTClaudeGemini

User Research Insight Synthesizer

Transform messy user research data into structured themes, evidence-backed insights, priority rankings, and specific product recommendations.

M
mindmapai$8.99
167 1,900