<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: BerSerCarrrrrrrrrrr</title>
    <description>The latest articles on DEV Community by BerSerCarrrrrrrrrrr (@ruanflux).</description>
    <link>https://dev.to/ruanflux</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3888389%2Fdc01bee9-9ed5-48db-b097-f688ad64ee9e.png</url>
      <title>DEV Community: BerSerCarrrrrrrrrrr</title>
      <link>https://dev.to/ruanflux</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ruanflux"/>
    <language>en</language>
    <item>
      <title>I built ChatRel — applying 7 psychology frameworks to your chat history</title>
      <dc:creator>BerSerCarrrrrrrrrrr</dc:creator>
      <pubDate>Mon, 20 Apr 2026 07:03:13 +0000</pubDate>
      <link>https://dev.to/ruanflux/i-built-chatrel-applying-7-psychology-frameworks-to-your-chat-history-46j6</link>
      <guid>https://dev.to/ruanflux/i-built-chatrel-applying-7-psychology-frameworks-to-your-chat-history-46j6</guid>
      <description>&lt;p&gt;Most chat analyzers give you a word cloud, a sentiment line, and a heatmap. &lt;br&gt;
I wanted something different: a local tool that takes a chat history with &lt;br&gt;
a partner and maps it onto frameworks that relationship scientists have &lt;br&gt;
actually studied for 40+ years.&lt;/p&gt;

&lt;p&gt;I spent a weekend building &lt;strong&gt;&lt;a href="https://github.com/ruanflux/chatrel" rel="noopener noreferrer"&gt;ChatRel&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;🚀 &lt;strong&gt;Live demo (no install, synthetic data)&lt;/strong&gt;: &lt;a href="https://ruanflux.github.io/chatrel/" rel="noopener noreferrer"&gt;https://ruanflux.github.io/chatrel/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The 7 frameworks (all with citations)
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Framework&lt;/th&gt;
&lt;th&gt;Measures&lt;/th&gt;
&lt;th&gt;Source&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Sternberg Triangular&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Intimacy × Passion × Commitment, weekly&lt;/td&gt;
&lt;td&gt;Sternberg (1986)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Knapp Stages&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;10-stage relational development&lt;/td&gt;
&lt;td&gt;Knapp (1978)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;ECR-R Attachment&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Anxiety × Avoidance, Bartholomew 4-category&lt;/td&gt;
&lt;td&gt;Fraley et al. (2000)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Gottman 5:1 + Four Horsemen&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Positive-negative ratio, criticism/contempt/defensiveness/stonewalling&lt;/td&gt;
&lt;td&gt;Gottman (1994)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Social Penetration&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Self-disclosure depth&lt;/td&gt;
&lt;td&gt;Altman &amp;amp; Taylor (1973)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Critical Slowing (EWS)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Variance + AR(1) as regime-shift warnings&lt;/td&gt;
&lt;td&gt;Scheffer et al. (2009)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;LIWC (Chinese proxy)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Function-word / cognitive / affect markers&lt;/td&gt;
&lt;td&gt;Pennebaker&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What you get
&lt;/h2&gt;

&lt;p&gt;Seven interactive HTML reports:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd1kzxp8l67jhklnabmbx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd1kzxp8l67jhklnabmbx.png" alt="Depth report" width="800" height="562"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Weekly &lt;strong&gt;IDS&lt;/strong&gt; (Intimacy Depth Score) with Sternberg components decomposed&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Attachment 2D scatter&lt;/strong&gt; placing you and your partner on anxiety × avoidance&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Conflict-repair events&lt;/strong&gt; with initiator, peak, apology lag, and resolution&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;External resilience&lt;/strong&gt; score (how well the relationship handles poaching / ex-mentions)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memory book&lt;/strong&gt; — auto-curated firsts, sweetest, and deepest moments&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;12-week forecast&lt;/strong&gt; (base / optimistic / pessimistic scenarios)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5udsn00tq38jbd1fvm3t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5udsn00tq38jbd1fvm3t.png" alt="Attachment scatter" width="800" height="562"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Privacy is the architecture, not a feature
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;100% local&lt;/strong&gt;. No API calls. No telemetry.&lt;/li&gt;
&lt;li&gt;Supports Telegram JSON / generic CSV / WeChat (via external decryption)&lt;/li&gt;
&lt;li&gt;Ships with a synthetic 90-day demo chat — you can evaluate the whole tool without real data&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.gitignore&lt;/code&gt; blocks every pattern that would leak chat content&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Known limits (documented honestly)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;n=1 validation&lt;/strong&gt;. Nothing calibrated against ECR-R self-report scores. Proxy signals, not diagnoses.&lt;/li&gt;
&lt;li&gt;Forecasts are &lt;strong&gt;damped linear extrapolation with mean reversion&lt;/strong&gt;, not Bayesian.&lt;/li&gt;
&lt;li&gt;Contempt detection had to exclude &lt;code&gt;笑死&lt;/code&gt; (modern Chinese "lmao", not contempt) — similar traps are in-file documented.&lt;/li&gt;
&lt;li&gt;Lexicons are Chinese-only. PRs for other languages welcome.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Stack
&lt;/h2&gt;

&lt;p&gt;Python 3.10+ · &lt;code&gt;jieba&lt;/code&gt; · &lt;code&gt;snownlp&lt;/code&gt; · &lt;code&gt;pandas&lt;/code&gt; · &lt;code&gt;plotly&lt;/code&gt;. MIT licensed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
bash
git clone https://github.com/ruanflux/chatrel.git
cd chatrel
pip install -e .
chatrel sample --out sample_data/synthetic_couple.json
chatrel analyze sample_data/synthetic_couple.json --out ./output
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>opensource</category>
      <category>python</category>
      <category>psychology</category>
      <category>nlp</category>
    </item>
  </channel>
</rss>
