FAILURE MAP
← Case archive

FA-95844 / Postal address normalization / Member archive

Street line standardizer: table lookups run on the raw-case line · case 04

"Oak Street" keeps its long suffix and mixed case while "OAK STREET" is abbreviated.

Member previewVariant 4 · 3 implementations · 8 checks per implementation

Case contract

Input one street line of synthetic text. Uppercase it, delete periods, turn commas into spaces and split on whitespace. The first token is the house number. From the remaining body, in this order: a trailing directional becomes the post-directional only if at least two body tokens exist; then a trailing suffix from the table is abbreviated only if at least two body tokens remain; then a leading directional becomes the pre-directional only if at least one name token would remain. Return number, pre, name, suffix, post joined by single spaces.

Why this case matters

Street lines are the dominant key in address matching; a single-token street named after a direction or suffix must not be abbreviated away.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
mixed-case suffix is abbreviated"128 Birch Street""128 BIRCH ST"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 ↗