Status: done (2026-11-12) Priority: 3 Size: M Design ref: Naming of farms Goal: One set of village name generators (site, then mother and founder in batch 2), grounded in the Swedish place-name layers; names drawn from a stream keyed by the centre tile, so a word change never moves the layout. Acceptance criteria:
villageName(ctx, taken, rand, order) in src/sim/names.js for every village, with generators (ctx, rand) => [names, best first] as the farms have; ctx is {w, site, founder, mother}, and a village with no mother is an old one (Kim: no old flag).site generator for the old layer: a first part from the ground within 5 steps (trees, pine, shore, stone, marsh, open land; the lie of the land, crops, beasts, size and colour anywhere) and an ending that fits the site (-by, -sta, -inge anywhere; -lunda in broadleaf wood, -åker on open land, -berga by hills, -vik and -näs by water, -ö on an island of at most 250 tiles), joined by four rules (the link -e- of some trees before -by and -berga, no vowel against a vowel, no part joined to itself, three of a letter made two).nameVillages in src/sim/layout.js), from a stream of the centre tile’s own (tileRand with a salt), so a change of words moves nothing but names.tests/names.js: the joining rules, every ending’s kinds, endings only where the ground suits them, the same site the same name, taken names passed over, one old centre a map. tests/golden.json re-recorded for names only.villageName (mother: Norrby, Sörby, Väsby, Ösby, Nyby; founder: the genitive with -torp, -böle, -ryd, -boda, -säter, -mark by the site), and founderName removed. Batches 3 and 4: farm generators (position, age and size, a feature at the house; office and bynames where the roles exist).old in ctx.nes (Norwegian; näs), säter and tuna on any seeded village, Ul (the god Ull) before any ending; in the farms’ words, for batch 3: Berga among open land, Bråten (Norwegian), hult (Småland; -böle is the archipelago’s). gen.js names islands with nes and ey too: not touched here.drawnName in src/sim/layout.js, the old 11 and 8 parts, held as the village’s name while the villages are laid). The first attempt took the draws out, which laid every seed’s villages anew: 15 scripts of verify pinned to their seeds failed (browser, goods, causes, counters, player, record, marriage, projects, occasions, ale, herding, start, offers and others). A naming change should not move the worlds; Kim had agreed to the re-roll, so this is for Kim to overturn. The price is 8 lines of old words kept in the layout.namePrefs still holds the farms’ order only: no culture exists at seeding, and Kim left cultures that differ out of this work.npm test green; npm run verify: every script but tests/hunger.js, which fails the same way on main. tests/golden.json: 65 entries differ, all of them names of villages (in villages, cenv, households, record), e.g. Högtuna → Valby, Alsta → Furuberga, Ulby → Bredlunda, Rönsta → Sandvik. tests/record.js: the hash of the lives of heirs 7 re-recorded (the same 68 events; village names in their text). The old layer makes 261 names, against 88. Populous medium, seed 42: Valby, Bergvik, Bäcksta, Rågåker, Asksta, Hedsta. No number, target or household moves: the simulation reads no name.