-
-
Notifications
You must be signed in to change notification settings - Fork 880
/
name.ts
43 lines (34 loc) · 840 Bytes
/
name.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import type { LocaleEntry } from './definitions';
/**
* The possible definitions related to people's names.
*/
export type NameDefinitions = LocaleEntry<{
gender: string[];
sex: string[];
prefix?: string[];
female_prefix?: string[];
male_prefix?: string[];
first_name?: string[];
female_first_name?: string[];
male_first_name?: string[];
middle_name?: string[];
female_middle_name?: string[];
male_middle_name?: string[];
last_name?: string[];
female_last_name?: string[];
male_last_name?: string[];
suffix: string[];
/**
* A list of patterns used to generate names.
*/
name: string[];
title: NameTitleDefinitions;
}>;
/**
* The possible definitions related to people's titles.
*/
export interface NameTitleDefinitions {
descriptor?: string[];
job: string[];
level?: string[];
}