@mailwoman/corpus 10.1.0 → 10.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/data/licenses/cdla-permissive-2.0.md +1 -1
- package/lib/adapters/cordis/adapter.ts +13 -7
- package/lib/adapters/dedup-key.ts +1 -1
- package/lib/adapters/geonames/adapter.ts +1 -1
- package/lib/adapters/gleif/adapter.ts +17 -16
- package/lib/adapters/libpostal-dictionary.ts +0 -2
- package/lib/adapters/openaddresses/adapter.ts +4 -3
- package/lib/adapters/osm/adapter.ts +22 -21
- package/lib/adapters/po-box/adapter.ts +10 -5
- package/lib/adapters/registry.ts +4 -4
- package/lib/adapters/source-id.ts +2 -2
- package/lib/adapters/street-line.ts +7 -6
- package/lib/adapters/wof/admin/json/adapter.ts +2 -2
- package/lib/adapters/wof/json-rows.ts +2 -1
- package/lib/adapters/wof/postalcode-json/adapter.ts +6 -2
- package/lib/adapters.ts +5 -5
- package/lib/au/adapters/gnaf/adapter.ts +1 -1
- package/lib/be/adapters/brussels/adapter.ts +22 -22
- package/lib/be/adapters/vlaanderen/adapter.ts +54 -57
- package/lib/be/adapters/wallonie/adapter.ts +17 -17
- package/lib/be/tools/fetch/brussels.ts +13 -10
- package/lib/be/tools/fetch/wallonie.ts +8 -7
- package/lib/build/adapters.ts +2 -1
- package/lib/build/align.ts +5 -4
- package/lib/build/checkpoint.ts +5 -3
- package/lib/build/eligibility.ts +3 -3
- package/lib/build/types.ts +8 -6
- package/lib/cz/adapters/cuzk/adapter.ts +41 -38
- package/lib/cz/tools/fetch/cuzk.ts +42 -31
- package/lib/de/recipes/locale.ts +1 -1
- package/lib/dk/adapters/inspire/adapter.ts +38 -38
- package/lib/dk/tools/fetch/inspire.ts +16 -14
- package/lib/ee/adapters/ads/adapter.ts +26 -32
- package/lib/ee/tools/fetch/ads.ts +10 -8
- package/lib/es/adapters/bizkaia/adapter.ts +47 -47
- package/lib/es/adapters/catastro/adapter.ts +36 -34
- package/lib/es/adapters/gipuzkoa/adapter.ts +38 -45
- package/lib/es/adapters/navarra/adapter.ts +28 -27
- package/lib/es/cadastre.ts +31 -31
- package/lib/es/tools/fetch/bizkaia.ts +40 -36
- package/lib/es/tools/fetch/catastro.ts +51 -40
- package/lib/es/tools/fetch/gipuzkoa.ts +13 -11
- package/lib/es/tools/fetch/navarra.ts +33 -25
- package/lib/fi/adapters/ryhti/adapter.ts +22 -26
- package/lib/fi/tools/fetch/ryhti.ts +31 -31
- package/lib/fr/adapters/annuaire-education/adapter.ts +13 -11
- package/lib/fr/adapters/ban/adapter.ts +6 -6
- package/lib/fr/adapters/finess/adapter.ts +16 -15
- package/lib/fr/adapters/finess/voie-type.ts +4 -3
- package/lib/fr/insee-country.ts +2 -2
- package/lib/fr/recipes/lieudit.ts +8 -6
- package/lib/fr/tools/fetch/annuaire-education.ts +11 -8
- package/lib/fr/tools/fetch/ban.ts +3 -2
- package/lib/fr/tools/fetch/finess.ts +14 -13
- package/lib/inspire/address.ts +86 -78
- package/lib/inspire/errors.ts +9 -8
- package/lib/inspire/stream.ts +29 -26
- package/lib/international/recipes/locale.ts +13 -9
- package/lib/it/adapters/anac/adapter.ts +51 -46
- package/lib/it/tools/fetch/anac.ts +22 -25
- package/lib/jp/adapters/wof-admin/adapter.ts +2 -6
- package/lib/jp/tools/fetch/houjin.ts +3 -3
- package/lib/kr/adapters/localdata/permit-rows.ts +1 -1
- package/lib/kr/tools/fetch/juso.ts +1 -1
- package/lib/kr/tools/fetch/localdata.ts +2 -2
- package/lib/lu/adapters/bd-adresses/adapter.ts +10 -10
- package/lib/lu/tools/fetch/bd-adresses.ts +15 -13
- package/lib/lv/adapters/varis/adapter.ts +24 -23
- package/lib/lv/tools/fetch/varis.ts +3 -2
- package/lib/nl/adapters/kadaster/adapter.ts +29 -29
- package/lib/nl/tools/fetch/kadaster.ts +16 -12
- package/lib/no/adapters/matrikkelen/adapter.ts +6 -5
- package/lib/no/tools/fetch/matrikkelen.ts +59 -47
- package/lib/parquet/duckdb.ts +7 -4
- package/lib/parquet/readers.ts +3 -3
- package/lib/parquet/schema.ts +1 -1
- package/lib/parquet/writers.ts +3 -2
- package/lib/pl/adapters/emuia/adapter.ts +12 -12
- package/lib/pl/tools/fetch/emuia.ts +10 -9
- package/lib/recipes/bare/postcode.ts +1 -1
- package/lib/recipes/boundary-stress.ts +1 -1
- package/lib/recipes/house-venue.ts +7 -3
- package/lib/recipes/intersection.ts +2 -2
- package/lib/recipes/po/box/cedex/recipe.ts +3 -3
- package/lib/recipes/po/box/cedex/sources.ts +13 -1
- package/lib/recipes/scaffold.ts +31 -21
- package/lib/recipes/sources.ts +16 -3
- package/lib/recipes/street/bare.ts +2 -2
- package/lib/recipes/street.ts +3 -1
- package/lib/recipes/sub/venue/context.ts +2 -0
- package/lib/recipes/sub/venue/render.ts +1 -1
- package/lib/recipes/sub/venue/sources.ts +24 -29
- package/lib/recipes/sub/venue.ts +12 -18
- package/lib/recipes/trailing-region.ts +6 -2
- package/lib/recipes/unit.ts +3 -3
- package/lib/recipes/venue.ts +347 -0
- package/lib/recipes.ts +4 -2
- package/lib/registers.ts +8 -6
- package/lib/ro/adapters/retea-scolara/adapter.ts +5 -5
- package/lib/ro/tools/fetch/retea-scolara.ts +1 -1
- package/lib/runner.ts +4 -3
- package/lib/sg/recipes/register.ts +1 -1
- package/lib/sg/tools/fetch/acra.ts +3 -3
- package/lib/sk/adapters/inspire/adapter.ts +25 -27
- package/lib/sk/tools/fetch/inspire.ts +15 -14
- package/lib/source-register/effective-manifest.ts +3 -3
- package/lib/source-register/register.ts +3 -3
- package/lib/source-register/training-manifest.ts +1 -1
- package/lib/source-register/types.ts +12 -13
- package/lib/subvenue/promotions.ts +1 -1
- package/lib/subvenue/table.ts +4 -4
- package/lib/surfaces/locale.ts +2 -0
- package/lib/synthesizers/anchor-absorption.ts +2 -1
- package/lib/synthesizers/boundary-stress.ts +20 -26
- package/lib/synthesizers/house-venue.ts +26 -30
- package/lib/synthesizers/no-street.ts +2 -1
- package/lib/synthesizers/po-box.ts +6 -3
- package/lib/synthesizers/tail.ts +55 -0
- package/lib/synthesizers/utils.ts +19 -2
- package/lib/test-kit.ts +2 -2
- package/lib/tools/audit.ts +7 -5
- package/lib/tools/corpus-stats.ts +1 -1
- package/lib/tools/fetch/atom.ts +10 -10
- package/lib/tools/fetch/cordis.ts +11 -9
- package/lib/tools/fetch/download/manifest.ts +2 -1
- package/lib/tools/fetch/download/network.ts +4 -4
- package/lib/tools/fetch/download/retry.ts +4 -4
- package/lib/tools/fetch/geonames/dump.ts +5 -3
- package/lib/tools/fetch/geonames/postal.ts +2 -2
- package/lib/tools/fetch/gleif.ts +6 -4
- package/lib/tools/fetch/header.ts +8 -6
- package/lib/tools/fetch/inspire-addresses.ts +41 -36
- package/lib/tools/fetch/openaddresses.ts +1 -1
- package/lib/tools/fetch/vlaanderen-ad.ts +17 -17
- package/lib/tools/fetch/wfs-harvest.ts +39 -28
- package/lib/tools/fetch.ts +0 -42
- package/lib/tools/golden/expand.ts +8 -8
- package/lib/tools/golden/promote.ts +12 -8
- package/lib/tools/golden/relabel-street/directory.ts +7 -6
- package/lib/tools/golden/relabel-street/row.ts +7 -6
- package/lib/tools/ingest-csv.ts +3 -3
- package/lib/tools/jsonl-to-parquet.ts +1 -1
- package/lib/tools/lint/recipe-output/vocab.ts +10 -5
- package/lib/tools/lint/recipe-output.ts +26 -8
- package/lib/tools/overlay/kryptonite.ts +4 -3
- package/lib/tools/overlay/manifest.ts +4 -2
- package/lib/tools/overlay/merge-source.ts +2 -1
- package/lib/tools/overlay/split-slice.ts +2 -2
- package/lib/tools/overlay/translit.ts +6 -4
- package/lib/tools/overture-subvenue.ts +1 -1
- package/lib/tools/postcode-triples.ts +5 -4
- package/lib/tools/source-register/build.ts +17 -14
- package/lib/tools/sub/venue/lexicon.ts +4 -8
- package/lib/tw/tools/fetch/gcis.ts +4 -4
- package/lib/types.ts +4 -3
- package/lib/us/adapters/state/hi-schools/workbook.ts +1 -1
- package/lib/us/adapters/usgov/nad/adapter.ts +11 -11
- package/lib/us/adapters/usgov/samhsa-treatment-locator/adapter.ts +4 -4
- package/lib/us/fips-state.ts +2 -2
- package/lib/{synthesizers → us/synthesizers}/intersection.ts +12 -13
- package/lib/{synthesizers → us/synthesizers}/street.ts +16 -15
- package/lib/us/tools/fetch/imls-pls.ts +1 -1
- package/lib/us/tools/fetch/nad.ts +7 -7
- package/lib/us/tools/fetch/nppes.ts +5 -5
- package/lib/us/tools/fetch/state/hi-schools.ts +3 -2
- package/lib/us/tools/fetch/tiger-full.ts +1 -1
- package/lib/utils/align.ts +13 -10
- package/lib/utils/golden.ts +2 -2
- package/lib/utils/license.ts +3 -3
- package/lib/utils/split.ts +19 -15
- package/lib/utils/tokenize.ts +7 -26
- package/lib/utils/wof-json.ts +4 -4
- package/out/adapters/cordis/adapter.d.ts +5 -3
- package/out/adapters/cordis/adapter.d.ts.map +1 -1
- package/out/adapters/cordis/adapter.js +13 -7
- package/out/adapters/cordis/adapter.js.map +1 -1
- package/out/adapters/dedup-key.d.ts +1 -1
- package/out/adapters/dedup-key.js +1 -1
- package/out/adapters/geonames/adapter.js +1 -1
- package/out/adapters/geonames/adapter.js.map +1 -1
- package/out/adapters/gleif/adapter.d.ts +9 -9
- package/out/adapters/gleif/adapter.d.ts.map +1 -1
- package/out/adapters/gleif/adapter.js +15 -14
- package/out/adapters/gleif/adapter.js.map +1 -1
- package/out/adapters/libpostal-dictionary.d.ts +0 -2
- package/out/adapters/libpostal-dictionary.d.ts.map +1 -1
- package/out/adapters/libpostal-dictionary.js +0 -2
- package/out/adapters/libpostal-dictionary.js.map +1 -1
- package/out/adapters/openaddresses/adapter.d.ts +3 -2
- package/out/adapters/openaddresses/adapter.d.ts.map +1 -1
- package/out/adapters/openaddresses/adapter.js +1 -1
- package/out/adapters/openaddresses/adapter.js.map +1 -1
- package/out/adapters/osm/adapter.d.ts +17 -16
- package/out/adapters/osm/adapter.d.ts.map +1 -1
- package/out/adapters/osm/adapter.js +10 -9
- package/out/adapters/osm/adapter.js.map +1 -1
- package/out/adapters/po-box/adapter.d.ts +6 -3
- package/out/adapters/po-box/adapter.d.ts.map +1 -1
- package/out/adapters/po-box/adapter.js +4 -2
- package/out/adapters/po-box/adapter.js.map +1 -1
- package/out/adapters/registry.d.ts +3 -3
- package/out/adapters/registry.d.ts.map +1 -1
- package/out/adapters/registry.js +1 -1
- package/out/adapters/registry.js.map +1 -1
- package/out/adapters/source-id.d.ts +2 -2
- package/out/adapters/source-id.js +2 -2
- package/out/adapters/street-line.d.ts +7 -6
- package/out/adapters/street-line.d.ts.map +1 -1
- package/out/adapters/street-line.js +7 -6
- package/out/adapters/street-line.js.map +1 -1
- package/out/adapters/wof/admin/json/adapter.js +1 -1
- package/out/adapters/wof/admin/json/adapter.js.map +1 -1
- package/out/adapters/wof/json-rows.d.ts +2 -1
- package/out/adapters/wof/json-rows.d.ts.map +1 -1
- package/out/adapters/wof/json-rows.js.map +1 -1
- package/out/adapters/wof/postalcode-json/adapter.d.ts.map +1 -1
- package/out/adapters/wof/postalcode-json/adapter.js +5 -1
- package/out/adapters/wof/postalcode-json/adapter.js.map +1 -1
- package/out/adapters.d.ts +5 -5
- package/out/adapters.js +5 -5
- package/out/au/adapters/gnaf/adapter.js +1 -1
- package/out/au/adapters/gnaf/adapter.js.map +1 -1
- package/out/be/adapters/brussels/adapter.d.ts +9 -9
- package/out/be/adapters/brussels/adapter.d.ts.map +1 -1
- package/out/be/adapters/brussels/adapter.js +21 -21
- package/out/be/adapters/brussels/adapter.js.map +1 -1
- package/out/be/adapters/vlaanderen/adapter.d.ts +34 -37
- package/out/be/adapters/vlaanderen/adapter.d.ts.map +1 -1
- package/out/be/adapters/vlaanderen/adapter.js +40 -38
- package/out/be/adapters/vlaanderen/adapter.js.map +1 -1
- package/out/be/adapters/wallonie/adapter.d.ts +2 -2
- package/out/be/adapters/wallonie/adapter.js +17 -17
- package/out/be/adapters/wallonie/adapter.js.map +1 -1
- package/out/be/tools/fetch/brussels.d.ts +11 -8
- package/out/be/tools/fetch/brussels.d.ts.map +1 -1
- package/out/be/tools/fetch/brussels.js +10 -8
- package/out/be/tools/fetch/brussels.js.map +1 -1
- package/out/be/tools/fetch/wallonie.d.ts +6 -5
- package/out/be/tools/fetch/wallonie.d.ts.map +1 -1
- package/out/be/tools/fetch/wallonie.js +4 -4
- package/out/be/tools/fetch/wallonie.js.map +1 -1
- package/out/build/adapters.d.ts.map +1 -1
- package/out/build/adapters.js +2 -1
- package/out/build/adapters.js.map +1 -1
- package/out/build/align.d.ts +3 -2
- package/out/build/align.d.ts.map +1 -1
- package/out/build/align.js +2 -2
- package/out/build/align.js.map +1 -1
- package/out/build/checkpoint.d.ts +1 -1
- package/out/build/checkpoint.d.ts.map +1 -1
- package/out/build/checkpoint.js +4 -2
- package/out/build/checkpoint.js.map +1 -1
- package/out/build/eligibility.d.ts +2 -2
- package/out/build/eligibility.js +3 -3
- package/out/build/eligibility.js.map +1 -1
- package/out/build/types.d.ts +8 -6
- package/out/build/types.d.ts.map +1 -1
- package/out/cz/adapters/cuzk/adapter.d.ts +14 -14
- package/out/cz/adapters/cuzk/adapter.d.ts.map +1 -1
- package/out/cz/adapters/cuzk/adapter.js +38 -35
- package/out/cz/adapters/cuzk/adapter.js.map +1 -1
- package/out/cz/tools/fetch/cuzk.d.ts +31 -22
- package/out/cz/tools/fetch/cuzk.d.ts.map +1 -1
- package/out/cz/tools/fetch/cuzk.js +21 -19
- package/out/cz/tools/fetch/cuzk.js.map +1 -1
- package/out/de/recipes/locale.js +1 -1
- package/out/de/recipes/locale.js.map +1 -1
- package/out/dk/adapters/inspire/adapter.d.ts +32 -33
- package/out/dk/adapters/inspire/adapter.d.ts.map +1 -1
- package/out/dk/adapters/inspire/adapter.js +38 -38
- package/out/dk/adapters/inspire/adapter.js.map +1 -1
- package/out/dk/tools/fetch/inspire.d.ts +6 -5
- package/out/dk/tools/fetch/inspire.d.ts.map +1 -1
- package/out/dk/tools/fetch/inspire.js +15 -13
- package/out/dk/tools/fetch/inspire.js.map +1 -1
- package/out/ee/adapters/ads/adapter.d.ts +19 -26
- package/out/ee/adapters/ads/adapter.d.ts.map +1 -1
- package/out/ee/adapters/ads/adapter.js +22 -28
- package/out/ee/adapters/ads/adapter.js.map +1 -1
- package/out/ee/tools/fetch/ads.d.ts +3 -3
- package/out/ee/tools/fetch/ads.d.ts.map +1 -1
- package/out/ee/tools/fetch/ads.js +10 -8
- package/out/ee/tools/fetch/ads.js.map +1 -1
- package/out/es/adapters/bizkaia/adapter.d.ts +28 -28
- package/out/es/adapters/bizkaia/adapter.d.ts.map +1 -1
- package/out/es/adapters/bizkaia/adapter.js +43 -43
- package/out/es/adapters/bizkaia/adapter.js.map +1 -1
- package/out/es/adapters/catastro/adapter.d.ts +22 -23
- package/out/es/adapters/catastro/adapter.d.ts.map +1 -1
- package/out/es/adapters/catastro/adapter.js +35 -33
- package/out/es/adapters/catastro/adapter.js.map +1 -1
- package/out/es/adapters/gipuzkoa/adapter.d.ts +31 -38
- package/out/es/adapters/gipuzkoa/adapter.d.ts.map +1 -1
- package/out/es/adapters/gipuzkoa/adapter.js +40 -47
- package/out/es/adapters/gipuzkoa/adapter.js.map +1 -1
- package/out/es/adapters/navarra/adapter.d.ts +20 -19
- package/out/es/adapters/navarra/adapter.d.ts.map +1 -1
- package/out/es/adapters/navarra/adapter.js +23 -22
- package/out/es/adapters/navarra/adapter.js.map +1 -1
- package/out/es/cadastre.d.ts +21 -20
- package/out/es/cadastre.d.ts.map +1 -1
- package/out/es/cadastre.js +19 -21
- package/out/es/cadastre.js.map +1 -1
- package/out/es/tools/fetch/bizkaia.d.ts +28 -25
- package/out/es/tools/fetch/bizkaia.d.ts.map +1 -1
- package/out/es/tools/fetch/bizkaia.js +25 -24
- package/out/es/tools/fetch/bizkaia.js.map +1 -1
- package/out/es/tools/fetch/catastro.d.ts +28 -20
- package/out/es/tools/fetch/catastro.d.ts.map +1 -1
- package/out/es/tools/fetch/catastro.js +36 -31
- package/out/es/tools/fetch/catastro.js.map +1 -1
- package/out/es/tools/fetch/gipuzkoa.d.ts +11 -9
- package/out/es/tools/fetch/gipuzkoa.d.ts.map +1 -1
- package/out/es/tools/fetch/gipuzkoa.js +9 -8
- package/out/es/tools/fetch/gipuzkoa.js.map +1 -1
- package/out/es/tools/fetch/navarra.d.ts +20 -15
- package/out/es/tools/fetch/navarra.d.ts.map +1 -1
- package/out/es/tools/fetch/navarra.js +21 -16
- package/out/es/tools/fetch/navarra.js.map +1 -1
- package/out/fi/adapters/ryhti/adapter.d.ts +16 -20
- package/out/fi/adapters/ryhti/adapter.d.ts.map +1 -1
- package/out/fi/adapters/ryhti/adapter.js +21 -25
- package/out/fi/adapters/ryhti/adapter.js.map +1 -1
- package/out/fi/tools/fetch/ryhti.d.ts +24 -24
- package/out/fi/tools/fetch/ryhti.d.ts.map +1 -1
- package/out/fi/tools/fetch/ryhti.js +21 -24
- package/out/fi/tools/fetch/ryhti.js.map +1 -1
- package/out/fr/adapters/annuaire-education/adapter.d.ts +8 -8
- package/out/fr/adapters/annuaire-education/adapter.d.ts.map +1 -1
- package/out/fr/adapters/annuaire-education/adapter.js +13 -11
- package/out/fr/adapters/annuaire-education/adapter.js.map +1 -1
- package/out/fr/adapters/ban/adapter.d.ts +4 -4
- package/out/fr/adapters/ban/adapter.js +6 -6
- package/out/fr/adapters/ban/adapter.js.map +1 -1
- package/out/fr/adapters/finess/adapter.d.ts +12 -11
- package/out/fr/adapters/finess/adapter.d.ts.map +1 -1
- package/out/fr/adapters/finess/adapter.js +16 -15
- package/out/fr/adapters/finess/adapter.js.map +1 -1
- package/out/fr/adapters/finess/voie-type.d.ts +2 -2
- package/out/fr/adapters/finess/voie-type.d.ts.map +1 -1
- package/out/fr/adapters/finess/voie-type.js +4 -3
- package/out/fr/adapters/finess/voie-type.js.map +1 -1
- package/out/fr/insee-country.d.ts +2 -2
- package/out/fr/insee-country.js +2 -2
- package/out/fr/recipes/lieudit.d.ts.map +1 -1
- package/out/fr/recipes/lieudit.js +5 -4
- package/out/fr/recipes/lieudit.js.map +1 -1
- package/out/fr/tools/fetch/annuaire-education.d.ts +7 -4
- package/out/fr/tools/fetch/annuaire-education.d.ts.map +1 -1
- package/out/fr/tools/fetch/annuaire-education.js +9 -7
- package/out/fr/tools/fetch/annuaire-education.js.map +1 -1
- package/out/fr/tools/fetch/ban.d.ts +1 -1
- package/out/fr/tools/fetch/ban.d.ts.map +1 -1
- package/out/fr/tools/fetch/ban.js +3 -2
- package/out/fr/tools/fetch/ban.js.map +1 -1
- package/out/fr/tools/fetch/finess.d.ts +5 -5
- package/out/fr/tools/fetch/finess.d.ts.map +1 -1
- package/out/fr/tools/fetch/finess.js +13 -12
- package/out/fr/tools/fetch/finess.js.map +1 -1
- package/out/inspire/address.d.ts +62 -52
- package/out/inspire/address.d.ts.map +1 -1
- package/out/inspire/address.js +71 -60
- package/out/inspire/address.js.map +1 -1
- package/out/inspire/errors.d.ts +9 -8
- package/out/inspire/errors.d.ts.map +1 -1
- package/out/inspire/errors.js +7 -6
- package/out/inspire/errors.js.map +1 -1
- package/out/inspire/stream.d.ts +25 -22
- package/out/inspire/stream.d.ts.map +1 -1
- package/out/inspire/stream.js +10 -12
- package/out/inspire/stream.js.map +1 -1
- package/out/international/recipes/locale.d.ts +2 -2
- package/out/international/recipes/locale.d.ts.map +1 -1
- package/out/international/recipes/locale.js +11 -7
- package/out/international/recipes/locale.js.map +1 -1
- package/out/it/adapters/anac/adapter.d.ts +45 -43
- package/out/it/adapters/anac/adapter.d.ts.map +1 -1
- package/out/it/adapters/anac/adapter.js +48 -43
- package/out/it/adapters/anac/adapter.js.map +1 -1
- package/out/it/tools/fetch/anac.d.ts +16 -19
- package/out/it/tools/fetch/anac.d.ts.map +1 -1
- package/out/it/tools/fetch/anac.js +20 -23
- package/out/it/tools/fetch/anac.js.map +1 -1
- package/out/jp/adapters/wof-admin/adapter.d.ts.map +1 -1
- package/out/jp/adapters/wof-admin/adapter.js.map +1 -1
- package/out/jp/tools/fetch/houjin.js +2 -2
- package/out/jp/tools/fetch/houjin.js.map +1 -1
- package/out/kr/adapters/localdata/permit-rows.js +1 -1
- package/out/kr/adapters/localdata/permit-rows.js.map +1 -1
- package/out/kr/tools/fetch/juso.d.ts +1 -1
- package/out/kr/tools/fetch/localdata.d.ts +1 -1
- package/out/kr/tools/fetch/localdata.js +1 -1
- package/out/kr/tools/fetch/localdata.js.map +1 -1
- package/out/lu/adapters/bd-adresses/adapter.d.ts +9 -9
- package/out/lu/adapters/bd-adresses/adapter.js +10 -10
- package/out/lu/tools/fetch/bd-adresses.d.ts +11 -9
- package/out/lu/tools/fetch/bd-adresses.d.ts.map +1 -1
- package/out/lu/tools/fetch/bd-adresses.js +11 -11
- package/out/lu/tools/fetch/bd-adresses.js.map +1 -1
- package/out/lv/adapters/varis/adapter.d.ts +24 -23
- package/out/lv/adapters/varis/adapter.d.ts.map +1 -1
- package/out/lv/adapters/varis/adapter.js +24 -23
- package/out/lv/adapters/varis/adapter.js.map +1 -1
- package/out/lv/tools/fetch/varis.d.ts +2 -1
- package/out/lv/tools/fetch/varis.d.ts.map +1 -1
- package/out/lv/tools/fetch/varis.js +1 -1
- package/out/lv/tools/fetch/varis.js.map +1 -1
- package/out/nl/adapters/kadaster/adapter.d.ts +12 -12
- package/out/nl/adapters/kadaster/adapter.d.ts.map +1 -1
- package/out/nl/adapters/kadaster/adapter.js +22 -23
- package/out/nl/adapters/kadaster/adapter.js.map +1 -1
- package/out/nl/tools/fetch/kadaster.d.ts +14 -10
- package/out/nl/tools/fetch/kadaster.d.ts.map +1 -1
- package/out/nl/tools/fetch/kadaster.js +12 -9
- package/out/nl/tools/fetch/kadaster.js.map +1 -1
- package/out/no/adapters/matrikkelen/adapter.d.ts +1 -1
- package/out/no/adapters/matrikkelen/adapter.d.ts.map +1 -1
- package/out/no/adapters/matrikkelen/adapter.js +3 -3
- package/out/no/adapters/matrikkelen/adapter.js.map +1 -1
- package/out/no/tools/fetch/matrikkelen.d.ts +50 -38
- package/out/no/tools/fetch/matrikkelen.d.ts.map +1 -1
- package/out/no/tools/fetch/matrikkelen.js +44 -36
- package/out/no/tools/fetch/matrikkelen.js.map +1 -1
- package/out/parquet/duckdb.d.ts +7 -4
- package/out/parquet/duckdb.d.ts.map +1 -1
- package/out/parquet/duckdb.js +2 -1
- package/out/parquet/duckdb.js.map +1 -1
- package/out/parquet/readers.js +3 -3
- package/out/parquet/readers.js.map +1 -1
- package/out/parquet/schema.js +1 -1
- package/out/parquet/schema.js.map +1 -1
- package/out/parquet/writers.d.ts +1 -1
- package/out/parquet/writers.d.ts.map +1 -1
- package/out/parquet/writers.js +2 -1
- package/out/parquet/writers.js.map +1 -1
- package/out/pl/adapters/emuia/adapter.d.ts +8 -8
- package/out/pl/adapters/emuia/adapter.js +12 -12
- package/out/pl/adapters/emuia/adapter.js.map +1 -1
- package/out/pl/tools/fetch/emuia.d.ts +5 -4
- package/out/pl/tools/fetch/emuia.d.ts.map +1 -1
- package/out/pl/tools/fetch/emuia.js +10 -9
- package/out/pl/tools/fetch/emuia.js.map +1 -1
- package/out/recipes/bare/postcode.js +1 -1
- package/out/recipes/bare/postcode.js.map +1 -1
- package/out/recipes/boundary-stress.js +1 -1
- package/out/recipes/boundary-stress.js.map +1 -1
- package/out/recipes/house-venue.d.ts.map +1 -1
- package/out/recipes/house-venue.js +6 -3
- package/out/recipes/house-venue.js.map +1 -1
- package/out/recipes/intersection.js +2 -2
- package/out/recipes/intersection.js.map +1 -1
- package/out/recipes/po/box/cedex/recipe.js +2 -1
- package/out/recipes/po/box/cedex/recipe.js.map +1 -1
- package/out/recipes/po/box/cedex/sources.d.ts +8 -2
- package/out/recipes/po/box/cedex/sources.d.ts.map +1 -1
- package/out/recipes/po/box/cedex/sources.js +1 -1
- package/out/recipes/po/box/cedex/sources.js.map +1 -1
- package/out/recipes/scaffold.d.ts +28 -19
- package/out/recipes/scaffold.d.ts.map +1 -1
- package/out/recipes/scaffold.js +3 -2
- package/out/recipes/scaffold.js.map +1 -1
- package/out/recipes/sources.d.ts +1 -1
- package/out/recipes/sources.d.ts.map +1 -1
- package/out/recipes/sources.js +15 -2
- package/out/recipes/sources.js.map +1 -1
- package/out/recipes/street/bare.js +2 -2
- package/out/recipes/street/bare.js.map +1 -1
- package/out/recipes/street.d.ts.map +1 -1
- package/out/recipes/street.js +3 -1
- package/out/recipes/street.js.map +1 -1
- package/out/recipes/sub/venue/context.d.ts.map +1 -1
- package/out/recipes/sub/venue/context.js +2 -0
- package/out/recipes/sub/venue/context.js.map +1 -1
- package/out/recipes/sub/venue/render.js +1 -1
- package/out/recipes/sub/venue/render.js.map +1 -1
- package/out/recipes/sub/venue/sources.d.ts +6 -3
- package/out/recipes/sub/venue/sources.d.ts.map +1 -1
- package/out/recipes/sub/venue/sources.js +16 -20
- package/out/recipes/sub/venue/sources.js.map +1 -1
- package/out/recipes/sub/venue.d.ts +2 -5
- package/out/recipes/sub/venue.d.ts.map +1 -1
- package/out/recipes/sub/venue.js +10 -14
- package/out/recipes/sub/venue.js.map +1 -1
- package/out/recipes/trailing-region.d.ts.map +1 -1
- package/out/recipes/trailing-region.js +6 -1
- package/out/recipes/trailing-region.js.map +1 -1
- package/out/recipes/unit.js +2 -2
- package/out/recipes/unit.js.map +1 -1
- package/out/recipes/venue.d.ts +119 -0
- package/out/recipes/venue.d.ts.map +1 -0
- package/out/recipes/venue.js +245 -0
- package/out/recipes/venue.js.map +1 -0
- package/out/recipes.d.ts +1 -1
- package/out/recipes.d.ts.map +1 -1
- package/out/recipes.js +3 -1
- package/out/recipes.js.map +1 -1
- package/out/registers.d.ts +8 -6
- package/out/registers.d.ts.map +1 -1
- package/out/registers.js +8 -6
- package/out/registers.js.map +1 -1
- package/out/ro/adapters/retea-scolara/adapter.d.ts +5 -5
- package/out/ro/adapters/retea-scolara/adapter.js +5 -5
- package/out/ro/tools/fetch/retea-scolara.js +1 -1
- package/out/ro/tools/fetch/retea-scolara.js.map +1 -1
- package/out/runner.d.ts +3 -2
- package/out/runner.d.ts.map +1 -1
- package/out/runner.js +1 -1
- package/out/runner.js.map +1 -1
- package/out/sg/recipes/register.js +1 -1
- package/out/sg/recipes/register.js.map +1 -1
- package/out/sg/tools/fetch/acra.js +2 -2
- package/out/sg/tools/fetch/acra.js.map +1 -1
- package/out/sk/adapters/inspire/adapter.d.ts +5 -5
- package/out/sk/adapters/inspire/adapter.d.ts.map +1 -1
- package/out/sk/adapters/inspire/adapter.js +18 -18
- package/out/sk/adapters/inspire/adapter.js.map +1 -1
- package/out/sk/tools/fetch/inspire.d.ts +11 -10
- package/out/sk/tools/fetch/inspire.d.ts.map +1 -1
- package/out/sk/tools/fetch/inspire.js +15 -14
- package/out/sk/tools/fetch/inspire.js.map +1 -1
- package/out/source-register/effective-manifest.js +3 -3
- package/out/source-register/effective-manifest.js.map +1 -1
- package/out/source-register/register.d.ts +2 -2
- package/out/source-register/register.d.ts.map +1 -1
- package/out/source-register/register.js +2 -2
- package/out/source-register/register.js.map +1 -1
- package/out/source-register/training-manifest.d.ts +1 -1
- package/out/source-register/types.d.ts +12 -13
- package/out/source-register/types.d.ts.map +1 -1
- package/out/source-register/types.js +2 -2
- package/out/source-register/types.js.map +1 -1
- package/out/subvenue/promotions.d.ts +1 -1
- package/out/subvenue/promotions.js +1 -1
- package/out/subvenue/table.d.ts +4 -4
- package/out/subvenue/table.js +3 -3
- package/out/surfaces/locale.d.ts.map +1 -1
- package/out/surfaces/locale.js +2 -0
- package/out/surfaces/locale.js.map +1 -1
- package/out/synthesizers/anchor-absorption.d.ts +2 -1
- package/out/synthesizers/anchor-absorption.d.ts.map +1 -1
- package/out/synthesizers/anchor-absorption.js.map +1 -1
- package/out/synthesizers/boundary-stress.d.ts +1 -1
- package/out/synthesizers/boundary-stress.d.ts.map +1 -1
- package/out/synthesizers/boundary-stress.js +20 -23
- package/out/synthesizers/boundary-stress.js.map +1 -1
- package/out/synthesizers/house-venue.d.ts +3 -2
- package/out/synthesizers/house-venue.d.ts.map +1 -1
- package/out/synthesizers/house-venue.js +24 -26
- package/out/synthesizers/house-venue.js.map +1 -1
- package/out/synthesizers/no-street.d.ts.map +1 -1
- package/out/synthesizers/no-street.js.map +1 -1
- package/out/synthesizers/po-box.d.ts +4 -2
- package/out/synthesizers/po-box.d.ts.map +1 -1
- package/out/synthesizers/po-box.js.map +1 -1
- package/out/synthesizers/tail.d.ts +36 -0
- package/out/synthesizers/tail.d.ts.map +1 -0
- package/out/synthesizers/tail.js +32 -0
- package/out/synthesizers/tail.js.map +1 -0
- package/out/synthesizers/utils.d.ts +2 -1
- package/out/synthesizers/utils.d.ts.map +1 -1
- package/out/synthesizers/utils.js +17 -1
- package/out/synthesizers/utils.js.map +1 -1
- package/out/test-kit.js +2 -2
- package/out/test-kit.js.map +1 -1
- package/out/tools/audit.d.ts +2 -1
- package/out/tools/audit.d.ts.map +1 -1
- package/out/tools/audit.js +4 -3
- package/out/tools/audit.js.map +1 -1
- package/out/tools/corpus-stats.js +1 -1
- package/out/tools/corpus-stats.js.map +1 -1
- package/out/tools/fetch/atom.d.ts +8 -8
- package/out/tools/fetch/atom.d.ts.map +1 -1
- package/out/tools/fetch/atom.js +7 -8
- package/out/tools/fetch/atom.js.map +1 -1
- package/out/tools/fetch/cordis.d.ts +4 -3
- package/out/tools/fetch/cordis.d.ts.map +1 -1
- package/out/tools/fetch/cordis.js +9 -7
- package/out/tools/fetch/cordis.js.map +1 -1
- package/out/tools/fetch/download/manifest.d.ts.map +1 -1
- package/out/tools/fetch/download/manifest.js +2 -1
- package/out/tools/fetch/download/manifest.js.map +1 -1
- package/out/tools/fetch/download/network.d.ts +4 -4
- package/out/tools/fetch/download/retry.js +4 -4
- package/out/tools/fetch/download/retry.js.map +1 -1
- package/out/tools/fetch/geonames/dump.d.ts +3 -2
- package/out/tools/fetch/geonames/dump.d.ts.map +1 -1
- package/out/tools/fetch/geonames/dump.js +2 -1
- package/out/tools/fetch/geonames/dump.js.map +1 -1
- package/out/tools/fetch/geonames/postal.d.ts +2 -2
- package/out/tools/fetch/gleif.d.ts +3 -2
- package/out/tools/fetch/gleif.d.ts.map +1 -1
- package/out/tools/fetch/gleif.js +6 -4
- package/out/tools/fetch/gleif.js.map +1 -1
- package/out/tools/fetch/header.d.ts +7 -5
- package/out/tools/fetch/header.d.ts.map +1 -1
- package/out/tools/fetch/header.js +8 -6
- package/out/tools/fetch/header.js.map +1 -1
- package/out/tools/fetch/inspire-addresses.d.ts +32 -27
- package/out/tools/fetch/inspire-addresses.d.ts.map +1 -1
- package/out/tools/fetch/inspire-addresses.js +25 -24
- package/out/tools/fetch/inspire-addresses.js.map +1 -1
- package/out/tools/fetch/openaddresses.js +1 -1
- package/out/tools/fetch/openaddresses.js.map +1 -1
- package/out/tools/fetch/vlaanderen-ad.d.ts +5 -5
- package/out/tools/fetch/vlaanderen-ad.d.ts.map +1 -1
- package/out/tools/fetch/vlaanderen-ad.js +16 -16
- package/out/tools/fetch/vlaanderen-ad.js.map +1 -1
- package/out/tools/fetch/wfs-harvest.d.ts +26 -16
- package/out/tools/fetch/wfs-harvest.d.ts.map +1 -1
- package/out/tools/fetch/wfs-harvest.js +21 -18
- package/out/tools/fetch/wfs-harvest.js.map +1 -1
- package/out/tools/fetch.d.ts +0 -41
- package/out/tools/fetch.d.ts.map +1 -1
- package/out/tools/fetch.js +0 -41
- package/out/tools/fetch.js.map +1 -1
- package/out/tools/golden/expand.d.ts +7 -7
- package/out/tools/golden/expand.js +1 -1
- package/out/tools/golden/expand.js.map +1 -1
- package/out/tools/golden/promote.d.ts +2 -2
- package/out/tools/golden/promote.d.ts.map +1 -1
- package/out/tools/golden/promote.js +9 -6
- package/out/tools/golden/promote.js.map +1 -1
- package/out/tools/golden/relabel-street/directory.d.ts +4 -4
- package/out/tools/golden/relabel-street/directory.d.ts.map +1 -1
- package/out/tools/golden/relabel-street/directory.js +3 -2
- package/out/tools/golden/relabel-street/directory.js.map +1 -1
- package/out/tools/golden/relabel-street/row.d.ts +4 -3
- package/out/tools/golden/relabel-street/row.d.ts.map +1 -1
- package/out/tools/golden/relabel-street/row.js +3 -3
- package/out/tools/golden/relabel-street/row.js.map +1 -1
- package/out/tools/ingest-csv.js +3 -3
- package/out/tools/ingest-csv.js.map +1 -1
- package/out/tools/jsonl-to-parquet.d.ts +1 -1
- package/out/tools/lint/recipe-output/vocab.d.ts +10 -5
- package/out/tools/lint/recipe-output/vocab.d.ts.map +1 -1
- package/out/tools/lint/recipe-output/vocab.js.map +1 -1
- package/out/tools/lint/recipe-output.d.ts +8 -8
- package/out/tools/lint/recipe-output.d.ts.map +1 -1
- package/out/tools/lint/recipe-output.js +17 -0
- package/out/tools/lint/recipe-output.js.map +1 -1
- package/out/tools/overlay/kryptonite.d.ts +2 -2
- package/out/tools/overlay/kryptonite.d.ts.map +1 -1
- package/out/tools/overlay/kryptonite.js +2 -1
- package/out/tools/overlay/kryptonite.js.map +1 -1
- package/out/tools/overlay/manifest.d.ts +2 -1
- package/out/tools/overlay/manifest.d.ts.map +1 -1
- package/out/tools/overlay/manifest.js +2 -1
- package/out/tools/overlay/manifest.js.map +1 -1
- package/out/tools/overlay/merge-source.d.ts +2 -1
- package/out/tools/overlay/merge-source.d.ts.map +1 -1
- package/out/tools/overlay/merge-source.js.map +1 -1
- package/out/tools/overlay/split-slice.d.ts +1 -1
- package/out/tools/overlay/split-slice.js +1 -1
- package/out/tools/overlay/split-slice.js.map +1 -1
- package/out/tools/overlay/translit.d.ts +4 -3
- package/out/tools/overlay/translit.d.ts.map +1 -1
- package/out/tools/overlay/translit.js +2 -1
- package/out/tools/overlay/translit.js.map +1 -1
- package/out/tools/overture-subvenue.d.ts +1 -1
- package/out/tools/overture-subvenue.d.ts.map +1 -1
- package/out/tools/postcode-triples.d.ts +1 -1
- package/out/tools/postcode-triples.d.ts.map +1 -1
- package/out/tools/postcode-triples.js +4 -3
- package/out/tools/postcode-triples.js.map +1 -1
- package/out/tools/source-register/build.d.ts +10 -8
- package/out/tools/source-register/build.d.ts.map +1 -1
- package/out/tools/source-register/build.js +10 -8
- package/out/tools/source-register/build.js.map +1 -1
- package/out/tools/sub/venue/lexicon.d.ts +2 -6
- package/out/tools/sub/venue/lexicon.d.ts.map +1 -1
- package/out/tools/sub/venue/lexicon.js +2 -6
- package/out/tools/sub/venue/lexicon.js.map +1 -1
- package/out/tw/tools/fetch/gcis.js +3 -3
- package/out/tw/tools/fetch/gcis.js.map +1 -1
- package/out/types.d.ts +4 -3
- package/out/types.d.ts.map +1 -1
- package/out/types.js.map +1 -1
- package/out/us/adapters/state/hi-schools/workbook.d.ts +1 -1
- package/out/us/adapters/state/hi-schools/workbook.d.ts.map +1 -1
- package/out/us/adapters/state/hi-schools/workbook.js.map +1 -1
- package/out/us/adapters/usgov/nad/adapter.js +6 -6
- package/out/us/adapters/usgov/nad/adapter.js.map +1 -1
- package/out/us/adapters/usgov/samhsa-treatment-locator/adapter.js +2 -2
- package/out/us/adapters/usgov/samhsa-treatment-locator/adapter.js.map +1 -1
- package/out/us/fips-state.d.ts +2 -2
- package/out/us/fips-state.d.ts.map +1 -1
- package/out/us/fips-state.js.map +1 -1
- package/out/us/synthesizers/intersection.d.ts.map +1 -0
- package/out/{synthesizers → us/synthesizers}/intersection.js +13 -9
- package/out/us/synthesizers/intersection.js.map +1 -0
- package/out/{synthesizers → us/synthesizers}/street.d.ts +3 -2
- package/out/us/synthesizers/street.d.ts.map +1 -0
- package/out/{synthesizers → us/synthesizers}/street.js +12 -12
- package/out/us/synthesizers/street.js.map +1 -0
- package/out/us/tools/fetch/imls-pls.js +1 -1
- package/out/us/tools/fetch/imls-pls.js.map +1 -1
- package/out/us/tools/fetch/nad.d.ts +6 -6
- package/out/us/tools/fetch/nad.js +1 -1
- package/out/us/tools/fetch/nad.js.map +1 -1
- package/out/us/tools/fetch/nppes.js +3 -3
- package/out/us/tools/fetch/nppes.js.map +1 -1
- package/out/us/tools/fetch/state/hi-schools.d.ts +2 -1
- package/out/us/tools/fetch/state/hi-schools.d.ts.map +1 -1
- package/out/us/tools/fetch/state/hi-schools.js +1 -1
- package/out/us/tools/fetch/state/hi-schools.js.map +1 -1
- package/out/us/tools/fetch/tiger-full.js +1 -1
- package/out/us/tools/fetch/tiger-full.js.map +1 -1
- package/out/utils/align.d.ts +5 -3
- package/out/utils/align.d.ts.map +1 -1
- package/out/utils/align.js +5 -5
- package/out/utils/align.js.map +1 -1
- package/out/utils/golden.js +2 -2
- package/out/utils/golden.js.map +1 -1
- package/out/utils/license.d.ts +3 -3
- package/out/utils/license.d.ts.map +1 -1
- package/out/utils/license.js.map +1 -1
- package/out/utils/split.d.ts +1 -1
- package/out/utils/split.d.ts.map +1 -1
- package/out/utils/split.js +18 -14
- package/out/utils/split.js.map +1 -1
- package/out/utils/tokenize.d.ts +3 -20
- package/out/utils/tokenize.d.ts.map +1 -1
- package/out/utils/tokenize.js.map +1 -1
- package/out/utils/wof-json.js +3 -3
- package/out/utils/wof-json.js.map +1 -1
- package/package.json +18 -27
- package/lib/tools.ts +0 -31
- package/out/synthesizers/intersection.d.ts.map +0 -1
- package/out/synthesizers/intersection.js.map +0 -1
- package/out/synthesizers/street.d.ts.map +0 -1
- package/out/synthesizers/street.js.map +0 -1
- package/out/tools.d.ts +0 -31
- package/out/tools.d.ts.map +0 -1
- package/out/tools.js +0 -31
- package/out/tools.js.map +0 -1
- /package/out/{synthesizers → us/synthesizers}/intersection.d.ts +0 -0
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*
|
|
6
|
+
* `venue` recipe. A real venue name written as the whole query, and the same name followed by a
|
|
7
|
+
* locality drawn from the country's admin tuples. The rows teach the model that
|
|
8
|
+
* `Manchester Art Gallery` is a venue rather than a locality and a region, which the venue-head
|
|
9
|
+
* prior in `@mailwoman/neural` also asserts, so the model and the prior agree.
|
|
10
|
+
*
|
|
11
|
+
* Venue names come from the Overture place-names Parquet file the venue-head table is built
|
|
12
|
+
* from, which holds `name`, `category` and `country` for every place at confidence 0.85 or
|
|
13
|
+
* higher. The file has no locality column, so the locality row joins a name to a tuple of the
|
|
14
|
+
* same country and asserts no fact about where the venue stands, so its surface is
|
|
15
|
+
* `SurfaceOrigin.Composed`. The bare row is the publisher's own string, so its surface is
|
|
16
|
+
* `SurfaceOrigin.Attested`.
|
|
17
|
+
*
|
|
18
|
+
* A bare row needs a name of two or more words. A one-word name such as `Blackwell` or `Roadside`
|
|
19
|
+
* is written as a bare query only beside a locality, because a lone unknown word is the shape of a
|
|
20
|
+
* bare locality and a row that labels it `venue` would teach against bare-locality recall.
|
|
21
|
+
*
|
|
22
|
+
* A name that equals a locality of the country's tuples, or whose written row is an input on a
|
|
23
|
+
* gauntlet board, is refused.
|
|
24
|
+
*/
|
|
25
|
+
import { dataRootPath } from "@mailwoman/core/data-root";
|
|
26
|
+
import { mulberry32 as makeMulberry32 } from "@mailwoman/core/utils";
|
|
27
|
+
import { venueHeadLexicon } from "@mailwoman/poi-taxonomy/venue-heads";
|
|
28
|
+
import { normalizeGauntletSurface, readGauntletInputs } from "#gauntlet-inputs";
|
|
29
|
+
import { escapeSQLString, openDuckDB } from "#parquet/duckdb";
|
|
30
|
+
import { alignAndWrite, readTuples, recipeSourceID, } from "#recipes/scaffold";
|
|
31
|
+
import { defaultRecipeSource } from "#recipes/sources";
|
|
32
|
+
import { SourceRegister } from "#registers";
|
|
33
|
+
import { countryToLocale } from "#synthesizers/utils";
|
|
34
|
+
import { SurfaceOrigin } from "#types";
|
|
35
|
+
/**
|
|
36
|
+
* The Overture release the venue-head table is built from, so the two read one name population.
|
|
37
|
+
*/
|
|
38
|
+
export const DEFAULT_VENUE_NAMES = dataRootPath("overture", "2026-09-23.1", "place-names", "names.parquet");
|
|
39
|
+
/**
|
|
40
|
+
* Venue names drawn per country when `--count` is absent.
|
|
41
|
+
*/
|
|
42
|
+
export const DEFAULT_NAMES_PER_COUNTRY = 20_000;
|
|
43
|
+
/**
|
|
44
|
+
* Share of locality rows that also carry the region when `--venue-region-fraction` is absent.
|
|
45
|
+
*/
|
|
46
|
+
export const DEFAULT_REGION_FRACTION = 0.5;
|
|
47
|
+
/**
|
|
48
|
+
* The two written shapes.
|
|
49
|
+
*/
|
|
50
|
+
export const VenueTemplate = {
|
|
51
|
+
/**
|
|
52
|
+
* The venue name as the whole query.
|
|
53
|
+
*/
|
|
54
|
+
Bare: "venue-bare",
|
|
55
|
+
/**
|
|
56
|
+
* The venue name, a comma, and a locality of the same country.
|
|
57
|
+
*/
|
|
58
|
+
Locality: "venue-locality",
|
|
59
|
+
};
|
|
60
|
+
const LICENSE = "CDLA-Permissive-2.0 — Overture Maps places names; the locality comes from CC-BY / public-domain admin tuples";
|
|
61
|
+
const BARE_PROVENANCE = {
|
|
62
|
+
register: SourceRegister.Overture,
|
|
63
|
+
surface: SurfaceOrigin.Attested,
|
|
64
|
+
// The names file has no record id column.
|
|
65
|
+
baseSourceID: null,
|
|
66
|
+
};
|
|
67
|
+
const LOCALITY_PROVENANCE = {
|
|
68
|
+
register: SourceRegister.Overture,
|
|
69
|
+
surface: SurfaceOrigin.Composed,
|
|
70
|
+
baseSourceID: null,
|
|
71
|
+
};
|
|
72
|
+
const SPACELESS_SCRIPT_RE = /^[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Thai}]+$/u;
|
|
73
|
+
/**
|
|
74
|
+
* Characters a spaceless-script name needs before it is written as a bare query.
|
|
75
|
+
*
|
|
76
|
+
* A two-character name such as `東京` is the length of a city name, and the head the table recognizes is
|
|
77
|
+
* the name's last character, so a name shorter than this is a head with one character of stem.
|
|
78
|
+
*/
|
|
79
|
+
export const MIN_SPACELESS_BARE_CHARACTERS = 3;
|
|
80
|
+
/**
|
|
81
|
+
* Whether a name may be written as the whole query.
|
|
82
|
+
*
|
|
83
|
+
* In a spaced script the name needs two or more words, and at least one word
|
|
84
|
+
* with a letter, so `24 7` and `A1` stay out.
|
|
85
|
+
* In a script written without spaces a name is one word, so it qualifies when it has three or more
|
|
86
|
+
* characters and ends in a venue head the table holds for the country, as `国立西洋美術館` ends in `館`.
|
|
87
|
+
*
|
|
88
|
+
* A spaceless name the table does not recognize is written beside a locality only.
|
|
89
|
+
*/
|
|
90
|
+
export function isBareVenueName(name, heads) {
|
|
91
|
+
const words = name.trim().split(/\s+/u);
|
|
92
|
+
if (words.length >= 2)
|
|
93
|
+
return words.some((word) => /\p{L}{2,}/u.test(word));
|
|
94
|
+
const word = words[0];
|
|
95
|
+
return (Boolean(heads) &&
|
|
96
|
+
[...word].length >= MIN_SPACELESS_BARE_CHARACTERS &&
|
|
97
|
+
SPACELESS_SCRIPT_RE.test(word) &&
|
|
98
|
+
heads.suffix(word) !== null);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* The comparison key for a name against the country's localities.
|
|
102
|
+
*/
|
|
103
|
+
export function venueNameKey(name) {
|
|
104
|
+
return name.normalize("NFC").trim().toLowerCase().replaceAll(/\s+/gu, " ");
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* The ISO 3166-1 alpha-2 code of a tuple's country.
|
|
108
|
+
*
|
|
109
|
+
* `corpus tuples` writes the code under `cc` and the display name under `country`.
|
|
110
|
+
* Older tuples files write the code under `country`.
|
|
111
|
+
* A tuple with neither form returns `null`.
|
|
112
|
+
*/
|
|
113
|
+
export function tupleCountryCode(tuple) {
|
|
114
|
+
for (const value of [tuple.cc, tuple.country]) {
|
|
115
|
+
if (typeof value === "string" && /^[A-Za-z]{2}$/u.test(value.trim()))
|
|
116
|
+
return value.trim().toUpperCase();
|
|
117
|
+
}
|
|
118
|
+
return null;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Groups the admin tuples by country and keeps those with a locality.
|
|
122
|
+
*/
|
|
123
|
+
export async function groupTuplesByCountry(input) {
|
|
124
|
+
const byCountry = new Map();
|
|
125
|
+
for await (const tuple of readTuples(input)) {
|
|
126
|
+
const country = tupleCountryCode(tuple);
|
|
127
|
+
if (!country || !tuple.locality)
|
|
128
|
+
continue;
|
|
129
|
+
let entry = byCountry.get(country);
|
|
130
|
+
if (!entry) {
|
|
131
|
+
entry = { tuples: [], localities: new Set() };
|
|
132
|
+
byCountry.set(country, entry);
|
|
133
|
+
}
|
|
134
|
+
entry.tuples.push(tuple);
|
|
135
|
+
entry.localities.add(venueNameKey(tuple.locality));
|
|
136
|
+
}
|
|
137
|
+
return byCountry;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Reads up to `limit` distinct names of one country from the Overture names file.
|
|
141
|
+
*
|
|
142
|
+
* The order is a hash of the name and the seed, so one seed draws one sample and a second seed another.
|
|
143
|
+
*/
|
|
144
|
+
export async function readVenueNames(db, venueNames, country, limit, seed) {
|
|
145
|
+
const result = await db.runAndReadAll(`SELECT DISTINCT name FROM read_parquet('${escapeSQLString(String(venueNames))}')
|
|
146
|
+
WHERE country = '${escapeSQLString(country)}' AND name IS NOT NULL AND length(trim(name)) >= 3
|
|
147
|
+
ORDER BY hash(name, ${Math.floor(seed)}) LIMIT ${Math.floor(limit)}`);
|
|
148
|
+
return result.getRows().map((row) => String(row[0]));
|
|
149
|
+
}
|
|
150
|
+
function emit(context, raw, components, country, template, idParts) {
|
|
151
|
+
if (context.boardInputs.has(normalizeGauntletSurface(raw))) {
|
|
152
|
+
context.stats.contaminated++;
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
const source = template === VenueTemplate.Bare ? context.source.bare : context.source.locality;
|
|
156
|
+
const ok = alignAndWrite(context.write, {
|
|
157
|
+
raw,
|
|
158
|
+
components,
|
|
159
|
+
country,
|
|
160
|
+
locale: countryToLocale(country),
|
|
161
|
+
source,
|
|
162
|
+
source_id: recipeSourceID(source, { ...idParts, template }),
|
|
163
|
+
corpus_version: "0.12.0",
|
|
164
|
+
license: LICENSE,
|
|
165
|
+
}, template, template === VenueTemplate.Bare ? BARE_PROVENANCE : LOCALITY_PROVENANCE);
|
|
166
|
+
if (ok) {
|
|
167
|
+
context.stats.emitted++;
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
context.stats.skipped++;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Recipe registered with the corpus builder.
|
|
175
|
+
*
|
|
176
|
+
* `--input` supplies locality, region and country tuples, and every country
|
|
177
|
+
* in it with venue names is covered.
|
|
178
|
+
* `--count` caps the names drawn per country.
|
|
179
|
+
* `--venue-names` points at the Overture names file.
|
|
180
|
+
*/
|
|
181
|
+
export const venueRecipe = {
|
|
182
|
+
name: "venue",
|
|
183
|
+
description: "A real venue name as the whole query, and the name beside a locality of its country",
|
|
184
|
+
mode: "tuples",
|
|
185
|
+
options: [
|
|
186
|
+
{ flag: "--venue-names <parquet>", description: `Overture place-names file (default ${DEFAULT_VENUE_NAMES})` },
|
|
187
|
+
{ flag: "--count <n>", description: `venue names per country (default ${DEFAULT_NAMES_PER_COUNTRY})` },
|
|
188
|
+
{
|
|
189
|
+
flag: "--venue-region-fraction <share>",
|
|
190
|
+
description: `locality rows that also carry the region (default ${DEFAULT_REGION_FRACTION})`,
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
async run(opts, write) {
|
|
194
|
+
if (!opts.input)
|
|
195
|
+
throw new Error("venue recipe requires --input <tuples.jsonl>");
|
|
196
|
+
const random = makeMulberry32(opts.seed);
|
|
197
|
+
const venueNames = opts.venueNames ?? DEFAULT_VENUE_NAMES;
|
|
198
|
+
const perCountry = opts.count ?? DEFAULT_NAMES_PER_COUNTRY;
|
|
199
|
+
const regionFraction = opts.venueRegionFraction ?? DEFAULT_REGION_FRACTION;
|
|
200
|
+
const byCountry = await groupTuplesByCountry(opts.input);
|
|
201
|
+
const boardInputs = await readGauntletInputs();
|
|
202
|
+
const context = {
|
|
203
|
+
write,
|
|
204
|
+
source: {
|
|
205
|
+
bare: opts.sourceName ? `${opts.sourceName}-bare` : defaultRecipeSource("synth-venue-bare"),
|
|
206
|
+
locality: opts.sourceName ? `${opts.sourceName}-locality` : defaultRecipeSource("synth-venue-locality"),
|
|
207
|
+
},
|
|
208
|
+
boardInputs,
|
|
209
|
+
random,
|
|
210
|
+
stats: { emitted: 0, skipped: 0, contaminated: 0 },
|
|
211
|
+
};
|
|
212
|
+
let read = 0;
|
|
213
|
+
using db = await openDuckDB({ threads: 4 });
|
|
214
|
+
for (const [country, { tuples, localities }] of byCountry) {
|
|
215
|
+
const names = await readVenueNames(db, venueNames, country, perCountry, opts.seed);
|
|
216
|
+
const heads = venueHeadLexicon(country);
|
|
217
|
+
for (const name of names) {
|
|
218
|
+
read++;
|
|
219
|
+
if (localities.has(venueNameKey(name))) {
|
|
220
|
+
context.stats.skipped++;
|
|
221
|
+
continue;
|
|
222
|
+
}
|
|
223
|
+
const tuple = tuples[Math.floor(random() * tuples.length)];
|
|
224
|
+
const locality = tuple.locality;
|
|
225
|
+
const withRegion = Boolean(tuple.region) && random() < regionFraction;
|
|
226
|
+
const components = { venue: name, locality };
|
|
227
|
+
let raw = `${name}, ${locality}`;
|
|
228
|
+
if (withRegion) {
|
|
229
|
+
components.region = tuple.region;
|
|
230
|
+
raw = `${raw}, ${tuple.region}`;
|
|
231
|
+
}
|
|
232
|
+
emit(context, raw, components, country, VenueTemplate.Locality, {
|
|
233
|
+
name,
|
|
234
|
+
locality,
|
|
235
|
+
region: withRegion ? tuple.region : undefined,
|
|
236
|
+
});
|
|
237
|
+
if (isBareVenueName(name, heads)) {
|
|
238
|
+
emit(context, name, { venue: name }, country, VenueTemplate.Bare, { name });
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
return { read, ...context.stats };
|
|
243
|
+
},
|
|
244
|
+
};
|
|
245
|
+
//# sourceMappingURL=venue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"venue.js","sourceRoot":"","sources":["../../lib/recipes/venue.ts"],"names":[],"mappings":"AAAA;;;;;;;;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AAI,CAAC,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,CAAC,QAAQ,EAAE;oBAC/D,IAAI;oBACJ,QAAQ;oBACR,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS;iBAC7C,CAAC,CAAA;gBAEF,IAAI,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;oBAClC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,aAAa,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAA;gBAC5E,CAAC;YACF,CAAC;QACF,CAAC;QAED,OAAO,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,EAAE,CAAA;IAClC,CAAC;CACD,CAAA"}
|
package/out/recipes.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare const RECIPES_BY_NAME: ReadonlyMap<string, CorpusRecipe>;
|
|
|
18
18
|
/**
|
|
19
19
|
* Look up a recipe by its `<recipe>` name.
|
|
20
20
|
*/
|
|
21
|
-
export declare function getRecipe(name: string): CorpusRecipe |
|
|
21
|
+
export declare function getRecipe(name: string): CorpusRecipe | null;
|
|
22
22
|
/**
|
|
23
23
|
* All recipes (for `--list` / help).
|
|
24
24
|
*/
|
package/out/recipes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../lib/recipes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAwBH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../lib/recipes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAwBH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAarD,cAAc,mBAAmB,CAAA;AA2CjC;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,MAAM,EAAE,YAAY,CAA4C,CAAA;AAE1G;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAE3D;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,SAAS,YAAY,EAAE,CAErD"}
|
package/out/recipes.js
CHANGED
|
@@ -37,6 +37,7 @@ import { streetBareRecipe } from "#recipes/street/bare";
|
|
|
37
37
|
import { subVenueRecipe } from "#recipes/sub/venue";
|
|
38
38
|
import { trailingRegionRecipe } from "#recipes/trailing-region";
|
|
39
39
|
import { unitRecipe } from "#recipes/unit";
|
|
40
|
+
import { venueRecipe } from "#recipes/venue";
|
|
40
41
|
import { sgRegisterRecipe } from "#sg/recipes/register";
|
|
41
42
|
import { siBareVillageRecipe } from "#si/recipes/bare-village";
|
|
42
43
|
import { bdRegisterRecipe, pkRegisterRecipe } from "#south-asia/recipes/register";
|
|
@@ -80,6 +81,7 @@ const RECIPES = [
|
|
|
80
81
|
boundaryStressRecipe,
|
|
81
82
|
anchorAbsorptionRecipe,
|
|
82
83
|
subVenueRecipe,
|
|
84
|
+
venueRecipe,
|
|
83
85
|
];
|
|
84
86
|
/**
|
|
85
87
|
* Recipe name → recipe.
|
|
@@ -89,7 +91,7 @@ export const RECIPES_BY_NAME = new Map(RECIPES.map((r) => [r.name, r]));
|
|
|
89
91
|
* Look up a recipe by its `<recipe>` name.
|
|
90
92
|
*/
|
|
91
93
|
export function getRecipe(name) {
|
|
92
|
-
return RECIPES_BY_NAME.get(name);
|
|
94
|
+
return RECIPES_BY_NAME.get(name) ?? null;
|
|
93
95
|
}
|
|
94
96
|
/**
|
|
95
97
|
* All recipes (for `--list` / help).
|
package/out/recipes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipes.js","sourceRoot":"","sources":["../lib/recipes.ts"],"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C,IAAY;IACrC,OAAO,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,CAAA;AACzC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,WAAW;IAC1B,OAAO,OAAO,CAAA;AACf,CAAC"}
|
package/out/registers.d.ts
CHANGED
|
@@ -60,8 +60,10 @@ export declare const SourceRegister: {
|
|
|
60
60
|
*/
|
|
61
61
|
readonly CuzkInspireAddresses: "cz-cuzk-inspire-addresses";
|
|
62
62
|
/**
|
|
63
|
-
* Suomen ympäristökeskus' Ryhti built-environment system
|
|
64
|
-
*
|
|
63
|
+
* Suomen ympäristökeskus' Ryhti built-environment system.
|
|
64
|
+
*
|
|
65
|
+
* Its building address data covers Åland's sixteen municipalities beside the
|
|
66
|
+
* Finnish mainland in one national file.
|
|
65
67
|
*
|
|
66
68
|
* The prefix is the publisher's own country, as `fr-ban`'s is.
|
|
67
69
|
*/
|
|
@@ -135,7 +137,7 @@ export declare const SourceRegister: {
|
|
|
135
137
|
* The INSPIRE Addresses theme of the Diputación Foral de Bizkaia.
|
|
136
138
|
*
|
|
137
139
|
* Coverage is the province of Bizkaia, as 112 municipality archives.
|
|
138
|
-
* The archives
|
|
140
|
+
* The archives hold addresses only, and the features they reference are served
|
|
139
141
|
* by the publisher's WFS rather than by the ATOM feed.
|
|
140
142
|
*/
|
|
141
143
|
readonly BizkaiaInspireAddresses: "es-bizkaia-inspire-ad";
|
|
@@ -148,8 +150,8 @@ export declare const SourceRegister: {
|
|
|
148
150
|
/**
|
|
149
151
|
* The INSPIRE Addresses theme of the Gobierno de Navarra.
|
|
150
152
|
*
|
|
151
|
-
* The province is split across 272 zipped GML partitions, each titled
|
|
152
|
-
*
|
|
153
|
+
* The province is split across 272 zipped GML partitions, each titled
|
|
154
|
+
* `Address Navarra` The title states no municipality.
|
|
153
155
|
*/
|
|
154
156
|
readonly NavarraInspireAddresses: "es-navarra-inspire-ad";
|
|
155
157
|
/**
|
|
@@ -165,7 +167,7 @@ export declare const SourceRegister: {
|
|
|
165
167
|
* of Public Contracts, reached through the Open Contracting Partnership's Data Registry.
|
|
166
168
|
*
|
|
167
169
|
* Every address in the release belongs to a contracting authority or a paying office,
|
|
168
|
-
* because the `supplier` role
|
|
170
|
+
* because the `supplier` role holds no address object.
|
|
169
171
|
*/
|
|
170
172
|
readonly ANACContracts: "it-anac-ocds-contracts";
|
|
171
173
|
/**
|
package/out/registers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registers.d.ts","sourceRoot":"","sources":["../lib/registers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc;IAC1B;;OAEG;aACH,aAAa,EAAE,eAAe;IAC9B;;OAEG;aACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;aACH,WAAW,EAAE,eAAe;IAC5B;;OAEG;aACH,aAAa,EAAE,eAAe;IAC9B;;OAEG;aACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;aACH,cAAc,EAAE,iBAAiB;IACjC;;OAEG;aACH,oBAAoB,EAAE,QAAQ;IAC9B;;;;;OAKG;aACH,kBAAkB,EAAE,wBAAwB;IAC5C;;;;OAIG;aACH,oBAAoB,EAAE,2BAA2B;IACjD
|
|
1
|
+
{"version":3,"file":"registers.d.ts","sourceRoot":"","sources":["../lib/registers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc;IAC1B;;OAEG;aACH,aAAa,EAAE,eAAe;IAC9B;;OAEG;aACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;aACH,WAAW,EAAE,eAAe;IAC5B;;OAEG;aACH,aAAa,EAAE,eAAe;IAC9B;;OAEG;aACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;aACH,cAAc,EAAE,iBAAiB;IACjC;;OAEG;aACH,oBAAoB,EAAE,QAAQ;IAC9B;;;;;OAKG;aACH,kBAAkB,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Ac;IACjC;;OAEG;aACH,mBAAmB,EAAE,aAAa;IAClC;;OAEG;aACH,qBAAqB,EAAE,YAAY;IACnC;;OAEG;aACH,sBAAsB,EAAE,6BAA6B;IACrD;;OAEG;aACH,aAAa,EAAE,mBAAmB;IAClC;;OAEG;aACH,eAAe,EAAE,gBAAgB;IACjC;;OAEG;aACH,aAAa,EAAE,gBAAgB;IAC/B;;OAEG;aACH,eAAe,EAAE,gCAAgC;IACjD;;OAEG;aACH,KAAK,EAAE,iBAAiB;IACxB;;;;OAIG;aACH,cAAc,EAAE,oBAAoB;IACpC;;;;OAIG;aACH,aAAa,EAAE,0BAA0B;CAChC,CAAA;AAEV;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAA"}
|
package/out/registers.js
CHANGED
|
@@ -60,8 +60,10 @@ export const SourceRegister = {
|
|
|
60
60
|
*/
|
|
61
61
|
CuzkInspireAddresses: "cz-cuzk-inspire-addresses",
|
|
62
62
|
/**
|
|
63
|
-
* Suomen ympäristökeskus' Ryhti built-environment system
|
|
64
|
-
*
|
|
63
|
+
* Suomen ympäristökeskus' Ryhti built-environment system.
|
|
64
|
+
*
|
|
65
|
+
* Its building address data covers Åland's sixteen municipalities beside the
|
|
66
|
+
* Finnish mainland in one national file.
|
|
65
67
|
*
|
|
66
68
|
* The prefix is the publisher's own country, as `fr-ban`'s is.
|
|
67
69
|
*/
|
|
@@ -135,7 +137,7 @@ export const SourceRegister = {
|
|
|
135
137
|
* The INSPIRE Addresses theme of the Diputación Foral de Bizkaia.
|
|
136
138
|
*
|
|
137
139
|
* Coverage is the province of Bizkaia, as 112 municipality archives.
|
|
138
|
-
* The archives
|
|
140
|
+
* The archives hold addresses only, and the features they reference are served
|
|
139
141
|
* by the publisher's WFS rather than by the ATOM feed.
|
|
140
142
|
*/
|
|
141
143
|
BizkaiaInspireAddresses: "es-bizkaia-inspire-ad",
|
|
@@ -148,8 +150,8 @@ export const SourceRegister = {
|
|
|
148
150
|
/**
|
|
149
151
|
* The INSPIRE Addresses theme of the Gobierno de Navarra.
|
|
150
152
|
*
|
|
151
|
-
* The province is split across 272 zipped GML partitions, each titled
|
|
152
|
-
*
|
|
153
|
+
* The province is split across 272 zipped GML partitions, each titled
|
|
154
|
+
* `Address Navarra` The title states no municipality.
|
|
153
155
|
*/
|
|
154
156
|
NavarraInspireAddresses: "es-navarra-inspire-ad",
|
|
155
157
|
/**
|
|
@@ -165,7 +167,7 @@ export const SourceRegister = {
|
|
|
165
167
|
* of Public Contracts, reached through the Open Contracting Partnership's Data Registry.
|
|
166
168
|
*
|
|
167
169
|
* Every address in the release belongs to a contracting authority or a paying office,
|
|
168
|
-
* because the `supplier` role
|
|
170
|
+
* because the `supplier` role holds no address object.
|
|
169
171
|
*/
|
|
170
172
|
ANACContracts: "it-anac-ocds-contracts",
|
|
171
173
|
/**
|
package/out/registers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registers.js","sourceRoot":"","sources":["../lib/registers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B;;OAEG;IACH,aAAa,EAAE,eAAe;IAC9B;;OAEG;IACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;IACH,WAAW,EAAE,eAAe;IAC5B;;OAEG;IACH,aAAa,EAAE,eAAe;IAC9B;;OAEG;IACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;IACH,cAAc,EAAE,iBAAiB;IACjC;;OAEG;IACH,oBAAoB,EAAE,QAAQ;IAC9B;;;;;OAKG;IACH,kBAAkB,EAAE,wBAAwB;IAC5C;;;;OAIG;IACH,oBAAoB,EAAE,2BAA2B;IACjD
|
|
1
|
+
{"version":3,"file":"registers.js","sourceRoot":"","sources":["../lib/registers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;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C5C;;;OAGG;IACH,KAAK,EAAE,UAAU;IACjB;;OAEG;IACH,eAAe,EAAE,uBAAuB;IACxC;;OAEG;IACH,qBAAqB,EAAE,yBAAyB;IAChD;;OAEG;IACH,IAAI,EAAE,SAAS;IACf;;OAEG;IACH,WAAW,EAAE,iBAAiB;IAC9B;;OAEG;IACH,uBAAuB,EAAE,YAAY;IACrC;;OAEG;IACH,gBAAgB,EAAE,YAAY;IAC9B;;OAEG;IACH,KAAK,EAAE,UAAU;IACjB;;OAEG;IACH,iBAAiB,EAAE,cAAc;IACjC;;OAEG;IACH,mBAAmB,EAAE,aAAa;IAClC;;OAEG;IACH,qBAAqB,EAAE,YAAY;IACnC;;OAEG;IACH,sBAAsB,EAAE,6BAA6B;IACrD;;OAEG;IACH,aAAa,EAAE,mBAAmB;IAClC;;OAEG;IACH,eAAe,EAAE,gBAAgB;IACjC;;OAEG;IACH,aAAa,EAAE,gBAAgB;IAC/B;;OAEG;IACH,eAAe,EAAE,gCAAgC;IACjD;;OAEG;IACH,KAAK,EAAE,iBAAiB;IACxB;;;;OAIG;IACH,cAAc,EAAE,oBAAoB;IACpC;;;;OAIG;IACH,aAAa,EAAE,0BAA0B;CAChC,CAAA"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* `ro-retea-scolara`: Romania's school network (`Rețea școlară`), the Ministry of Education's list of every
|
|
7
7
|
* education unit for a school year, read for each unit's postal address.
|
|
8
8
|
*
|
|
9
|
-
* Input is the publisher's own workbook, one sheet
|
|
9
|
+
* Input is the publisher's own workbook, one sheet titled `Export`, as data.gov.ro serves it for the
|
|
10
10
|
* dataset `69392a50-5750-4a54-90c1-d461de44da6d`. Three rows precede the header. The adapter finds the
|
|
11
11
|
* header by its `Strada` cell rather than by position, because the preamble is a generation timestamp
|
|
12
12
|
* whose length the publisher does not fix.
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* has none, on 601 and 180 units. Both are read as absent. A range such as `12-14` is a house number.
|
|
24
24
|
* - `Cod postal` holds a six-digit Romanian postcode on 17,484 units. A value of any other length is
|
|
25
25
|
* left out of the row rather than refusing the row, because the address is complete without it.
|
|
26
|
-
* - `Judet PJ` holds the county as a two-letter code. The row
|
|
26
|
+
* - `Judet PJ` holds the county as a two-letter code. The row holds no region, because libaddressinput's
|
|
27
27
|
* Romanian layout places the county between postcode and locality, and this reader has no source for
|
|
28
28
|
* the county name in the form an address prints it.
|
|
29
29
|
*
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
* ## Organizations only
|
|
33
33
|
*
|
|
34
34
|
* Every unit is a school, kindergarten, children's club, county inspectorate or similar public body, and
|
|
35
|
-
* the sheet
|
|
35
|
+
* the sheet holds no natural person's address. The venue is the institution's name.
|
|
36
36
|
*
|
|
37
37
|
* ## Identity and license
|
|
38
38
|
*
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
* data.gov.ro publishes the dataset under `CC-BY-4.0`, the license its CKAN record names for the
|
|
43
43
|
* publisher `Ministerul Educației`. CC BY 4.0 requires credit, a link to the license and a statement that
|
|
44
44
|
* changes were made, so every row records the license and {@linkcode RO_RETEA_SCOLARA_ATTRIBUTION} is the
|
|
45
|
-
* credit the model card
|
|
45
|
+
* credit the model card records.
|
|
46
46
|
*/
|
|
47
47
|
import type { PathBuilderLike } from "path-ts";
|
|
48
48
|
import { type XLSXCellValue } from "spliterator";
|
|
@@ -72,7 +72,7 @@ export declare const ReteaScolaraRefusal: {
|
|
|
72
72
|
*/
|
|
73
73
|
readonly LocalityAbsent: "row:locality-absent";
|
|
74
74
|
/**
|
|
75
|
-
* The unit states neither a street nor a house number, so the locality
|
|
75
|
+
* The unit states neither a street nor a house number, so the locality by itself would be a place name.
|
|
76
76
|
*/
|
|
77
77
|
readonly PremiseAbsent: "row:premise-absent";
|
|
78
78
|
/**
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* `ro-retea-scolara`: Romania's school network (`Rețea școlară`), the Ministry of Education's list of every
|
|
7
7
|
* education unit for a school year, read for each unit's postal address.
|
|
8
8
|
*
|
|
9
|
-
* Input is the publisher's own workbook, one sheet
|
|
9
|
+
* Input is the publisher's own workbook, one sheet titled `Export`, as data.gov.ro serves it for the
|
|
10
10
|
* dataset `69392a50-5750-4a54-90c1-d461de44da6d`. Three rows precede the header. The adapter finds the
|
|
11
11
|
* header by its `Strada` cell rather than by position, because the preamble is a generation timestamp
|
|
12
12
|
* whose length the publisher does not fix.
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* has none, on 601 and 180 units. Both are read as absent. A range such as `12-14` is a house number.
|
|
24
24
|
* - `Cod postal` holds a six-digit Romanian postcode on 17,484 units. A value of any other length is
|
|
25
25
|
* left out of the row rather than refusing the row, because the address is complete without it.
|
|
26
|
-
* - `Judet PJ` holds the county as a two-letter code. The row
|
|
26
|
+
* - `Judet PJ` holds the county as a two-letter code. The row holds no region, because libaddressinput's
|
|
27
27
|
* Romanian layout places the county between postcode and locality, and this reader has no source for
|
|
28
28
|
* the county name in the form an address prints it.
|
|
29
29
|
*
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
* ## Organizations only
|
|
33
33
|
*
|
|
34
34
|
* Every unit is a school, kindergarten, children's club, county inspectorate or similar public body, and
|
|
35
|
-
* the sheet
|
|
35
|
+
* the sheet holds no natural person's address. The venue is the institution's name.
|
|
36
36
|
*
|
|
37
37
|
* ## Identity and license
|
|
38
38
|
*
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
* data.gov.ro publishes the dataset under `CC-BY-4.0`, the license its CKAN record names for the
|
|
43
43
|
* publisher `Ministerul Educației`. CC BY 4.0 requires credit, a link to the license and a statement that
|
|
44
44
|
* changes were made, so every row records the license and {@linkcode RO_RETEA_SCOLARA_ATTRIBUTION} is the
|
|
45
|
-
* credit the model card
|
|
45
|
+
* credit the model card records.
|
|
46
46
|
*/
|
|
47
47
|
import { formatAddressRow } from "@mailwoman/codex/address/format";
|
|
48
48
|
import { XLSXSpliterator } from "spliterator";
|
|
@@ -75,7 +75,7 @@ export const ReteaScolaraRefusal = {
|
|
|
75
75
|
*/
|
|
76
76
|
LocalityAbsent: "row:locality-absent",
|
|
77
77
|
/**
|
|
78
|
-
* The unit states neither a street nor a house number, so the locality
|
|
78
|
+
* The unit states neither a street nor a house number, so the locality by itself would be a place name.
|
|
79
79
|
*/
|
|
80
80
|
PremiseAbsent: "row:premise-absent",
|
|
81
81
|
/**
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { APIClient } from "@mailwoman/core/api";
|
|
15
15
|
import { ByteFormatter } from "@mailwoman/core/fs/formatters";
|
|
16
|
-
import { tryStat } from "@mailwoman/core/fs/readers";
|
|
16
|
+
import { tryStat } from "@mailwoman/core/fs/readers/stat";
|
|
17
17
|
import { makeDirectories } from "@mailwoman/core/fs/writers";
|
|
18
18
|
import { sha256File } from "@mailwoman/core/hash";
|
|
19
19
|
import { PathBuilder } from "path-ts";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retea-scolara.js","sourceRoot":"","sources":["../../../../lib/ro/tools/fetch/retea-scolara.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"retea-scolara.js","sourceRoot":"","sources":["../../../../lib/ro/tools/fetch/retea-scolara.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM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A+B;IAE/B,YAAY,MAAM,GAAG,IAAI,SAAS,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;IAEtE,uFAAuF;IACvF,OAAO,MAAM,oBAAoB,CAAC,MAAM,EAAE;QACzC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;QAChC,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,MAAM;KACN,CAAC,CAAA;AACH,CAAC"}
|
package/out/runner.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export interface RunAdapterOptions {
|
|
|
75
75
|
/**
|
|
76
76
|
* Base-2 logarithm of the fingerprint table's slot count.
|
|
77
77
|
*
|
|
78
|
-
*
|
|
78
|
+
* @defaultValue {@linkcode DEFAULT_DEDUP_SLOTS_LOG2}
|
|
79
79
|
* A test sets it low to keep the allocation small.
|
|
80
80
|
*/
|
|
81
81
|
dedupSlotsLog2?: number;
|
|
@@ -104,8 +104,9 @@ export interface RunAdapterOptions {
|
|
|
104
104
|
/**
|
|
105
105
|
* Yielded-row interval at which `onProgress` fires.
|
|
106
106
|
*
|
|
107
|
-
* Defaults to 1000 rows per callback.
|
|
108
107
|
* The runner always emits a terminal update.
|
|
108
|
+
*
|
|
109
|
+
* @defaultValue `1000` rows per callback.
|
|
109
110
|
*/
|
|
110
111
|
progressEvery?: number;
|
|
111
112
|
}
|
package/out/runner.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../lib/runner.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAG9E,OAAO,EAAE,KAAK,eAAe,EAAsB,MAAM,SAAS,CAAA;A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runner.js
CHANGED
|
@@ -49,7 +49,7 @@ export const DedupStore = {
|
|
|
49
49
|
export async function runAdapter(opts) {
|
|
50
50
|
const { adapter, outputDir, corpusVersion } = opts;
|
|
51
51
|
// A caller that passes its own map reads the counts back from it.
|
|
52
|
-
// Otherwise the runner supplies one, so every manifest
|
|
52
|
+
// Otherwise the runner supplies one, so every manifest records the adapter's drop reasons.
|
|
53
53
|
const dropped = opts.adapterOptions.dropped ?? new Map();
|
|
54
54
|
const adapterOptions = { ...opts.adapterOptions, dropped };
|
|
55
55
|
const progressEvery = opts.progressEvery ?? 1000;
|
package/out/runner.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.js","sourceRoot":"","sources":["../lib/runner.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,eAAe,EAAoB,MAAM,4BAA4B,CAAA;AAC9E,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAwB,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD,OAAO,EAAE,eAAe,EAAwB,MAAM,yBAAyB,CAAA;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAqB9C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,EAAE,CAAA;AAE1C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,UAAU,CAAA;AAEhD;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACzB;;OAEG;IACH,gBAAgB,EAAE,mBAAmB;IAErC;;OAEG;IACH,SAAS,EAAE,YAAY;CACd,CAAA;
|
|
1
|
+
{"version":3,"file":"run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AAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,WAAW,OAAO,CAAC,EAAE,wCAAwC,GAAG,CAAC,SAAS,EAAE,CAAC,CAAA;IAC9F,CAAC;AACF,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,WAAW,CAAC,MAAmB;IAC9C,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACtC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAA;IACjE,CAAC,CAAC,CAAA;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,IAAI,CAAC,OAAoB,EAAE,KAAwB;IAClE,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACtC,MAAM,OAAO,GAAG,GAAS,EAAE;YAC1B,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;YAC7B,OAAO,EAAE,CAAA;QACV,CAAC,CAAA;QAED,MAAM,OAAO,GAAG,CAAC,GAAU,EAAQ,EAAE;YACpC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;YAC3B,MAAM,CAAC,GAAG,CAAC,CAAA;QACZ,CAAC,CAAA;QAED,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;QAC5B,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IAC/B,CAAC,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -91,7 +91,7 @@ export function renderSGRegister(row, random, register) {
|
|
|
91
91
|
const street = random() < P_ABBREVIATE ? abbreviateSGStreet(street0) : street0;
|
|
92
92
|
const drawn = random();
|
|
93
93
|
const building = isBuildingName(row.unit) ? titleCaseIfUpper(row.unit) : null;
|
|
94
|
-
const draw = register
|
|
94
|
+
const draw = register ? REGISTER_DRAW[register] : drawn;
|
|
95
95
|
let raw;
|
|
96
96
|
let rendered;
|
|
97
97
|
const components = { house_number: row.number, street, postcode: row.postcode };
|