FA-96028 / Postal address normalization / Member archive
House number parser: two-letter suffixes are accepted · case 03
"13AB" parses with suffix "AB".
Case contract
Uppercase and split the line. The first token must start with digits: the digits form the house number (an int, which must not be 0); an optional single hyphen is dropped and at most one letter may follow as the suffix. If the second token is a/b with b in 2,3,4 and 0 < a < b it is the fraction and is consumed. Return [number, suffix, fraction, rest] or None.
Why this case matters
House-number parsing decides the delivery point; fractions and suffixes distinguish separate dwellings on one lot.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| two-letter suffix rejected | [33, "AB", "", "FAKE ST"] | null | 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 ↗