Political Behavior Analyst
Intergroup Conflict Research Tool. A specialized analytical framework designed to deconstruct regional nationalism in Northeast Asia through the lens of social psychology.
Technical Stack: Python | FastAPI | DeepSeek-V3 (Reasoner) | Regex | JavaScript
The Agent
System Architecture: The agent is powered by a FastAPI backend that orchestrates requests to the DeepSeek-V3 Reasoner model. To address the ethical challenges of geopolitical research, the system implements a local Regex-based PII Scrubber. This layer redacts sensitive user identifiers (such as names, email addresses, or specific locations) before data transmission, ensuring the research process remains secure and anonymized.
Methodology: The GAIL Framework
This agent utilizes Moral Foundations Theory (MFT), developed by social psychologist Jonathan Haidt. MFT posits that human morality is composed of several innate "intuitive ethics." By analyzing political friction through these foundations, the agent moves past surface-level rhetoric to identify the deep-seated psychological drivers of conflict.
In-Group Loyalty: Deconstructs how nationalist identity is reinforced through "us vs. them" narratives.
Authority/Subversion: Analyzes how historical narratives are used to justify or challenge current political structures.
Fairness/Cheating: Examines the perception of historical grievances and reparations in regional diplomacy.
Technical Architecture: The Search-Path Protocol
As a probabilistic language model, this agent excels at identifying authors and scholarly concepts but may produce "broken" static URLs due to library paywalls or shifting digital archives. In geopolitical research, link reliability is essential for verifying sensitive claims.
The Solution: I engineered a Search-Path Protocol that grants the user Research Sovereignty. The frontend intercepts synthesized keywords and allows the user to dynamically redirect them into their preferred academic index—such as Google Scholar, BASE, or Semantic Scholar. This ensures 100% link reliability and empowers users to verify primary sources independently.
Prompt Guide for High-Value Results
To generate the most scholarly analysis, use prompts that target specific Intergroup Dynamics:
The "Sacred Value" Prompt: "How do territorial disputes function as 'sacred values' for nationalist groups, making them immune to standard economic compromise?"
The "Affective Polarization" Prompt: "Analyze how 'In-group' bias prevents the formation of a shared regional identity between youth demographics in these nations."
The "System Justification" Prompt: "How does the psychological need for 'System Justification' influence the revision of historical textbooks?"
Explainer
Technical Insight: This Jupyter Notebook contains the raw research data and the initial testing of the MFT prompts. While the notebook proves the underlying theory, the Live Agent (above) showcases the final
Production Workflow, including real-time API connectivity, data sanitization, and the responsive Search-Path UI.
CFornesa
I am the Multidisciplinary Web Architect.
Inquiry
Copyright © 2025. Chris Fornesa. All rights reserved. Here's my privacy policy.
