Repository navigation
Add FantasyNameGenerator: word-grammar fantasy names - #38
Merged
Merged
Conversation
Places (adjective + structure, optional 'of the' feature), landform-keyed places, faction and war-band names, trade surnames with spelling variants, bynames and keeper epithets, seeded like the other generators. Own word lists; technique ideas credited in CHANGELOG as inspiration only. Public API additions are allowed through PublicApi-additions.txt with a decision entry.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
FantasyNameGenerator(+IFantasyNameGenerator,Landform), seeded like the other generators ((),(Random),(int seed)).GenerateRandomFantasyPlaceName(): "Broken Tower of the Ash Hollow" (feature about half the time);GenerateMultipleFantasyPlaceNames(int)GenerateRandomLandformPlaceName(Landform): hill, river, forest, marsh, coast, mountain, plainGenerateRandomFactionName(): "the Grey Heron Clan";GenerateRandomWarBandName(): "Splitskull"GenerateRandomTradeSurname()with older spellings via staticApplySpellingVariant(Smith/Smyth, Taylor/Tailor, Clark/Clarke);TradeSurnameslistGenerateRandomBynameName(): census first name + byname ("Anna the Bold");GenerateRandomKeeperEpithet(name): "Bram the Honest"Word lists are our own, in code. CHANGELOG credits Tome of Adventure Design, Points of Light, Living Fantasy/World Builder and the JG Guidebook to Shops as inspiration only. Existing generators and every golden recording are unchanged.
Public API test: additions are allowed through
RandomNameGeneratorUnitTests/PublicApi-additions.txt, backed byai-docs/decisions/2026-11-27-fantasy-name-grammars.md(status proposed, for your ruling). No version bump, no workflow changes.Tests:
dotnet test -c Release266 passed, 0 failed (net10.0 and net48);dotnet format --verify-no-changesclean.