Status: done (2026-11-01) Priority: 3 Size: M Arch: expansion Phase: implement Design ref: Naming of farms. Not checked tonight. Goal: Villages of 12-16 farms run out of direction names. VB-021 numbers the extra ones (“Östergården 2”), which is a placeholder. Villages are also named from 88 syllable pairs; a unique name is forced within a map. Acceptance criteria:
src/sim/names.js (VB['sim/names'], @sys header, in src/manifest.json before sim/layout) holds name generators grouped by the kind of thing named: farm, village, culture. Each generator is a function (ctx, rand) => name | null (null when it has nothing to offer); ctx holds the world, the entity and the names already taken.compass (today’s direction names, Mellangården included), landmark (from the surroundings, as lone farms get today: Strand, Lunden, Backa, Myra, Ängen and the like, extended with more landmark words), owner (from the first holder’s given name, e.g. “Olofsgården”, in the genitive as patronym builds it). Village generators: today’s syllable names. Culture generators: today’s nameCulture.c.namePrefs, @state documented). For now every culture has the same list: farms compass, then landmark, then owner; the first generator that gives a name not already taken in the village wins. A number is added only if all fail.nameFarms and the naming of new farmsteads (VB-032) go through the culture’s preference; existing names at seeding stay the same where today’s rule gives a unique name, so small villages keep their names.owner name follows the holder’s given name.docs/review-stability.md): fix naming so that few names repeat on the map. Chosen: this task, plus one label per village of two or more farms, a founded village’s farm named for its founder, and lone-farm names unique on the island.src/sim/names.js holds the generators (compass, landmark, owner for farms; villageName and founderName for villages). landmark offers the old lone-farm word first, then other words for the same ground (Viken, Näset; Åsen, Kullen; Mossen, Kärret; Gärdet, Vreten…) and prefixed compounds (Björklunden, Sandstrand, Långmyra), in an order fixed by the house tile: 60 to 130 names a farm. Culture names (nameCulture) stay in sim/society, as they are made from a settlement’s name.c.namePrefs (NAME_PREFS in src/culture.js, which loads before the sim modules); a split copies its parent’s.design.md may want a line for the hamlet label.tileRand), not st.rand, so a name never shifts the simulation’s history. The golden file changed only in names, event texts that name farms and villages, and the new namePrefs (and the Culture API’s NAME_PREFS).docs/review-stability.md: repeated map labels after 60–80 years fall from 32–94 per run to 0.