Why Naive Syllable Concatenation Produces Unpronounceable RPG Names (And How Phonotactic Weights Fix Them) A developer built a compact TypeScript procedural name generator that replaces flat syllable arrays with a weighted phonotactic transition table, vowel-harmony constraints, and a deduplication pass to avoid unpronounceable RPG names. The engine scores each root-suffix join by coda-to-onset boundary legality and front/back harmony, zeroing out illegal clusters like stop-to-stop and fricative-to-fricative collisions without needing an LLM at runtime. Most procedural RPG name generators start the same way: three arrays of syllables—prefixes, middles, and suffixes—joined with Math.random . On paper, 40 prefixes × 30 middles × 40 suffixes yields 48,000 combinations. In practice, roughly half of them look like kthrg'vl , bztl'k , or aeouia . Players stumble over them on voice chat, and tabletop GMs end up renaming the NPC "Bob" two minutes into the session. The root cause is structural. Random concatenation treats syllables as independent tokens, ignoring phonotactics https://en.wikipedia.org/wiki/Phonotactics —the rules governing which phoneme sequences a language permits at syllable boundaries. When a prefix ends in a stop cluster -kt and the next syllable starts with a fricative cluster thr- , the boundary creates an illegal five-consonant pileup. Replacing flat arrays with a weighted transition table, a vowel-harmony constraint, and a lightweight deduplication layer fixes the output without needing an LLM at runtime. Uniform sampling breaks down along three predictable axes: r , n , or l transitions cleanly into t , d , or s , whereas a coda ending in k or g colliding with an onset like vr- or zh- forces an unnatural glottal stop. ae- + -ia- + -eo creates diphthongs with no rhythmic anchor, making stress placement ambiguous. Tools that focus on lore-grounded character naming—such as Fantasy Name Generator https://fantasynamegenerator.art/ —solve this by separating phoneme inventories per culture and pairing phonological structure with semantic roots rather than relying on blind string joins. Instead of storing raw syllable strings in flat arrays, represent each morpheme with its phonetic class , coda/onset tags , vowel harmony group front vs. back , and optional semantic gloss . A compact 40-line TypeScript engine can enforce legal transitions deterministically: type Harmony = "front" | "back"; type Boundary = "vowel" | "liquid" | "nasal" | "stop" | "fricative"; interface Morpheme { text: string; gloss: string; harmony: Harmony; onset: Boundary; coda: Boundary; weight: number; } // Allowed coda - onset transitions 0 = forbidden const TRANSITION WEIGHT: Record