'DOJ Disclosures (Epstein Files)', 'lincoln_archives' => 'Lincoln Archives', 'house_resolutions' => 'House Resolutions', 'area51_cia' => 'Area 51 / CIA Declassified', 'jfk_assassination' => 'JFK Assassination Records', 'court_records' => 'Court Records', 'foia' => 'FOIA Releases', 'house_oversight' => 'House Oversight', ]; $collectionName = $collectionNames[$sourceSection] ?? ucwords(str_replace('_', ' ', $sourceSection)); // Group entities by type $entityGroups = []; if (!empty($entities)) { foreach ($entities as $ent) { $type = $ent['entity_type'] ?? 'OTHER'; if (!isset($entityGroups[$type])) { $entityGroups[$type] = []; } $entityGroups[$type][] = $ent; } ksort($entityGroups); } $entityTypeColors = [ 'PERSON' => 'bg-blue-100 text-blue-800', 'ORGANIZATION' => 'bg-purple-100 text-purple-800', 'ORG' => 'bg-purple-100 text-purple-800', 'LOCATION' => 'bg-green-100 text-green-800', 'LOC' => 'bg-green-100 text-green-800', 'GPE' => 'bg-green-100 text-green-800', 'DATE' => 'bg-amber-100 text-amber-800', 'MONEY' => 'bg-emerald-100 text-emerald-800', 'LAW' => 'bg-red-100 text-red-800', 'EVENT' => 'bg-pink-100 text-pink-800', 'NORP' => 'bg-indigo-100 text-indigo-800', 'FAC' => 'bg-teal-100 text-teal-800', 'PRODUCT' => 'bg-orange-100 text-orange-800', 'WORK_OF_ART' => 'bg-rose-100 text-rose-800', ]; function getEntityColor(string $type, array $colors): string { return $colors[$type] ?? 'bg-gray-100 text-gray-800'; } $title = htmlspecialchars($filename) . ' - Research Document Archive'; $content = ''; ob_start(); ?>
No OCR text available for this page.
Failed to load OCR text.