'CIA Declassified', 'cia_mkultra' => 'CIA MKUltra', 'cia_stargate' => 'CIA Stargate', 'doj_disclosures' => 'DOJ Disclosures', 'house_resolutions' => 'House Resolutions', 'jfk_assassination' => 'JFK Assassination', 'lincoln_archives' => 'Lincoln Archives', ]; $sectionColors = [ 'cia_declassified' => 'bg-red-500', 'cia_mkultra' => 'bg-purple-500', 'cia_stargate' => 'bg-indigo-500', 'doj_disclosures' => 'bg-amber-500', 'house_resolutions' => 'bg-blue-500', 'jfk_assassination' => 'bg-orange-500', 'lincoln_archives' => 'bg-emerald-500', ]; ?>

Analytics Dashboard

Cross-collection analysis, topic profiles, and key findings across documents.

$stats): $color = $sectionColors[$section] ?? 'bg-gray-500'; ?>

Documents

Pages

0): ?>
TOP SECRET

0): ?>
SECRET

0): ?>
Redacted

Classification Stamps Detected

'border-red-300 bg-red-50 text-red-800', 'SECRET' => 'border-orange-300 bg-orange-50 text-orange-800', 'CONFIDENTIAL' => 'border-yellow-300 bg-yellow-50 text-yellow-800', 'CLASSIFIED' => 'border-amber-300 bg-amber-50 text-amber-800', 'UNCLASSIFIED' => 'border-green-300 bg-green-50 text-green-800', 'DECLASSIFIED' => 'border-emerald-300 bg-emerald-50 text-emerald-800', 'EYES ONLY' => 'border-red-300 bg-red-50 text-red-800', 'NOFORN' => 'border-rose-300 bg-rose-50 text-rose-800', 'REDACTED' => 'border-gray-600 bg-gray-800 text-white', ]; foreach ($stamps as $s): $sColor = $stampColors[$s['classification']] ?? 'border-gray-300 bg-gray-50 text-gray-700'; ?>

documents

Topic Profiles by Collection

$topics): arsort($topics); $top3 = array_slice($topics, 0, 3, true); ?> $pct): ?>
Collection Top Topics
%

Sentiment Analysis by Collection

$sent): $pol = $sent['avg_polarity']; $sub = $sent['avg_subjectivity']; // Color based on polarity if ($pol > 0.05) { $polColor = 'text-green-700'; $polBg = 'bg-green-100'; $polLabel = 'Positive'; } elseif ($pol < -0.05) { $polColor = 'text-red-700'; $polBg = 'bg-red-100'; $polLabel = 'Negative'; } else { $polColor = 'text-gray-700'; $polBg = 'bg-gray-100'; $polLabel = 'Neutral'; } ?>

Polarity ()
Subjectivity

documents

Collection Similarity (Jaccard Index)

shared

Bridge Entities (People Across Collections)

docs

Bridge Entities (Organizations Across Collections)

cols