Skip to content

Random-Tables/utility-names-fantasy

Repository files navigation

Names Utility Library

Utility library for randomised tables, focusing on medieval/tolkenesque fantasy names.

Categories status list

Aim for about ~150 - 200 first names, and around ~ 200 - 300 surnames or ~20(prefix)/20(postfix) for surname generation to consider a group complete

Category - Data size

  • Dwarf - fM 90 fF 75 l 26 / 20
  • Elven - fM 60 fF 50 l 26 / 20

Atributions

Utility

converts an array to uppercase & sorts

const a = [];

console.log(a.map(x => x.charAt(0).toUpperCase() + x.slice(1)).sort())