How AI Analyzes
Relationship Patterns in Your Chat Messages
Every text you send carries signals about your personality, emotional state, and relationship dynamics. This is how AI reads between the lines, and the research behind each technique.
You send dozens of messages a day. "Good morning." "Running late." "Can't wait to see you." They feel routine, but to a model trained on language and relationship psychology each one is data: a window into your communication style, your emotional patterns, and the dynamics between you and the person on the other end.
Key takeaways
- Modern NLP grasps context and tone, not keywords, which is what makes emotion detection in short messages possible.
- Transformer models like BERT can infer personality dimensions from writing style with accuracy in the 80–90% range.
- The communication patterns Gottman identified in couples, including the Four Horsemen, have detectable linguistic markers.
- Response time is an honest signal of connection; changes in it matter more than the absolute number.
- MosaicChats combines these techniques into sentiment, personality, compatibility, and engagement views of one conversation.
Recent advances in NLP-based sentiment analysis let machines detect emotional nuance that was once exclusively human territory. What follows is how the pieces fit together.
The foundation: natural language processing
NLP is the branch of AI that lets computers interpret human language. Unlike keyword matching, current systems parse context, tone, and structure. Four techniques do most of the work in relationship analysis.
Core NLP techniques
Tokenization
Splitting messages into words and phrases while preserving context and meaning.
Part-of-speech tagging
Labeling nouns, verbs, and adjectives to characterize style and emotional expression.
Named entity recognition
Identifying the people, places, and things you talk about, which maps shared interests and recurring topics.
Dependency parsing
Analyzing grammar to see how ideas connect and how arguments are built.
How sentiment analysis tracks your emotional journey
Sentiment analysis is the automated detection of emotion in text, and it has moved well past positive-versus-negative. A review in Frontiers in Psychology distinguishes emotion detection, which identifies joy, sadness, anger, fear, and surprise, from plain sentiment scoring.
Four ways models detect emotion
- Lexicon-based: words are matched against emotion dictionaries and scored.
- Classical machine learning: algorithms trained on labeled examples learn emotional patterns.
- Deep learning: neural networks pick up context and subtle cues.
- Transformers: architectures like BERT read bidirectionally, so a word is interpreted in light of everything around it.
Applied to a whole chat history, the result is a trajectory rather than a snapshot. Research on emotion analysis in dialogue shows that tracking emotional dynamics across multi-turn conversations reveals patterns that predict relationship satisfaction.
How your writing reveals personality
Everyone has a linguistic fingerprint: the words you reach for, the sentences you build, the topics you drift toward. The approach called Personality BERT fine-tunes a pretrained transformer specifically to classify Myers-Briggs (MBTI) types from that fingerprint. Each dimension has its own markers.
Introversion vs. extraversion
- Message frequency and length
- First-person versus group pronouns
- Social versus internal topics
- Response-time patterns
Thinking vs. feeling
- Density of emotional language
- Logical connectors (therefore, because)
- Empathy expressions
- Decision-making language
Judging vs. perceiving
- Planning and scheduling language
- Flexibility indicators
- Certainty versus possibility words
- Organizational patterns
Sensing vs. intuition
- Concrete versus abstract language
- Present versus future focus
- Detail versus big-picture phrasing
- Metaphor use
Accuracy is good but not perfect. A study in the Journal of Big Data found that hybrid models combining BERT with other architectures reached about 81% accuracy on personality detection. Our MBTI-from-texts guide covers what that means in practice.
Which communication patterns predict relationship success
John Gottman's decades of couples research identified communication patterns that, in his lab studies, predicted relationship outcomes with over 90% accuracy. A study in Personality and Social Psychology Bulletin confirms the mechanism in everyday couples: positive communication lifts how partners evaluate the relationship, and negative exchanges erode it. AI can detect the same markers in text.
Gottman's Four Horsemen, as a model sees them
1. Criticism
Attacks on character rather than behavior: "you always," "you never."
Markers: generalizations, character attributions, blame language
2. Contempt
Sarcasm, mockery, name-calling, hostile humor.
Markers: sarcastic punctuation, dismissive phrases, superiority language
3. Defensiveness
Excuses, counter-attacks, playing the victim.
Markers: "but" statements, blame shifting, victim language
4. Stonewalling
Withdrawal: minimal replies, topic avoidance, long silences.
Markers: very short responses, subject changes, growing gaps
The positive side is detectable too. Research on capitalization and accommodation shows that celebrating a partner's good news enthusiastically, and responding constructively in conflict, both strongly predict relationship quality. See our summary of Gottman's marriage research for the full picture.
What response time says
A study in PNAS found that fast responses signal social connection: strangers and friends alike feel closer when their partner replies quickly, and very short gaps (under 250 milliseconds in speech) act as an honest signal that even observers use to judge whether two people click. In texting, the same logic applies over minutes and hours.
Quick replies
Signal engagement, interest, and emotional investment.
Moderate delays
Often thoughtfulness or competing priorities, not disinterest.
Pattern changes
A shift from someone's own baseline is the signal worth noticing.
Context changes the meaning. Research on texting in long-distance relationships found that more frequent, more responsive texting predicted greater satisfaction for couples separated by distance, but not for couples who lived close together. More on this in our piece on the psychology of response time.
Attachment styles in your messages
Your attachment style, shaped by early relationships, shows up in how you text. A study in Computers in Human Behavior found that avoidantly attached people communicate significantly less by phone and text and prefer email for conflict, while anxiously attached people report more phone conflict and use digital channels to maintain a feeling of connection.
Attachment markers a model can see
Secure
Balanced frequency, comfortable emotional expression, responsive without anxiety.
Anxious
Frequent reassurance-seeking, heightened reaction to delays, more emotional language.
Avoidant
Less frequent contact, limited disclosure, topic changes when conversations deepen.
Disorganized
Inconsistent patterns, approach-avoidance swings, unpredictable emotional expression.
Our guide to attachment styles in digital communication goes deeper on each.
How MosaicChats applies this
MosaicChats' chat analysis combines these techniques into four views of a single conversation.
Sentiment chart
Emotional tone scored week by week, so you can see the trajectory rather than remembering it.
MBTI analysis
Each personality dimension inferred from linguistic markers for each person in the chat.
Compatibility score
A 0–100 read on how your communication styles, emotional alignment, and interaction dynamics fit.
Engagement metrics
Response times, message frequency, who initiates, and an activity heatmap.
Privacy and control
What we commit to
- Your data, your choice: you decide which conversations to upload and can remove them.
- No raw-message exposure: messages are processed to produce measurements and are never written to logs or shared.
- Encryption: data is encrypted in transit and at rest.
- No selling: your relationship data is not sold or shared with third parties.
- Explained metrics: each tile says what it measures and how.
For the broader picture, read our article on privacy and digital connection.
Where the research is heading
- Multimodal analysis: text combined with voice tone, emoji use, and timing.
- Predictive modeling: flagging a declining trend before it hardens.
- Cultural adaptation: models that understand communication norms across languages and cultures.
- In-the-moment coaching: help while you write, not only in retrospect.
Whatever the models learn to see, the work of building a relationship stays human. AI can show you the pattern; what you do with it is the relationship.
See your own patterns
Upload a conversation and get the sentiment trajectory, personality signals, compatibility score, and engagement metrics described above, grounded in the research cited here.
Analyze your conversationFrequently asked questions
Does AI actually read my messages?
Models process the text to extract measurements: sentiment scores, response times, linguistic features, personality markers. No person reads the conversation, and MosaicChats never exposes raw messages in logs or shares them with third parties.
How accurate is AI at detecting personality from text?
It depends on the model and the amount of text. Hybrid BERT models reached about 81% accuracy on personality detection in a Journal of Big Data study, and a recent survey reports up to 90% on MBTI traits. Results are best read dimension by dimension rather than as a definitive type.
Can AI detect Gottman's Four Horsemen in texts?
It can flag the linguistic markers associated with criticism, contempt, defensiveness, and stonewalling: generalizations like 'you always', sarcasm, blame-shifting, and abrupt withdrawal. A flagged pattern is a prompt to look closer, not a diagnosis of the relationship.
Related reading
References
- "Recent advancements and challenges of NLP-based sentiment analysis: A state-of-the-art review." Natural Language Processing Journal, 2024. Source
- "Detection of emotion by text analysis using machine learning." Frontiers in Psychology, 2023. Source
- "Emotion Analysis in NLP: Trends, Gaps and Roadmap for Future Directions." arXiv, 2024. Source
- "Personality BERT: A Transformer-Based Model for Personality Detection from Textual Data." Springer, 2022. Source
- "Text based personality prediction from multiple social media data sources using pre-trained language model." Journal of Big Data, 2021. Source
- Johnson, M. D., et al. "Within-Couple Associations Between Communication and Relationship Satisfaction Over Time." Personality and Social Psychology Bulletin, 2022. Source
- "Communication, the Heart of a Relationship: Examining Capitalization, Accommodation, and Self-Construal on Relationship Satisfaction." International Journal of Environmental Research and Public Health, 2021. Source
- "Fast response times signal social connection in conversation." Proceedings of the National Academy of Sciences, 2022. Source
- "Long-distance texting: Text messaging is linked with higher relationship satisfaction in long-distance relationships." Journal of Social and Personal Relationships, 2022. Source
- "Young adults' use of communication technology within their romantic relationships and associations with attachment style." Computers in Human Behavior, 2013. Source