--- license: mit language: - en task_categories: - text-generation tags: - address - address-comparison - address-matching - record-linkage - us-addresses size_categories: - 1K", "user": "Address A: ...\nA components: {...}\nAddress B: ...\nB components: {...}", "assistant": "{\"overall_estimate\":{\"match_type\":\"MATCH\"}, ...}" } ``` ## Output (7 buckets, in order) `overall_estimate, street, house_number, city, state, zip, unit` Each is `{"match_type": "MATCH" | "PLAUSIBLE" | "NOT_MATCHED"}`. - **MATCH** - equivalent after standardization (two empty values also match). - **PLAUSIBLE** - cannot be ruled out: one side missing the field, a minor spelling variant, a ZIP+4 vs the matching 5-digit ZIP, a house number differing only by a letter/"1/2", or a street matching by name but differing in type/directional. - **NOT_MATCHED** - both present and clearly conflicting. Field folding: `building`/`extra` -> street; `box`/`ruralRoute` -> house_number; `country` ignored. `overall_estimate` is critical-field weighted: NOT_MATCHED if any of street/house_number/city/state/zip is NOT_MATCHED, else MATCH only if every bucket matches, else PLAUSIBLE (a unit-only difference never forces NOT_MATCHED). ## Generation Synthetic, label-first: a complete address A is built, address B is derived (identical / independent / controlled per-field mutations), and the pair is labeled by a deterministic comparator (`compare_schema.compare_records`) that encodes the rules above. Address A is always complete; only B may be missing fields. See the `scripts/` folder in the companion model repo for the generator.