{% extends "base.html" %} {% set active = "speakers" %} {% block title %}{{ p.name }} โ€” Communication DNA{% endblock %} {% block content %}

{{ p.name }}

{% for tag in p.style_tags %} {{ tag }} {% endfor %}
{{ p.total_transcriptions }} transcription{{ 's' if p.total_transcriptions != 1 }} {{ "{:,}".format(p.total_words) }} words {{ p.total_segments }} segments {% if p.wpm %}~{{ p.wpm }} WPM{% endif %} {% if p.first_seen %}{{ p.first_seen }} โ€” {{ p.last_seen }}{% endif %}

๐Ÿ“– Vocabulary

{% for word, count in p.top_words %} {% set size = [14 + count // 2, 32] | min %} {{ word }} {% endfor %}
Richness (TTR) {{ "%.2f"|format(p.richness) }}
Formality {{ "%.2f"|format(p.formality) }}
Avg Sentence Length {{ p.avg_sentence_length }} words

๐Ÿ—ฃ๏ธ Speech Patterns

{% if p.top_phrases %}
Favorite phrases:
{% for phrase, count in p.top_phrases %} "{{ phrase }}" ร—{{ count }} {% endfor %}
{% endif %}
Question Rate {{ p.question_rate }}%
{% set pa = p.patterns %} {% if 'error' not in pa %}
Hedging vs Assertiveness
{% set total_ha = pa.hedge_count + pa.assert_count %} {% if total_ha > 0 %}
{% else %}
{% endif %}
Hedging ({{ pa.hedge_count }}) Assertive ({{ pa.assert_count }})
{% endif %}

๐Ÿ’ฌ Fillers

{{ "%.1f"|format(p.filler_rate) }}/100 words
{% if p.top_fillers %}
{% for filler, count in p.top_fillers %} {% if count > 0 %}
"{{ filler }}"
{{ count }}
{% endif %} {% endfor %}
{% endif %}

๐Ÿ’ญ Sentiment

{{ sentiment_emoji(p.sentiment_avg) }}
{{ "%.3f"|format(p.sentiment_avg or 0) }}
{% if p.sentiment_avg and p.sentiment_avg > 0.3 %}Optimistic{% elif p.sentiment_avg and p.sentiment_avg > 0.1 %}Positive{% elif p.sentiment_avg and p.sentiment_avg > -0.1 %}Neutral{% elif p.sentiment_avg and p.sentiment_avg > -0.3 %}Slightly Negative{% else %}Critical{% endif %}

๐Ÿท๏ธ Topics

{% set topics = p.topics %} {% if 'error' not in topics and topics.top_topics %}
{% for word, score in topics.top_topics[:12] %} {{ word }} {{ "%.1f"|format(score) }} {% endfor %}
{% else %}

No topics detected.

{% endif %}

โœ… Recent Commitments

{% if p.commitments %}
{% for c in p.commitments %}
{{ c.text[:150] }}
{{ c.transcription_title }}
{% endfor %}
{% else %}

No commitments found.

{% endif %}
{% if crm_info %}

๐Ÿข CRM Contact

{% for c in crm_info %}
{{ c.name }}
{% if c.email %}
{{ c.email }}
{% endif %} {% if c.company %}
{{ c.company }}{% if c.role %} ยท {{ c.role }}{% endif %}
{% endif %}
{% if c.health_score is not none %}
{{ c.health_score }}
Health
{% endif %}
{% if c.last_interaction %}
Last: {{ c.last_interaction.type }} โ€” {{ c.last_interaction.subject or 'No subject' }} ({{ c.last_interaction.date or 'unknown date' }})
{% endif %}
{{ c.interaction_count or 0 }} interactions ยท Last seen {{ c.last_seen or 'never' }}
{% endfor %}
{% endif %} {% if kb_links %}

๐Ÿ“š Knowledge Base

{% for e in kb_links %} {{ e.name }} ({{ e.entity_type }}) {% endfor %}
{% endif %}

๐Ÿ“ Transcriptions

{% if p.transcriptions %}
{% for t in p.transcriptions %} {{ t.title or 'Untitled' }} {{ t.date or '' }} ยท {{ t.context or '' }} ยท {{ "{:,}".format(t.word_count or 0) }} words {% endfor %}
{% endif %}
{% endblock %}