Skip to content

Data preparation and quality

Normalize person names

Normalize first and last names with spacing, capitalization, preservation, and compound-name review.

Available recipeIncludes configuration, sample data and tests

Make it your own

Review the setup and limits below, then open an editable copy in Turbyn.

Use this recipe

Your selection stays with you through signup.

What it does

Trim and collapse whitespace and apply locale-aware title casing; compound first names of more than two words need review.

What to customize

Set preserveExisting and compoundPrefixes in recipe-config.json.

Run the included tests with your configuration and mappings. Review success, missing-input and failure results before publishing.

Expected outcome

This included example runs in dry-run mode with synthetic data. Integration tests separately cover provider responses using test doubles. It is not a live customer result.

Sample input

sample-input.json

{
  "inputFields": {
    "field1": "  aNNa  ",
    "field2": "SMITH",
    "field3": ""
  }
}
Sample output

sample-output.json

{
  "outputFields": {
    "output1": "Anna Smith",
    "output2": "changed",
    "output3": "Normalized first and last name."
  }
}

Returned fields

output1
proposed full name
output2
changed, unchanged, needs-review, or invalid
output3
reason

What changes when it runs

Reads first name, last name, and existing combined name from Inputs JSON keys field1/field2/field3; returns proposed value without CRM writes.

Ready to try it with your rules?

Map your inputs, test a sample and publish the version you’ve checked.

Use this recipe