Boss Fight and Boss No Hit videos get the boss's name as a tag of its
own, right after the game's name, so fitting the list to 500 characters
never drops it.
bossNameTag cleans the Boss Name field the way a search term reads:
- NFC first; everything but letters (any script), marks, digits,
whitespace and in-word ' ' - becomes a space: , : ; ! ? quotes,
brackets, &, the CJK brackets and dots, (TM), emoji.
- A dot stays between digits ("Phase 2.0"), goes between initials
("S.T.A.L.K.E.R." -> "STALKER") and is a space anywhere else
("Mr.X" -> "Mr X"). Done per word in code: a lookbehind would be a
syntax error in the macOS 11-13 webview and stop the chunk loading.
- Over 30 characters, the name before its title ("Loretta, Knight of
the Haligtree" -> "Loretta"), else the leading words that fit; the
word fit is now a helper shared with tagFriendlyGameName (same result
there).
Only the video types whose extraFields include bossName add it, so a
boss name left in the draft after switching to Full Gameplay is not
tagged. Docs: FEATURES, ARCHITECTURE 2.3, TECH-SPEC.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>