FAILURE MAP
← Case archive

FA-96179 / Postal address normalization / Member archive

Attention and care-of line extractor: a later attention line overwrites the first · case 04

"ATTN SHIPPING" replaces the named recipient and vanishes from the address lines.

Member previewVariant 4 · 3 implementations · 7 checks per implementation

Case contract

Input a list of lines. Each line is uppercased and whitespace-collapsed. The first line whose text starts with ATTENTION or ATTN, followed by end, space or colon, fills "attention"; likewise CARE OF or C/O fills "care_of"; the value is the remainder with leading spaces and colons removed. Every other line, including later duplicates, is kept in "lines".

Why this case matters

Recipient-routing lines must be separated from the delivery address before street and last-line parsing, or the attention name is parsed as a street.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
second attention line kept as address{"attention": "SHIPPING", "care_of": "", "lines": ["14 FAKE RD"]}{"attention": "SAM DEMO", "care_of": "", "lines": ["ATTN SHIPPING", "14 FAKE RD"]}Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗