• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
Downchuck

Downchuck

con-juan

Public
Like
con-juan
Home
Code
8
frontend
1
src
2
AUTOBOT.md
README.md
H
chat-api.ts
database.ts
H
power-abuse-analyzer.ts
H
static-file-server.ts
Branches
1
Pull requests
Remixes
History
Environment variables
1
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
5/22/2025
Viewing readonly version of main branch: v23
View latest version
README.md

Power Abuse Analyzer

A conversational AI tool that identifies covert or subtle abuse from powerful people in books, messages, or public statements.

Overview

This tool uses advanced language models to analyze text for subtle patterns of abuse, manipulation, and problematic language that might be overlooked in everyday communication, especially from people in positions of power.

Features

  • Text Analysis: Analyze any text for subtle forms of abuse and manipulation
  • Pattern Recognition: Identifies 14 different patterns of subtle abuse
  • Severity Assessment: Rates identified patterns as subtle, moderate, or overt
  • Confidence Scoring: Provides confidence levels for each identified pattern
  • Example Extraction: Highlights specific examples from the analyzed text
  • Response Suggestions: Offers constructive ways to address problematic language
  • Known Figure Analysis: Pre-configured examples for analyzing statements from known powerful figures (e.g., Steve Jobs, Ray Dalio)
  • Persistent Sessions: Save analysis sessions to SQLite database
  • Pattern Examples: Add your own examples to identified patterns
  • Threaded Conversations: Continue conversations about specific patterns
  • Export Functionality: Export analysis results for sharing or archiving

Abuse Patterns Detected

  1. Gaslighting or reality distortion - Manipulating someone into questioning their own reality, memory or perceptions
  2. Subtle threats or intimidation - Implied consequences without explicit threats
  3. Minimization of harm - Downplaying the negative impact of actions or decisions
  4. Shifting blame to victims - Making those harmed responsible for their own suffering
  5. Appeals to authority or expertise to silence criticism - Using position or credentials to avoid accountability
  6. False equivalencies - Comparing unrelated situations to normalize problematic behavior
  7. Dehumanizing language - Subtle ways of reducing people to objects, functions, or stereotypes
  8. Plausible deniability tactics - Crafting statements that can be defended as innocent if challenged
  9. Coded language that signals to specific groups - Using terms with special meaning to certain audiences
  10. Misuse of institutional power - Leveraging organizational structures to enable abuse
  11. Intellectual intimidation - Using complex frameworks or jargon to make others feel inferior
  12. Benevolent authoritarianism - Framing controlling behavior as being "for your own good"
  13. Selective meritocracy - Claiming decisions are based on merit when they actually favor those who conform
  14. Institutional shield - Using organizational policies or culture as a shield for personal abusive behavior

Project Structure

  • /power-abuse-analyzer.ts - Core analysis engine
  • /chat-api.ts - API for chat sessions and pattern examples
  • /database.ts - SQLite database operations
  • /static-file-server.ts - Static file server for the frontend
  • /frontend/index.html - User interface for the analyzer

Database Schema

The application uses SQLite with the following tables:

  • Sessions: Stores chat sessions with titles and timestamps
  • Messages: Stores messages within sessions, with support for threaded conversations
  • Patterns: Stores identified abuse patterns with severity and confidence ratings
  • Examples: Stores examples of patterns, including user-provided examples

The database uses recursive common table expressions (CTEs) to handle threaded conversations about specific patterns.

Usage

  1. Visit the web interface
  2. Create a new analysis session
  3. Enter text to analyze or ask a question about power abuse patterns
  4. Review the analysis results
  5. Click on "Add examples or ask about this pattern" to continue a conversation about a specific pattern
  6. Add your own examples of patterns you've observed
  7. Save and export your analysis sessions

Prompts Used

Analysis Prompt

The system uses a carefully crafted prompt to guide the AI in identifying subtle forms of abuse:

You are an expert in identifying subtle forms of abuse, manipulation, and problematic language from powerful people. 
Your task is to analyze the provided text and identify patterns that may indicate:

[List of 14 abuse patterns]

Focus on SUBTLE and COVERT forms of these patterns that might not be immediately obvious.
For each identified pattern, provide:
- A clear explanation of the pattern
- The severity (subtle, moderate, or overt)
- Your confidence level (0.0-1.0)
- Specific examples from the text

If no problematic patterns are found, state so clearly.
Provide an overall assessment of the text.
If appropriate, suggest constructive responses or ways to address the problematic language.

Pattern Follow-Up Prompt

For handling follow-up questions about specific patterns:

You are an expert in identifying and explaining patterns of subtle abuse, manipulation, and problematic language from powerful people.
  
A user has previously identified the following pattern in some text:

Pattern: [pattern_type]
Explanation: [explanation]
Severity: [severity]
Confidence: [confidence]

Examples of this pattern:
[examples]

The user is now asking a follow-up question or providing additional information about this pattern.
If they are providing a new example, acknowledge it and explain how it fits the pattern.
If they are asking a question, provide a detailed, educational response about this specific pattern.
Focus on being helpful, informative, and sensitive to the nuances of power dynamics.

Example Analysis

When analyzing Steve Jobs' management style, the system might identify patterns such as:

  • Reality distortion (convincing employees impossible deadlines were achievable)
  • Minimization of harm (dismissing the impact of his harsh criticism)
  • Intellectual intimidation (using technical knowledge to silence disagreement)

Users can then add their own examples of these patterns and continue the conversation to explore them in more depth.

Limitations

This tool provides analysis based on AI pattern recognition and should be used as one input among many when evaluating communication. It is not a definitive judgment of a person's character or intentions.

Future Improvements

  • Add more pre-configured examples of powerful figures
  • Improve pattern detection accuracy
  • Enhance the user interface with visualization of abuse patterns
  • Add historical context for better analysis
  • Implement user accounts to save and compare analyses
  • Add collaborative analysis features for group discussions
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.