@mailwoman/core 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 +1 -1
- package/api/responses.ts +12 -0
- package/coarse-placer/featurize.ts +0 -2
- package/coarse-placer/tools/build-dataset.ts +2 -2
- package/coarse-placer/tools/build-outlier-exposure.ts +2 -2
- package/coarse-placer/tools/build-outlier-latin.ts +14 -8
- package/coarse-placer/tools/build-outlier-oa.ts +12 -6
- package/coarse-placer/tools/eval-latin-offmap.ts +3 -4
- package/coarse-placer/tools/eval-openset.ts +3 -3
- package/coarse-placer/tools/eval-quant-compare.ts +3 -3
- package/coarse-placer/tools/eval.ts +3 -3
- package/coarse-placer/tools/fnv-hash.ts +1 -6
- package/coarse-placer/tools/index.ts +1 -1
- package/coarse-placer/tools/probe-frontier.ts +3 -4
- package/coarse-placer/tools/quantize.ts +3 -2
- package/coarse-placer/tools/train.ts +2 -2
- package/crypto/node.ts +3 -1
- package/data/internal/dictionaries/languages.csv +184 -184
- package/data/libpostal/README.md +8 -2
- package/db/schema.ts +12 -3
- package/decoder/build-tree.ts +19 -0
- package/decoder/containment.ts +5 -1
- package/decoder/index.ts +1 -0
- package/decoder/parse-diff.ts +347 -0
- package/decoder/proposals-to-tree.ts +1 -1
- package/decoder/serialize-json.ts +51 -7
- package/decoder/serialize-tuples.ts +7 -1
- package/decoder/serialize-xml.ts +1 -1
- package/decoder/tree-shape.ts +144 -0
- package/decoder/types.ts +8 -0
- package/decoder/validate-tree.ts +15 -3
- package/env/index.ts +3 -1
- package/env/paths.ts +21 -33
- package/env/schema.ts +35 -3
- package/fs/utils/formatters.ts +107 -0
- package/fs/utils/index.ts +7 -0
- package/fs/zip.ts +297 -0
- package/layers/manifest.ts +56 -15
- package/layers/schema.ts +54 -2
- package/locale/locale.ts +1 -1
- package/locale/registry.ts +1 -1
- package/objects.ts +20 -8
- package/out/api/responses.d.ts +9 -0
- package/out/api/responses.d.ts.map +1 -1
- package/out/api/responses.js +11 -0
- package/out/api/responses.js.map +1 -1
- package/out/coarse-placer/featurize.d.ts +0 -1
- package/out/coarse-placer/featurize.d.ts.map +1 -1
- package/out/coarse-placer/featurize.js.map +1 -1
- package/out/coarse-placer/tools/build-dataset.js +1 -2
- package/out/coarse-placer/tools/build-dataset.js.map +1 -1
- package/out/coarse-placer/tools/build-outlier-exposure.js +1 -2
- package/out/coarse-placer/tools/build-outlier-exposure.js.map +1 -1
- package/out/coarse-placer/tools/build-outlier-latin.d.ts.map +1 -1
- package/out/coarse-placer/tools/build-outlier-latin.js +12 -8
- package/out/coarse-placer/tools/build-outlier-latin.js.map +1 -1
- package/out/coarse-placer/tools/build-outlier-oa.d.ts.map +1 -1
- package/out/coarse-placer/tools/build-outlier-oa.js +10 -6
- package/out/coarse-placer/tools/build-outlier-oa.js.map +1 -1
- package/out/coarse-placer/tools/eval-latin-offmap.d.ts.map +1 -1
- package/out/coarse-placer/tools/eval-latin-offmap.js +2 -4
- package/out/coarse-placer/tools/eval-latin-offmap.js.map +1 -1
- package/out/coarse-placer/tools/eval-openset.js +2 -3
- package/out/coarse-placer/tools/eval-openset.js.map +1 -1
- package/out/coarse-placer/tools/eval-quant-compare.js +2 -3
- package/out/coarse-placer/tools/eval-quant-compare.js.map +1 -1
- package/out/coarse-placer/tools/eval.js +2 -3
- package/out/coarse-placer/tools/eval.js.map +1 -1
- package/out/coarse-placer/tools/fnv-hash.d.ts +1 -6
- package/out/coarse-placer/tools/fnv-hash.d.ts.map +1 -1
- package/out/coarse-placer/tools/fnv-hash.js +1 -6
- package/out/coarse-placer/tools/fnv-hash.js.map +1 -1
- package/out/coarse-placer/tools/index.d.ts +1 -1
- package/out/coarse-placer/tools/index.js +1 -1
- package/out/coarse-placer/tools/probe-frontier.d.ts.map +1 -1
- package/out/coarse-placer/tools/probe-frontier.js +2 -4
- package/out/coarse-placer/tools/probe-frontier.js.map +1 -1
- package/out/coarse-placer/tools/quantize.d.ts.map +1 -1
- package/out/coarse-placer/tools/quantize.js +2 -2
- package/out/coarse-placer/tools/quantize.js.map +1 -1
- package/out/coarse-placer/tools/train.js +1 -2
- package/out/coarse-placer/tools/train.js.map +1 -1
- package/out/crypto/node.d.ts.map +1 -1
- package/out/crypto/node.js +2 -1
- package/out/crypto/node.js.map +1 -1
- package/out/db/schema.d.ts +12 -3
- package/out/db/schema.d.ts.map +1 -1
- package/out/db/schema.js +6 -0
- package/out/db/schema.js.map +1 -1
- package/out/decoder/build-tree.d.ts.map +1 -1
- package/out/decoder/build-tree.js +17 -0
- package/out/decoder/build-tree.js.map +1 -1
- package/out/decoder/containment.d.ts.map +1 -1
- package/out/decoder/containment.js +5 -1
- package/out/decoder/containment.js.map +1 -1
- package/out/decoder/index.d.ts +1 -0
- package/out/decoder/index.d.ts.map +1 -1
- package/out/decoder/index.js +1 -0
- package/out/decoder/index.js.map +1 -1
- package/out/decoder/parse-diff.d.ts +125 -0
- package/out/decoder/parse-diff.d.ts.map +1 -0
- package/out/decoder/parse-diff.js +219 -0
- package/out/decoder/parse-diff.js.map +1 -0
- package/out/decoder/proposals-to-tree.js.map +1 -1
- package/out/decoder/serialize-json.d.ts +29 -0
- package/out/decoder/serialize-json.d.ts.map +1 -1
- package/out/decoder/serialize-json.js +20 -4
- package/out/decoder/serialize-json.js.map +1 -1
- package/out/decoder/serialize-tuples.d.ts +8 -1
- package/out/decoder/serialize-tuples.d.ts.map +1 -1
- package/out/decoder/serialize-tuples.js +7 -1
- package/out/decoder/serialize-tuples.js.map +1 -1
- package/out/decoder/serialize-xml.js +1 -1
- package/out/decoder/serialize-xml.js.map +1 -1
- package/out/decoder/tree-shape.d.ts +84 -0
- package/out/decoder/tree-shape.d.ts.map +1 -0
- package/out/decoder/tree-shape.js +98 -0
- package/out/decoder/tree-shape.js.map +1 -0
- package/out/decoder/types.d.ts +11 -0
- package/out/decoder/types.d.ts.map +1 -1
- package/out/decoder/validate-tree.d.ts +8 -0
- package/out/decoder/validate-tree.d.ts.map +1 -1
- package/out/decoder/validate-tree.js +4 -3
- package/out/decoder/validate-tree.js.map +1 -1
- package/out/env/index.d.ts +13 -1
- package/out/env/index.d.ts.map +1 -1
- package/out/env/index.js +2 -1
- package/out/env/index.js.map +1 -1
- package/out/env/paths.d.ts +15 -8
- package/out/env/paths.d.ts.map +1 -1
- package/out/env/paths.js +19 -29
- package/out/env/paths.js.map +1 -1
- package/out/env/schema.d.ts +12 -1
- package/out/env/schema.d.ts.map +1 -1
- package/out/env/schema.js +33 -3
- package/out/env/schema.js.map +1 -1
- package/out/fs/utils/formatters.d.ts +57 -0
- package/out/fs/utils/formatters.d.ts.map +1 -0
- package/out/fs/utils/formatters.js +79 -0
- package/out/fs/utils/formatters.js.map +1 -0
- package/out/fs/utils/index.d.ts +7 -0
- package/out/fs/utils/index.d.ts.map +1 -0
- package/out/fs/utils/index.js +7 -0
- package/out/fs/utils/index.js.map +1 -0
- package/out/fs/zip.d.ts +116 -0
- package/out/fs/zip.d.ts.map +1 -0
- package/out/fs/zip.js +216 -0
- package/out/fs/zip.js.map +1 -0
- package/out/layers/manifest.d.ts +32 -7
- package/out/layers/manifest.d.ts.map +1 -1
- package/out/layers/manifest.js +31 -6
- package/out/layers/manifest.js.map +1 -1
- package/out/layers/schema.d.ts +48 -2
- package/out/layers/schema.d.ts.map +1 -1
- package/out/layers/schema.js +32 -0
- package/out/layers/schema.js.map +1 -1
- package/out/locale/locale.d.ts +1 -1
- package/out/locale/locale.d.ts.map +1 -1
- package/out/locale/registry.js +1 -1
- package/out/locale/registry.js.map +1 -1
- package/out/objects.d.ts +12 -6
- package/out/objects.d.ts.map +1 -1
- package/out/objects.js +4 -1
- package/out/objects.js.map +1 -1
- package/out/pipeline/index.d.ts +3 -7
- package/out/pipeline/index.d.ts.map +1 -1
- package/out/pipeline/index.js +2 -4
- package/out/pipeline/index.js.map +1 -1
- package/out/pipeline/runtime-pipeline.d.ts +51 -9
- package/out/pipeline/runtime-pipeline.d.ts.map +1 -1
- package/out/pipeline/runtime-pipeline.js +46 -133
- package/out/pipeline/runtime-pipeline.js.map +1 -1
- package/out/pipeline/span-proposer.js +1 -1
- package/out/pipeline/span-proposer.js.map +1 -1
- package/out/pipeline/types.d.ts +137 -16
- package/out/pipeline/types.d.ts.map +1 -1
- package/out/pipeline/types.js +30 -0
- package/out/pipeline/types.js.map +1 -1
- package/out/policy/defaults.d.ts +1 -1
- package/out/policy/defaults.d.ts.map +1 -1
- package/out/policy/defaults.js +1 -1
- package/out/policy/defaults.js.map +1 -1
- package/out/policy/policy.d.ts +1 -1
- package/out/policy/policy.d.ts.map +1 -1
- package/out/policy/registry.d.ts +1 -1
- package/out/policy/registry.d.ts.map +1 -1
- package/out/resolver/coverage-facts.d.ts +89 -0
- package/out/resolver/coverage-facts.d.ts.map +1 -0
- package/out/resolver/coverage-facts.js +22 -0
- package/out/resolver/coverage-facts.js.map +1 -0
- package/out/resolver/index.d.ts +4 -1
- package/out/resolver/index.d.ts.map +1 -1
- package/out/resolver/index.js +2 -0
- package/out/resolver/index.js.map +1 -1
- package/out/resolver/lookup-types.d.ts +178 -0
- package/out/resolver/lookup-types.d.ts.map +1 -0
- package/out/resolver/lookup-types.js +11 -0
- package/out/resolver/lookup-types.js.map +1 -0
- package/out/resolver/placetype-map.d.ts +71 -0
- package/out/resolver/placetype-map.d.ts.map +1 -0
- package/out/resolver/placetype-map.js +98 -0
- package/out/resolver/placetype-map.js.map +1 -0
- package/out/resolver/postcode-format.d.ts +38 -0
- package/out/resolver/postcode-format.d.ts.map +1 -0
- package/out/resolver/postcode-format.js +83 -0
- package/out/resolver/postcode-format.js.map +1 -0
- package/out/resolver/referential.d.ts +73 -0
- package/out/resolver/referential.d.ts.map +1 -0
- package/out/resolver/referential.js +71 -0
- package/out/resolver/referential.js.map +1 -0
- package/out/resolver/types.d.ts +401 -264
- package/out/resolver/types.d.ts.map +1 -1
- package/out/resolver/types.js +4 -97
- package/out/resolver/types.js.map +1 -1
- package/out/resources/git.d.ts +8 -1
- package/out/resources/git.d.ts.map +1 -1
- package/out/resources/git.js +4 -3
- package/out/resources/git.js.map +1 -1
- package/out/resources/languages/types.gen.d.ts +1 -1
- package/out/resources/languages/types.gen.d.ts.map +1 -1
- package/out/resources/languages/types.gen.js +40 -0
- package/out/resources/languages/types.gen.js.map +1 -1
- package/out/resources/libpostal.d.ts +2 -2
- package/out/resources/libpostal.d.ts.map +1 -1
- package/out/resources/libpostal.js +2 -2
- package/out/resources/libpostal.js.map +1 -1
- package/out/resources/whosonfirst/DataSourceCache.d.ts.map +1 -1
- package/out/resources/whosonfirst/DataSourceCache.js.map +1 -1
- package/out/resources/whosonfirst/PlacetypeDataSource.d.ts +2 -2
- package/out/resources/whosonfirst/PlacetypeDataSource.d.ts.map +1 -1
- package/out/resources/whosonfirst/PlacetypeDataSource.js +28 -3
- package/out/resources/whosonfirst/PlacetypeDataSource.js.map +1 -1
- package/out/resources/whosonfirst/loader.d.ts +2 -2
- package/out/resources/whosonfirst/loader.d.ts.map +1 -1
- package/out/resources/whosonfirst/loader.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/Placetype.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/Placetype.js +1 -1
- package/out/resources/whosonfirst/placetypes/Placetype.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/admin.d.ts +9 -1
- package/out/resources/whosonfirst/placetypes/admin.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/admin.js +1 -1
- package/out/resources/whosonfirst/placetypes/admin.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/definition.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/definition.js +1 -1
- package/out/resources/whosonfirst/placetypes/definition.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/index.d.ts +1 -0
- package/out/resources/whosonfirst/placetypes/index.d.ts.map +1 -1
- package/out/resources/whosonfirst/placetypes/index.js +1 -0
- package/out/resources/whosonfirst/placetypes/index.js.map +1 -1
- package/out/resources/whosonfirst/placetypes/specificity.d.ts +65 -0
- package/out/resources/whosonfirst/placetypes/specificity.d.ts.map +1 -0
- package/out/resources/whosonfirst/placetypes/specificity.js +101 -0
- package/out/resources/whosonfirst/placetypes/specificity.js.map +1 -0
- package/out/resources/whosonfirst/sharded-repo.d.ts +28 -0
- package/out/resources/whosonfirst/sharded-repo.d.ts.map +1 -1
- package/out/resources/whosonfirst/sharded-repo.js +46 -2
- package/out/resources/whosonfirst/sharded-repo.js.map +1 -1
- package/out/scripting/arguments.d.ts +27 -0
- package/out/scripting/arguments.d.ts.map +1 -0
- package/out/scripting/arguments.js +32 -0
- package/out/scripting/arguments.js.map +1 -0
- package/out/scripting/command.d.ts +28 -0
- package/out/scripting/command.d.ts.map +1 -0
- package/out/scripting/command.js +47 -0
- package/out/scripting/command.js.map +1 -0
- package/out/scripting/index.js +3 -3
- package/out/scripting/index.js.map +1 -1
- package/out/scripting/utils/index.d.ts +1 -12
- package/out/scripting/utils/index.d.ts.map +1 -1
- package/out/scripting/utils/index.js +4 -21
- package/out/scripting/utils/index.js.map +1 -1
- package/out/tools/download-libpostal-resources.d.ts.map +1 -1
- package/out/tools/download-libpostal-resources.js +4 -7
- package/out/tools/download-libpostal-resources.js.map +1 -1
- package/out/tools/download-ssl-address.d.ts +3 -3
- package/out/tools/download-ssl-address.d.ts.map +1 -1
- package/out/tools/download-ssl-address.js +26 -13
- package/out/tools/download-ssl-address.js.map +1 -1
- package/out/tools/generate-language-types.d.ts +16 -1
- package/out/tools/generate-language-types.d.ts.map +1 -1
- package/out/tools/generate-language-types.js +38 -5
- package/out/tools/generate-language-types.js.map +1 -1
- package/out/tools/index.d.ts +1 -2
- package/out/tools/index.d.ts.map +1 -1
- package/out/tools/index.js +1 -2
- package/out/tools/index.js.map +1 -1
- package/out/utils/data-root.d.ts +27 -7
- package/out/utils/data-root.d.ts.map +1 -1
- package/out/utils/data-root.js +36 -13
- package/out/utils/data-root.js.map +1 -1
- package/out/utils/hash.d.ts +2 -3
- package/out/utils/hash.d.ts.map +1 -1
- package/out/utils/hash.js +3 -3
- package/out/utils/hash.js.map +1 -1
- package/out/utils/index.d.ts +1 -0
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/index.js +1 -0
- package/out/utils/index.js.map +1 -1
- package/out/utils/jsonl.js +1 -1
- package/out/utils/jsonl.js.map +1 -1
- package/out/utils/repo.d.ts +8 -0
- package/out/utils/repo.d.ts.map +1 -1
- package/out/utils/repo.js +10 -1
- package/out/utils/repo.js.map +1 -1
- package/out/utils/sealed-db.d.ts +11 -0
- package/out/utils/sealed-db.d.ts.map +1 -1
- package/out/utils/sealed-db.js +28 -1
- package/out/utils/sealed-db.js.map +1 -1
- package/out/utils/sqlite-rows.d.ts +34 -0
- package/out/utils/sqlite-rows.d.ts.map +1 -0
- package/out/utils/sqlite-rows.js +37 -0
- package/out/utils/sqlite-rows.js.map +1 -0
- package/out/utils/stats.d.ts +1 -6
- package/out/utils/stats.d.ts.map +1 -1
- package/out/utils/stats.js +1 -6
- package/out/utils/stats.js.map +1 -1
- package/package.json +488 -8
- package/pipeline/index.ts +14 -15
- package/pipeline/runtime-pipeline.ts +48 -184
- package/pipeline/span-proposer.ts +1 -1
- package/pipeline/types.ts +143 -16
- package/policy/defaults.ts +1 -1
- package/policy/policy.ts +1 -1
- package/policy/registry.ts +1 -1
- package/resolver/coverage-facts.ts +102 -0
- package/resolver/index.ts +18 -0
- package/resolver/lookup-types.ts +174 -0
- package/resolver/placetype-map.ts +122 -0
- package/resolver/postcode-format.ts +89 -0
- package/resolver/referential.ts +84 -0
- package/resolver/types.ts +423 -315
- package/resources/git.ts +18 -4
- package/resources/languages/types.gen.ts +60 -0
- package/resources/libpostal.ts +4 -3
- package/resources/whosonfirst/DataSourceCache.ts +2 -1
- package/resources/whosonfirst/PlacetypeDataSource.ts +36 -11
- package/resources/whosonfirst/loader.ts +3 -2
- package/resources/whosonfirst/placetypes/Placetype.ts +2 -1
- package/resources/whosonfirst/placetypes/admin.ts +11 -2
- package/resources/whosonfirst/placetypes/definition.ts +4 -3
- package/resources/whosonfirst/placetypes/index.ts +1 -0
- package/resources/whosonfirst/placetypes/specificity.ts +114 -0
- package/resources/whosonfirst/sharded-repo.ts +55 -2
- package/scripting/arguments.ts +38 -0
- package/scripting/command.ts +55 -0
- package/scripting/index.ts +3 -3
- package/scripting/utils/index.ts +5 -23
- package/tools/download-libpostal-resources.ts +4 -7
- package/tools/download-ssl-address.ts +28 -12
- package/tools/generate-language-types.ts +39 -5
- package/tools/index.ts +1 -2
- package/utils/data-root.ts +40 -14
- package/utils/hash.ts +5 -4
- package/utils/index.ts +1 -0
- package/utils/jsonl.ts +1 -1
- package/utils/repo.ts +12 -1
- package/utils/sealed-db.ts +30 -1
- package/utils/sqlite-rows.ts +40 -0
- package/utils/stats.ts +1 -6
- package/data/libpostal/dictionaries/all/chains.txt +0 -504
- package/kysley/adapter.ts +0 -29
- package/out/kysley/adapter.d.ts +0 -13
- package/out/kysley/adapter.d.ts.map +0 -1
- package/out/kysley/adapter.js +0 -25
- package/out/kysley/adapter.js.map +0 -1
- package/out/pipeline/reconcile-lookups.d.ts +0 -39
- package/out/pipeline/reconcile-lookups.d.ts.map +0 -1
- package/out/pipeline/reconcile-lookups.js +0 -88
- package/out/pipeline/reconcile-lookups.js.map +0 -1
- package/out/pipeline/reconcile.d.ts +0 -153
- package/out/pipeline/reconcile.d.ts.map +0 -1
- package/out/pipeline/reconcile.js +0 -388
- package/out/pipeline/reconcile.js.map +0 -1
- package/out/pipeline/span-logit-aggregation.d.ts +0 -58
- package/out/pipeline/span-logit-aggregation.d.ts.map +0 -1
- package/out/pipeline/span-logit-aggregation.js +0 -117
- package/out/pipeline/span-logit-aggregation.js.map +0 -1
- package/pipeline/reconcile-lookups.ts +0 -111
- package/pipeline/reconcile.ts +0 -583
- package/pipeline/span-logit-aggregation.ts +0 -156
|
@@ -1,184 +1,184 @@
|
|
|
1
|
-
alpha3-b,alpha2,English
|
|
2
|
-
aar,aa,Afar
|
|
3
|
-
abk,ab,Abkhazian
|
|
4
|
-
afr,af,Afrikaans
|
|
5
|
-
aka,ak,Akan
|
|
6
|
-
alb,sq,Albanian
|
|
7
|
-
amh,am,Amharic
|
|
8
|
-
ara,ar,Arabic
|
|
9
|
-
arg,an,Aragonese
|
|
10
|
-
arm,hy,Armenian
|
|
11
|
-
asm,as,Assamese
|
|
12
|
-
ava,av,Avaric
|
|
13
|
-
ave,ae,Avestan
|
|
14
|
-
aym,ay,Aymara
|
|
15
|
-
aze,az,Azerbaijani
|
|
16
|
-
bak,ba,Bashkir
|
|
17
|
-
bam,bm,Bambara
|
|
18
|
-
baq,eu,Basque
|
|
19
|
-
bel,be,Belarusian
|
|
20
|
-
ben,bn,Bengali
|
|
21
|
-
bis,bi,Bislama
|
|
22
|
-
bos,bs,Bosnian
|
|
23
|
-
bre,br,Breton
|
|
24
|
-
bul,bg,Bulgarian
|
|
25
|
-
bur,my,Burmese
|
|
26
|
-
cat,ca,Catalan; Valencian
|
|
27
|
-
cha,ch,Chamorro
|
|
28
|
-
che,ce,Chechen
|
|
29
|
-
chi,zh,Chinese
|
|
30
|
-
chu,cu,Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic
|
|
31
|
-
chv,cv,Chuvash
|
|
32
|
-
cor,kw,Cornish
|
|
33
|
-
cos,co,Corsican
|
|
34
|
-
cre,cr,Cree
|
|
35
|
-
cze,cs,Czech
|
|
36
|
-
dan,da,Danish
|
|
37
|
-
div,dv,Divehi; Dhivehi; Maldivian
|
|
38
|
-
dut,nl,Dutch; Flemish
|
|
39
|
-
dzo,dz,Dzongkha
|
|
40
|
-
eng,en,English
|
|
41
|
-
epo,eo,Esperanto
|
|
42
|
-
est,et,Estonian
|
|
43
|
-
ewe,ee,Ewe
|
|
44
|
-
fao,fo,Faroese
|
|
45
|
-
fij,fj,Fijian
|
|
46
|
-
fin,fi,Finnish
|
|
47
|
-
fre,fr,French
|
|
48
|
-
fry,fy,Western Frisian
|
|
49
|
-
ful,ff,Fulah
|
|
50
|
-
geo,ka,Georgian
|
|
51
|
-
ger,de,German
|
|
52
|
-
gla,gd,Gaelic; Scottish Gaelic
|
|
53
|
-
gle,ga,Irish
|
|
54
|
-
glg,gl,Galician
|
|
55
|
-
glv,gv,Manx
|
|
56
|
-
gre,el,"Greek, Modern (1453-)"
|
|
57
|
-
grn,gn,Guarani
|
|
58
|
-
guj,gu,Gujarati
|
|
59
|
-
hat,ht,Haitian; Haitian Creole
|
|
60
|
-
hau,ha,Hausa
|
|
61
|
-
heb,he,Hebrew
|
|
62
|
-
her,hz,Herero
|
|
63
|
-
hin,hi,Hindi
|
|
64
|
-
hmo,ho,Hiri Motu
|
|
65
|
-
hrv,hr,Croatian
|
|
66
|
-
hun,hu,Hungarian
|
|
67
|
-
ibo,ig,Igbo
|
|
68
|
-
ice,is,Icelandic
|
|
69
|
-
ido,io,Ido
|
|
70
|
-
iii,ii,Sichuan Yi; Nuosu
|
|
71
|
-
iku,iu,Inuktitut
|
|
72
|
-
ile,ie,Interlingue; Occidental
|
|
73
|
-
ina,ia,Interlingua (International Auxiliary Language Association)
|
|
74
|
-
ind,id,Indonesian
|
|
75
|
-
ipk,ik,Inupiaq
|
|
76
|
-
ita,it,Italian
|
|
77
|
-
jav,jv,Javanese
|
|
78
|
-
jpn,ja,Japanese
|
|
79
|
-
kal,kl,Kalaallisut; Greenlandic
|
|
80
|
-
kan,kn,Kannada
|
|
81
|
-
kas,ks,Kashmiri
|
|
82
|
-
kau,kr,Kanuri
|
|
83
|
-
kaz,kk,Kazakh
|
|
84
|
-
khm,km,Central Khmer
|
|
85
|
-
kik,ki,Kikuyu; Gikuyu
|
|
86
|
-
kin,rw,Kinyarwanda
|
|
87
|
-
kir,ky,Kirghiz; Kyrgyz
|
|
88
|
-
kom,kv,Komi
|
|
89
|
-
kon,kg,Kongo
|
|
90
|
-
kor,ko,Korean
|
|
91
|
-
kua,kj,Kuanyama; Kwanyama
|
|
92
|
-
kur,ku,Kurdish
|
|
93
|
-
lao,lo,Lao
|
|
94
|
-
lat,la,Latin
|
|
95
|
-
lav,lv,Latvian
|
|
96
|
-
lim,li,Limburgan; Limburger; Limburgish
|
|
97
|
-
lin,ln,Lingala
|
|
98
|
-
lit,lt,Lithuanian
|
|
99
|
-
ltz,lb,Luxembourgish; Letzeburgesch
|
|
100
|
-
lub,lu,Luba-Katanga
|
|
101
|
-
lug,lg,Ganda
|
|
102
|
-
mac,mk,Macedonian
|
|
103
|
-
mah,mh,Marshallese
|
|
104
|
-
mal,ml,Malayalam
|
|
105
|
-
mao,mi,Maori
|
|
106
|
-
mar,mr,Marathi
|
|
107
|
-
may,ms,Malay
|
|
108
|
-
mlg,mg,Malagasy
|
|
109
|
-
mlt,mt,Maltese
|
|
110
|
-
mon,mn,Mongolian
|
|
111
|
-
nau,na,Nauru
|
|
112
|
-
nav,nv,Navajo; Navaho
|
|
113
|
-
nbl,nr,"Ndebele, South; South Ndebele"
|
|
114
|
-
nde,nd,"Ndebele, North; North Ndebele"
|
|
115
|
-
ndo,ng,Ndonga
|
|
116
|
-
nep,ne,Nepali
|
|
117
|
-
nno,nn,"Norwegian Nynorsk; Nynorsk, Norwegian"
|
|
118
|
-
nob,nb,"Bokmål, Norwegian; Norwegian Bokmål"
|
|
119
|
-
nor,no,Norwegian
|
|
120
|
-
nya,ny,Chichewa; Chewa; Nyanja
|
|
121
|
-
oci,oc,Occitan (post 1500)
|
|
122
|
-
oji,oj,Ojibwa
|
|
123
|
-
ori,or,Oriya
|
|
124
|
-
orm,om,Oromo
|
|
125
|
-
oss,os,Ossetian; Ossetic
|
|
126
|
-
pan,pa,Panjabi; Punjabi
|
|
127
|
-
per,fa,Persian
|
|
128
|
-
pli,pi,Pali
|
|
129
|
-
pol,pl,Polish
|
|
130
|
-
por,pt,Portuguese
|
|
131
|
-
pus,ps,Pushto; Pashto
|
|
132
|
-
que,qu,Quechua
|
|
133
|
-
roh,rm,Romansh
|
|
134
|
-
rum,ro,Romanian; Moldavian; Moldovan
|
|
135
|
-
run,rn,Rundi
|
|
136
|
-
rus,ru,Russian
|
|
137
|
-
sag,sg,Sango
|
|
138
|
-
san,sa,Sanskrit
|
|
139
|
-
sin,si,Sinhala; Sinhalese
|
|
140
|
-
slo,sk,Slovak
|
|
141
|
-
slv,sl,Slovenian
|
|
142
|
-
sme,se,Northern Sami
|
|
143
|
-
smo,sm,Samoan
|
|
144
|
-
sna,sn,Shona
|
|
145
|
-
snd,sd,Sindhi
|
|
146
|
-
som,so,Somali
|
|
147
|
-
sot,st,"Sotho, Southern"
|
|
148
|
-
spa,es,Spanish; Castilian
|
|
149
|
-
srd,sc,Sardinian
|
|
150
|
-
srp,sr,Serbian
|
|
151
|
-
ssw,ss,Swati
|
|
152
|
-
sun,su,Sundanese
|
|
153
|
-
swa,sw,Swahili
|
|
154
|
-
swe,sv,Swedish
|
|
155
|
-
tah,ty,Tahitian
|
|
156
|
-
tam,ta,Tamil
|
|
157
|
-
tat,tt,Tatar
|
|
158
|
-
tel,te,Telugu
|
|
159
|
-
tgk,tg,Tajik
|
|
160
|
-
tgl,tl,Tagalog
|
|
161
|
-
tha,th,Thai
|
|
162
|
-
tib,bo,Tibetan
|
|
163
|
-
tir,ti,Tigrinya
|
|
164
|
-
ton,to,Tonga (Tonga Islands)
|
|
165
|
-
tsn,tn,Tswana
|
|
166
|
-
tso,ts,Tsonga
|
|
167
|
-
tuk,tk,Turkmen
|
|
168
|
-
tur,tr,Turkish
|
|
169
|
-
twi,tw,Twi
|
|
170
|
-
uig,ug,Uighur; Uyghur
|
|
171
|
-
ukr,uk,Ukrainian
|
|
172
|
-
urd,ur,Urdu
|
|
173
|
-
uzb,uz,Uzbek
|
|
174
|
-
ven,ve,Venda
|
|
175
|
-
vie,vi,Vietnamese
|
|
176
|
-
vol,vo,Volapük
|
|
177
|
-
wel,cy,Welsh
|
|
178
|
-
wln,wa,Walloon
|
|
179
|
-
wol,wo,Wolof
|
|
180
|
-
xho,xh,Xhosa
|
|
181
|
-
yid,yi,Yiddish
|
|
182
|
-
yor,yo,Yoruba
|
|
183
|
-
zha,za,Zhuang; Chuang
|
|
184
|
-
zul,zu,Zulu
|
|
1
|
+
alpha3-b,alpha2,English,alpha3-t
|
|
2
|
+
aar,aa,Afar,
|
|
3
|
+
abk,ab,Abkhazian,
|
|
4
|
+
afr,af,Afrikaans,
|
|
5
|
+
aka,ak,Akan,
|
|
6
|
+
alb,sq,Albanian,sqi
|
|
7
|
+
amh,am,Amharic,
|
|
8
|
+
ara,ar,Arabic,
|
|
9
|
+
arg,an,Aragonese,
|
|
10
|
+
arm,hy,Armenian,hye
|
|
11
|
+
asm,as,Assamese,
|
|
12
|
+
ava,av,Avaric,
|
|
13
|
+
ave,ae,Avestan,
|
|
14
|
+
aym,ay,Aymara,
|
|
15
|
+
aze,az,Azerbaijani,
|
|
16
|
+
bak,ba,Bashkir,
|
|
17
|
+
bam,bm,Bambara,
|
|
18
|
+
baq,eu,Basque,eus
|
|
19
|
+
bel,be,Belarusian,
|
|
20
|
+
ben,bn,Bengali,
|
|
21
|
+
bis,bi,Bislama,
|
|
22
|
+
bos,bs,Bosnian,
|
|
23
|
+
bre,br,Breton,
|
|
24
|
+
bul,bg,Bulgarian,
|
|
25
|
+
bur,my,Burmese,mya
|
|
26
|
+
cat,ca,Catalan; Valencian,
|
|
27
|
+
cha,ch,Chamorro,
|
|
28
|
+
che,ce,Chechen,
|
|
29
|
+
chi,zh,Chinese,zho
|
|
30
|
+
chu,cu,Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic,
|
|
31
|
+
chv,cv,Chuvash,
|
|
32
|
+
cor,kw,Cornish,
|
|
33
|
+
cos,co,Corsican,
|
|
34
|
+
cre,cr,Cree,
|
|
35
|
+
cze,cs,Czech,ces
|
|
36
|
+
dan,da,Danish,
|
|
37
|
+
div,dv,Divehi; Dhivehi; Maldivian,
|
|
38
|
+
dut,nl,Dutch; Flemish,nld
|
|
39
|
+
dzo,dz,Dzongkha,
|
|
40
|
+
eng,en,English,
|
|
41
|
+
epo,eo,Esperanto,
|
|
42
|
+
est,et,Estonian,
|
|
43
|
+
ewe,ee,Ewe,
|
|
44
|
+
fao,fo,Faroese,
|
|
45
|
+
fij,fj,Fijian,
|
|
46
|
+
fin,fi,Finnish,
|
|
47
|
+
fre,fr,French,fra
|
|
48
|
+
fry,fy,Western Frisian,
|
|
49
|
+
ful,ff,Fulah,
|
|
50
|
+
geo,ka,Georgian,kat
|
|
51
|
+
ger,de,German,deu
|
|
52
|
+
gla,gd,Gaelic; Scottish Gaelic,
|
|
53
|
+
gle,ga,Irish,
|
|
54
|
+
glg,gl,Galician,
|
|
55
|
+
glv,gv,Manx,
|
|
56
|
+
gre,el,"Greek, Modern (1453-)",ell
|
|
57
|
+
grn,gn,Guarani,
|
|
58
|
+
guj,gu,Gujarati,
|
|
59
|
+
hat,ht,Haitian; Haitian Creole,
|
|
60
|
+
hau,ha,Hausa,
|
|
61
|
+
heb,he,Hebrew,
|
|
62
|
+
her,hz,Herero,
|
|
63
|
+
hin,hi,Hindi,
|
|
64
|
+
hmo,ho,Hiri Motu,
|
|
65
|
+
hrv,hr,Croatian,
|
|
66
|
+
hun,hu,Hungarian,
|
|
67
|
+
ibo,ig,Igbo,
|
|
68
|
+
ice,is,Icelandic,isl
|
|
69
|
+
ido,io,Ido,
|
|
70
|
+
iii,ii,Sichuan Yi; Nuosu,
|
|
71
|
+
iku,iu,Inuktitut,
|
|
72
|
+
ile,ie,Interlingue; Occidental,
|
|
73
|
+
ina,ia,Interlingua (International Auxiliary Language Association),
|
|
74
|
+
ind,id,Indonesian,
|
|
75
|
+
ipk,ik,Inupiaq,
|
|
76
|
+
ita,it,Italian,
|
|
77
|
+
jav,jv,Javanese,
|
|
78
|
+
jpn,ja,Japanese,
|
|
79
|
+
kal,kl,Kalaallisut; Greenlandic,
|
|
80
|
+
kan,kn,Kannada,
|
|
81
|
+
kas,ks,Kashmiri,
|
|
82
|
+
kau,kr,Kanuri,
|
|
83
|
+
kaz,kk,Kazakh,
|
|
84
|
+
khm,km,Central Khmer,
|
|
85
|
+
kik,ki,Kikuyu; Gikuyu,
|
|
86
|
+
kin,rw,Kinyarwanda,
|
|
87
|
+
kir,ky,Kirghiz; Kyrgyz,
|
|
88
|
+
kom,kv,Komi,
|
|
89
|
+
kon,kg,Kongo,
|
|
90
|
+
kor,ko,Korean,
|
|
91
|
+
kua,kj,Kuanyama; Kwanyama,
|
|
92
|
+
kur,ku,Kurdish,
|
|
93
|
+
lao,lo,Lao,
|
|
94
|
+
lat,la,Latin,
|
|
95
|
+
lav,lv,Latvian,
|
|
96
|
+
lim,li,Limburgan; Limburger; Limburgish,
|
|
97
|
+
lin,ln,Lingala,
|
|
98
|
+
lit,lt,Lithuanian,
|
|
99
|
+
ltz,lb,Luxembourgish; Letzeburgesch,
|
|
100
|
+
lub,lu,Luba-Katanga,
|
|
101
|
+
lug,lg,Ganda,
|
|
102
|
+
mac,mk,Macedonian,mkd
|
|
103
|
+
mah,mh,Marshallese,
|
|
104
|
+
mal,ml,Malayalam,
|
|
105
|
+
mao,mi,Maori,mri
|
|
106
|
+
mar,mr,Marathi,
|
|
107
|
+
may,ms,Malay,msa
|
|
108
|
+
mlg,mg,Malagasy,
|
|
109
|
+
mlt,mt,Maltese,
|
|
110
|
+
mon,mn,Mongolian,
|
|
111
|
+
nau,na,Nauru,
|
|
112
|
+
nav,nv,Navajo; Navaho,
|
|
113
|
+
nbl,nr,"Ndebele, South; South Ndebele",
|
|
114
|
+
nde,nd,"Ndebele, North; North Ndebele",
|
|
115
|
+
ndo,ng,Ndonga,
|
|
116
|
+
nep,ne,Nepali,
|
|
117
|
+
nno,nn,"Norwegian Nynorsk; Nynorsk, Norwegian",
|
|
118
|
+
nob,nb,"Bokmål, Norwegian; Norwegian Bokmål",
|
|
119
|
+
nor,no,Norwegian,
|
|
120
|
+
nya,ny,Chichewa; Chewa; Nyanja,
|
|
121
|
+
oci,oc,Occitan (post 1500),
|
|
122
|
+
oji,oj,Ojibwa,
|
|
123
|
+
ori,or,Oriya,
|
|
124
|
+
orm,om,Oromo,
|
|
125
|
+
oss,os,Ossetian; Ossetic,
|
|
126
|
+
pan,pa,Panjabi; Punjabi,
|
|
127
|
+
per,fa,Persian,fas
|
|
128
|
+
pli,pi,Pali,
|
|
129
|
+
pol,pl,Polish,
|
|
130
|
+
por,pt,Portuguese,
|
|
131
|
+
pus,ps,Pushto; Pashto,
|
|
132
|
+
que,qu,Quechua,
|
|
133
|
+
roh,rm,Romansh,
|
|
134
|
+
rum,ro,Romanian; Moldavian; Moldovan,ron
|
|
135
|
+
run,rn,Rundi,
|
|
136
|
+
rus,ru,Russian,
|
|
137
|
+
sag,sg,Sango,
|
|
138
|
+
san,sa,Sanskrit,
|
|
139
|
+
sin,si,Sinhala; Sinhalese,
|
|
140
|
+
slo,sk,Slovak,slk
|
|
141
|
+
slv,sl,Slovenian,
|
|
142
|
+
sme,se,Northern Sami,
|
|
143
|
+
smo,sm,Samoan,
|
|
144
|
+
sna,sn,Shona,
|
|
145
|
+
snd,sd,Sindhi,
|
|
146
|
+
som,so,Somali,
|
|
147
|
+
sot,st,"Sotho, Southern",
|
|
148
|
+
spa,es,Spanish; Castilian,
|
|
149
|
+
srd,sc,Sardinian,
|
|
150
|
+
srp,sr,Serbian,
|
|
151
|
+
ssw,ss,Swati,
|
|
152
|
+
sun,su,Sundanese,
|
|
153
|
+
swa,sw,Swahili,
|
|
154
|
+
swe,sv,Swedish,
|
|
155
|
+
tah,ty,Tahitian,
|
|
156
|
+
tam,ta,Tamil,
|
|
157
|
+
tat,tt,Tatar,
|
|
158
|
+
tel,te,Telugu,
|
|
159
|
+
tgk,tg,Tajik,
|
|
160
|
+
tgl,tl,Tagalog,
|
|
161
|
+
tha,th,Thai,
|
|
162
|
+
tib,bo,Tibetan,bod
|
|
163
|
+
tir,ti,Tigrinya,
|
|
164
|
+
ton,to,Tonga (Tonga Islands),
|
|
165
|
+
tsn,tn,Tswana,
|
|
166
|
+
tso,ts,Tsonga,
|
|
167
|
+
tuk,tk,Turkmen,
|
|
168
|
+
tur,tr,Turkish,
|
|
169
|
+
twi,tw,Twi,
|
|
170
|
+
uig,ug,Uighur; Uyghur,
|
|
171
|
+
ukr,uk,Ukrainian,
|
|
172
|
+
urd,ur,Urdu,
|
|
173
|
+
uzb,uz,Uzbek,
|
|
174
|
+
ven,ve,Venda,
|
|
175
|
+
vie,vi,Vietnamese,
|
|
176
|
+
vol,vo,Volapük,
|
|
177
|
+
wel,cy,Welsh,cym
|
|
178
|
+
wln,wa,Walloon,
|
|
179
|
+
wol,wo,Wolof,
|
|
180
|
+
xho,xh,Xhosa,
|
|
181
|
+
yid,yi,Yiddish,
|
|
182
|
+
yor,yo,Yoruba,
|
|
183
|
+
zha,za,Zhuang; Chuang,
|
|
184
|
+
zul,zu,Zulu,
|
package/data/libpostal/README.md
CHANGED
|
@@ -19,13 +19,19 @@ this list across major refactors).
|
|
|
19
19
|
| `all/given_names.txt`, `all/surnames.txt`, `<lang>/personal_titles.txt` | `evidence-lexicons.ts` | The **person-name tier**: 1-token person-name surfaces blocked as locality evidence. |
|
|
20
20
|
| `<lang>/stopwords.txt` | `mailwoman/gazetteer-pipeline/fst.ts` | FST gazetteer curation. |
|
|
21
21
|
|
|
22
|
-
Everything else —
|
|
22
|
+
Everything else — 33 of the 39 remaining distinct filenames (`near.txt`, `cross_streets.txt`,
|
|
23
23
|
`unit_types_*`, `level_types_*`, `qualifiers.txt`, …) — has **no code consumer** since the rules
|
|
24
24
|
excision, and `core/resources/libpostal.ts`'s generic loader (`prepareLocaleIndex`,
|
|
25
25
|
`generatePlurals`) has no production caller either (only its own test). Total vestigial mass:
|
|
26
26
|
~0.13 MB of the ~0.7 MB dictionary tree.
|
|
27
27
|
|
|
28
|
-
**Deliberately kept anyway
|
|
28
|
+
**Deliberately kept anyway, with one exception.** `all/chains.txt` was removed in 2026-08 after an
|
|
29
|
+
explicit migration audit: only 66 of its 504 legacy rows had any exact phrase represented in the
|
|
30
|
+
modern, poi.db-derived brand table, while 438 lacked current source evidence. Importing those rows
|
|
31
|
+
would have promoted a stale global chain list into runtime truth and erased market scope — notably
|
|
32
|
+
the distinction between a UK pharmacy brand and an ordinary US retail/name query. Brand candidates
|
|
33
|
+
are derived from `poi.db`; category spelling recovery comes from the locale-gated taxonomy. The
|
|
34
|
+
remaining vestigial files stay
|
|
29
35
|
byte-comparable with the upstream lineage, and several vestigial classes are plausible inputs to
|
|
30
36
|
named future work (the `unit_types_*`/`level_types_*`/`staircases.txt` families are libpostal's
|
|
31
37
|
unit-parsing vocabulary — relevant when JP floor/unit conventions land with the CJK arc). The
|
package/db/schema.ts
CHANGED
|
@@ -11,11 +11,20 @@
|
|
|
11
11
|
*
|
|
12
12
|
* The exported `Database` interface exists so `client.ts` has a target for `Kysely<Database>` and
|
|
13
13
|
* the boilerplate compiles without forcing a concrete schema commitment.
|
|
14
|
+
*
|
|
15
|
+
* IT IS THE DEFAULT, NOT THE ONLY OPTION, and reading it as the only option is how `as never` gets written. Every
|
|
16
|
+
* table name typed against `Record<string, never>` IS `never`, so `insertInto("poi")` cannot compile and a caller
|
|
17
|
+
* who believes no alternative exists casts — which disarms not just that one check but every type-level guarantee
|
|
18
|
+
* anyone later adds to the table (#1757 has the worked case: a branded key column whose check a neighbouring
|
|
19
|
+
* `as never` had already defeated).
|
|
14
20
|
*/
|
|
15
21
|
|
|
16
22
|
/**
|
|
17
|
-
* Empty schema marker
|
|
18
|
-
*
|
|
19
|
-
* (
|
|
23
|
+
* Empty schema marker, and the DEFAULT type argument only.
|
|
24
|
+
*
|
|
25
|
+
* Consumers declare their own schema interface and pass it directly: `new Kysely<MySchema>({…})` or `new
|
|
26
|
+
* DatabaseClient<MySchema>(…)`. `DatabaseClient<DB = Database>` is generic today, so this is available now — the
|
|
27
|
+
* sentence here once deferred it to "Phase 4.2 work", which had already landed, and a reader who believed that had no
|
|
28
|
+
* option but to cast.
|
|
20
29
|
*/
|
|
21
30
|
export type Database = Record<string, never>
|
package/decoder/build-tree.ts
CHANGED
|
@@ -72,16 +72,35 @@ function bioParts(label: BIOLabel): { prefix: "B" | "I" | "O"; tag: ComponentTag
|
|
|
72
72
|
// v0.4.0 entry). The model's tag attribution is correct, only the boundary is fuzzy. Trimming
|
|
73
73
|
// produces a clean canonical value AND clean start/end offsets so downstream consumers slicing
|
|
74
74
|
// raw[start:end] get the same string as node.value.
|
|
75
|
+
//
|
|
76
|
+
// EXCEPTION: a trailing period directly adjacent to a word character is an abbreviation marker
|
|
77
|
+
// ("Str." / "St." / "Ave."). The model includes these in the span correctly; stripping them loses
|
|
78
|
+
// the abbreviation suffix. We preserve the period when it is immediately preceded by \p{L}\p{N}
|
|
79
|
+
// and NOT separated by whitespace — the slip pattern we guard against is ", 22220" / "Paris 75004,"
|
|
80
|
+
// / wrapping quotes, where the punctuation is isolated from the word body. (#1519 trailing-dot half)
|
|
75
81
|
function trimBoundary(raw: string, start: number, end: number): { start: number; end: number } {
|
|
76
82
|
let s = start
|
|
77
83
|
let e = end
|
|
78
84
|
const isWordChar = (i: number): boolean => /[\p{L}\p{N}]/u.test(raw[i] ?? "")
|
|
79
85
|
|
|
86
|
+
// Leading trim: skip punctuation not part of an abbreviation prefix (e.g. leading "." before a
|
|
87
|
+
// word char is rare but symmetric — preserve it).
|
|
80
88
|
while (s < e && !isWordChar(s)) {
|
|
89
|
+
if (raw[s] === "." && s + 1 < e && isWordChar(s + 1)) {
|
|
90
|
+
// Abbreviation-dot prefix: ".com" style — preserve.
|
|
91
|
+
break
|
|
92
|
+
}
|
|
93
|
+
|
|
81
94
|
s++
|
|
82
95
|
}
|
|
83
96
|
|
|
97
|
+
// Trailing trim: skip punctuation, but preserve a trailing abbreviation period.
|
|
84
98
|
while (e > s && !isWordChar(e - 1)) {
|
|
99
|
+
if (raw[e - 1] === "." && e - 2 >= s && isWordChar(e - 2)) {
|
|
100
|
+
// Abbreviation-dot suffix: "Str." / "Ave." — adjacent to the last word char, preserve.
|
|
101
|
+
break
|
|
102
|
+
}
|
|
103
|
+
|
|
85
104
|
e--
|
|
86
105
|
}
|
|
87
106
|
|
package/decoder/containment.ts
CHANGED
|
@@ -49,7 +49,11 @@ export const WESTERN_PARENT_OF: Partial<Record<ComponentTag, ComponentTag[]>> =
|
|
|
49
49
|
street_prefix_particle: ["street_prefix", "street"],
|
|
50
50
|
street_suffix: ["street"],
|
|
51
51
|
house_number: ["street"],
|
|
52
|
-
|
|
52
|
+
// `venue` is here for the SUB-VENUE case — `Terminal 5` of `Heathrow Airport`, `Gate 12` of `Manchester Airport`.
|
|
53
|
+
// The table modelled `attention: ["venue"]` but not a unit of a venue, so `validateTree` reported a correct,
|
|
54
|
+
// gate-passing parse (gb-subvenue-heathrow-terminal) as a stranded dependent: the contract was narrower than the
|
|
55
|
+
// capability the board already tests.
|
|
56
|
+
unit: ["street", "house_number", "venue"],
|
|
53
57
|
intersection_a: ["street", "locality"],
|
|
54
58
|
intersection_b: ["street", "locality"],
|
|
55
59
|
|
package/decoder/index.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from "./containment.ts"
|
|
|
10
10
|
export * from "./proposals-to-tree.ts"
|
|
11
11
|
export * from "./resolve-proposal-overlaps.ts"
|
|
12
12
|
export * from "./serialize-json.ts"
|
|
13
|
+
export * from "./tree-shape.ts"
|
|
13
14
|
export * from "./serialize-tuples.ts"
|
|
14
15
|
export * from "./serialize-xml.ts"
|
|
15
16
|
export * from "./types.ts"
|