EU Parliament Monitor — API Documentation - v0.8.49
    Preparing search index...

    Module Generators/PoliticalIntelligence/Icons

    Heuristic emoji icon picking for political-intelligence documents and daily analysis runs.

    The icons are chosen to visually differentiate the most common artifact types (SWOT, PESTLE, threat matrices, coalition dynamics, etc.) without depending on a heavy icon library. Rules are evaluated in declaration order, so more-specific matches must come before more- general ones (e.g. intelligence-brief before intelligence).

    Lifted out of political-intelligence.ts so the icon-picking rules can be unit-tested in isolation and so future renderers (e.g. news-indexes, sitemap HTML) can reuse them without pulling in the 1500-LOC PI module.

    Functions

    pickDocumentIcon
    pickRunIcon

    Variables

    DEFAULT_DOCUMENT_ICON
    DEFAULT_RUN_ICON