Name Generation
Get a random name!
Name generation is another extra Textify feature that allows you to randomly select a name and a surname.
Usage
You can use the NameGenerator class found in the Textify.Data.NameGen namespace.
Available functions
You can use the NameGenerator class that contains:
PopulateNames()
Populates the names
GenerateNames()
Generates random names based on conditions
GenerateFirstNames()
Generates random first names based on conditions
GenerateLastNames()
Generates random last names based on conditions
FindFirstNames()
Finds the first names
FindLastNames()
Finds the last names
GetAllFirstNames()
Gets all first names
GetAllLastNames()
Gets all last names
The asynchronous version of the functions is provided for web applications and other apps that require async operations.
Available gender types
You can specify the name gender type using the NameGenderType enumeration that has the following values:
Unified
Uses the list of both male and female names
Female
Uses the list of female names
Male
Uses the list of male names
FemaleImplicit
Uses the list of implicit female names
MaleImplicit
Uses the list of implicit male names
Natural
Uses the list of unified natural names
Conditional name generation
If the conditional version is used, you can specify the maximum amount of names, as well as supplying the name suffix and prefix and the surname suffix and prefix.
For example, if you called the generation function like this:
var names = GenerateNames(5, "Th", "", "", "ey")...it'll generate five full names that the first name starts with Th and that the surname ends with ey, for example:
Thomas Dawsey
Thalia Ermey
(...)Last updated