Why address rules depend on the destination
An address can describe a building, a unitunitA subdivision of a building — apartment, suite, floor — that refines a street address. Mailwoman's unit component; a designator plus identifier forms a subpremise. inside it, a place where mail is collected, or a location someone wants to find. Those purposes overlap, but each needs different evidence. A parser can labelcomponent tagOne of the 25 labels in Mailwoman's address schema — street, locality, region, postcode, house_number, unit, po_box, country, venue, intersection, and others. Each parsed span carries exactly one component tag. the text in each form. A rule that accepts one form for a streetstreetThe named linear feature along which house numbers are ordered. Decomposes into a name plus street affixes; one of the Tier 2 fine labels.-level delivery workflow may reject a useful mailing or place-search form.
Units and address roles at one street location
The United States Postal Service secondary-unit guidance requires an apartment or suite designatordesignatorThe closed-vocabulary leading word of a secondary-address phrase — 'Apt', 'Suite', 'Floor', 'PO Box', 'Level' — paired with an identifier to form a complete subpremise. on mail for an address location that has one. A street numberhouse numberThe numeric or alphanumeric identifier of a building on a street. Mailwoman's house_number component; its position relative to the street name flips between locales. and building point can therefore be shared by unitsunitA subdivision of a building — apartment, suite, floor — that refines a street address. Mailwoman's unit component; a designator plus identifier forms a subpremise. whose delivery details differ. A record without APT or STE may still identify the building while omitting the unitunitA subdivision of a building — apartment, suite, floor — that refines a street address. Mailwoman's unit component; a designator plus identifier forms a subpremise. needed on the mailpiece. Two records at the same coordinate may therefore refer to different delivery destinations.
Mailwoman's corpus address-role vocabulary records whether a source row describes a premise, mailing address, registered office, facility, or another role. A row that gives a company's registered office and a row that gives its premises can each be accurately copied from their sources while answering different questions. The role tells a reader what the source asserts. Whether both rows identify the same entrance or mailbox takes evidence beyond their text.
PO boxes and other mailing forms
USPS Publication 28 standardizes a Post Office BoxPO boxA numbered mailbox at a post office used as a delivery address instead of a physical street location. Mailwoman tags it as the po_box component; structurally the same family as a subpremise. line as PO BOX followed by its box identifier. USPS also documents an option at some locations to use the Post Office street address with a box designation. These are mailing forms. A streetstreetThe named linear feature along which house numbers are ordered. Decomposes into a name plus street affixes; one of the Tier 2 fine labels.-looking line in that option doesn't turn the box into the recipient's building location.
In the synthetic input PO Box 1234, Springfield, IL 62701, published mailwoman@11.0.0 returned kind po_box and a po_box node containing PO Box 1234. The PO box guide shows the full executed result. It routes the record to a mailing review under an explicit application policy and keeps box existence, delivery status, and a building coordinate unknown.
Postcode checks by country and purpose
Canada Post defines a six-character alphanumeric postcodepostcodeThe country-specific postcode (US ZIP, French code postal, etc.). Mailwoman handles postcode parsing entirely by rule classifier — a regex problem, not an ML one. in the ANA NAN form. Its first three characters identify a forward sortation area. The last three identify a local delivery unitunitA subdivision of a building — apartment, suite, floor — that refines a street address. Mailwoman's unit component; a designator plus identifier forms a subpremise.. The same guidance states that a local delivery unitunitA subdivision of a building — apartment, suite, floor — that refines a street address. Mailwoman's unit component; a designator plus identifier forms a subpremise. can describe a citylocalityThe city / town / settlement component of an address: a populated place sitting between region and neighborhood in the hierarchy. block, one building, a large-volume receiver, or a rural community depending on context. A postcodepostcodeThe country-specific postcode (US ZIP, French code postal, etc.). Mailwoman handles postcode parsing entirely by rule classifier — a regex problem, not an ML one. supplies routing evidence. Its shape doesn't identify a building point.
The published Mailwoman parseaddress parsingThe process of decomposing a free-text postal address string into structured components — house number, street name, locality, region, postcode, and country — so a geocoder can resolve them to coordinates. of bare 10118 matched the us_zip, fr_postcode, and de_postcode shapes. That observed list describes three format matches for one five-digit string. It doesn't identify three destinations or select a countrycountryThe top-level address component (an ISO country). Closed-vocabulary, so it is best handled by a deterministic matcher feeding a proposal rather than a retrained model head.. The bare-postcode guide keeps an application-supplied countrycountryThe top-level address component (an ISO country). Closed-vocabulary, so it is best handled by a deterministic matcher feeding a proposal rather than a retrained model head. separate from the parseaddress parsingThe process of decomposing a free-text postal address string into structured components — house number, street name, locality, region, postcode, and country — so a geocoder can resolve them to coordinates. and leaves the geographic result unknown until suitable data is available.
Four kinds of evidence
Text parsingaddress parsingThe process of decomposing a free-text postal address string into structured components — house number, street name, locality, region, postcode, and country — so a geocoder can resolve them to coordinates. asks which characters look like a house numberhouse numberThe numeric or alphanumeric identifier of a building on a street. Mailwoman's house_number component; its position relative to the street name flips between locales., unitunitA subdivision of a building — apartment, suite, floor — that refines a street address. Mailwoman's unit component; a designator plus identifier forms a subpremise., PO boxPO boxA numbered mailbox at a post office used as a delivery address instead of a physical street location. Mailwoman tags it as the po_box component; structurally the same family as a subpremise., localitylocalityThe city / town / settlement component of an address: a populated place sitting between region and neighborhood in the hierarchy., or postcodepostcodeThe country-specific postcode (US ZIP, French code postal, etc.). Mailwoman handles postcode parsing entirely by rule classifier — a regex problem, not an ML one.. An application shape check asks whether the returned components satisfy a stated policy for a particular countrycountryThe top-level address component (an ISO country). Closed-vocabulary, so it is best handled by a deterministic matcher feeding a proposal rather than a retrained model head. and address purpose. The record-check guide runs one US streetstreetThe named linear feature along which house numbers are ordered. Decomposes into a name plus street affixes; one of the Tier 2 fine labels.-address policy and preserves unknown when required evidence is missing.
Place identity asks which geographic record a parsed name refers to. It needs a resolverresolverThe component that converts parsed address components (locality, region, postcode) into coordinates by looking them up in the gazetteer. The resolver ranks candidates by name match, population, and proximity, and returns the best-matching place with its centroid or polygon. and suitable local data. A matching postcodepostcodeThe country-specific postcode (US ZIP, French code postal, etc.). Mailwoman handles postcode parsing entirely by rule classifier — a regex problem, not an ML one. shape describes the text, and the identity comes from the resolverresolverThe component that converts parsed address components (locality, region, postcode) into coordinates by looking them up in the gazetteer. The resolver ranks candidates by name match, population, and proximity, and returns the best-matching place with its centroid or polygon.'s match. Delivery evidence asks whether the intended postal operator accepts the address for that recipient or box. That answer comes from the postal operator, separately from a parseaddress parsingThe process of decomposing a free-text postal address string into structured components — house number, street name, locality, region, postcode, and country — so a geocoder can resolve them to coordinates., a component-presence check, or a coordinate. How geocoding selects a coordinate explains what a place or point match can establish. Data and locales identifies the published data layerslayerOne transformer block — attention plus a feed-forward network, with normalization and residual connections — applied to every position. Stacking layers lets the model build up richer representations; Mailwoman's encoder has 6. and their installation requirements.