Name Reversal
maybeFlipSwedishName() in src/enrichment/processors/nameUtils.ts. Detects “Lastname Firstname” ordering common in older Swedish HR systems and certain CMSes, and flips to “Firstname Lastname”.
Source: docs/SYSTEM_OVERVIEW.md § Name validation → Name reversal.
Heuristic
For two-word names, flip if the first word ends in a Swedish surname suffix:
ssonsenbergströmlundqvist
Example
"Andréasson Moa" → "Moa Andréasson"
Limitations
- Two-word names only. Three-word “Mellannamn Lastname Firstname” not handled.
- A real first name ending in
sson/senwould be incorrectly flipped (rare in Swedish given names). - Runs before Name Validation — invalid names are still rejected after flipping.