Name Generator 4.5.2
Culture-aware name generation for C++23
Loading...
Searching...
No Matches
dasmig::naming_convention Struct Reference

How a culture composes a full name; see ng::convention(). More...

#include <namegen.hpp>

Public Attributes

name_order order = name_order::given_family
 Given or family name first.
 
patronymic_style patronymic = patronymic_style::none
 How the patronymic is formed.
 
bool family_name = true
 False when the patronymic replaces the family name.
 
int surnames = 1
 1, or 2 for cultures with a double surname.
 
double second_surname = 1.0
 Chance of the second surname when surnames is 2.
 
surname_order inheritance = surname_order::paternal_first
 Which parents' surnames a child takes.
 

Detailed Description

How a culture composes a full name; see ng::convention().

A culture without a row in conventions.tsv has the default: one surname, given name first.

Definition at line 207 of file namegen.hpp.

Member Data Documentation

◆ family_name

bool dasmig::naming_convention::family_name = true

False when the patronymic replaces the family name.

Definition at line 211 of file namegen.hpp.

◆ inheritance

surname_order dasmig::naming_convention::inheritance = surname_order::paternal_first

Which parents' surnames a child takes.

Definition at line 214 of file namegen.hpp.

◆ order

name_order dasmig::naming_convention::order = name_order::given_family

Given or family name first.

Definition at line 209 of file namegen.hpp.

◆ patronymic

patronymic_style dasmig::naming_convention::patronymic = patronymic_style::none

How the patronymic is formed.

Definition at line 210 of file namegen.hpp.

◆ second_surname

double dasmig::naming_convention::second_surname = 1.0

Chance of the second surname when surnames is 2.

Definition at line 213 of file namegen.hpp.

◆ surnames

int dasmig::naming_convention::surnames = 1

1, or 2 for cultures with a double surname.

Definition at line 212 of file namegen.hpp.


The documentation for this struct was generated from the following file: