Name (NameGenerator)

The Name generator generates a random name string from a dictionary of first and last names.

The Name generator cannot be linked. It can be self-consistent, but not consistent with another column. You cannot configure differential privacy.

The metadata object is populated from the NameClassifierMetadata object, which includes:

  • The type of name value.

  • Whether to preserve the capitalization from the source value.

{
  "schema": "string",
  "table": "string",
  "column": "string",
  "dataType": "string"  //MongoDB only
  "metadata": {
    "presetId": "string",
    "generatorId": "NameGenerator",
    "nameType": "enum",
    "preserveCapitalization": boolean,
    "isConsistent": boolean,
    "encryptionProcessor": "x-on", //To use configured Structural data encryption
    "customValueProcessor": "string"  //If custom value processor applied
  }
 }

Example replacement

In the following example replacement for the Name generator, the name format is Last, First (Smith, John). Capitalization is preserved. Consistency is disabled.

{
  "name": "fullname",
  "schema": "public",
  "table": "users",
  "links": [
    {
      "schema": "public",
      "table": "users",
      "column": "fullname",
      "metadata": {
        "presetId": "NameGenerator",
        "generatorId": "NameGenerator",
        "nameType": "LastCommaFirstName",
        "preserveCapitalization": true,
        "isConsistent": false
      }
    }
  ]
}

Last updated