FAILURE MAP
← Case archive

FA-96183 / Postal address normalization / Member archive

Attention and care-of line extractor: the colon stays in front of the name · case 03

Attention is ": PAT EXAMPLE".

Member previewVariant 3 · 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
attention with colon{"attention": ": ROBIN PLACEHOLDER", "care_of": "", "lines": ["13 FAKE RD", "ZORBLETON ZZ"]}{"attention": "ROBIN PLACEHOLDER", "care_of": "", "lines": ["13 FAKE RD", "ZORBLETON ZZ"]}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 ↗