Skip to main content

Open source · No API key · On your own devices

Parse addresses. Find places. Run it yourself.

Install the parser and model from npm. Add local geographic data when you need coordinates. Run both in your own application or server.

Empire State Buildinginterpolated address, ±64 m

350 5th Ave, New York, NY 1011840.7478, -73.9850

Keep address processing local

Run the parser and local geocoder in your own application or server.

More lookups. Same price.

A flat commercial license covers your company at any volume. No per-address fees.

Build it into your app

Use the same address engine in Node.js, in a browser, or from the command line.

How a lookup works

  1. Parse

    The parser labels parts of the address text and returns their positions in the normalized text. The published model runs in Node.js or a browser.

    "apt 4b 350 5th ave" → unit · house_number · street
  2. Resolve

    With local geographic data installed, the geocoder uses the parsed text to select a place or coordinate where the data supports one.

    parsed text + local geographic data → place or coordinate
  3. Keep the receipt

    Inspect the returned resolution tier and provenance fields before using a coordinate. A city or region result does not identify a building.

    resolution tier · source · coordinate

What will you build with Mailwoman?

Choose a task with an executed guide and inspect the limits of its result.

Where it resolves

Explore the published coverage table for available city, region, and street data, alongside the addresses used to evaluate parsing.

Country or regionParsing testsLocal parsing dataStreet dataLocation detail
United StatesCountry + real-world tests✓usRooftop
FranceCountry + real-world tests✓frRooftop
GermanyCountry test set✓—City or region
SpainCountry test set✓—City or region
ItalyCountry test set✓—City or region
Great BritainNot yet rated✓—City or region
New ZealandNot yet rated✓—City or region
IndiaNot yet rated✓—City or region
Portugal, Poland, Austria, Czechia, Australia, Belgium, Netherlands, Switzerland, Croatia, Denmark, FinlandCountry test set——City or region
Norway, SwedenLimited tests——City or region
JapanNot yet rated——postcode
Everywhere else, 244 countries in allNot yet rated——City or region

Parsing tests measure how well Mailwoman reads address text. Local parsing data adds country-specific address knowledge. City or region results mark the center of an area; rooftop results identify individual addresses where the data includes them. Japan supports postcode lookup without a published parsing rating. See data and locale requirements →

Quick start

JavaScript & TypeScript

bash
npm install \
mailwoman@11.0.0 \
@mailwoman/neural@11.0.0 \
@mailwoman/neural-weights-en-us@11.0.0
js
import { createRuntimePipeline } from "mailwoman"
import { NeuralAddressClassifier } from "@mailwoman/neural"

const classifier = await NeuralAddressClassifier.loadFromWeights({
locale: "en-US",
})
const parse = createRuntimePipeline({ classifier })

const result = await parse(
"apt 4b 350 5th ave new york ny 10118",
)
console.log("normalized:", result.tree.raw)

function printNode(node, depth = 0) {
console.log(" ".repeat(depth) + node.tag + ": " + JSON.stringify(node.value))
for (const child of node.children) printNode(child, depth + 1)
}

for (const root of result.tree.roots) printNode(root)

Published 11.0.0 result

text
normalized: Apt 4B 350 5TH Ave New York NY 10118
region: "NY"
locality: "New York"
street: "5TH"
unit: "Apt 4B"
house_number: "350"
street_suffix: "Ave"
postcode: "10118"

The first-parse tutorial prints the complete tree, including each label's position in the normalized text. Geocoding needs a separate geographic data layer.

Run the first parse →

Free under the AGPL. Commercial licensing is $250 a month.

No seats, no per-address fees, and no meter. Your thousandth lookup and your hundred-millionth cost the same.

See the pricing