FAILURE MAP
← Case archive

FA-95864 / Postal address normalization / Member archive

Street line standardizer: a direction-named street loses its name to the pre-directional · case 04

"WEST ST" becomes "W ST" although WEST is the street name.

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
street named for a direction keeps its name"128 N""128 NORTH"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 ↗