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:

  • sson
  • sen
  • berg
  • ström
  • lund
  • qvist

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/sen would be incorrectly flipped (rare in Swedish given names).
  • Runs before Name Validation — invalid names are still rejected after flipping.

See also

Name Validation, Crawlee Scraper.