@mailwoman/corpus 9.0.0 → 9.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/data/PROVENANCE.md +227 -0
- package/data/reviewed-ve-postcode-tuples.json +74 -0
- package/data/sub-venue-lexicon.json +18269 -0
- package/out/src/adapters/ban/adapter.d.ts +1 -1
- package/out/src/adapters/ban/adapter.d.ts.map +1 -1
- package/out/src/adapters/ban/adapter.js +5 -4
- package/out/src/adapters/ban/adapter.js.map +1 -1
- package/out/src/adapters/fcc-bdc/adapter.d.ts +1 -1
- package/out/src/adapters/fcc-bdc/adapter.d.ts.map +1 -1
- package/out/src/adapters/fcc-bdc/adapter.js +3 -3
- package/out/src/adapters/fcc-bdc/adapter.js.map +1 -1
- package/out/src/adapters/geonames/adapter.d.ts +1 -1
- package/out/src/adapters/geonames/adapter.d.ts.map +1 -1
- package/out/src/adapters/geonames/adapter.js +2 -2
- package/out/src/adapters/geonames/adapter.js.map +1 -1
- package/out/src/adapters/geonames-postal/adapter.d.ts +1 -1
- package/out/src/adapters/geonames-postal/adapter.d.ts.map +1 -1
- package/out/src/adapters/geonames-postal/adapter.js +3 -3
- package/out/src/adapters/geonames-postal/adapter.js.map +1 -1
- package/out/src/adapters/gnaf/adapter.d.ts +1 -1
- package/out/src/adapters/gnaf/adapter.d.ts.map +1 -1
- package/out/src/adapters/gnaf/adapter.js +2 -2
- package/out/src/adapters/gnaf/adapter.js.map +1 -1
- package/out/src/adapters/gnaf/assemble.js +1 -1
- package/out/src/adapters/gnaf/assemble.js.map +1 -1
- package/out/src/adapters/index.d.ts +1 -1
- package/out/src/adapters/index.d.ts.map +1 -1
- package/out/src/adapters/index.js +1 -1
- package/out/src/adapters/index.js.map +1 -1
- package/out/src/adapters/openaddresses/adapter.d.ts +1 -1
- package/out/src/adapters/openaddresses/adapter.d.ts.map +1 -1
- package/out/src/adapters/openaddresses/adapter.js +3 -3
- package/out/src/adapters/openaddresses/adapter.js.map +1 -1
- package/out/src/adapters/overture/adapter.d.ts +1 -1
- package/out/src/adapters/overture/adapter.d.ts.map +1 -1
- package/out/src/adapters/overture/adapter.js +2 -2
- package/out/src/adapters/overture/adapter.js.map +1 -1
- package/out/src/adapters/state-hi-schools/adapter.d.ts +1 -1
- package/out/src/adapters/state-hi-schools/adapter.d.ts.map +1 -1
- package/out/src/adapters/state-hi-schools/adapter.js +7 -6
- package/out/src/adapters/state-hi-schools/adapter.js.map +1 -1
- package/out/src/adapters/state-ia-contractors/adapter.d.ts +1 -1
- package/out/src/adapters/state-ia-contractors/adapter.d.ts.map +1 -1
- package/out/src/adapters/state-ia-contractors/adapter.js +12 -7
- package/out/src/adapters/state-ia-contractors/adapter.js.map +1 -1
- package/out/src/adapters/state-ny-notaries/adapter.d.ts +1 -1
- package/out/src/adapters/state-ny-notaries/adapter.d.ts.map +1 -1
- package/out/src/adapters/state-ny-notaries/adapter.js +12 -18
- package/out/src/adapters/state-ny-notaries/adapter.js.map +1 -1
- package/out/src/adapters/state-tx-notaries/adapter.d.ts +1 -1
- package/out/src/adapters/state-tx-notaries/adapter.d.ts.map +1 -1
- package/out/src/adapters/state-tx-notaries/adapter.js +12 -7
- package/out/src/adapters/state-tx-notaries/adapter.js.map +1 -1
- package/out/src/adapters/synth-po-box/adapter.d.ts +3 -3
- package/out/src/adapters/synth-po-box/adapter.d.ts.map +1 -1
- package/out/src/adapters/synth-po-box/adapter.js +3 -3
- package/out/src/adapters/synth-po-box/adapter.js.map +1 -1
- package/out/src/adapters/tiger/adapter.d.ts +1 -1
- package/out/src/adapters/tiger/adapter.d.ts.map +1 -1
- package/out/src/adapters/tiger/adapter.js +2 -2
- package/out/src/adapters/tiger/adapter.js.map +1 -1
- package/out/src/adapters/usgov-hrsa-fqhc/adapter.d.ts +1 -1
- package/out/src/adapters/usgov-hrsa-fqhc/adapter.d.ts.map +1 -1
- package/out/src/adapters/usgov-hrsa-fqhc/adapter.js +7 -6
- package/out/src/adapters/usgov-hrsa-fqhc/adapter.js.map +1 -1
- package/out/src/adapters/usgov-imls-pls/adapter.d.ts +1 -1
- package/out/src/adapters/usgov-imls-pls/adapter.d.ts.map +1 -1
- package/out/src/adapters/usgov-imls-pls/adapter.js +11 -7
- package/out/src/adapters/usgov-imls-pls/adapter.js.map +1 -1
- package/out/src/adapters/usgov-irs-bmf/adapter.d.ts +1 -1
- package/out/src/adapters/usgov-irs-bmf/adapter.d.ts.map +1 -1
- package/out/src/adapters/usgov-irs-bmf/adapter.js +6 -5
- package/out/src/adapters/usgov-irs-bmf/adapter.js.map +1 -1
- package/out/src/adapters/usgov-nad/adapter.d.ts +1 -1
- package/out/src/adapters/usgov-nad/adapter.d.ts.map +1 -1
- package/out/src/adapters/usgov-nad/adapter.js +8 -8
- package/out/src/adapters/usgov-nad/adapter.js.map +1 -1
- package/out/src/adapters/usgov-nppes/adapter.d.ts +1 -1
- package/out/src/adapters/usgov-nppes/adapter.d.ts.map +1 -1
- package/out/src/adapters/usgov-nppes/adapter.js +10 -10
- package/out/src/adapters/usgov-nppes/adapter.js.map +1 -1
- package/out/src/adapters/usgov-samhsa-treatment-locator/adapter.d.ts +1 -1
- package/out/src/adapters/usgov-samhsa-treatment-locator/adapter.d.ts.map +1 -1
- package/out/src/adapters/usgov-samhsa-treatment-locator/adapter.js +7 -6
- package/out/src/adapters/usgov-samhsa-treatment-locator/adapter.js.map +1 -1
- package/out/src/{adapter.d.ts → adapters/utils/index.d.ts} +8 -2
- package/out/src/adapters/utils/index.d.ts.map +1 -0
- package/out/src/{adapter.js → adapters/utils/index.js} +11 -3
- package/out/src/adapters/utils/index.js.map +1 -0
- package/out/src/adapters/wof-admin-jp/adapter.d.ts +1 -1
- package/out/src/adapters/wof-admin-jp/adapter.d.ts.map +1 -1
- package/out/src/adapters/wof-admin-jp/adapter.js +5 -5
- package/out/src/adapters/wof-admin-jp/adapter.js.map +1 -1
- package/out/src/adapters/wof-admin-json/adapter.d.ts +4 -15
- package/out/src/adapters/wof-admin-json/adapter.d.ts.map +1 -1
- package/out/src/adapters/wof-admin-json/adapter.js +11 -35
- package/out/src/adapters/wof-admin-json/adapter.js.map +1 -1
- package/out/src/adapters/wof-json-rows.d.ts +32 -0
- package/out/src/adapters/wof-json-rows.d.ts.map +1 -0
- package/out/src/adapters/wof-json-rows.js +45 -0
- package/out/src/adapters/wof-json-rows.js.map +1 -0
- package/out/src/adapters/wof-postalcode-json/adapter.d.ts +4 -9
- package/out/src/adapters/wof-postalcode-json/adapter.d.ts.map +1 -1
- package/out/src/adapters/wof-postalcode-json/adapter.js +12 -37
- package/out/src/adapters/wof-postalcode-json/adapter.js.map +1 -1
- package/out/src/build.d.ts +4 -4
- package/out/src/build.d.ts.map +1 -1
- package/out/src/build.js +7 -7
- package/out/src/build.js.map +1 -1
- package/out/src/index.d.ts +3 -17
- package/out/src/index.d.ts.map +1 -1
- package/out/src/index.js +3 -17
- package/out/src/index.js.map +1 -1
- package/out/src/name-prone-us-suffixes.d.ts +12 -0
- package/out/src/name-prone-us-suffixes.d.ts.map +1 -0
- package/out/src/name-prone-us-suffixes.js +12 -0
- package/out/src/name-prone-us-suffixes.js.map +1 -0
- package/out/src/parquet-wrapper/reader.d.ts.map +1 -1
- package/out/src/parquet-wrapper/reader.js +5 -0
- package/out/src/parquet-wrapper/reader.js.map +1 -1
- package/out/src/runner.d.ts +2 -2
- package/out/src/runner.d.ts.map +1 -1
- package/out/src/runner.js +1 -1
- package/out/src/runner.js.map +1 -1
- package/out/src/shard-recipes/anchor-absorption.d.ts.map +1 -1
- package/out/src/shard-recipes/anchor-absorption.js +4 -5
- package/out/src/shard-recipes/anchor-absorption.js.map +1 -1
- package/out/src/shard-recipes/bare-country.d.ts +25 -0
- package/out/src/shard-recipes/bare-country.d.ts.map +1 -0
- package/out/src/shard-recipes/bare-country.js +87 -0
- package/out/src/shard-recipes/bare-country.js.map +1 -0
- package/out/src/shard-recipes/boundary-stress.d.ts.map +1 -1
- package/out/src/shard-recipes/boundary-stress.js +2 -2
- package/out/src/shard-recipes/boundary-stress.js.map +1 -1
- package/out/src/shard-recipes/country-balanced.d.ts.map +1 -1
- package/out/src/shard-recipes/country-balanced.js +14 -21
- package/out/src/shard-recipes/country-balanced.js.map +1 -1
- package/out/src/shard-recipes/cz-pcfirst-preposition.d.ts.map +1 -1
- package/out/src/shard-recipes/cz-pcfirst-preposition.js +28 -10
- package/out/src/shard-recipes/cz-pcfirst-preposition.js.map +1 -1
- package/out/src/shard-recipes/fr-admin-split.d.ts.map +1 -1
- package/out/src/shard-recipes/fr-admin-split.js +4 -3
- package/out/src/shard-recipes/fr-admin-split.js.map +1 -1
- package/out/src/shard-recipes/fr-bare-street.d.ts.map +1 -1
- package/out/src/shard-recipes/fr-bare-street.js +72 -11
- package/out/src/shard-recipes/fr-bare-street.js.map +1 -1
- package/out/src/shard-recipes/fr-lieudit.d.ts.map +1 -1
- package/out/src/shard-recipes/fr-lieudit.js +4 -3
- package/out/src/shard-recipes/fr-lieudit.js.map +1 -1
- package/out/src/shard-recipes/fr-order.d.ts.map +1 -1
- package/out/src/shard-recipes/fr-order.js +11 -20
- package/out/src/shard-recipes/fr-order.js.map +1 -1
- package/out/src/shard-recipes/german.d.ts.map +1 -1
- package/out/src/shard-recipes/german.js +8 -14
- package/out/src/shard-recipes/german.js.map +1 -1
- package/out/src/shard-recipes/house-venue.d.ts.map +1 -1
- package/out/src/shard-recipes/house-venue.js +1 -1
- package/out/src/shard-recipes/house-venue.js.map +1 -1
- package/out/src/shard-recipes/index.d.ts.map +1 -1
- package/out/src/shard-recipes/index.js +8 -1
- package/out/src/shard-recipes/index.js.map +1 -1
- package/out/src/shard-recipes/intersection.d.ts.map +1 -1
- package/out/src/shard-recipes/intersection.js +7 -13
- package/out/src/shard-recipes/intersection.js.map +1 -1
- package/out/src/shard-recipes/locale.d.ts +5 -5
- package/out/src/shard-recipes/locale.d.ts.map +1 -1
- package/out/src/shard-recipes/locale.js +13 -20
- package/out/src/shard-recipes/locale.js.map +1 -1
- package/out/src/shard-recipes/no-street.d.ts.map +1 -1
- package/out/src/shard-recipes/no-street.js +1 -1
- package/out/src/shard-recipes/no-street.js.map +1 -1
- package/out/src/shard-recipes/po-box-cedex.d.ts.map +1 -1
- package/out/src/shard-recipes/po-box-cedex.js +60 -43
- package/out/src/shard-recipes/po-box-cedex.js.map +1 -1
- package/out/src/shard-recipes/po-box.d.ts.map +1 -1
- package/out/src/shard-recipes/po-box.js +1 -1
- package/out/src/shard-recipes/po-box.js.map +1 -1
- package/out/src/shard-recipes/reviewed-postcode-tail.d.ts +47 -0
- package/out/src/shard-recipes/reviewed-postcode-tail.d.ts.map +1 -0
- package/out/src/shard-recipes/reviewed-postcode-tail.js +125 -0
- package/out/src/shard-recipes/reviewed-postcode-tail.js.map +1 -0
- package/out/src/shard-recipes/scaffold.d.ts +51 -23
- package/out/src/shard-recipes/scaffold.d.ts.map +1 -1
- package/out/src/shard-recipes/scaffold.js +59 -23
- package/out/src/shard-recipes/scaffold.js.map +1 -1
- package/out/src/shard-recipes/street-affix.d.ts +54 -0
- package/out/src/shard-recipes/street-affix.d.ts.map +1 -1
- package/out/src/shard-recipes/street-affix.js +203 -35
- package/out/src/shard-recipes/street-affix.js.map +1 -1
- package/out/src/shard-recipes/street-bare.d.ts.map +1 -1
- package/out/src/shard-recipes/street-bare.js +3 -3
- package/out/src/shard-recipes/street-bare.js.map +1 -1
- package/out/src/shard-recipes/street.d.ts.map +1 -1
- package/out/src/shard-recipes/street.js +2 -2
- package/out/src/shard-recipes/street.js.map +1 -1
- package/out/src/shard-recipes/sub-venue-sources.d.ts +3 -6
- package/out/src/shard-recipes/sub-venue-sources.d.ts.map +1 -1
- package/out/src/shard-recipes/sub-venue-sources.js +4 -9
- package/out/src/shard-recipes/sub-venue-sources.js.map +1 -1
- package/out/src/shard-recipes/sub-venue.d.ts +2 -2
- package/out/src/shard-recipes/sub-venue.d.ts.map +1 -1
- package/out/src/shard-recipes/sub-venue.js +7 -6
- package/out/src/shard-recipes/sub-venue.js.map +1 -1
- package/out/src/shard-recipes/trailing-region.d.ts +74 -0
- package/out/src/shard-recipes/trailing-region.d.ts.map +1 -0
- package/out/src/shard-recipes/trailing-region.js +157 -0
- package/out/src/shard-recipes/trailing-region.js.map +1 -0
- package/out/src/shard-recipes/unit.d.ts.map +1 -1
- package/out/src/shard-recipes/unit.js +6 -12
- package/out/src/shard-recipes/unit.js.map +1 -1
- package/out/src/{synthesize-anchor-absorption.d.ts → synthesizers/anchor-absorption.d.ts} +1 -1
- package/out/src/synthesizers/anchor-absorption.d.ts.map +1 -0
- package/out/src/{synthesize-anchor-absorption.js → synthesizers/anchor-absorption.js} +1 -1
- package/out/src/synthesizers/anchor-absorption.js.map +1 -0
- package/out/src/{synthesize-boundary-stress.d.ts → synthesizers/boundary-stress.d.ts} +3 -3
- package/out/src/synthesizers/boundary-stress.d.ts.map +1 -0
- package/out/src/{synthesize-boundary-stress.js → synthesizers/boundary-stress.js} +2 -2
- package/out/src/synthesizers/boundary-stress.js.map +1 -0
- package/out/src/{synthesize-german.d.ts → synthesizers/german.d.ts} +2 -2
- package/out/src/synthesizers/german.d.ts.map +1 -0
- package/out/src/{synthesize-german.js → synthesizers/german.js} +2 -2
- package/out/src/synthesizers/german.js.map +1 -0
- package/out/src/{synthesize-house-venue.d.ts → synthesizers/house-venue.d.ts} +4 -4
- package/out/src/synthesizers/house-venue.d.ts.map +1 -0
- package/out/src/{synthesize-house-venue.js → synthesizers/house-venue.js} +20 -6
- package/out/src/synthesizers/house-venue.js.map +1 -0
- package/out/src/{synthesize-intersection.d.ts → synthesizers/intersection.d.ts} +2 -2
- package/out/src/synthesizers/intersection.d.ts.map +1 -0
- package/out/src/{synthesize-intersection.js → synthesizers/intersection.js} +1 -1
- package/out/src/synthesizers/intersection.js.map +1 -0
- package/out/src/{synthesize-no-street.d.ts → synthesizers/no-street.d.ts} +3 -3
- package/out/src/synthesizers/no-street.d.ts.map +1 -0
- package/out/src/{synthesize-no-street.js → synthesizers/no-street.js} +2 -2
- package/out/src/synthesizers/no-street.js.map +1 -0
- package/out/src/{synthesize-po-box.d.ts → synthesizers/po-box.d.ts} +2 -2
- package/out/src/synthesizers/po-box.d.ts.map +1 -0
- package/out/src/{synthesize-po-box.js → synthesizers/po-box.js} +1 -1
- package/out/src/synthesizers/po-box.js.map +1 -0
- package/out/src/{synthesize-street.d.ts → synthesizers/street.d.ts} +2 -2
- package/out/src/synthesizers/street.d.ts.map +1 -0
- package/out/src/{synthesize-street.js → synthesizers/street.js} +4 -3
- package/out/src/synthesizers/street.js.map +1 -0
- package/out/src/{synthesize.d.ts → synthesizers/utils.d.ts} +3 -3
- package/out/src/synthesizers/utils.d.ts.map +1 -0
- package/out/src/{synthesize.js → synthesizers/utils.js} +5 -4
- package/out/src/synthesizers/utils.js.map +1 -0
- package/out/src/tools/align-shard.d.ts.map +1 -1
- package/out/src/tools/align-shard.js +2 -2
- package/out/src/tools/align-shard.js.map +1 -1
- package/out/src/tools/fetch/ban.d.ts.map +1 -1
- package/out/src/tools/fetch/ban.js +2 -18
- package/out/src/tools/fetch/ban.js.map +1 -1
- package/out/src/tools/fetch/download.d.ts +12 -3
- package/out/src/tools/fetch/download.d.ts.map +1 -1
- package/out/src/tools/fetch/download.js +20 -4
- package/out/src/tools/fetch/download.js.map +1 -1
- package/out/src/tools/fetch/geonames-dump.d.ts +87 -0
- package/out/src/tools/fetch/geonames-dump.d.ts.map +1 -0
- package/out/src/tools/fetch/geonames-dump.js +178 -0
- package/out/src/tools/fetch/geonames-dump.js.map +1 -0
- package/out/src/tools/fetch/geonames-postal.d.ts +76 -0
- package/out/src/tools/fetch/geonames-postal.d.ts.map +1 -0
- package/out/src/tools/fetch/geonames-postal.js +125 -0
- package/out/src/tools/fetch/geonames-postal.js.map +1 -0
- package/out/src/tools/fetch/imls-pls.d.ts.map +1 -1
- package/out/src/tools/fetch/imls-pls.js +5 -17
- package/out/src/tools/fetch/imls-pls.js.map +1 -1
- package/out/src/tools/fetch/index.d.ts +11 -0
- package/out/src/tools/fetch/index.d.ts.map +1 -1
- package/out/src/tools/fetch/index.js +11 -0
- package/out/src/tools/fetch/index.js.map +1 -1
- package/out/src/tools/fetch/nad.d.ts.map +1 -1
- package/out/src/tools/fetch/nad.js +20 -11
- package/out/src/tools/fetch/nad.js.map +1 -1
- package/out/src/tools/fetch/nppes.d.ts.map +1 -1
- package/out/src/tools/fetch/nppes.js +17 -22
- package/out/src/tools/fetch/nppes.js.map +1 -1
- package/out/src/tools/fetch/openaddresses.d.ts.map +1 -1
- package/out/src/tools/fetch/openaddresses.js +18 -17
- package/out/src/tools/fetch/openaddresses.js.map +1 -1
- package/out/src/tools/fetch/ourairports.d.ts.map +1 -1
- package/out/src/tools/fetch/ourairports.js +7 -2
- package/out/src/tools/fetch/ourairports.js.map +1 -1
- package/out/src/tools/fetch/ppd.d.ts +0 -4
- package/out/src/tools/fetch/ppd.d.ts.map +1 -1
- package/out/src/tools/fetch/ppd.js +1 -1
- package/out/src/tools/fetch/ppd.js.map +1 -1
- package/out/src/tools/fetch/state-hi-schools.d.ts.map +1 -1
- package/out/src/tools/fetch/state-hi-schools.js +3 -19
- package/out/src/tools/fetch/state-hi-schools.js.map +1 -1
- package/out/src/tools/fetch/state-sources.d.ts +4 -0
- package/out/src/tools/fetch/state-sources.d.ts.map +1 -1
- package/out/src/tools/fetch/state-sources.js +1 -5
- package/out/src/tools/fetch/state-sources.js.map +1 -1
- package/out/src/tools/fetch/tiger-full.d.ts.map +1 -1
- package/out/src/tools/fetch/tiger-full.js +15 -21
- package/out/src/tools/fetch/tiger-full.js.map +1 -1
- package/out/src/tools/golden-expand.d.ts.map +1 -1
- package/out/src/tools/golden-expand.js +34 -25
- package/out/src/tools/golden-expand.js.map +1 -1
- package/out/src/tools/golden-relabel-street.d.ts.map +1 -1
- package/out/src/tools/golden-relabel-street.js +4 -77
- package/out/src/tools/golden-relabel-street.js.map +1 -1
- package/out/src/tools/index.d.ts +2 -2
- package/out/src/tools/index.d.ts.map +1 -1
- package/out/src/tools/index.js +2 -2
- package/out/src/tools/index.js.map +1 -1
- package/out/src/tools/ingest-csv.d.ts.map +1 -1
- package/out/src/tools/ingest-csv.js +0 -11
- package/out/src/tools/ingest-csv.js.map +1 -1
- package/out/src/tools/overlay-manifest.d.ts +4 -0
- package/out/src/tools/overlay-manifest.d.ts.map +1 -1
- package/out/src/tools/overlay-manifest.js +16 -6
- package/out/src/tools/overlay-manifest.js.map +1 -1
- package/out/src/tools/postcode-triples.d.ts +175 -0
- package/out/src/tools/postcode-triples.d.ts.map +1 -0
- package/out/src/tools/postcode-triples.js +304 -0
- package/out/src/tools/postcode-triples.js.map +1 -0
- package/out/src/tools/shard-kryptonite.d.ts.map +1 -1
- package/out/src/tools/shard-kryptonite.js +1 -3
- package/out/src/tools/shard-kryptonite.js.map +1 -1
- package/out/src/tools/shard-translit.d.ts.map +1 -1
- package/out/src/tools/shard-translit.js +4 -27
- package/out/src/tools/shard-translit.js.map +1 -1
- package/out/src/tools/sub-venue/harvest.d.ts +100 -0
- package/out/src/tools/sub-venue/harvest.d.ts.map +1 -0
- package/out/src/tools/sub-venue/harvest.js +168 -0
- package/out/src/tools/sub-venue/harvest.js.map +1 -0
- package/out/src/tools/sub-venue/head-nouns.d.ts +50 -0
- package/out/src/tools/sub-venue/head-nouns.d.ts.map +1 -0
- package/out/src/tools/sub-venue/head-nouns.js +210 -0
- package/out/src/tools/sub-venue/head-nouns.js.map +1 -0
- package/out/src/tools/sub-venue/surfaces.d.ts +45 -0
- package/out/src/tools/sub-venue/surfaces.d.ts.map +1 -0
- package/out/src/tools/sub-venue/surfaces.js +77 -0
- package/out/src/tools/sub-venue/surfaces.js.map +1 -0
- package/out/src/tools/sub-venue/table.d.ts +229 -0
- package/out/src/tools/sub-venue/table.d.ts.map +1 -0
- package/out/src/tools/sub-venue/table.js +108 -0
- package/out/src/tools/sub-venue/table.js.map +1 -0
- package/out/src/tools/sub-venue/wikidata.d.ts +26 -0
- package/out/src/tools/sub-venue/wikidata.d.ts.map +1 -0
- package/out/src/tools/sub-venue/wikidata.js +62 -0
- package/out/src/tools/sub-venue/wikidata.js.map +1 -0
- package/out/src/tools/sub-venue-lexicon.d.ts +27 -378
- package/out/src/tools/sub-venue-lexicon.d.ts.map +1 -1
- package/out/src/tools/sub-venue-lexicon.js +30 -565
- package/out/src/tools/sub-venue-lexicon.js.map +1 -1
- package/out/src/{align.d.ts → utils/align.d.ts} +1 -1
- package/out/src/utils/align.d.ts.map +1 -0
- package/out/src/utils/align.js.map +1 -0
- package/out/src/utils/golden.d.ts.map +1 -0
- package/out/src/{golden.js → utils/golden.js} +2 -2
- package/out/src/utils/golden.js.map +1 -0
- package/out/src/utils/index.d.ts +14 -0
- package/out/src/utils/index.d.ts.map +1 -0
- package/out/src/utils/index.js +14 -0
- package/out/src/utils/index.js.map +1 -0
- package/out/src/utils/license.d.ts.map +1 -0
- package/out/src/{license.js → utils/license.js} +1 -1
- package/out/src/utils/license.js.map +1 -0
- package/out/src/{parquet.d.ts → utils/parquet.d.ts} +24 -5
- package/out/src/utils/parquet.d.ts.map +1 -0
- package/out/src/{parquet.js → utils/parquet.js} +6 -3
- package/out/src/utils/parquet.js.map +1 -0
- package/out/src/{split.d.ts → utils/split.d.ts} +1 -1
- package/out/src/utils/split.d.ts.map +1 -0
- package/out/src/{split.js → utils/split.js} +2 -2
- package/out/src/utils/split.js.map +1 -0
- package/out/src/utils/tokenize.d.ts.map +1 -0
- package/out/src/utils/tokenize.js.map +1 -0
- package/out/src/utils/wof-json.d.ts.map +1 -0
- package/out/src/utils/wof-json.js.map +1 -0
- package/package.json +287 -21
- package/src/adapters/ban/adapter.ts +7 -5
- package/src/adapters/fcc-bdc/adapter.ts +5 -4
- package/src/adapters/geonames/adapter.ts +3 -3
- package/src/adapters/geonames-postal/adapter.ts +4 -4
- package/src/adapters/gnaf/adapter.ts +3 -3
- package/src/adapters/gnaf/assemble.ts +1 -1
- package/src/adapters/index.ts +3 -2
- package/src/adapters/openaddresses/adapter.ts +4 -4
- package/src/adapters/overture/adapter.ts +3 -3
- package/src/adapters/state-hi-schools/adapter.ts +8 -7
- package/src/adapters/state-ia-contractors/adapter.ts +13 -8
- package/src/adapters/state-ny-notaries/adapter.ts +13 -32
- package/src/adapters/state-tx-notaries/adapter.ts +13 -8
- package/src/adapters/synth-po-box/adapter.ts +4 -4
- package/src/adapters/tiger/adapter.ts +5 -3
- package/src/adapters/usgov-hrsa-fqhc/adapter.ts +8 -7
- package/src/adapters/usgov-imls-pls/adapter.ts +12 -8
- package/src/adapters/usgov-irs-bmf/adapter.ts +7 -6
- package/src/adapters/usgov-nad/adapter.ts +9 -9
- package/src/adapters/usgov-nppes/adapter.ts +13 -12
- package/src/adapters/usgov-samhsa-treatment-locator/adapter.ts +8 -7
- package/src/{adapter.ts → adapters/utils/index.ts} +15 -3
- package/src/adapters/wof-admin-jp/adapter.ts +9 -12
- package/src/adapters/wof-admin-json/adapter.ts +15 -54
- package/src/adapters/wof-json-rows.ts +79 -0
- package/src/adapters/wof-postalcode-json/adapter.ts +16 -50
- package/src/build.ts +8 -8
- package/src/index.ts +3 -17
- package/src/name-prone-us-suffixes.ts +12 -0
- package/src/parquet-wrapper/reader.ts +9 -0
- package/src/runner.ts +2 -2
- package/src/shard-recipes/anchor-absorption.ts +5 -5
- package/src/shard-recipes/bare-country.ts +95 -0
- package/src/shard-recipes/boundary-stress.ts +3 -2
- package/src/shard-recipes/country-balanced.ts +16 -27
- package/src/shard-recipes/cz-pcfirst-preposition.ts +29 -10
- package/src/shard-recipes/fr-admin-split.ts +6 -4
- package/src/shard-recipes/fr-bare-street.ts +85 -10
- package/src/shard-recipes/fr-lieudit.ts +6 -4
- package/src/shard-recipes/fr-order.ts +13 -26
- package/src/shard-recipes/german.ts +9 -18
- package/src/shard-recipes/house-venue.ts +2 -1
- package/src/shard-recipes/index.ts +8 -1
- package/src/shard-recipes/intersection.ts +9 -17
- package/src/shard-recipes/locale.ts +16 -24
- package/src/shard-recipes/no-street.ts +2 -1
- package/src/shard-recipes/po-box-cedex.ts +76 -58
- package/src/shard-recipes/po-box.ts +2 -1
- package/src/shard-recipes/reviewed-postcode-tail.ts +189 -0
- package/src/shard-recipes/scaffold.ts +99 -24
- package/src/shard-recipes/street-affix.ts +284 -45
- package/src/shard-recipes/street-bare.ts +4 -3
- package/src/shard-recipes/street.ts +3 -2
- package/src/shard-recipes/sub-venue-sources.ts +13 -23
- package/src/shard-recipes/sub-venue.ts +11 -9
- package/src/shard-recipes/trailing-region.ts +183 -0
- package/src/shard-recipes/unit.ts +8 -17
- package/src/{synthesize-boundary-stress.ts → synthesizers/boundary-stress.ts} +2 -2
- package/src/{synthesize-german.ts → synthesizers/german.ts} +3 -2
- package/src/{synthesize-house-venue.ts → synthesizers/house-venue.ts} +20 -6
- package/src/{synthesize-intersection.ts → synthesizers/intersection.ts} +1 -1
- package/src/{synthesize-no-street.ts → synthesizers/no-street.ts} +2 -2
- package/src/{synthesize-po-box.ts → synthesizers/po-box.ts} +1 -1
- package/src/{synthesize-street.ts → synthesizers/street.ts} +5 -3
- package/src/{synthesize.ts → synthesizers/utils.ts} +6 -4
- package/src/tools/align-shard.ts +3 -2
- package/src/tools/fetch/ban.ts +2 -22
- package/src/tools/fetch/download.ts +22 -4
- package/src/tools/fetch/geonames-dump.ts +267 -0
- package/src/tools/fetch/geonames-postal.ts +180 -0
- package/src/tools/fetch/imls-pls.ts +6 -20
- package/src/tools/fetch/index.ts +11 -0
- package/src/tools/fetch/nad.ts +21 -10
- package/src/tools/fetch/nppes.ts +17 -23
- package/src/tools/fetch/openaddresses.ts +18 -22
- package/src/tools/fetch/ourairports.ts +7 -2
- package/src/tools/fetch/ppd.ts +1 -1
- package/src/tools/fetch/state-hi-schools.ts +3 -23
- package/src/tools/fetch/state-sources.ts +1 -1
- package/src/tools/fetch/tiger-full.ts +17 -24
- package/src/tools/golden-expand.ts +44 -33
- package/src/tools/golden-relabel-street.ts +5 -68
- package/src/tools/index.ts +2 -2
- package/src/tools/ingest-csv.ts +0 -13
- package/src/tools/overlay-manifest.ts +20 -8
- package/src/tools/postcode-triples.ts +375 -0
- package/src/tools/shard-kryptonite.ts +4 -5
- package/src/tools/shard-translit.ts +16 -35
- package/src/tools/sub-venue/harvest.ts +235 -0
- package/src/tools/sub-venue/head-nouns.ts +242 -0
- package/src/tools/sub-venue/surfaces.ts +95 -0
- package/src/tools/sub-venue/table.ts +281 -0
- package/src/tools/sub-venue/wikidata.ts +85 -0
- package/src/tools/sub-venue-lexicon.ts +67 -886
- package/src/{align.ts → utils/align.ts} +2 -1
- package/src/{golden.ts → utils/golden.ts} +2 -3
- package/src/utils/index.ts +14 -0
- package/src/{license.ts → utils/license.ts} +1 -1
- package/src/{parquet.ts → utils/parquet.ts} +22 -9
- package/src/{split.ts → utils/split.ts} +3 -3
- package/out/src/adapter.d.ts.map +0 -1
- package/out/src/adapter.js.map +0 -1
- package/out/src/align.d.ts.map +0 -1
- package/out/src/align.js.map +0 -1
- package/out/src/format.d.ts +0 -14
- package/out/src/format.d.ts.map +0 -1
- package/out/src/format.js +0 -14
- package/out/src/format.js.map +0 -1
- package/out/src/golden.d.ts.map +0 -1
- package/out/src/golden.js.map +0 -1
- package/out/src/license.d.ts.map +0 -1
- package/out/src/license.js.map +0 -1
- package/out/src/parquet.d.ts.map +0 -1
- package/out/src/parquet.js.map +0 -1
- package/out/src/split.d.ts.map +0 -1
- package/out/src/split.js.map +0 -1
- package/out/src/synthesize-anchor-absorption.d.ts.map +0 -1
- package/out/src/synthesize-anchor-absorption.js.map +0 -1
- package/out/src/synthesize-boundary-stress.d.ts.map +0 -1
- package/out/src/synthesize-boundary-stress.js.map +0 -1
- package/out/src/synthesize-german.d.ts.map +0 -1
- package/out/src/synthesize-german.js.map +0 -1
- package/out/src/synthesize-house-venue.d.ts.map +0 -1
- package/out/src/synthesize-house-venue.js.map +0 -1
- package/out/src/synthesize-intersection.d.ts.map +0 -1
- package/out/src/synthesize-intersection.js.map +0 -1
- package/out/src/synthesize-no-street.d.ts.map +0 -1
- package/out/src/synthesize-no-street.js.map +0 -1
- package/out/src/synthesize-po-box.d.ts.map +0 -1
- package/out/src/synthesize-po-box.js.map +0 -1
- package/out/src/synthesize-street.d.ts.map +0 -1
- package/out/src/synthesize-street.js.map +0 -1
- package/out/src/synthesize.d.ts.map +0 -1
- package/out/src/synthesize.js.map +0 -1
- package/out/src/tokenize.d.ts.map +0 -1
- package/out/src/tokenize.js.map +0 -1
- package/out/src/wof-json.d.ts.map +0 -1
- package/out/src/wof-json.js.map +0 -1
- package/src/format.ts +0 -14
- /package/out/src/{align.js → utils/align.js} +0 -0
- /package/out/src/{golden.d.ts → utils/golden.d.ts} +0 -0
- /package/out/src/{license.d.ts → utils/license.d.ts} +0 -0
- /package/out/src/{tokenize.d.ts → utils/tokenize.d.ts} +0 -0
- /package/out/src/{tokenize.js → utils/tokenize.js} +0 -0
- /package/out/src/{wof-json.d.ts → utils/wof-json.d.ts} +0 -0
- /package/out/src/{wof-json.js → utils/wof-json.js} +0 -0
- /package/src/{synthesize-anchor-absorption.ts → synthesizers/anchor-absorption.ts} +0 -0
- /package/src/{tokenize.ts → utils/tokenize.ts} +0 -0
- /package/src/{wof-json.ts → utils/wof-json.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailwoman/corpus",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.2.0",
|
|
4
4
|
"description": "Mailwoman corpus pipeline: BIO-labeled dataset builder for the neural classifier.",
|
|
5
5
|
"license": "AGPL-3.0-only OR LicenseRef-Commercial",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/sister-software/mailwoman.git",
|
|
9
|
-
"directory": "corpus"
|
|
9
|
+
"directory": "packages/corpus"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
|
+
"data/**",
|
|
12
13
|
"out/**/*.js",
|
|
13
14
|
"out/**/*.js.map",
|
|
14
15
|
"out/**/*.d.ts",
|
|
@@ -21,9 +22,56 @@
|
|
|
21
22
|
"!*.test.tsx",
|
|
22
23
|
"!**/*.test.ts",
|
|
23
24
|
"!**/*.test.tsx",
|
|
24
|
-
"!test-kit/**/*"
|
|
25
|
+
"!test-kit/**/*",
|
|
26
|
+
"!test/**"
|
|
25
27
|
],
|
|
26
28
|
"type": "module",
|
|
29
|
+
"imports": {
|
|
30
|
+
"#adapters/utils": {
|
|
31
|
+
"types": "./out/src/adapters/utils/index.d.ts",
|
|
32
|
+
"default": "./out/src/adapters/utils/index.js"
|
|
33
|
+
},
|
|
34
|
+
"#runner": {
|
|
35
|
+
"types": "./out/src/runner.d.ts",
|
|
36
|
+
"default": "./out/src/runner.js"
|
|
37
|
+
},
|
|
38
|
+
"#synthesizers/utils": {
|
|
39
|
+
"types": "./out/src/synthesizers/utils.d.ts",
|
|
40
|
+
"default": "./out/src/synthesizers/utils.js"
|
|
41
|
+
},
|
|
42
|
+
"#types": {
|
|
43
|
+
"types": "./out/src/types.d.ts",
|
|
44
|
+
"default": "./out/src/types.js"
|
|
45
|
+
},
|
|
46
|
+
"#utils": {
|
|
47
|
+
"types": "./out/src/utils/index.d.ts",
|
|
48
|
+
"default": "./out/src/utils/index.js"
|
|
49
|
+
},
|
|
50
|
+
"#utils/*": {
|
|
51
|
+
"types": "./out/src/utils/*.d.ts",
|
|
52
|
+
"default": "./out/src/utils/*.js"
|
|
53
|
+
},
|
|
54
|
+
"#codex/*": {
|
|
55
|
+
"types": "./out/src/codex/*.d.ts",
|
|
56
|
+
"default": "./out/src/codex/*.js"
|
|
57
|
+
},
|
|
58
|
+
"#synthesizers/*": {
|
|
59
|
+
"types": "./out/src/synthesizers/*.d.ts",
|
|
60
|
+
"default": "./out/src/synthesizers/*.js"
|
|
61
|
+
},
|
|
62
|
+
"#tools": {
|
|
63
|
+
"types": "./out/src/tools/index.d.ts",
|
|
64
|
+
"default": "./out/src/tools/index.js"
|
|
65
|
+
},
|
|
66
|
+
"#adapters/*": {
|
|
67
|
+
"types": "./out/src/adapters/*.d.ts",
|
|
68
|
+
"default": "./out/src/adapters/*.js"
|
|
69
|
+
},
|
|
70
|
+
"#parquet-wrapper": {
|
|
71
|
+
"types": "./out/src/parquet-wrapper/index.d.ts",
|
|
72
|
+
"default": "./out/src/parquet-wrapper/index.js"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
27
75
|
"exports": {
|
|
28
76
|
"./package.json": "./package.json",
|
|
29
77
|
".": {
|
|
@@ -34,25 +82,110 @@
|
|
|
34
82
|
"types": "./out/src/types.d.ts",
|
|
35
83
|
"default": "./out/src/types.js"
|
|
36
84
|
},
|
|
37
|
-
"./
|
|
38
|
-
|
|
39
|
-
"
|
|
85
|
+
"./data/*": "./data/*",
|
|
86
|
+
"./utils": {
|
|
87
|
+
"types": "./out/src/utils/index.d.ts",
|
|
88
|
+
"default": "./out/src/utils/index.js"
|
|
89
|
+
},
|
|
90
|
+
"./parquet-wrapper": {
|
|
91
|
+
"types": "./out/src/parquet-wrapper/index.d.ts",
|
|
92
|
+
"default": "./out/src/parquet-wrapper/index.js"
|
|
40
93
|
},
|
|
41
|
-
"./
|
|
42
|
-
"types": "./out/src/
|
|
43
|
-
"default": "./out/src/
|
|
94
|
+
"./runner": {
|
|
95
|
+
"types": "./out/src/runner.d.ts",
|
|
96
|
+
"default": "./out/src/runner.js"
|
|
44
97
|
},
|
|
45
98
|
"./build": {
|
|
46
99
|
"types": "./out/src/build.d.ts",
|
|
47
100
|
"default": "./out/src/build.js"
|
|
48
101
|
},
|
|
102
|
+
"./synthesizers/*": {
|
|
103
|
+
"types": "./out/src/synthesizers/*.d.ts",
|
|
104
|
+
"default": "./out/src/synthesizers/*.js"
|
|
105
|
+
},
|
|
106
|
+
"./shard-recipes/*": {
|
|
107
|
+
"types": "./out/src/shard-recipes/*.d.ts",
|
|
108
|
+
"default": "./out/src/shard-recipes/*.js"
|
|
109
|
+
},
|
|
110
|
+
"./adapters/utils": {
|
|
111
|
+
"types": "./out/src/adapters/utils/index.d.ts",
|
|
112
|
+
"default": "./out/src/adapters/utils/index.js"
|
|
113
|
+
},
|
|
49
114
|
"./adapters": {
|
|
50
115
|
"types": "./out/src/adapters/index.d.ts",
|
|
51
116
|
"default": "./out/src/adapters/index.js"
|
|
52
117
|
},
|
|
118
|
+
"./adapters/*": {
|
|
119
|
+
"types": "./out/src/adapters/*.d.ts",
|
|
120
|
+
"default": "./out/src/adapters/*.js"
|
|
121
|
+
},
|
|
53
122
|
"./tools": {
|
|
54
123
|
"types": "./out/src/tools/index.d.ts",
|
|
55
124
|
"default": "./out/src/tools/index.js"
|
|
125
|
+
},
|
|
126
|
+
"./codex/*": {
|
|
127
|
+
"types": "./out/src/codex/*.d.ts",
|
|
128
|
+
"default": "./out/src/codex/*.js"
|
|
129
|
+
},
|
|
130
|
+
"./utils/parquet": {
|
|
131
|
+
"types": "./out/src/utils/parquet.d.ts",
|
|
132
|
+
"default": "./out/src/utils/parquet.js"
|
|
133
|
+
},
|
|
134
|
+
"./tools/postcode-triples": {
|
|
135
|
+
"types": "./out/src/tools/postcode-triples.d.ts",
|
|
136
|
+
"default": "./out/src/tools/postcode-triples.js"
|
|
137
|
+
},
|
|
138
|
+
"./tools/audit": {
|
|
139
|
+
"types": "./out/src/tools/audit.d.ts",
|
|
140
|
+
"default": "./out/src/tools/audit.js"
|
|
141
|
+
},
|
|
142
|
+
"./tools/gb-title-case": {
|
|
143
|
+
"types": "./out/src/tools/gb-title-case.d.ts",
|
|
144
|
+
"default": "./out/src/tools/gb-title-case.js"
|
|
145
|
+
},
|
|
146
|
+
"./tools/golden-relabel-street": {
|
|
147
|
+
"types": "./out/src/tools/golden-relabel-street.d.ts",
|
|
148
|
+
"default": "./out/src/tools/golden-relabel-street.js"
|
|
149
|
+
},
|
|
150
|
+
"./tools/overture-subvenue": {
|
|
151
|
+
"types": "./out/src/tools/overture-subvenue.d.ts",
|
|
152
|
+
"default": "./out/src/tools/overture-subvenue.js"
|
|
153
|
+
},
|
|
154
|
+
"./tools/sub-venue-lexicon": {
|
|
155
|
+
"types": "./out/src/tools/sub-venue-lexicon.d.ts",
|
|
156
|
+
"default": "./out/src/tools/sub-venue-lexicon.js"
|
|
157
|
+
},
|
|
158
|
+
"./tools/sub-venue-promotions": {
|
|
159
|
+
"types": "./out/src/tools/sub-venue-promotions.d.ts",
|
|
160
|
+
"default": "./out/src/tools/sub-venue-promotions.js"
|
|
161
|
+
},
|
|
162
|
+
"./tools/fetch/download": {
|
|
163
|
+
"types": "./out/src/tools/fetch/download.d.ts",
|
|
164
|
+
"default": "./out/src/tools/fetch/download.js"
|
|
165
|
+
},
|
|
166
|
+
"./tools/fetch/ppd": {
|
|
167
|
+
"types": "./out/src/tools/fetch/ppd.d.ts",
|
|
168
|
+
"default": "./out/src/tools/fetch/ppd.js"
|
|
169
|
+
},
|
|
170
|
+
"./utils/tokenize": {
|
|
171
|
+
"types": "./out/src/utils/tokenize.d.ts",
|
|
172
|
+
"default": "./out/src/utils/tokenize.js"
|
|
173
|
+
},
|
|
174
|
+
"./utils/golden": {
|
|
175
|
+
"types": "./out/src/utils/golden.d.ts",
|
|
176
|
+
"default": "./out/src/utils/golden.js"
|
|
177
|
+
},
|
|
178
|
+
"./utils/license": {
|
|
179
|
+
"types": "./out/src/utils/license.d.ts",
|
|
180
|
+
"default": "./out/src/utils/license.js"
|
|
181
|
+
},
|
|
182
|
+
"./utils/split": {
|
|
183
|
+
"types": "./out/src/utils/split.d.ts",
|
|
184
|
+
"default": "./out/src/utils/split.js"
|
|
185
|
+
},
|
|
186
|
+
"./utils/wof-json": {
|
|
187
|
+
"types": "./out/src/utils/wof-json.d.ts",
|
|
188
|
+
"default": "./out/src/utils/wof-json.js"
|
|
56
189
|
}
|
|
57
190
|
},
|
|
58
191
|
"publishConfig": {
|
|
@@ -67,41 +200,174 @@
|
|
|
67
200
|
"types": "./out/src/types.d.ts",
|
|
68
201
|
"default": "./out/src/types.js"
|
|
69
202
|
},
|
|
70
|
-
"./
|
|
71
|
-
|
|
72
|
-
"
|
|
203
|
+
"./data/*": "./data/*",
|
|
204
|
+
"./utils": {
|
|
205
|
+
"types": "./out/src/utils/index.d.ts",
|
|
206
|
+
"default": "./out/src/utils/index.js"
|
|
73
207
|
},
|
|
74
|
-
"./
|
|
75
|
-
"types": "./out/src/
|
|
76
|
-
"default": "./out/src/
|
|
208
|
+
"./parquet-wrapper": {
|
|
209
|
+
"types": "./out/src/parquet-wrapper/index.d.ts",
|
|
210
|
+
"default": "./out/src/parquet-wrapper/index.js"
|
|
211
|
+
},
|
|
212
|
+
"./runner": {
|
|
213
|
+
"types": "./out/src/runner.d.ts",
|
|
214
|
+
"default": "./out/src/runner.js"
|
|
77
215
|
},
|
|
78
216
|
"./build": {
|
|
79
217
|
"types": "./out/src/build.d.ts",
|
|
80
218
|
"default": "./out/src/build.js"
|
|
81
219
|
},
|
|
220
|
+
"./synthesizers/*": {
|
|
221
|
+
"types": "./out/src/synthesizers/*.d.ts",
|
|
222
|
+
"default": "./out/src/synthesizers/*.js"
|
|
223
|
+
},
|
|
224
|
+
"./shard-recipes/*": {
|
|
225
|
+
"types": "./out/src/shard-recipes/*.d.ts",
|
|
226
|
+
"default": "./out/src/shard-recipes/*.js"
|
|
227
|
+
},
|
|
228
|
+
"./adapters/utils": {
|
|
229
|
+
"types": "./out/src/adapters/utils/index.d.ts",
|
|
230
|
+
"default": "./out/src/adapters/utils/index.js"
|
|
231
|
+
},
|
|
82
232
|
"./adapters": {
|
|
83
233
|
"types": "./out/src/adapters/index.d.ts",
|
|
84
234
|
"default": "./out/src/adapters/index.js"
|
|
85
235
|
},
|
|
236
|
+
"./adapters/*": {
|
|
237
|
+
"types": "./out/src/adapters/*.d.ts",
|
|
238
|
+
"default": "./out/src/adapters/*.js"
|
|
239
|
+
},
|
|
86
240
|
"./tools": {
|
|
87
241
|
"types": "./out/src/tools/index.d.ts",
|
|
88
242
|
"default": "./out/src/tools/index.js"
|
|
243
|
+
},
|
|
244
|
+
"./codex/*": {
|
|
245
|
+
"types": "./out/src/codex/*.d.ts",
|
|
246
|
+
"default": "./out/src/codex/*.js"
|
|
247
|
+
},
|
|
248
|
+
"./utils/parquet": {
|
|
249
|
+
"types": "./out/src/utils/parquet.d.ts",
|
|
250
|
+
"default": "./out/src/utils/parquet.js"
|
|
251
|
+
},
|
|
252
|
+
"./tools/postcode-triples": {
|
|
253
|
+
"types": "./out/src/tools/postcode-triples.d.ts",
|
|
254
|
+
"default": "./out/src/tools/postcode-triples.js"
|
|
255
|
+
},
|
|
256
|
+
"./tools/audit": {
|
|
257
|
+
"types": "./out/src/tools/audit.d.ts",
|
|
258
|
+
"default": "./out/src/tools/audit.js"
|
|
259
|
+
},
|
|
260
|
+
"./tools/gb-title-case": {
|
|
261
|
+
"types": "./out/src/tools/gb-title-case.d.ts",
|
|
262
|
+
"default": "./out/src/tools/gb-title-case.js"
|
|
263
|
+
},
|
|
264
|
+
"./tools/golden-relabel-street": {
|
|
265
|
+
"types": "./out/src/tools/golden-relabel-street.d.ts",
|
|
266
|
+
"default": "./out/src/tools/golden-relabel-street.js"
|
|
267
|
+
},
|
|
268
|
+
"./tools/overture-subvenue": {
|
|
269
|
+
"types": "./out/src/tools/overture-subvenue.d.ts",
|
|
270
|
+
"default": "./out/src/tools/overture-subvenue.js"
|
|
271
|
+
},
|
|
272
|
+
"./tools/sub-venue-lexicon": {
|
|
273
|
+
"types": "./out/src/tools/sub-venue-lexicon.d.ts",
|
|
274
|
+
"default": "./out/src/tools/sub-venue-lexicon.js"
|
|
275
|
+
},
|
|
276
|
+
"./tools/sub-venue-promotions": {
|
|
277
|
+
"types": "./out/src/tools/sub-venue-promotions.d.ts",
|
|
278
|
+
"default": "./out/src/tools/sub-venue-promotions.js"
|
|
279
|
+
},
|
|
280
|
+
"./tools/fetch/download": {
|
|
281
|
+
"types": "./out/src/tools/fetch/download.d.ts",
|
|
282
|
+
"default": "./out/src/tools/fetch/download.js"
|
|
283
|
+
},
|
|
284
|
+
"./tools/fetch/ppd": {
|
|
285
|
+
"types": "./out/src/tools/fetch/ppd.d.ts",
|
|
286
|
+
"default": "./out/src/tools/fetch/ppd.js"
|
|
287
|
+
},
|
|
288
|
+
"./utils/tokenize": {
|
|
289
|
+
"types": "./out/src/utils/tokenize.d.ts",
|
|
290
|
+
"default": "./out/src/utils/tokenize.js"
|
|
291
|
+
},
|
|
292
|
+
"./utils/golden": {
|
|
293
|
+
"types": "./out/src/utils/golden.d.ts",
|
|
294
|
+
"default": "./out/src/utils/golden.js"
|
|
295
|
+
},
|
|
296
|
+
"./utils/license": {
|
|
297
|
+
"types": "./out/src/utils/license.d.ts",
|
|
298
|
+
"default": "./out/src/utils/license.js"
|
|
299
|
+
},
|
|
300
|
+
"./utils/split": {
|
|
301
|
+
"types": "./out/src/utils/split.d.ts",
|
|
302
|
+
"default": "./out/src/utils/split.js"
|
|
303
|
+
},
|
|
304
|
+
"./utils/wof-json": {
|
|
305
|
+
"types": "./out/src/utils/wof-json.d.ts",
|
|
306
|
+
"default": "./out/src/utils/wof-json.js"
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
"imports": {
|
|
310
|
+
"#adapters/utils": {
|
|
311
|
+
"types": "./out/src/adapters/utils/index.d.ts",
|
|
312
|
+
"default": "./out/src/adapters/utils/index.js"
|
|
313
|
+
},
|
|
314
|
+
"#runner": {
|
|
315
|
+
"types": "./out/src/runner.d.ts",
|
|
316
|
+
"default": "./out/src/runner.js"
|
|
317
|
+
},
|
|
318
|
+
"#synthesizers/utils": {
|
|
319
|
+
"types": "./out/src/synthesizers/utils.d.ts",
|
|
320
|
+
"default": "./out/src/synthesizers/utils.js"
|
|
321
|
+
},
|
|
322
|
+
"#types": {
|
|
323
|
+
"types": "./out/src/types.d.ts",
|
|
324
|
+
"default": "./out/src/types.js"
|
|
325
|
+
},
|
|
326
|
+
"#utils": {
|
|
327
|
+
"types": "./out/src/utils/index.d.ts",
|
|
328
|
+
"default": "./out/src/utils/index.js"
|
|
329
|
+
},
|
|
330
|
+
"#utils/*": {
|
|
331
|
+
"types": "./out/src/utils/*.d.ts",
|
|
332
|
+
"default": "./out/src/utils/*.js"
|
|
333
|
+
},
|
|
334
|
+
"#codex/*": {
|
|
335
|
+
"types": "./out/src/codex/*.d.ts",
|
|
336
|
+
"default": "./out/src/codex/*.js"
|
|
337
|
+
},
|
|
338
|
+
"#synthesizers/*": {
|
|
339
|
+
"types": "./out/src/synthesizers/*.d.ts",
|
|
340
|
+
"default": "./out/src/synthesizers/*.js"
|
|
341
|
+
},
|
|
342
|
+
"#tools": {
|
|
343
|
+
"types": "./out/src/tools/index.d.ts",
|
|
344
|
+
"default": "./out/src/tools/index.js"
|
|
345
|
+
},
|
|
346
|
+
"#adapters/*": {
|
|
347
|
+
"types": "./out/src/adapters/*.d.ts",
|
|
348
|
+
"default": "./out/src/adapters/*.js"
|
|
349
|
+
},
|
|
350
|
+
"#parquet-wrapper": {
|
|
351
|
+
"types": "./out/src/parquet-wrapper/index.d.ts",
|
|
352
|
+
"default": "./out/src/parquet-wrapper/index.js"
|
|
89
353
|
}
|
|
90
354
|
}
|
|
91
355
|
},
|
|
92
356
|
"dependencies": {
|
|
93
357
|
"@dsnp/parquetjs": "1.8.9",
|
|
94
|
-
"@mailwoman/ban": "9.
|
|
95
|
-
"@mailwoman/codex": "9.
|
|
96
|
-
"@mailwoman/core": "9.
|
|
97
|
-
"@mailwoman/formatter": "9.
|
|
358
|
+
"@mailwoman/ban": "9.2.0",
|
|
359
|
+
"@mailwoman/codex": "9.2.0",
|
|
360
|
+
"@mailwoman/core": "9.2.0",
|
|
361
|
+
"@mailwoman/formatter": "9.2.0",
|
|
98
362
|
"fast-glob": "^3.3.3",
|
|
99
363
|
"fastest-levenshtein": "^1.0.16",
|
|
100
364
|
"lru-cache": "^11.5.2",
|
|
101
365
|
"path-ts": "^2.1.0",
|
|
102
|
-
"spliterator": "^6.0
|
|
366
|
+
"spliterator": "^6.2.0"
|
|
103
367
|
},
|
|
104
368
|
"devDependencies": {
|
|
105
|
-
"@types/node": ">=26.1.2"
|
|
369
|
+
"@types/node": ">=26.1.2",
|
|
370
|
+
"adm-zip": "^0.6.0",
|
|
371
|
+
"kysely": "^0.29.4"
|
|
106
372
|
}
|
|
107
373
|
}
|
|
@@ -31,11 +31,13 @@
|
|
|
31
31
|
* country !== FR).
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
|
+
import { isPresent } from "@mailwoman/core/objects"
|
|
35
|
+
import { reconcileComponents } from "@mailwoman/formatter"
|
|
34
36
|
import { CSVSpliterator } from "spliterator"
|
|
35
37
|
|
|
36
|
-
import { stableSourceID } from "
|
|
37
|
-
import {
|
|
38
|
-
|
|
38
|
+
import { stableSourceID } from "#adapters/utils"
|
|
39
|
+
import type { AdapterOptions, CanonicalRow, CorpusAdapter } from "#types"
|
|
40
|
+
|
|
39
41
|
import { decomposeFrStreet } from "./street-decompose.ts"
|
|
40
42
|
|
|
41
43
|
/**
|
|
@@ -81,13 +83,13 @@ function composeHouseNumber(numero: string, rep: string): string {
|
|
|
81
83
|
*/
|
|
82
84
|
function composeRaw(house: string, street: string, postcode: string, locality: string): string {
|
|
83
85
|
const parts: string[] = []
|
|
84
|
-
const streetPart = [house, street].filter(
|
|
86
|
+
const streetPart = [house, street].filter(isPresent).join(" ").trim()
|
|
85
87
|
|
|
86
88
|
if (streetPart) {
|
|
87
89
|
parts.push(streetPart)
|
|
88
90
|
}
|
|
89
91
|
|
|
90
|
-
const cityPart = [postcode, locality].filter(
|
|
92
|
+
const cityPart = [postcode, locality].filter(isPresent).join(" ").trim()
|
|
91
93
|
|
|
92
94
|
if (cityPart) {
|
|
93
95
|
parts.push(cityPart)
|
|
@@ -36,10 +36,11 @@
|
|
|
36
36
|
|
|
37
37
|
import { DatabaseSync } from "node:sqlite"
|
|
38
38
|
|
|
39
|
-
import {
|
|
40
|
-
|
|
41
|
-
import {
|
|
42
|
-
import
|
|
39
|
+
import { formatAddress, reconcileComponents } from "@mailwoman/formatter"
|
|
40
|
+
|
|
41
|
+
import { splitStreetLine } from "#adapters/utils"
|
|
42
|
+
import { lookupStateAbbreviation } from "#codex/us-fips-state"
|
|
43
|
+
import type { AdapterOptions, CanonicalRow, CorpusAdapter } from "#types"
|
|
43
44
|
|
|
44
45
|
/**
|
|
45
46
|
* Registry id for this adapter. Stamped into every row it emits, so a corpus record can be traced back to the dataset
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
|
|
31
31
|
import { existsSync } from "node:fs"
|
|
32
32
|
|
|
33
|
+
import { reconcileComponents } from "@mailwoman/formatter"
|
|
33
34
|
import { dirname, join } from "path-ts"
|
|
34
35
|
import { TSVSpliterator } from "spliterator"
|
|
35
36
|
|
|
36
|
-
import { stableSourceID } from "
|
|
37
|
-
import {
|
|
38
|
-
import type { AdapterOptions, CanonicalRow, CorpusAdapter } from "../../types.ts"
|
|
37
|
+
import { stableSourceID } from "#adapters/utils"
|
|
38
|
+
import type { AdapterOptions, CanonicalRow, CorpusAdapter } from "#types"
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* Registry id for this adapter. Stamped into every row it emits, so a corpus record can be traced back to the dataset
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
* `"CC-BY-4.0"` per row (attribute "GeoNames").
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
+
import { reconcileComponents } from "@mailwoman/formatter"
|
|
26
27
|
import { TSVSpliterator } from "spliterator"
|
|
27
28
|
|
|
28
|
-
import { stableSourceID } from "
|
|
29
|
-
import {
|
|
30
|
-
import type { AdapterOptions, CanonicalRow, CorpusAdapter } from "../../types.ts"
|
|
29
|
+
import { stableSourceID } from "#adapters/utils"
|
|
30
|
+
import type { AdapterOptions, CanonicalRow, CorpusAdapter } from "#types"
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Registry id for this adapter. Stamped into every row it emits, so a corpus record can be traced back to the dataset
|
|
@@ -50,7 +50,7 @@ export function createGeonamesPostalAdapter(): CorpusAdapter {
|
|
|
50
50
|
id: GEONAMES_POSTAL_ADAPTER_ID,
|
|
51
51
|
defaultLicense: GEONAMES_POSTAL_DEFAULT_LICENSE,
|
|
52
52
|
description:
|
|
53
|
-
"GeoNames
|
|
53
|
+
"GeoNames postcodes (CC-BY-4.0) — multi-locale postcode→locality→region, names inline; international postcode-first order.",
|
|
54
54
|
|
|
55
55
|
async *rows(opts: AdapterOptions): AsyncIterable<CanonicalRow> {
|
|
56
56
|
// `header: false` — the GeoNames postal dump is headerless, and the spliterator would
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
31
|
import { tryParsingJSON } from "@mailwoman/core/objects"
|
|
32
|
+
import { reconcileComponents } from "@mailwoman/formatter"
|
|
32
33
|
import { TextSpliterator } from "spliterator"
|
|
33
34
|
|
|
34
|
-
import { stableSourceID } from "
|
|
35
|
-
import {
|
|
36
|
-
import type { AdapterOptions, CanonicalRow, CorpusAdapter } from "../../types.ts"
|
|
35
|
+
import { stableSourceID } from "#adapters/utils"
|
|
36
|
+
import type { AdapterOptions, CanonicalRow, CorpusAdapter } from "#types"
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Registry id for this adapter. Stamped into every row it emits, so a corpus record can be traced back to the dataset
|
package/src/adapters/index.ts
CHANGED
|
@@ -19,8 +19,9 @@
|
|
|
19
19
|
* implementations; the registered ids are unchanged).
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
import { defaultAdapterRegistry } from "
|
|
23
|
-
import type { CorpusAdapter } from "
|
|
22
|
+
import { defaultAdapterRegistry } from "#adapters/utils"
|
|
23
|
+
import type { CorpusAdapter } from "#types"
|
|
24
|
+
|
|
24
25
|
import { banAdapter } from "./ban/adapter.ts"
|
|
25
26
|
import { fccBdcAdapter } from "./fcc-bdc/adapter.ts"
|
|
26
27
|
import { geonamesPostalAdapter } from "./geonames-postal/adapter.ts"
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
*/
|
|
38
38
|
|
|
39
39
|
import { tryParsingJSON } from "@mailwoman/core/objects"
|
|
40
|
+
import { formatAddress, reconcileComponents } from "@mailwoman/formatter"
|
|
40
41
|
import { TextSpliterator } from "spliterator"
|
|
41
42
|
|
|
42
|
-
import { stableSourceID } from "
|
|
43
|
-
import {
|
|
44
|
-
import { SHARE_ALIKE_PATTERN } from "
|
|
45
|
-
import type { AdapterOptions, CanonicalRow, CorpusAdapter } from "../../types.ts"
|
|
43
|
+
import { stableSourceID } from "#adapters/utils"
|
|
44
|
+
import type { AdapterOptions, CanonicalRow, CorpusAdapter } from "#types"
|
|
45
|
+
import { SHARE_ALIKE_PATTERN } from "#utils"
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* Registry id for this adapter. Stamped into every row it emits, so a corpus record can be traced back to the dataset
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
33
|
import { tryParsingJSON } from "@mailwoman/core/objects"
|
|
34
|
+
import { formatAddress, reconcileComponents } from "@mailwoman/formatter"
|
|
34
35
|
import { TextSpliterator } from "spliterator"
|
|
35
36
|
|
|
36
|
-
import { stableSourceID } from "
|
|
37
|
-
import {
|
|
38
|
-
import type { AdapterOptions, CanonicalRow, CorpusAdapter } from "../../types.ts"
|
|
37
|
+
import { stableSourceID } from "#adapters/utils"
|
|
38
|
+
import type { AdapterOptions, CanonicalRow, CorpusAdapter } from "#types"
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* Registry id for this adapter. Stamped into every row it emits, so a corpus record can be traced back to the dataset
|
|
@@ -29,12 +29,13 @@
|
|
|
29
29
|
* License: stamped `"Public Domain"` per Hawaii state government open-data terms.
|
|
30
30
|
*/
|
|
31
31
|
|
|
32
|
+
import { isPresent } from "@mailwoman/core/objects"
|
|
33
|
+
import { reconcileComponents } from "@mailwoman/formatter"
|
|
32
34
|
import { CSVSpliterator } from "spliterator"
|
|
33
35
|
|
|
34
|
-
import { splitStreetLine, stableSourceID } from "
|
|
35
|
-
import { lookupStateAbbreviation } from "
|
|
36
|
-
import {
|
|
37
|
-
import type { AdapterOptions, CanonicalRow, CorpusAdapter } from "../../types.ts"
|
|
36
|
+
import { splitStreetLine, stableSourceID } from "#adapters/utils"
|
|
37
|
+
import { lookupStateAbbreviation } from "#codex/us-fips-state"
|
|
38
|
+
import type { AdapterOptions, CanonicalRow, CorpusAdapter } from "#types"
|
|
38
39
|
|
|
39
40
|
/**
|
|
40
41
|
* Registry id for this adapter. Stamped into every row it emits, so a corpus record can be traced back to the dataset
|
|
@@ -120,14 +121,14 @@ export function createStateHiSchoolsAdapter(): CorpusAdapter {
|
|
|
120
121
|
postcode: zip,
|
|
121
122
|
}
|
|
122
123
|
|
|
123
|
-
const streetPart = [split.house_number, split.street].filter(
|
|
124
|
+
const streetPart = [split.house_number, split.street].filter(isPresent).join(" ").trim()
|
|
124
125
|
|
|
125
126
|
const raw = [
|
|
126
127
|
name,
|
|
127
128
|
streetPart,
|
|
128
|
-
[city, [HI_STATE_ABBR, zip].filter(
|
|
129
|
+
[city, [HI_STATE_ABBR, zip].filter(isPresent).join(" ")].filter(isPresent).join(", "),
|
|
129
130
|
]
|
|
130
|
-
.filter(
|
|
131
|
+
.filter(isPresent)
|
|
131
132
|
.join(", ")
|
|
132
133
|
|
|
133
134
|
const aligned = reconcileComponents(components, raw)
|
|
@@ -16,12 +16,13 @@
|
|
|
16
16
|
* License: stamped `"Public Domain"` per Iowa state government open-data terms.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
+
import { isPresent } from "@mailwoman/core/objects"
|
|
20
|
+
import { reconcileComponents } from "@mailwoman/formatter"
|
|
19
21
|
import { CSVSpliterator } from "spliterator"
|
|
20
22
|
|
|
21
|
-
import { splitStreetLine, stableSourceID } from "
|
|
22
|
-
import { lookupStateAbbreviation } from "
|
|
23
|
-
import {
|
|
24
|
-
import type { AdapterOptions, CanonicalRow, CorpusAdapter } from "../../types.ts"
|
|
23
|
+
import { splitStreetLine, stableSourceID } from "#adapters/utils"
|
|
24
|
+
import { lookupStateAbbreviation } from "#codex/us-fips-state"
|
|
25
|
+
import type { AdapterOptions, CanonicalRow, CorpusAdapter } from "#types"
|
|
25
26
|
|
|
26
27
|
/**
|
|
27
28
|
* Registry id for this adapter. Stamped into every row it emits, so a corpus record can be traced back to the dataset
|
|
@@ -84,7 +85,7 @@ export function createStateIaContractorsAdapter(): CorpusAdapter {
|
|
|
84
85
|
|
|
85
86
|
if (!state) continue
|
|
86
87
|
|
|
87
|
-
const fullAddress = [address1, address2].filter(
|
|
88
|
+
const fullAddress = [address1, address2].filter(isPresent).join(" ")
|
|
88
89
|
const split = splitStreetLine(fullAddress)
|
|
89
90
|
|
|
90
91
|
if (!split) continue
|
|
@@ -100,10 +101,14 @@ export function createStateIaContractorsAdapter(): CorpusAdapter {
|
|
|
100
101
|
postcode: zip,
|
|
101
102
|
}
|
|
102
103
|
|
|
103
|
-
const streetPart = [split.house_number, split.street].filter(
|
|
104
|
+
const streetPart = [split.house_number, split.street].filter(isPresent).join(" ").trim()
|
|
104
105
|
|
|
105
|
-
const raw = [
|
|
106
|
-
|
|
106
|
+
const raw = [
|
|
107
|
+
venue,
|
|
108
|
+
streetPart,
|
|
109
|
+
[city, [stateAbbr, zip].filter(isPresent).join(" ")].filter(isPresent).join(", "),
|
|
110
|
+
]
|
|
111
|
+
.filter(isPresent)
|
|
107
112
|
.join(", ")
|
|
108
113
|
|
|
109
114
|
const aligned = reconcileComponents(components, raw)
|