Heuristically pick an icon for an analysis document/slug. The icons
are chosen to visually differentiate the most common artifact types
without depending on a heavy icon library.
Rules are evaluated in declaration order — first match wins. To add
a new rule, add a [hints, icon] tuple at the most-specific
position: e.g. intelligence-brief is matched before
intelligence so the brief-specific newspaper icon (🗞️) takes
precedence over the generic magnifying-glass (🔍).
Parameters
stem: string
File/directory name stem (will be lowercased internally)
Returns string
A single emoji character (or grapheme cluster for ZWJ-joined emoji)
Heuristically pick an icon for an analysis document/slug. The icons are chosen to visually differentiate the most common artifact types without depending on a heavy icon library.
Rules are evaluated in declaration order — first match wins. To add a new rule, add a
[hints, icon]tuple at the most-specific position: e.g.intelligence-briefis matched beforeintelligenceso the brief-specific newspaper icon (🗞️) takes precedence over the generic magnifying-glass (🔍).