{#if digraphs.length === 0}

no digraphs captured

type in the textarea on the capture tab first
{:else}
{#if selectedProfile && sessionAggs.length < 5} need at least 5 unique digraph pairs to compare {/if} {#if profiles.length === 0} save a profile first on the profile tab {/if} {#if result}
{result.similarityPercent}% similarity
distance {result.overallDistance}
shared pairs {result.sharedCount}
confidence {result.confidence}
{#if result.confidence === 'insufficient'} not enough shared digraph pairs for a reliable comparison — type more or use similar content {/if} note: comparing prose vs code sessions for the same user will produce poor matches {#if result.perDigraph.length > 0}
{#each result.perDigraph as d} {/each}
keys distance match
{d.normalizedKeys} {d.distance} {d.matchPercent}%
{/if}
{/if}
{/if}