Definition
The last name transformer generates a valid last name from a list of predefined last name values. You can see the entire list of last name value here..
By default, the last name transformer generates a last name of random length. To preserve the length of the input last name, you can set the preserveLength
config.
Configurations
Depending on your validations, you may want to configure the output last name. The last name transformer has the following configurations:
Name | Description | Default | Example Input | Example Output |
---|---|---|---|---|
PreserveLength | Preserve Length will ensure that the output last name is the same length as the input last name. The preserveLength config only preserves names up to 12 characters long. | false | Hills | Kunze |
Examples
There are several ways you can mix-and-match configurations to get different last name formats. Here are some possible combinations:
PreserveLength | Example Input | Example Output |
---|---|---|
false | Lei | Dach |
true | Littel | Sporer |
false | Johnsonston | Rodriguezon |