Configure Field Standardization
Normalise field values in your Zingg match output to a canonical form using predefined value mappings.
After matching, field values across resolved records often contain inconsistent variations. For example, a job title field may contain VP of Ops, Vice President Operations, and V.P. Operations , all representing the same role but appearing differently across source systems.
The standardized postprocessor normalizes these to a canonical form before writing output. This is the final step between matched data and production-ready golden records.
Mapping file format and rules
Create a JSON file where each element is an array of equivalent values. The first value in each array is the canonical value. All other values in that array map to it in the output.
Example: jobtitles.json
[
["Chief Executive Officer", "CEO",
"Executive Director",
"Managing Director", "President"],
["Vice President of Operations",
"VP of Ops",
"Vice President Operations",
"V.P. Operations", "VP Ops"],
["Software Engineer", "SWE",
"Software Developer",
"Developer", "Programmer"],
["Data Scientist",
"Data Science Engineer",
"DS Engineer", "ML Engineer"],
["Senior Manager", "Sr Manager",
"Sr. Manager", "Senior Mgr"]
]Three rules your mapping file must follow
First value is canonical
All variants in the array map to the first value in the output. ["Chief Executive Officer", "CEO"] → output will always say "Chief Executive Officer". Order your arrays with the canonical form first.
Lookup is case-insensitive
"CEO", "ceo", and "Ceo" all match the same entry. You do not need separate entries for casing variants.
Rows must be disjoint
A string must not appear in two different arrays. If "CEO" appears in two separate canonical groups, Zingg's behaviour is undefined. Each value belongs to exactly one canonical group.
Configure postprocessing
Use STANDARDISE_<basename> to reference a mapping file named <basename>.json. The STANDARDISE prefix tells Zingg which postprocessor type to use, and the basename without .json is the filename of your mapping file. For the example mapping above, the file is jobtitles.json and the reference is STANDARDISE_jobtitles.
Python
Configure input and output pipes, then run match or runIncremental as usual.
JSON
Verify the standardisation in your output
After running match, inspect a field that has the postprocessor configured. Values previously appearing as "CEO" or "Executive Director" in your input should now appear as "Chief Executive Officer" in the output, matching the canonical value in your mapping file.
If the output still shows raw variants:
Confirm the mapping file is in the correct directory (the one from which Zingg is being executed)
Confirm the
postProcessorsJSON value or theStandardisePostprocessorTypePython argument exactly matchesSTANDARDISE_<basename>or("STANDARDISE", "<basename>")Confirm the field is not set as
primaryKey: true- primary keys are never postprocessed
Last updated
Was this helpful?