@mailwoman/corpus 10.8.0 → 11.1.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.
Files changed (2118) hide show
  1. package/README.md +46 -8
  2. package/data/PROVENANCE.md +56 -56
  3. package/data/address-source-register.json +65 -3
  4. package/data/corpus-source-inputs.json +24 -0
  5. package/data/license-decisions.json +45 -0
  6. package/data/source-additions.json +16 -1
  7. package/data/training-configs/v0.9.1-pilot-anchor-on.yaml +1 -1
  8. package/data/training-configs/v0.9.7-unit-v3.yaml +1 -1
  9. package/data/training-configs/v0_5_0-classifier-smoke.yaml +1 -1
  10. package/data/training-configs/v0_6_2-crf-fp32-diagnostic.yaml +1 -1
  11. package/data/training-configs/v0_7_0-calibration-label-smoothing.yaml +5 -5
  12. package/data/training-configs/v0_7_0b-calibration-ls005.yaml +1 -1
  13. package/data/training-configs/v0_8_0-finetune-pretrained.yaml +1 -1
  14. package/data/training-configs/v0_8_0-finetune-scratch.yaml +1 -1
  15. package/data/training-configs/v0_8_1-finetune-pretrained.yaml +1 -1
  16. package/data/training-configs/v0_8_1-finetune-scratch.yaml +1 -1
  17. package/data/training-configs/v1.0.0-affixdiag.yaml +1 -1
  18. package/data/training-configs/v1.0.0-consolidation.yaml +1 -1
  19. package/data/training-configs/v1.0.1-consolidation-runA.yaml +1 -1
  20. package/data/training-configs/v1.0.2-consolidation-runB.yaml +2 -2
  21. package/data/training-configs/v1.0.3-consolidation-runC.yaml +1 -1
  22. package/data/training-configs/v1.0.4-probe0-curriculum.yaml +1 -1
  23. package/data/training-configs/v1.3.0-boundary-consolidation.yaml +1 -1
  24. package/data/training-configs/v1.4.0-charoffset.yaml +1 -1
  25. package/data/training-configs/v1.5.0-fr-order.yaml +1 -1
  26. package/data/training-configs/v1.9.4-fr-bare-street.yaml +2 -2
  27. package/data/training-configs/v1.9.5-surface-aug.yaml +2 -2
  28. package/data/training-configs/v1.9.6-surface-aug-full.yaml +3 -3
  29. package/data/training-configs/v1.9.8-bare-street-bsplice.yaml +3 -3
  30. package/data/training-configs/v1.9.9-bare-street-si.yaml +3 -3
  31. package/data/training-configs/v2.5.0-fragment-assay.yaml +1 -1
  32. package/data/training-configs/v2.6.4-country-softguard.yaml +1 -1
  33. package/data/training-configs/v2.6.5-country-softguard-025.yaml +1 -1
  34. package/data/training-configs/v3.0.0-span-head.yaml +2 -2
  35. package/data/training-configs/v3.0.1-span-head-lr.yaml +2 -2
  36. package/data/training-configs/v3.10.0-span-ship-probe.yaml +1 -1
  37. package/data/training-configs/v3.4.1-norway-full.yaml +1 -1
  38. package/data/training-configs/v3.5.2-numsplice3-probe.yaml +3 -3
  39. package/data/training-configs/v3.5.3-numsplice23-probe.yaml +2 -2
  40. package/data/training-configs/v3.5.4-numsplice3-full.yaml +3 -3
  41. package/data/training-configs/v3.8.4-latam-probe.yaml +1 -1
  42. package/data/training-configs/v4.0.0-base-60k.yaml +1 -1
  43. package/data/training-configs/v4.0.1-base-60k.yaml +1 -1
  44. package/data/training-configs/v4.10.0-trailing-region-lowdose-8k.yaml +2 -2
  45. package/data/training-configs/v4.11.0-house-venue-intl-4k.yaml +5 -5
  46. package/data/training-configs/v4.12.0-house-venue-ewc1e5-4k.yaml +6 -6
  47. package/data/training-configs/v4.14.0-house-venue-1k.yaml +4 -4
  48. package/data/training-configs/v4.2.0-base-anchor-v2-2k.yaml +1 -1
  49. package/data/training-configs/v4.2.0-base-anchor-v2.yaml +2 -2
  50. package/data/training-configs/v4.3.0-suffix-boundary-8k.yaml +1 -1
  51. package/data/training-configs/v4.3.1-suffix-boundary-target-dose-8k.yaml +1 -1
  52. package/data/training-configs/v4.3.2-suffix-boundary-idempotent-feed-8k.yaml +1 -1
  53. package/data/training-configs/v4.5.1-psc-frsurfaces-2k.yaml +1 -1
  54. package/data/training-configs/v4.5.2-psc-frsurfaces-2k.yaml +1 -1
  55. package/data/training-configs/v4.6.0-admin-surfaces-base-60k.yaml +1 -1
  56. package/data/training-configs/v4.6.0-admin-surfaces-smoke-500.yaml +1 -1
  57. package/data/training-configs/v4.7.0-trailing-region-structured-8k.yaml +2 -2
  58. package/data/training-configs/v4.7.0-trailing-region-structured-smoke-500.yaml +2 -2
  59. package/data/training-configs/v4.8.0-trailing-region-placement-8k.yaml +7 -7
  60. package/data/training-configs/v4.8.0-trailing-region-placement-smoke-500.yaml +7 -7
  61. package/data/training-configs/v4.9.0-trailing-region-leftcontext-8k.yaml +3 -3
  62. package/data/training-configs/v5.0.0-base-alltails-60k.yaml +1 -1
  63. package/data/training-configs/v5.2.0-seed-variance-60k.yaml +1 -1
  64. package/data/training-configs/v5.3.0-reviewed-ve-postcode-tail-60k.yaml +2 -2
  65. package/data/training-configs/v5.4.0-target-families-2k.yaml +3 -3
  66. package/data/training-configs/v5.4.0-target-families-60k.yaml +3 -3
  67. package/data/training-configs/v5.5.0-restored-generations-60k.yaml +5 -5
  68. package/data/training-configs/v5.6.0-bare-postcode-60k.yaml +8 -8
  69. package/data/training-configs/v5.7.0-region-code-and-unit-60k.yaml +6 -6
  70. package/data/training-configs/v5.8.0-gazetteer-choreography-off-60k.yaml +8 -8
  71. package/data/training-configs/v5.9.0-locality-shape-60k.yaml +4 -4
  72. package/data/training-configs/v6.0.0-register-surface-60k.yaml +2 -2
  73. package/data/training-configs/v7.0.0-de-holdout-60k.yaml +2 -2
  74. package/data/training-configs/v7.1.0-osm-exposure-60k.yaml +3 -3
  75. package/data/training-configs/v7.10.0-gb-county-60k-s43.yaml +1 -1
  76. package/data/training-configs/v7.10.0-gb-county-60k.yaml +1 -1
  77. package/data/training-configs/v7.2.0-address-systems-60k.yaml +1 -1
  78. package/data/training-configs/v7.4.0-venue-planet-60k.yaml +1 -1
  79. package/data/training-configs/v7.7.0-no-ppd-60k.yaml +2 -2
  80. package/data/training-configs/v7.8.0-rights-clean-60k.yaml +1 -1
  81. package/data/training-configs/v7.9.0-country-gap-60k.yaml +2 -2
  82. package/data/training-configs/v8-cjk-full.yaml +5 -5
  83. package/data/training-configs/v8-cjk-kana.yaml +1 -1
  84. package/data/training-configs/v8-cjk-kr-probe.yaml +1 -1
  85. package/data/training-configs/v8-cjk-kr.yaml +1 -1
  86. package/data/training-configs/v8-cjk-regs.yaml +1 -1
  87. package/data/training-configs/v8-cjk-shi.yaml +1 -1
  88. package/data/training-configs/v8-jp-full-2k.yaml +7 -7
  89. package/data/training-configs/v8-jp-full.yaml +8 -8
  90. package/data/training-configs/v8.0.0-postcode-move-p000-60k.yaml +1 -1
  91. package/data/training-configs/v8.0.0-postcode-move-p005-60k.yaml +1 -1
  92. package/data/training-configs/v8.0.0-postcode-move-p015-60k.yaml +1 -1
  93. package/data/training-configs/v8.1.0-base-60k-s43.yaml +3 -3
  94. package/data/training-configs/v8.1.0-base-60k.yaml +1 -1
  95. package/data/training-configs/v8.2.0-base-60k.yaml +2 -2
  96. package/data/training-configs/v8.3.0-base-c6-60k-no-primer-s42.yaml +1 -1
  97. package/data/training-configs/v8.3.0-base-c6-60k-no-primer-s43.yaml +1 -1
  98. package/data/training-configs/v8.3.0-base-c6-60k-s43.yaml +1 -1
  99. package/data/training-configs/v8.3.0-base-c6-60k.yaml +1 -1
  100. package/data/training-configs/v8.3.0-base-c6-90k-fp32master-s42.yaml +2 -2
  101. package/data/training-configs/v8.3.0-base-c6-90k-fp32master-s43.yaml +2 -2
  102. package/data/training-configs/v8.3.0-base-c6-90k-mixed-s42.yaml +2 -2
  103. package/data/training-configs/v8.3.0-base-c6-90k-mixed-s43.yaml +2 -2
  104. package/data/training-configs/v8.3.0-probe-c4-split-digits-2k.yaml +1 -1
  105. package/data/training-configs/v8.3.0-probe-c5-mixed-digits-2k.yaml +1 -1
  106. package/data/training-configs/v8.3.0-probe-c6-isolated-punctuation-2k.yaml +1 -1
  107. package/data/training-configs/v8.3.0-probe-code-unit-2k.yaml +1 -1
  108. package/data/training-configs/v8.3.0-probe-rust-loader-2k.yaml +3 -3
  109. package/data/training-configs/v8.3.1-base-c6-90k-nppes088-s42.yaml +4 -4
  110. package/data/training-configs/v8.3.1-base-c6-90k-nppes088-s43.yaml +4 -4
  111. package/data/training-configs/v8.3.2-base-c6-90k-v0810-s42-r2.yaml +1 -1
  112. package/data/training-configs/v8.3.2-base-c6-90k-v0810-s42.yaml +1 -1
  113. package/data/training-configs/v8.3.2-base-c6-90k-v0810-s43.yaml +1 -1
  114. package/data/training-configs/v8.4.0-base-c6-90k-v0812-s42-r2.yaml +1 -1
  115. package/data/training-configs/v8.4.0-base-c6-90k-v0812-s42.yaml +1 -1
  116. package/data/training-configs/v8.4.0-base-c6-90k-v0812-s43.yaml +1 -1
  117. package/data/training-configs/v8.6.0-base-c6-90k-v0816-s42.yaml +2 -2
  118. package/data/training-configs/v8.6.1-base-c6-90k-v0817-s42.yaml +3 -3
  119. package/data/training-configs/v8.6.2-base-c6-90k-v0817-wof15-s42.yaml +1 -1
  120. package/data/training-configs/v8.6.3-base-c6-90k-v0818-wof15-s42.yaml +1 -1
  121. package/lib/adapters/cordis/adapter.ts +9 -10
  122. package/lib/adapters/dedup-key.ts +5 -6
  123. package/lib/adapters/errors.ts +3 -4
  124. package/lib/adapters/geonames/adapter.ts +5 -6
  125. package/lib/adapters/geonames/features/adapter.ts +3 -3
  126. package/lib/adapters/geonames/postal/adapter.ts +5 -6
  127. package/lib/adapters/gleif/adapter.ts +87 -67
  128. package/lib/adapters/libpostal-dictionary.ts +3 -4
  129. package/lib/adapters/openaddresses/adapter.ts +9 -7
  130. package/lib/adapters/osm/adapter.ts +11 -9
  131. package/lib/adapters/osm/license.ts +4 -4
  132. package/lib/adapters/overture/adapter.ts +6 -5
  133. package/lib/adapters/overture/paths.ts +25 -0
  134. package/lib/adapters/po-box/adapter.ts +9 -9
  135. package/lib/adapters/present.ts +3 -0
  136. package/lib/adapters/record-id.ts +3 -3
  137. package/lib/adapters/registry.ts +7 -7
  138. package/lib/adapters/sha256-stream.ts +3 -4
  139. package/lib/adapters/source-id.ts +12 -10
  140. package/lib/adapters/street/line.ts +37 -21
  141. package/lib/adapters/street/unit.ts +61 -16
  142. package/lib/adapters/wof/admin/json/adapter.ts +37 -32
  143. package/lib/adapters/wof/admin/json/explore.ts +15 -17
  144. package/lib/adapters/wof/admin/json/region-codes.ts +28 -9
  145. package/lib/adapters/wof/json-rows.ts +6 -6
  146. package/lib/adapters/wof/postalcode-json/adapter.ts +13 -10
  147. package/lib/adapters/wof/record-cache.ts +3 -3
  148. package/lib/adapters/wof/sample.ts +4 -4
  149. package/lib/adapters.ts +45 -30
  150. package/lib/address-records/admission.ts +86 -0
  151. package/lib/address-records/legal-forms.ts +34 -0
  152. package/lib/address-records/openaddresses.ts +202 -0
  153. package/lib/address-records/overture.ts +149 -0
  154. package/lib/au/adapters/gnaf/adapter.ts +10 -10
  155. package/lib/au/adapters/gnaf/assemble.ts +19 -13
  156. package/lib/au/recipes/delivery-guideline.ts +10 -10
  157. package/lib/au/recipes/unit-type-guideline.ts +15 -14
  158. package/lib/az/adapters/opendata/adapter.ts +28 -21
  159. package/lib/be/adapters/brussels/adapter.ts +110 -88
  160. package/lib/be/adapters/vlaanderen/adapter.ts +53 -45
  161. package/lib/be/adapters/wallonie/adapter.ts +118 -90
  162. package/lib/be/tools/fetch/brussels.ts +15 -14
  163. package/lib/be/tools/fetch/wallonie.ts +15 -15
  164. package/lib/bs/adapters/gbpa/adapter.ts +19 -15
  165. package/lib/build/adapters.ts +62 -5
  166. package/lib/build/align/range.ts +3 -3
  167. package/lib/build/align/totals.ts +3 -3
  168. package/lib/build/align.ts +5 -5
  169. package/lib/build/budget.ts +4 -4
  170. package/lib/build/checkpoint.ts +5 -5
  171. package/lib/build/code-hash.ts +10 -7
  172. package/lib/build/component-check.ts +5 -5
  173. package/lib/build/eligibility.ts +3 -3
  174. package/lib/build/heap.ts +3 -3
  175. package/lib/build/holdout-check.ts +4 -4
  176. package/lib/build/inputs.ts +44 -12
  177. package/lib/build/lock.ts +3 -3
  178. package/lib/build/manifest.ts +3 -3
  179. package/lib/build/parallel.ts +14 -9
  180. package/lib/build/prior-output.ts +3 -3
  181. package/lib/build/rows.ts +3 -3
  182. package/lib/build/settings.ts +4 -4
  183. package/lib/build/source-record.ts +5 -14
  184. package/lib/build/types.ts +5 -5
  185. package/lib/build/worker.ts +12 -4
  186. package/lib/build.ts +14 -11
  187. package/lib/cjk/builder.ts +5 -5
  188. package/lib/cjk/foreign-places.ts +9 -7
  189. package/lib/cjk/overlay.ts +3 -3
  190. package/lib/cjk/registry.ts +12 -12
  191. package/lib/cjk/text.ts +4 -4
  192. package/lib/cn/recipes/organizational-units.ts +3 -3
  193. package/lib/cz/adapters/cuzk/adapter.ts +8 -9
  194. package/lib/cz/recipes/pcfirst-preposition.ts +9 -10
  195. package/lib/cz/tools/fetch/cuzk.ts +55 -52
  196. package/lib/de/fragment-board.ts +3 -3
  197. package/lib/de/recipes/locale.ts +15 -13
  198. package/lib/de/recipes/postfach-guideline.ts +5 -6
  199. package/lib/directory.ts +3 -3
  200. package/lib/dk/adapters/inspire/adapter.ts +51 -42
  201. package/lib/dk/tools/fetch/inspire.ts +33 -31
  202. package/lib/ee/adapters/ads/adapter.ts +44 -37
  203. package/lib/ee/tools/fetch/ads.ts +37 -31
  204. package/lib/env.ts +3 -4
  205. package/lib/es/adapters/bizkaia/adapter.ts +70 -58
  206. package/lib/es/adapters/catastro/adapter.ts +63 -49
  207. package/lib/es/adapters/gipuzkoa/adapter.ts +49 -40
  208. package/lib/es/adapters/navarra/adapter.ts +41 -33
  209. package/lib/es/cadastre.ts +15 -14
  210. package/lib/es/tools/fetch/bizkaia.ts +50 -39
  211. package/lib/es/tools/fetch/catastro.ts +52 -48
  212. package/lib/es/tools/fetch/gipuzkoa.ts +30 -26
  213. package/lib/es/tools/fetch/navarra.ts +39 -38
  214. package/lib/fi/adapters/ryhti/adapter.ts +52 -46
  215. package/lib/fi/tools/fetch/ryhti.ts +35 -35
  216. package/lib/fingerprints.ts +4 -4
  217. package/lib/fo/adapters/adressur/adapter.ts +23 -19
  218. package/lib/fr/adapters/annuaire-education/adapter.ts +76 -67
  219. package/lib/fr/adapters/ban/adapter.ts +24 -17
  220. package/lib/fr/adapters/finess/adapter.ts +75 -59
  221. package/lib/fr/adapters/finess/postal-lines.ts +11 -12
  222. package/lib/fr/adapters/finess/voie-type.ts +24 -23
  223. package/lib/fr/address-records/ban.ts +131 -0
  224. package/lib/fr/insee-country.ts +11 -10
  225. package/lib/fr/recipes/admin-split.ts +8 -6
  226. package/lib/fr/recipes/bare-street.ts +3 -4
  227. package/lib/fr/recipes/fragment.ts +7 -7
  228. package/lib/fr/recipes/house-venue-tuples.ts +5 -5
  229. package/lib/fr/recipes/lieudit.ts +23 -19
  230. package/lib/fr/recipes/order.ts +9 -8
  231. package/lib/fr/recipes/unit-line-guideline.ts +14 -11
  232. package/lib/fr/street-decompose.ts +8 -6
  233. package/lib/fr/tools/fetch/annuaire-education.ts +18 -14
  234. package/lib/fr/tools/fetch/ban.ts +17 -15
  235. package/lib/fr/tools/fetch/finess.ts +57 -36
  236. package/lib/gauntlet-inputs.ts +6 -6
  237. package/lib/gb/adapters/os-open/adapter.ts +23 -16
  238. package/lib/gb/constituent-country.ts +9 -8
  239. package/lib/gb/county.ts +14 -13
  240. package/lib/gb/os-open/nearest-link.ts +13 -12
  241. package/lib/gb/os-open/open/names.ts +13 -11
  242. package/lib/gb/os-open/open/roads.ts +98 -13
  243. package/lib/gb/recipes/house-venue-tuples.ts +8 -8
  244. package/lib/gb/recipes/sub-building-guideline.ts +11 -10
  245. package/lib/gb/tools/fetch/os-open.ts +12 -10
  246. package/lib/gu/adapters/bsp/adapter.ts +25 -22
  247. package/lib/im/adapters/land-registry/adapter.ts +23 -19
  248. package/lib/index.ts +2 -5
  249. package/lib/inspire/address.ts +37 -32
  250. package/lib/inspire/archive.ts +13 -12
  251. package/lib/inspire/errors.ts +12 -11
  252. package/lib/inspire/stream.ts +27 -25
  253. package/lib/international/recipes/locale.ts +30 -21
  254. package/lib/it/adapters/anac/adapter.ts +83 -71
  255. package/lib/it/recipes/casella-postale-guideline.ts +13 -12
  256. package/lib/it/recipes/unit-line-guideline.ts +10 -9
  257. package/lib/it/tools/fetch/anac.ts +25 -24
  258. package/lib/jp/adapters/wof-admin/adapter.ts +12 -13
  259. package/lib/jp/corpus/assemble.ts +3 -3
  260. package/lib/jp/corpus/probe.ts +3 -3
  261. package/lib/jp/corpus/rows.ts +3 -3
  262. package/lib/jp/corpus/sources.ts +5 -5
  263. package/lib/jp/kana.ts +3 -3
  264. package/lib/jp/registers.ts +3 -3
  265. package/lib/jp/text.ts +3 -3
  266. package/lib/jp/tools/fetch/houjin.ts +78 -23
  267. package/lib/kr/adapters/juso/label-rows.ts +10 -10
  268. package/lib/kr/adapters/localdata/align.ts +7 -7
  269. package/lib/kr/adapters/localdata/key-index.ts +6 -6
  270. package/lib/kr/adapters/localdata/permit-rows.ts +11 -10
  271. package/lib/kr/corpus/assemble.ts +8 -8
  272. package/lib/kr/corpus/rows.ts +4 -4
  273. package/lib/kr/tools/fetch/juso.ts +82 -33
  274. package/lib/kr/tools/fetch/localdata.ts +61 -43
  275. package/lib/li/adapters/llv/adapter.ts +23 -18
  276. package/lib/lu/adapters/bd-adresses/adapter.ts +46 -46
  277. package/lib/lu/tools/fetch/bd-adresses.ts +33 -30
  278. package/lib/lv/adapters/varis/adapter.ts +94 -73
  279. package/lib/lv/tools/fetch/varis.ts +11 -10
  280. package/lib/nl/adapters/kadaster/adapter.ts +85 -64
  281. package/lib/nl/recipes/postcode.ts +16 -13
  282. package/lib/nl/tools/fetch/kadaster.ts +17 -17
  283. package/lib/no/adapters/matrikkelen/adapter.ts +17 -16
  284. package/lib/no/recipes/fragment.ts +2 -5
  285. package/lib/no/recipes/street/led.ts +8 -8
  286. package/lib/no/recipes/street.ts +7 -7
  287. package/lib/no/tools/fetch/matrikkelen.ts +32 -28
  288. package/lib/nz/recipes/unit-type-guideline.ts +13 -13
  289. package/lib/parquet/corpus-rows.ts +3 -3
  290. package/lib/parquet/duckdb.ts +22 -13
  291. package/lib/parquet/readers.ts +3 -3
  292. package/lib/parquet/record.ts +8 -8
  293. package/lib/parquet/schema.ts +6 -6
  294. package/lib/parquet/shuffle.ts +4 -4
  295. package/lib/parquet/span-sql.ts +3 -3
  296. package/lib/parquet/streams.ts +4 -4
  297. package/lib/parquet/writers.ts +8 -8
  298. package/lib/pl/adapters/emuia/adapter.ts +56 -45
  299. package/lib/pl/tools/fetch/emuia.ts +62 -50
  300. package/lib/post-offices/source.ts +112 -0
  301. package/lib/post-offices/sources.ts +18 -0
  302. package/lib/recipes/address-points.ts +4 -4
  303. package/lib/recipes/anchor-absorption.ts +10 -9
  304. package/lib/recipes/bare/country.ts +3 -0
  305. package/lib/recipes/bare/postcode/eval.ts +7 -7
  306. package/lib/recipes/bare/postcode.ts +13 -13
  307. package/lib/recipes/boundary-stress.ts +6 -6
  308. package/lib/recipes/country-balanced.ts +21 -12
  309. package/lib/recipes/deepseek/batches.ts +7 -7
  310. package/lib/recipes/deepseek/client.ts +3 -3
  311. package/lib/recipes/deepseek/generate.ts +3 -3
  312. package/lib/recipes/deepseek/kryptonite.ts +4 -4
  313. package/lib/recipes/deepseek/prompts.ts +3 -3
  314. package/lib/recipes/deepseek/run.ts +5 -5
  315. package/lib/recipes/deepseek/transliteration.ts +4 -4
  316. package/lib/recipes/fragment-assay/build.ts +3 -3
  317. package/lib/recipes/fragment-assay/rows.ts +3 -3
  318. package/lib/recipes/fragment-assay/sources.ts +7 -7
  319. package/lib/recipes/house/venue/tuples.ts +4 -4
  320. package/lib/recipes/house/venue.ts +9 -9
  321. package/lib/recipes/intersection.ts +22 -19
  322. package/lib/recipes/po/box/cedex/au-nz.ts +2 -3
  323. package/lib/recipes/po/box/cedex/ca.ts +2 -3
  324. package/lib/recipes/po/box/cedex/fr.ts +2 -3
  325. package/lib/recipes/po/box/cedex/phrases.ts +2 -3
  326. package/lib/recipes/po/box/cedex/recipe.ts +4 -5
  327. package/lib/recipes/po/box/cedex/sources.ts +4 -5
  328. package/lib/recipes/po/box/cedex/types.ts +2 -3
  329. package/lib/recipes/po/box/cedex/us.ts +2 -3
  330. package/lib/recipes/po/box/cedex/vocabulary.ts +2 -3
  331. package/lib/recipes/po/box/cedex.ts +3 -4
  332. package/lib/recipes/po/box.ts +4 -5
  333. package/lib/recipes/postal/guideline/leg.ts +5 -5
  334. package/lib/recipes/postal/guideline.ts +11 -10
  335. package/lib/recipes/postal/unit-guideline.ts +16 -14
  336. package/lib/recipes/scaffold.ts +11 -11
  337. package/lib/recipes/secondary.ts +3 -3
  338. package/lib/recipes/sources.ts +9 -9
  339. package/lib/recipes/street/affix.ts +15 -12
  340. package/lib/recipes/street/bare.ts +16 -14
  341. package/lib/recipes/street.ts +6 -6
  342. package/lib/recipes/sub/venue/context.ts +9 -9
  343. package/lib/recipes/sub/venue/render.ts +3 -3
  344. package/lib/recipes/sub/venue/sources.ts +3 -6
  345. package/lib/recipes/sub/venue.ts +5 -6
  346. package/lib/recipes/trailing-region.ts +14 -14
  347. package/lib/recipes/unit.ts +11 -11
  348. package/lib/recipes/venue.ts +24 -21
  349. package/lib/recipes.ts +9 -8
  350. package/lib/registers.ts +7 -4
  351. package/lib/ro/adapters/retea-scolara/adapter.ts +36 -28
  352. package/lib/ro/tools/fetch/retea-scolara.ts +10 -9
  353. package/lib/runner.ts +24 -9
  354. package/lib/sg/recipes/register.ts +7 -7
  355. package/lib/sg/tools/fetch/acra.ts +19 -7
  356. package/lib/si/recipes/bare-village.ts +16 -13
  357. package/lib/sk/adapters/inspire/adapter.ts +78 -56
  358. package/lib/sk/tools/fetch/inspire.ts +37 -33
  359. package/lib/source-register/corpus-inputs.ts +22 -18
  360. package/lib/source-register/effective-manifest.ts +22 -10
  361. package/lib/source-register/register.ts +5 -6
  362. package/lib/source-register/row-license.ts +19 -15
  363. package/lib/source-register/training-manifest.ts +18 -18
  364. package/lib/source-register/types.ts +11 -11
  365. package/lib/source-register.ts +7 -7
  366. package/lib/south-asia/recipes/register.ts +20 -17
  367. package/lib/street-index/reader.ts +3 -3
  368. package/lib/street-index/schema.ts +3 -3
  369. package/lib/street-index/write.ts +3 -3
  370. package/lib/subvenue/harvest.ts +35 -25
  371. package/lib/subvenue/promotions.ts +4 -5
  372. package/lib/subvenue/surfaces.ts +4 -5
  373. package/lib/subvenue/table.ts +5 -6
  374. package/lib/surfaces/locale.ts +13 -12
  375. package/lib/synthesizers/anchor-absorption.ts +6 -6
  376. package/lib/synthesizers/boundary-stress.ts +4 -5
  377. package/lib/synthesizers/house-venue.ts +3 -4
  378. package/lib/synthesizers/no-street.ts +8 -7
  379. package/lib/synthesizers/po-box.ts +5 -5
  380. package/lib/synthesizers/tail.ts +10 -10
  381. package/lib/synthesizers/utils.ts +31 -6
  382. package/lib/test-kit/corpus-recipe.ts +6 -7
  383. package/lib/test-kit.ts +8 -7
  384. package/lib/tools/align-canonical.ts +5 -2
  385. package/lib/tools/audit.ts +9 -9
  386. package/lib/tools/cjk/foreign-places.run.ts +3 -3
  387. package/lib/tools/cjk/overlay.run.ts +3 -3
  388. package/lib/tools/corpus-stats.ts +14 -12
  389. package/lib/tools/de-fragment-board.run.ts +6 -6
  390. package/lib/tools/deepseek.run.ts +3 -3
  391. package/lib/tools/fetch/atom.ts +6 -6
  392. package/lib/tools/fetch/cordis.ts +16 -15
  393. package/lib/tools/fetch/download/manifest.ts +8 -8
  394. package/lib/tools/fetch/download/network.ts +11 -5
  395. package/lib/tools/fetch/download/retry.ts +6 -10
  396. package/lib/tools/fetch/download.ts +3 -3
  397. package/lib/tools/fetch/geonames/dump.ts +26 -18
  398. package/lib/tools/fetch/geonames/postal.ts +13 -13
  399. package/lib/tools/fetch/gleif.ts +22 -20
  400. package/lib/tools/fetch/header.ts +9 -12
  401. package/lib/tools/fetch/inspire-addresses.ts +23 -20
  402. package/lib/tools/fetch/openaddresses.ts +385 -9
  403. package/lib/tools/fetch/ourairports.ts +5 -6
  404. package/lib/tools/fetch/storage.ts +404 -0
  405. package/lib/tools/fetch/vlaanderen-ad.ts +26 -25
  406. package/lib/tools/fetch/wfs-harvest.ts +55 -41
  407. package/lib/tools/fetch/wikidata/session.ts +8 -8
  408. package/lib/tools/fetch/wikidata/subvenue.ts +5 -5
  409. package/lib/tools/fetch/wikidata/vital-places/classify.ts +27 -21
  410. package/lib/tools/fetch/wikidata/vital-places/entities.ts +34 -30
  411. package/lib/tools/fetch/wikidata/vital-places/inventory.ts +6 -7
  412. package/lib/tools/fetch/wikidata/vital-places/progress.ts +3 -4
  413. package/lib/tools/fetch/wikidata/vital-places/qrank.ts +12 -11
  414. package/lib/tools/fetch/wikidata/vital-places/query-entities.ts +20 -12
  415. package/lib/tools/fetch/wikidata/vital-places/render.ts +11 -10
  416. package/lib/tools/fetch/wikidata/vital-places.ts +17 -15
  417. package/lib/tools/fetch/zip-archive.ts +5 -5
  418. package/lib/tools/fetch.ts +7 -4
  419. package/lib/tools/fragment-assay.run.ts +7 -7
  420. package/lib/tools/golden/expand.ts +25 -24
  421. package/lib/tools/golden/promote.ts +7 -7
  422. package/lib/tools/golden/relabel-street/directory.ts +3 -3
  423. package/lib/tools/golden/relabel-street/row.ts +5 -5
  424. package/lib/tools/golden/relabel-street.ts +3 -3
  425. package/lib/tools/house-venue-tuples.run.ts +3 -3
  426. package/lib/tools/ingest-csv.ts +12 -16
  427. package/lib/tools/input-changes.ts +6 -5
  428. package/lib/tools/jp/corpus.run.ts +3 -3
  429. package/lib/tools/jp/probe-corpus.run.ts +3 -3
  430. package/lib/tools/jsonl-to-parquet.ts +12 -8
  431. package/lib/tools/kr-corpus.run.ts +3 -3
  432. package/lib/tools/lint/recipe-output/vocab.ts +19 -14
  433. package/lib/tools/lint/recipe-output.ts +13 -10
  434. package/lib/tools/migrate/overlay-parquet.ts +6 -6
  435. package/lib/tools/migrate/recipe-output.ts +4 -4
  436. package/lib/tools/migrate/source-names.ts +4 -4
  437. package/lib/tools/overlay/deletions.ts +7 -7
  438. package/lib/tools/overlay/distinct-row-ids.ts +3 -3
  439. package/lib/tools/overlay/held-out-spans.ts +5 -5
  440. package/lib/tools/overlay/kryptonite.ts +9 -9
  441. package/lib/tools/overlay/manifest.ts +4 -5
  442. package/lib/tools/overlay/merge-source.ts +3 -3
  443. package/lib/tools/overlay/split/attribute.ts +3 -3
  444. package/lib/tools/overlay/split/overlay.ts +3 -3
  445. package/lib/tools/overlay/translit.ts +20 -20
  446. package/lib/tools/overture-subvenue.ts +8 -8
  447. package/lib/tools/postcode/non-native-order.ts +16 -14
  448. package/lib/tools/postcode/triples.ts +13 -15
  449. package/lib/tools/registry-corpus.run.ts +3 -3
  450. package/lib/tools/secondary.run.ts +3 -3
  451. package/lib/tools/source-register/build.ts +14 -14
  452. package/lib/tools/street-index/build.run.ts +3 -3
  453. package/lib/tools/street-index/build.ts +3 -3
  454. package/lib/tools/sub/venue/head-nouns.ts +3 -4
  455. package/lib/tools/sub/venue/lexicon.ts +4 -5
  456. package/lib/tools/sub/venue/wikidata.ts +10 -9
  457. package/lib/tools/support-index.ts +13 -12
  458. package/lib/tools/tw-corpus.run.ts +3 -3
  459. package/lib/tools/variety-sample.ts +15 -13
  460. package/lib/tools/vital-places.run.ts +12 -9
  461. package/lib/training/config/admission.ts +5 -6
  462. package/lib/training/config/load.ts +22 -17
  463. package/lib/training/config/python-yaml.ts +16 -12
  464. package/lib/training/config/resolved.ts +6 -6
  465. package/lib/training/config/schema.ts +13 -10
  466. package/lib/tw/corpus/assemble.ts +3 -3
  467. package/lib/tw/corpus/rows.ts +5 -5
  468. package/lib/tw/registers.ts +4 -4
  469. package/lib/tw/tools/fetch/gcis.ts +54 -39
  470. package/lib/types.ts +10 -11
  471. package/lib/us/abbrev/region-samples.ts +10 -8
  472. package/lib/us/abbrev/regions.ts +6 -6
  473. package/lib/us/adapters/fcc-bdc/adapter.ts +6 -7
  474. package/lib/us/adapters/state/hi-schools/adapter.ts +14 -13
  475. package/lib/us/adapters/state/hi-schools/workbook.ts +2 -5
  476. package/lib/us/adapters/state/ia-contractors/adapter.ts +5 -6
  477. package/lib/us/adapters/state/ny-notaries/adapter.ts +7 -8
  478. package/lib/us/adapters/state/tx-notaries/adapter.ts +7 -7
  479. package/lib/us/adapters/tiger/adapter.ts +3 -4
  480. package/lib/us/adapters/tiger/street-decompose.ts +7 -8
  481. package/lib/us/adapters/usgov/hrsa-fqhc/adapter.ts +23 -20
  482. package/lib/us/adapters/usgov/imls-pls/adapter.ts +9 -10
  483. package/lib/us/adapters/usgov/irs-bmf/adapter.ts +15 -14
  484. package/lib/us/adapters/usgov/nad/adapter.ts +182 -80
  485. package/lib/us/adapters/usgov/nppes/adapter.ts +3 -4
  486. package/lib/us/adapters/usgov/samhsa-treatment-locator/adapter.ts +21 -18
  487. package/lib/us/adapters/usgov/usgs-post-offices/adapter.ts +162 -0
  488. package/lib/us/address-records/layer/worker.ts +54 -0
  489. package/lib/us/address-records/layer.ts +776 -0
  490. package/lib/us/address-records/nad.ts +125 -0
  491. package/lib/us/fips-state.ts +7 -8
  492. package/lib/us/post-offices/usgs-national-map.ts +89 -0
  493. package/lib/us/recipes/house-venue-tuples.ts +6 -6
  494. package/lib/us/recipes/skeleton-sources.ts +6 -6
  495. package/lib/us/state-country-codes.ts +7 -6
  496. package/lib/us/street-unit.ts +4 -4
  497. package/lib/us/synthesizers/intersection.ts +15 -12
  498. package/lib/us/synthesizers/street.ts +17 -15
  499. package/lib/us/tools/fetch/hrsa.ts +9 -8
  500. package/lib/us/tools/fetch/imls-pls.ts +45 -31
  501. package/lib/us/tools/fetch/nad/parquet.ts +135 -0
  502. package/lib/us/tools/fetch/nad.ts +175 -303
  503. package/lib/us/tools/fetch/nppes.ts +66 -29
  504. package/lib/us/tools/fetch/state/hi-schools.ts +48 -25
  505. package/lib/us/tools/fetch/state/sources.ts +11 -11
  506. package/lib/us/tools/fetch/tiger-full.ts +47 -16
  507. package/lib/us/tools/fetch/usgs-post-offices.ts +362 -0
  508. package/lib/us/tools/nad-skeletons.ts +63 -61
  509. package/lib/utils/align.ts +45 -39
  510. package/lib/utils/cooccurrence-stats.ts +8 -7
  511. package/lib/utils/golden.ts +3 -4
  512. package/lib/utils/license.ts +29 -21
  513. package/lib/utils/retention.ts +11 -8
  514. package/lib/utils/shape-supply.ts +6 -7
  515. package/lib/utils/split.ts +15 -14
  516. package/lib/utils/tokenize.ts +9 -8
  517. package/lib/utils/wof-json.ts +36 -22
  518. package/lib/utils.ts +2 -5
  519. package/lib/uy/adapters/ide/adapter.ts +22 -17
  520. package/lib/ve/recipes/reviewed-postcode-tail.ts +8 -8
  521. package/out/adapters/cordis/adapter.d.ts +2 -126
  522. package/out/adapters/cordis/adapter.d.ts.map +1 -1
  523. package/out/adapters/cordis/adapter.js +8 -10
  524. package/out/adapters/cordis/adapter.js.map +1 -1
  525. package/out/adapters/dedup-key.d.ts +2 -9
  526. package/out/adapters/dedup-key.d.ts.map +1 -1
  527. package/out/adapters/dedup-key.js +4 -9
  528. package/out/adapters/dedup-key.js.map +1 -1
  529. package/out/adapters/errors.d.ts +0 -4
  530. package/out/adapters/errors.d.ts.map +1 -1
  531. package/out/adapters/errors.js +2 -4
  532. package/out/adapters/errors.js.map +1 -1
  533. package/out/adapters/geonames/adapter.d.ts +0 -10
  534. package/out/adapters/geonames/adapter.d.ts.map +1 -1
  535. package/out/adapters/geonames/adapter.js +4 -6
  536. package/out/adapters/geonames/adapter.js.map +1 -1
  537. package/out/adapters/geonames/features/adapter.d.ts +0 -16
  538. package/out/adapters/geonames/features/adapter.d.ts.map +1 -1
  539. package/out/adapters/geonames/features/adapter.js +2 -3
  540. package/out/adapters/geonames/features/adapter.js.map +1 -1
  541. package/out/adapters/geonames/postal/adapter.d.ts +0 -8
  542. package/out/adapters/geonames/postal/adapter.d.ts.map +1 -1
  543. package/out/adapters/geonames/postal/adapter.js +4 -6
  544. package/out/adapters/geonames/postal/adapter.js.map +1 -1
  545. package/out/adapters/gleif/adapter.d.ts +3 -97
  546. package/out/adapters/gleif/adapter.d.ts.map +1 -1
  547. package/out/adapters/gleif/adapter.js +86 -67
  548. package/out/adapters/gleif/adapter.js.map +1 -1
  549. package/out/adapters/libpostal-dictionary.d.ts +0 -7
  550. package/out/adapters/libpostal-dictionary.d.ts.map +1 -1
  551. package/out/adapters/libpostal-dictionary.js +2 -4
  552. package/out/adapters/libpostal-dictionary.js.map +1 -1
  553. package/out/adapters/openaddresses/adapter.d.ts +0 -12
  554. package/out/adapters/openaddresses/adapter.d.ts.map +1 -1
  555. package/out/adapters/openaddresses/adapter.js +8 -7
  556. package/out/adapters/openaddresses/adapter.js.map +1 -1
  557. package/out/adapters/osm/adapter.d.ts +1 -12
  558. package/out/adapters/osm/adapter.d.ts.map +1 -1
  559. package/out/adapters/osm/adapter.js +10 -9
  560. package/out/adapters/osm/adapter.js.map +1 -1
  561. package/out/adapters/osm/license.d.ts +1 -4
  562. package/out/adapters/osm/license.d.ts.map +1 -1
  563. package/out/adapters/osm/license.js +3 -4
  564. package/out/adapters/osm/license.js.map +1 -1
  565. package/out/adapters/overture/adapter.d.ts +0 -8
  566. package/out/adapters/overture/adapter.d.ts.map +1 -1
  567. package/out/adapters/overture/adapter.js +5 -5
  568. package/out/adapters/overture/adapter.js.map +1 -1
  569. package/out/adapters/overture/paths.d.ts +13 -0
  570. package/out/adapters/overture/paths.d.ts.map +1 -0
  571. package/out/adapters/overture/paths.js +21 -0
  572. package/out/adapters/overture/paths.js.map +1 -0
  573. package/out/adapters/po-box/adapter.d.ts +0 -10
  574. package/out/adapters/po-box/adapter.d.ts.map +1 -1
  575. package/out/adapters/po-box/adapter.js +8 -9
  576. package/out/adapters/po-box/adapter.js.map +1 -1
  577. package/out/adapters/present.d.ts.map +1 -1
  578. package/out/adapters/present.js +2 -0
  579. package/out/adapters/present.js.map +1 -1
  580. package/out/adapters/record-id.d.ts +0 -15
  581. package/out/adapters/record-id.d.ts.map +1 -1
  582. package/out/adapters/record-id.js +2 -3
  583. package/out/adapters/record-id.js.map +1 -1
  584. package/out/adapters/registry.d.ts +0 -11
  585. package/out/adapters/registry.d.ts.map +1 -1
  586. package/out/adapters/registry.js +6 -7
  587. package/out/adapters/registry.js.map +1 -1
  588. package/out/adapters/sha256-stream.d.ts +0 -7
  589. package/out/adapters/sha256-stream.d.ts.map +1 -1
  590. package/out/adapters/sha256-stream.js +2 -4
  591. package/out/adapters/sha256-stream.js.map +1 -1
  592. package/out/adapters/source-id.d.ts +9 -10
  593. package/out/adapters/source-id.d.ts.map +1 -1
  594. package/out/adapters/source-id.js +3 -15
  595. package/out/adapters/source-id.js.map +1 -1
  596. package/out/adapters/street/line.d.ts +24 -19
  597. package/out/adapters/street/line.d.ts.map +1 -1
  598. package/out/adapters/street/line.js +35 -21
  599. package/out/adapters/street/line.js.map +1 -1
  600. package/out/adapters/street/unit.d.ts +13 -7
  601. package/out/adapters/street/unit.d.ts.map +1 -1
  602. package/out/adapters/street/unit.js +42 -15
  603. package/out/adapters/street/unit.js.map +1 -1
  604. package/out/adapters/wof/admin/json/adapter.d.ts +0 -40
  605. package/out/adapters/wof/admin/json/adapter.d.ts.map +1 -1
  606. package/out/adapters/wof/admin/json/adapter.js +36 -32
  607. package/out/adapters/wof/admin/json/adapter.js.map +1 -1
  608. package/out/adapters/wof/admin/json/explore.d.ts +5 -18
  609. package/out/adapters/wof/admin/json/explore.d.ts.map +1 -1
  610. package/out/adapters/wof/admin/json/explore.js +12 -15
  611. package/out/adapters/wof/admin/json/explore.js.map +1 -1
  612. package/out/adapters/wof/admin/json/region-codes.d.ts +5 -13
  613. package/out/adapters/wof/admin/json/region-codes.d.ts.map +1 -1
  614. package/out/adapters/wof/admin/json/region-codes.js +24 -9
  615. package/out/adapters/wof/admin/json/region-codes.js.map +1 -1
  616. package/out/adapters/wof/json-rows.d.ts +3 -9
  617. package/out/adapters/wof/json-rows.d.ts.map +1 -1
  618. package/out/adapters/wof/json-rows.js +5 -6
  619. package/out/adapters/wof/json-rows.js.map +1 -1
  620. package/out/adapters/wof/postalcode-json/adapter.d.ts +0 -17
  621. package/out/adapters/wof/postalcode-json/adapter.d.ts.map +1 -1
  622. package/out/adapters/wof/postalcode-json/adapter.js +2 -17
  623. package/out/adapters/wof/postalcode-json/adapter.js.map +1 -1
  624. package/out/adapters/wof/record-cache.d.ts +0 -6
  625. package/out/adapters/wof/record-cache.d.ts.map +1 -1
  626. package/out/adapters/wof/record-cache.js +2 -3
  627. package/out/adapters/wof/record-cache.js.map +1 -1
  628. package/out/adapters/wof/sample.d.ts +1 -4
  629. package/out/adapters/wof/sample.d.ts.map +1 -1
  630. package/out/adapters/wof/sample.js +3 -7
  631. package/out/adapters/wof/sample.js.map +1 -1
  632. package/out/adapters.d.ts +1 -40
  633. package/out/adapters.d.ts.map +1 -1
  634. package/out/adapters.js +39 -30
  635. package/out/adapters.js.map +1 -1
  636. package/out/address-records/admission.d.ts +15 -0
  637. package/out/address-records/admission.d.ts.map +1 -0
  638. package/out/address-records/admission.js +75 -0
  639. package/out/address-records/admission.js.map +1 -0
  640. package/out/address-records/legal-forms.d.ts +9 -0
  641. package/out/address-records/legal-forms.d.ts.map +1 -0
  642. package/out/address-records/legal-forms.js +30 -0
  643. package/out/address-records/legal-forms.js.map +1 -0
  644. package/out/address-records/openaddresses.d.ts +74 -0
  645. package/out/address-records/openaddresses.d.ts.map +1 -0
  646. package/out/address-records/openaddresses.js +130 -0
  647. package/out/address-records/openaddresses.js.map +1 -0
  648. package/out/address-records/overture.d.ts +61 -0
  649. package/out/address-records/overture.d.ts.map +1 -0
  650. package/out/address-records/overture.js +103 -0
  651. package/out/address-records/overture.js.map +1 -0
  652. package/out/au/adapters/gnaf/adapter.d.ts +0 -14
  653. package/out/au/adapters/gnaf/adapter.d.ts.map +1 -1
  654. package/out/au/adapters/gnaf/adapter.js +9 -10
  655. package/out/au/adapters/gnaf/adapter.js.map +1 -1
  656. package/out/au/adapters/gnaf/assemble.d.ts +0 -18
  657. package/out/au/adapters/gnaf/assemble.d.ts.map +1 -1
  658. package/out/au/adapters/gnaf/assemble.js +18 -13
  659. package/out/au/adapters/gnaf/assemble.js.map +1 -1
  660. package/out/au/recipes/delivery-guideline.d.ts +0 -13
  661. package/out/au/recipes/delivery-guideline.d.ts.map +1 -1
  662. package/out/au/recipes/delivery-guideline.js +9 -10
  663. package/out/au/recipes/delivery-guideline.js.map +1 -1
  664. package/out/au/recipes/unit-type-guideline.d.ts +0 -19
  665. package/out/au/recipes/unit-type-guideline.d.ts.map +1 -1
  666. package/out/au/recipes/unit-type-guideline.js +14 -14
  667. package/out/au/recipes/unit-type-guideline.js.map +1 -1
  668. package/out/az/adapters/opendata/adapter.d.ts +1 -35
  669. package/out/az/adapters/opendata/adapter.d.ts.map +1 -1
  670. package/out/az/adapters/opendata/adapter.js +27 -21
  671. package/out/az/adapters/opendata/adapter.js.map +1 -1
  672. package/out/be/adapters/brussels/adapter.d.ts +2 -116
  673. package/out/be/adapters/brussels/adapter.d.ts.map +1 -1
  674. package/out/be/adapters/brussels/adapter.js +107 -86
  675. package/out/be/adapters/brussels/adapter.js.map +1 -1
  676. package/out/be/adapters/vlaanderen/adapter.d.ts +4 -71
  677. package/out/be/adapters/vlaanderen/adapter.d.ts.map +1 -1
  678. package/out/be/adapters/vlaanderen/adapter.js +50 -43
  679. package/out/be/adapters/vlaanderen/adapter.js.map +1 -1
  680. package/out/be/adapters/wallonie/adapter.d.ts +1 -128
  681. package/out/be/adapters/wallonie/adapter.d.ts.map +1 -1
  682. package/out/be/adapters/wallonie/adapter.js +117 -90
  683. package/out/be/adapters/wallonie/adapter.js.map +1 -1
  684. package/out/be/tools/fetch/brussels.d.ts +12 -14
  685. package/out/be/tools/fetch/brussels.d.ts.map +1 -1
  686. package/out/be/tools/fetch/brussels.js +14 -14
  687. package/out/be/tools/fetch/brussels.js.map +1 -1
  688. package/out/be/tools/fetch/wallonie.d.ts +12 -15
  689. package/out/be/tools/fetch/wallonie.d.ts.map +1 -1
  690. package/out/be/tools/fetch/wallonie.js +14 -15
  691. package/out/be/tools/fetch/wallonie.js.map +1 -1
  692. package/out/bs/adapters/gbpa/adapter.d.ts +0 -21
  693. package/out/bs/adapters/gbpa/adapter.d.ts.map +1 -1
  694. package/out/bs/adapters/gbpa/adapter.js +18 -15
  695. package/out/bs/adapters/gbpa/adapter.js.map +1 -1
  696. package/out/build/adapters.d.ts +27 -8
  697. package/out/build/adapters.d.ts.map +1 -1
  698. package/out/build/adapters.js +32 -5
  699. package/out/build/adapters.js.map +1 -1
  700. package/out/build/align/range.d.ts +0 -15
  701. package/out/build/align/range.d.ts.map +1 -1
  702. package/out/build/align/range.js +2 -3
  703. package/out/build/align/range.js.map +1 -1
  704. package/out/build/align/totals.d.ts +0 -3
  705. package/out/build/align/totals.d.ts.map +1 -1
  706. package/out/build/align/totals.js +2 -14
  707. package/out/build/align/totals.js.map +1 -1
  708. package/out/build/align.d.ts +1 -11
  709. package/out/build/align.d.ts.map +1 -1
  710. package/out/build/align.js +3 -4
  711. package/out/build/align.js.map +1 -1
  712. package/out/build/budget.d.ts +1 -16
  713. package/out/build/budget.d.ts.map +1 -1
  714. package/out/build/budget.js +3 -4
  715. package/out/build/budget.js.map +1 -1
  716. package/out/build/checkpoint.d.ts +2 -18
  717. package/out/build/checkpoint.d.ts.map +1 -1
  718. package/out/build/checkpoint.js +4 -5
  719. package/out/build/checkpoint.js.map +1 -1
  720. package/out/build/code-hash.d.ts +1 -25
  721. package/out/build/code-hash.d.ts.map +1 -1
  722. package/out/build/code-hash.js +17 -15
  723. package/out/build/code-hash.js.map +1 -1
  724. package/out/build/component-check.d.ts +1 -12
  725. package/out/build/component-check.d.ts.map +1 -1
  726. package/out/build/component-check.js +4 -5
  727. package/out/build/component-check.js.map +1 -1
  728. package/out/build/eligibility.d.ts +0 -6
  729. package/out/build/eligibility.d.ts.map +1 -1
  730. package/out/build/eligibility.js +2 -3
  731. package/out/build/eligibility.js.map +1 -1
  732. package/out/build/heap.d.ts +0 -6
  733. package/out/build/heap.d.ts.map +1 -1
  734. package/out/build/heap.js +2 -3
  735. package/out/build/heap.js.map +1 -1
  736. package/out/build/holdout-check.d.ts +1 -14
  737. package/out/build/holdout-check.d.ts.map +1 -1
  738. package/out/build/holdout-check.js +3 -4
  739. package/out/build/holdout-check.js.map +1 -1
  740. package/out/build/inputs.d.ts +20 -17
  741. package/out/build/inputs.d.ts.map +1 -1
  742. package/out/build/inputs.js +23 -12
  743. package/out/build/inputs.js.map +1 -1
  744. package/out/build/lock.d.ts +0 -3
  745. package/out/build/lock.d.ts.map +1 -1
  746. package/out/build/lock.js +2 -3
  747. package/out/build/lock.js.map +1 -1
  748. package/out/build/manifest.d.ts +0 -9
  749. package/out/build/manifest.d.ts.map +1 -1
  750. package/out/build/manifest.js +2 -3
  751. package/out/build/manifest.js.map +1 -1
  752. package/out/build/parallel.d.ts +0 -25
  753. package/out/build/parallel.d.ts.map +1 -1
  754. package/out/build/parallel.js +12 -9
  755. package/out/build/parallel.js.map +1 -1
  756. package/out/build/prior-output.d.ts +0 -12
  757. package/out/build/prior-output.d.ts.map +1 -1
  758. package/out/build/prior-output.js +2 -3
  759. package/out/build/prior-output.js.map +1 -1
  760. package/out/build/rows.d.ts +0 -3
  761. package/out/build/rows.d.ts.map +1 -1
  762. package/out/build/rows.js +2 -6
  763. package/out/build/rows.js.map +1 -1
  764. package/out/build/settings.d.ts +1 -10
  765. package/out/build/settings.d.ts.map +1 -1
  766. package/out/build/settings.js +3 -4
  767. package/out/build/settings.js.map +1 -1
  768. package/out/build/source-record.d.ts +2 -20
  769. package/out/build/source-record.d.ts.map +1 -1
  770. package/out/build/source-record.js +2 -3
  771. package/out/build/source-record.js.map +1 -1
  772. package/out/build/types.d.ts +2 -5
  773. package/out/build/types.d.ts.map +1 -1
  774. package/out/build/types.js +2 -10
  775. package/out/build/types.js.map +1 -1
  776. package/out/build/worker.d.ts +7 -15
  777. package/out/build/worker.d.ts.map +1 -1
  778. package/out/build/worker.js +4 -4
  779. package/out/build/worker.js.map +1 -1
  780. package/out/build.d.ts +0 -12
  781. package/out/build.d.ts.map +1 -1
  782. package/out/build.js +7 -6
  783. package/out/build.js.map +1 -1
  784. package/out/cjk/builder.d.ts +2 -13
  785. package/out/cjk/builder.d.ts.map +1 -1
  786. package/out/cjk/builder.js +4 -5
  787. package/out/cjk/builder.js.map +1 -1
  788. package/out/cjk/foreign-places.d.ts +4 -16
  789. package/out/cjk/foreign-places.d.ts.map +1 -1
  790. package/out/cjk/foreign-places.js +8 -7
  791. package/out/cjk/foreign-places.js.map +1 -1
  792. package/out/cjk/overlay.d.ts +0 -17
  793. package/out/cjk/overlay.d.ts.map +1 -1
  794. package/out/cjk/overlay.js +2 -3
  795. package/out/cjk/overlay.js.map +1 -1
  796. package/out/cjk/registry.d.ts +4 -19
  797. package/out/cjk/registry.d.ts.map +1 -1
  798. package/out/cjk/registry.js +9 -10
  799. package/out/cjk/registry.js.map +1 -1
  800. package/out/cjk/text.d.ts +1 -11
  801. package/out/cjk/text.d.ts.map +1 -1
  802. package/out/cjk/text.js +3 -4
  803. package/out/cjk/text.js.map +1 -1
  804. package/out/cn/recipes/organizational-units.d.ts +0 -9
  805. package/out/cn/recipes/organizational-units.d.ts.map +1 -1
  806. package/out/cn/recipes/organizational-units.js +2 -3
  807. package/out/cn/recipes/organizational-units.js.map +1 -1
  808. package/out/cz/adapters/cuzk/adapter.d.ts +1 -29
  809. package/out/cz/adapters/cuzk/adapter.d.ts.map +1 -1
  810. package/out/cz/adapters/cuzk/adapter.js +7 -9
  811. package/out/cz/adapters/cuzk/adapter.js.map +1 -1
  812. package/out/cz/recipes/pcfirst-preposition.d.ts +0 -12
  813. package/out/cz/recipes/pcfirst-preposition.d.ts.map +1 -1
  814. package/out/cz/recipes/pcfirst-preposition.js +8 -10
  815. package/out/cz/recipes/pcfirst-preposition.js.map +1 -1
  816. package/out/cz/tools/fetch/cuzk.d.ts +47 -47
  817. package/out/cz/tools/fetch/cuzk.d.ts.map +1 -1
  818. package/out/cz/tools/fetch/cuzk.js +52 -50
  819. package/out/cz/tools/fetch/cuzk.js.map +1 -1
  820. package/out/de/fragment-board.d.ts +0 -18
  821. package/out/de/fragment-board.d.ts.map +1 -1
  822. package/out/de/fragment-board.js +2 -3
  823. package/out/de/fragment-board.js.map +1 -1
  824. package/out/de/recipes/locale.d.ts +0 -19
  825. package/out/de/recipes/locale.d.ts.map +1 -1
  826. package/out/de/recipes/locale.js +14 -13
  827. package/out/de/recipes/locale.js.map +1 -1
  828. package/out/de/recipes/postfach-guideline.d.ts +0 -11
  829. package/out/de/recipes/postfach-guideline.d.ts.map +1 -1
  830. package/out/de/recipes/postfach-guideline.js +4 -6
  831. package/out/de/recipes/postfach-guideline.js.map +1 -1
  832. package/out/directory.d.ts +0 -11
  833. package/out/directory.d.ts.map +1 -1
  834. package/out/directory.js +2 -3
  835. package/out/directory.js.map +1 -1
  836. package/out/dk/adapters/inspire/adapter.d.ts +3 -50
  837. package/out/dk/adapters/inspire/adapter.d.ts.map +1 -1
  838. package/out/dk/adapters/inspire/adapter.js +50 -42
  839. package/out/dk/adapters/inspire/adapter.js.map +1 -1
  840. package/out/dk/tools/fetch/inspire.d.ts +2 -42
  841. package/out/dk/tools/fetch/inspire.d.ts.map +1 -1
  842. package/out/dk/tools/fetch/inspire.js +32 -31
  843. package/out/dk/tools/fetch/inspire.js.map +1 -1
  844. package/out/ee/adapters/ads/adapter.d.ts +1 -48
  845. package/out/ee/adapters/ads/adapter.d.ts.map +1 -1
  846. package/out/ee/adapters/ads/adapter.js +49 -43
  847. package/out/ee/adapters/ads/adapter.js.map +1 -1
  848. package/out/ee/tools/fetch/ads.d.ts +33 -30
  849. package/out/ee/tools/fetch/ads.d.ts.map +1 -1
  850. package/out/ee/tools/fetch/ads.js +36 -31
  851. package/out/ee/tools/fetch/ads.js.map +1 -1
  852. package/out/env.d.ts +0 -7
  853. package/out/env.d.ts.map +1 -1
  854. package/out/env.js +2 -4
  855. package/out/env.js.map +1 -1
  856. package/out/es/adapters/bizkaia/adapter.d.ts +2 -83
  857. package/out/es/adapters/bizkaia/adapter.d.ts.map +1 -1
  858. package/out/es/adapters/bizkaia/adapter.js +69 -58
  859. package/out/es/adapters/bizkaia/adapter.js.map +1 -1
  860. package/out/es/adapters/catastro/adapter.d.ts +0 -70
  861. package/out/es/adapters/catastro/adapter.d.ts.map +1 -1
  862. package/out/es/adapters/catastro/adapter.js +62 -49
  863. package/out/es/adapters/catastro/adapter.js.map +1 -1
  864. package/out/es/adapters/gipuzkoa/adapter.d.ts +0 -48
  865. package/out/es/adapters/gipuzkoa/adapter.d.ts.map +1 -1
  866. package/out/es/adapters/gipuzkoa/adapter.js +5 -51
  867. package/out/es/adapters/gipuzkoa/adapter.js.map +1 -1
  868. package/out/es/adapters/navarra/adapter.d.ts +41 -36
  869. package/out/es/adapters/navarra/adapter.d.ts.map +1 -1
  870. package/out/es/adapters/navarra/adapter.js +40 -33
  871. package/out/es/adapters/navarra/adapter.js.map +1 -1
  872. package/out/es/cadastre.d.ts +3 -17
  873. package/out/es/cadastre.d.ts.map +1 -1
  874. package/out/es/cadastre.js +14 -14
  875. package/out/es/cadastre.js.map +1 -1
  876. package/out/es/tools/fetch/bizkaia.d.ts +42 -34
  877. package/out/es/tools/fetch/bizkaia.d.ts.map +1 -1
  878. package/out/es/tools/fetch/bizkaia.js +48 -38
  879. package/out/es/tools/fetch/bizkaia.js.map +1 -1
  880. package/out/es/tools/fetch/catastro.d.ts +47 -46
  881. package/out/es/tools/fetch/catastro.d.ts.map +1 -1
  882. package/out/es/tools/fetch/catastro.js +50 -47
  883. package/out/es/tools/fetch/catastro.js.map +1 -1
  884. package/out/es/tools/fetch/gipuzkoa.d.ts +27 -26
  885. package/out/es/tools/fetch/gipuzkoa.d.ts.map +1 -1
  886. package/out/es/tools/fetch/gipuzkoa.js +28 -25
  887. package/out/es/tools/fetch/gipuzkoa.js.map +1 -1
  888. package/out/es/tools/fetch/navarra.d.ts +31 -33
  889. package/out/es/tools/fetch/navarra.d.ts.map +1 -1
  890. package/out/es/tools/fetch/navarra.js +37 -37
  891. package/out/es/tools/fetch/navarra.js.map +1 -1
  892. package/out/fi/adapters/ryhti/adapter.d.ts +0 -57
  893. package/out/fi/adapters/ryhti/adapter.d.ts.map +1 -1
  894. package/out/fi/adapters/ryhti/adapter.js +57 -52
  895. package/out/fi/adapters/ryhti/adapter.js.map +1 -1
  896. package/out/fi/tools/fetch/ryhti.d.ts +29 -32
  897. package/out/fi/tools/fetch/ryhti.d.ts.map +1 -1
  898. package/out/fi/tools/fetch/ryhti.js +33 -34
  899. package/out/fi/tools/fetch/ryhti.js.map +1 -1
  900. package/out/fingerprints.d.ts +1 -23
  901. package/out/fingerprints.d.ts.map +1 -1
  902. package/out/fingerprints.js +3 -4
  903. package/out/fingerprints.js.map +1 -1
  904. package/out/fo/adapters/adressur/adapter.d.ts +0 -26
  905. package/out/fo/adapters/adressur/adapter.d.ts.map +1 -1
  906. package/out/fo/adapters/adressur/adapter.js +22 -19
  907. package/out/fo/adapters/adressur/adapter.js.map +1 -1
  908. package/out/fr/adapters/annuaire-education/adapter.d.ts +4 -91
  909. package/out/fr/adapters/annuaire-education/adapter.d.ts.map +1 -1
  910. package/out/fr/adapters/annuaire-education/adapter.js +75 -67
  911. package/out/fr/adapters/annuaire-education/adapter.js.map +1 -1
  912. package/out/fr/adapters/ban/adapter.d.ts +0 -25
  913. package/out/fr/adapters/ban/adapter.d.ts.map +1 -1
  914. package/out/fr/adapters/ban/adapter.js +23 -17
  915. package/out/fr/adapters/ban/adapter.js.map +1 -1
  916. package/out/fr/adapters/finess/adapter.d.ts +7 -100
  917. package/out/fr/adapters/finess/adapter.d.ts.map +1 -1
  918. package/out/fr/adapters/finess/adapter.js +74 -59
  919. package/out/fr/adapters/finess/adapter.js.map +1 -1
  920. package/out/fr/adapters/finess/postal-lines.d.ts +3 -16
  921. package/out/fr/adapters/finess/postal-lines.d.ts.map +1 -1
  922. package/out/fr/adapters/finess/postal-lines.js +10 -12
  923. package/out/fr/adapters/finess/postal-lines.js.map +1 -1
  924. package/out/fr/adapters/finess/voie-type.d.ts +4 -28
  925. package/out/fr/adapters/finess/voie-type.d.ts.map +1 -1
  926. package/out/fr/adapters/finess/voie-type.js +23 -23
  927. package/out/fr/adapters/finess/voie-type.js.map +1 -1
  928. package/out/fr/address-records/ban.d.ts +44 -0
  929. package/out/fr/address-records/ban.d.ts.map +1 -0
  930. package/out/fr/address-records/ban.js +105 -0
  931. package/out/fr/address-records/ban.js.map +1 -0
  932. package/out/fr/insee-country.d.ts +8 -10
  933. package/out/fr/insee-country.d.ts.map +1 -1
  934. package/out/fr/insee-country.js +10 -10
  935. package/out/fr/insee-country.js.map +1 -1
  936. package/out/fr/recipes/admin-split.d.ts +0 -9
  937. package/out/fr/recipes/admin-split.d.ts.map +1 -1
  938. package/out/fr/recipes/admin-split.js +2 -9
  939. package/out/fr/recipes/admin-split.js.map +1 -1
  940. package/out/fr/recipes/bare-street.d.ts +0 -7
  941. package/out/fr/recipes/bare-street.d.ts.map +1 -1
  942. package/out/fr/recipes/bare-street.js +2 -4
  943. package/out/fr/recipes/bare-street.js.map +1 -1
  944. package/out/fr/recipes/fragment.d.ts +0 -12
  945. package/out/fr/recipes/fragment.d.ts.map +1 -1
  946. package/out/fr/recipes/fragment.js +6 -7
  947. package/out/fr/recipes/fragment.js.map +1 -1
  948. package/out/fr/recipes/house-venue-tuples.d.ts +2 -8
  949. package/out/fr/recipes/house-venue-tuples.d.ts.map +1 -1
  950. package/out/fr/recipes/house-venue-tuples.js +4 -5
  951. package/out/fr/recipes/house-venue-tuples.js.map +1 -1
  952. package/out/fr/recipes/lieudit.d.ts +0 -24
  953. package/out/fr/recipes/lieudit.d.ts.map +1 -1
  954. package/out/fr/recipes/lieudit.js +22 -19
  955. package/out/fr/recipes/lieudit.js.map +1 -1
  956. package/out/fr/recipes/order.d.ts +0 -9
  957. package/out/fr/recipes/order.d.ts.map +1 -1
  958. package/out/fr/recipes/order.js +4 -11
  959. package/out/fr/recipes/order.js.map +1 -1
  960. package/out/fr/recipes/unit-line-guideline.d.ts +0 -15
  961. package/out/fr/recipes/unit-line-guideline.d.ts.map +1 -1
  962. package/out/fr/recipes/unit-line-guideline.js +13 -11
  963. package/out/fr/recipes/unit-line-guideline.js.map +1 -1
  964. package/out/fr/street-decompose.d.ts +0 -16
  965. package/out/fr/street-decompose.d.ts.map +1 -1
  966. package/out/fr/street-decompose.js +7 -6
  967. package/out/fr/street-decompose.js.map +1 -1
  968. package/out/fr/tools/fetch/annuaire-education.d.ts +15 -14
  969. package/out/fr/tools/fetch/annuaire-education.d.ts.map +1 -1
  970. package/out/fr/tools/fetch/annuaire-education.js +17 -14
  971. package/out/fr/tools/fetch/annuaire-education.js.map +1 -1
  972. package/out/fr/tools/fetch/ban.d.ts +0 -21
  973. package/out/fr/tools/fetch/ban.d.ts.map +1 -1
  974. package/out/fr/tools/fetch/ban.js +16 -15
  975. package/out/fr/tools/fetch/ban.js.map +1 -1
  976. package/out/fr/tools/fetch/finess.d.ts +38 -28
  977. package/out/fr/tools/fetch/finess.d.ts.map +1 -1
  978. package/out/fr/tools/fetch/finess.js +42 -34
  979. package/out/fr/tools/fetch/finess.js.map +1 -1
  980. package/out/gauntlet-inputs.d.ts +2 -17
  981. package/out/gauntlet-inputs.d.ts.map +1 -1
  982. package/out/gauntlet-inputs.js +5 -6
  983. package/out/gauntlet-inputs.js.map +1 -1
  984. package/out/gb/adapters/os-open/adapter.d.ts +1 -31
  985. package/out/gb/adapters/os-open/adapter.d.ts.map +1 -1
  986. package/out/gb/adapters/os-open/adapter.js +21 -15
  987. package/out/gb/adapters/os-open/adapter.js.map +1 -1
  988. package/out/gb/constituent-country.d.ts +0 -13
  989. package/out/gb/constituent-country.d.ts.map +1 -1
  990. package/out/gb/constituent-country.js +8 -8
  991. package/out/gb/constituent-country.js.map +1 -1
  992. package/out/gb/county.d.ts +1 -15
  993. package/out/gb/county.d.ts.map +1 -1
  994. package/out/gb/county.js +13 -13
  995. package/out/gb/county.js.map +1 -1
  996. package/out/gb/os-open/nearest-link.d.ts +1 -17
  997. package/out/gb/os-open/nearest-link.d.ts.map +1 -1
  998. package/out/gb/os-open/nearest-link.js +12 -12
  999. package/out/gb/os-open/nearest-link.js.map +1 -1
  1000. package/out/gb/os-open/open/names.d.ts +1 -16
  1001. package/out/gb/os-open/open/names.d.ts.map +1 -1
  1002. package/out/gb/os-open/open/names.js +11 -10
  1003. package/out/gb/os-open/open/names.js.map +1 -1
  1004. package/out/gb/os-open/open/roads.d.ts +29 -18
  1005. package/out/gb/os-open/open/roads.d.ts.map +1 -1
  1006. package/out/gb/os-open/open/roads.js +60 -13
  1007. package/out/gb/os-open/open/roads.js.map +1 -1
  1008. package/out/gb/recipes/house-venue-tuples.d.ts +4 -18
  1009. package/out/gb/recipes/house-venue-tuples.d.ts.map +1 -1
  1010. package/out/gb/recipes/house-venue-tuples.js +7 -8
  1011. package/out/gb/recipes/house-venue-tuples.js.map +1 -1
  1012. package/out/gb/recipes/sub-building-guideline.d.ts +0 -16
  1013. package/out/gb/recipes/sub-building-guideline.d.ts.map +1 -1
  1014. package/out/gb/recipes/sub-building-guideline.js +10 -10
  1015. package/out/gb/recipes/sub-building-guideline.js.map +1 -1
  1016. package/out/gb/tools/fetch/os-open.d.ts +9 -10
  1017. package/out/gb/tools/fetch/os-open.d.ts.map +1 -1
  1018. package/out/gb/tools/fetch/os-open.js +11 -10
  1019. package/out/gb/tools/fetch/os-open.js.map +1 -1
  1020. package/out/gu/adapters/bsp/adapter.d.ts +2 -30
  1021. package/out/gu/adapters/bsp/adapter.d.ts.map +1 -1
  1022. package/out/gu/adapters/bsp/adapter.js +24 -22
  1023. package/out/gu/adapters/bsp/adapter.js.map +1 -1
  1024. package/out/im/adapters/land-registry/adapter.d.ts +1 -26
  1025. package/out/im/adapters/land-registry/adapter.d.ts.map +1 -1
  1026. package/out/im/adapters/land-registry/adapter.js +22 -19
  1027. package/out/im/adapters/land-registry/adapter.js.map +1 -1
  1028. package/out/index.d.ts +0 -5
  1029. package/out/index.d.ts.map +1 -1
  1030. package/out/index.js +2 -5
  1031. package/out/index.js.map +1 -1
  1032. package/out/inspire/address.d.ts +33 -31
  1033. package/out/inspire/address.d.ts.map +1 -1
  1034. package/out/inspire/address.js +6 -39
  1035. package/out/inspire/address.js.map +1 -1
  1036. package/out/inspire/archive.d.ts +2 -17
  1037. package/out/inspire/archive.d.ts.map +1 -1
  1038. package/out/inspire/archive.js +12 -12
  1039. package/out/inspire/archive.js.map +1 -1
  1040. package/out/inspire/errors.d.ts +9 -11
  1041. package/out/inspire/errors.d.ts.map +1 -1
  1042. package/out/inspire/errors.js +11 -11
  1043. package/out/inspire/errors.js.map +1 -1
  1044. package/out/inspire/stream.d.ts +23 -24
  1045. package/out/inspire/stream.d.ts.map +1 -1
  1046. package/out/inspire/stream.js +3 -28
  1047. package/out/inspire/stream.js.map +1 -1
  1048. package/out/international/recipes/locale.d.ts +0 -9
  1049. package/out/international/recipes/locale.d.ts.map +1 -1
  1050. package/out/international/recipes/locale.js +29 -21
  1051. package/out/international/recipes/locale.js.map +1 -1
  1052. package/out/it/adapters/anac/adapter.d.ts +2 -118
  1053. package/out/it/adapters/anac/adapter.d.ts.map +1 -1
  1054. package/out/it/adapters/anac/adapter.js +82 -71
  1055. package/out/it/adapters/anac/adapter.js.map +1 -1
  1056. package/out/it/recipes/casella-postale-guideline.d.ts +0 -17
  1057. package/out/it/recipes/casella-postale-guideline.d.ts.map +1 -1
  1058. package/out/it/recipes/casella-postale-guideline.js +12 -12
  1059. package/out/it/recipes/casella-postale-guideline.js.map +1 -1
  1060. package/out/it/recipes/unit-line-guideline.d.ts +0 -14
  1061. package/out/it/recipes/unit-line-guideline.d.ts.map +1 -1
  1062. package/out/it/recipes/unit-line-guideline.js +9 -9
  1063. package/out/it/recipes/unit-line-guideline.js.map +1 -1
  1064. package/out/it/tools/fetch/anac.d.ts +22 -24
  1065. package/out/it/tools/fetch/anac.d.ts.map +1 -1
  1066. package/out/it/tools/fetch/anac.js +24 -24
  1067. package/out/it/tools/fetch/anac.js.map +1 -1
  1068. package/out/jp/adapters/wof-admin/adapter.d.ts +0 -30
  1069. package/out/jp/adapters/wof-admin/adapter.d.ts.map +1 -1
  1070. package/out/jp/adapters/wof-admin/adapter.js +11 -13
  1071. package/out/jp/adapters/wof-admin/adapter.js.map +1 -1
  1072. package/out/jp/corpus/assemble.d.ts +0 -13
  1073. package/out/jp/corpus/assemble.d.ts.map +1 -1
  1074. package/out/jp/corpus/assemble.js +2 -3
  1075. package/out/jp/corpus/assemble.js.map +1 -1
  1076. package/out/jp/corpus/probe.d.ts +0 -17
  1077. package/out/jp/corpus/probe.d.ts.map +1 -1
  1078. package/out/jp/corpus/probe.js +2 -3
  1079. package/out/jp/corpus/probe.js.map +1 -1
  1080. package/out/jp/corpus/rows.d.ts +0 -3
  1081. package/out/jp/corpus/rows.d.ts.map +1 -1
  1082. package/out/jp/corpus/rows.js +2 -11
  1083. package/out/jp/corpus/rows.js.map +1 -1
  1084. package/out/jp/corpus/sources.d.ts +1 -12
  1085. package/out/jp/corpus/sources.d.ts.map +1 -1
  1086. package/out/jp/corpus/sources.js +4 -5
  1087. package/out/jp/corpus/sources.js.map +1 -1
  1088. package/out/jp/kana.d.ts +0 -13
  1089. package/out/jp/kana.d.ts.map +1 -1
  1090. package/out/jp/kana.js +2 -3
  1091. package/out/jp/kana.js.map +1 -1
  1092. package/out/jp/registers.d.ts +0 -17
  1093. package/out/jp/registers.d.ts.map +1 -1
  1094. package/out/jp/registers.js +2 -3
  1095. package/out/jp/registers.js.map +1 -1
  1096. package/out/jp/text.d.ts +0 -9
  1097. package/out/jp/text.d.ts.map +1 -1
  1098. package/out/jp/text.js +2 -3
  1099. package/out/jp/text.js.map +1 -1
  1100. package/out/jp/tools/fetch/houjin.d.ts +14 -21
  1101. package/out/jp/tools/fetch/houjin.d.ts.map +1 -1
  1102. package/out/jp/tools/fetch/houjin.js +60 -20
  1103. package/out/jp/tools/fetch/houjin.js.map +1 -1
  1104. package/out/kr/adapters/juso/label-rows.d.ts +0 -12
  1105. package/out/kr/adapters/juso/label-rows.d.ts.map +1 -1
  1106. package/out/kr/adapters/juso/label-rows.js +9 -10
  1107. package/out/kr/adapters/juso/label-rows.js.map +1 -1
  1108. package/out/kr/adapters/localdata/align.d.ts +0 -9
  1109. package/out/kr/adapters/localdata/align.d.ts.map +1 -1
  1110. package/out/kr/adapters/localdata/align.js +6 -7
  1111. package/out/kr/adapters/localdata/align.js.map +1 -1
  1112. package/out/kr/adapters/localdata/key-index.d.ts +0 -9
  1113. package/out/kr/adapters/localdata/key-index.d.ts.map +1 -1
  1114. package/out/kr/adapters/localdata/key-index.js +5 -6
  1115. package/out/kr/adapters/localdata/key-index.js.map +1 -1
  1116. package/out/kr/adapters/localdata/permit-rows.d.ts +0 -12
  1117. package/out/kr/adapters/localdata/permit-rows.d.ts.map +1 -1
  1118. package/out/kr/adapters/localdata/permit-rows.js +10 -10
  1119. package/out/kr/adapters/localdata/permit-rows.js.map +1 -1
  1120. package/out/kr/corpus/assemble.d.ts +4 -16
  1121. package/out/kr/corpus/assemble.d.ts.map +1 -1
  1122. package/out/kr/corpus/assemble.js +7 -8
  1123. package/out/kr/corpus/assemble.js.map +1 -1
  1124. package/out/kr/corpus/rows.d.ts +1 -4
  1125. package/out/kr/corpus/rows.d.ts.map +1 -1
  1126. package/out/kr/corpus/rows.js +3 -13
  1127. package/out/kr/corpus/rows.js.map +1 -1
  1128. package/out/kr/tools/fetch/juso.d.ts +13 -28
  1129. package/out/kr/tools/fetch/juso.d.ts.map +1 -1
  1130. package/out/kr/tools/fetch/juso.js +55 -24
  1131. package/out/kr/tools/fetch/juso.js.map +1 -1
  1132. package/out/kr/tools/fetch/localdata.d.ts +9 -26
  1133. package/out/kr/tools/fetch/localdata.d.ts.map +1 -1
  1134. package/out/kr/tools/fetch/localdata.js +56 -39
  1135. package/out/kr/tools/fetch/localdata.js.map +1 -1
  1136. package/out/li/adapters/llv/adapter.d.ts +0 -27
  1137. package/out/li/adapters/llv/adapter.d.ts.map +1 -1
  1138. package/out/li/adapters/llv/adapter.js +22 -18
  1139. package/out/li/adapters/llv/adapter.js.map +1 -1
  1140. package/out/lu/adapters/bd-adresses/adapter.d.ts +0 -79
  1141. package/out/lu/adapters/bd-adresses/adapter.d.ts.map +1 -1
  1142. package/out/lu/adapters/bd-adresses/adapter.js +45 -46
  1143. package/out/lu/adapters/bd-adresses/adapter.js.map +1 -1
  1144. package/out/lu/tools/fetch/bd-adresses.d.ts +30 -30
  1145. package/out/lu/tools/fetch/bd-adresses.d.ts.map +1 -1
  1146. package/out/lu/tools/fetch/bd-adresses.js +32 -30
  1147. package/out/lu/tools/fetch/bd-adresses.js.map +1 -1
  1148. package/out/lv/adapters/varis/adapter.d.ts +4 -114
  1149. package/out/lv/adapters/varis/adapter.d.ts.map +1 -1
  1150. package/out/lv/adapters/varis/adapter.js +6 -114
  1151. package/out/lv/adapters/varis/adapter.js.map +1 -1
  1152. package/out/lv/tools/fetch/varis.d.ts +8 -10
  1153. package/out/lv/tools/fetch/varis.d.ts.map +1 -1
  1154. package/out/lv/tools/fetch/varis.js +10 -10
  1155. package/out/lv/tools/fetch/varis.js.map +1 -1
  1156. package/out/nl/adapters/kadaster/adapter.d.ts +0 -78
  1157. package/out/nl/adapters/kadaster/adapter.d.ts.map +1 -1
  1158. package/out/nl/adapters/kadaster/adapter.js +84 -64
  1159. package/out/nl/adapters/kadaster/adapter.js.map +1 -1
  1160. package/out/nl/recipes/postcode.d.ts +0 -18
  1161. package/out/nl/recipes/postcode.d.ts.map +1 -1
  1162. package/out/nl/recipes/postcode.js +15 -13
  1163. package/out/nl/recipes/postcode.js.map +1 -1
  1164. package/out/nl/tools/fetch/kadaster.d.ts +14 -17
  1165. package/out/nl/tools/fetch/kadaster.d.ts.map +1 -1
  1166. package/out/nl/tools/fetch/kadaster.js +15 -16
  1167. package/out/nl/tools/fetch/kadaster.js.map +1 -1
  1168. package/out/no/adapters/matrikkelen/adapter.d.ts +0 -23
  1169. package/out/no/adapters/matrikkelen/adapter.d.ts.map +1 -1
  1170. package/out/no/adapters/matrikkelen/adapter.js +16 -16
  1171. package/out/no/adapters/matrikkelen/adapter.js.map +1 -1
  1172. package/out/no/recipes/fragment.d.ts +0 -5
  1173. package/out/no/recipes/fragment.d.ts.map +1 -1
  1174. package/out/no/recipes/fragment.js +2 -5
  1175. package/out/no/recipes/fragment.js.map +1 -1
  1176. package/out/no/recipes/street/led.d.ts +0 -15
  1177. package/out/no/recipes/street/led.d.ts.map +1 -1
  1178. package/out/no/recipes/street/led.js +7 -8
  1179. package/out/no/recipes/street/led.js.map +1 -1
  1180. package/out/no/recipes/street.d.ts +0 -10
  1181. package/out/no/recipes/street.d.ts.map +1 -1
  1182. package/out/no/recipes/street.js +6 -7
  1183. package/out/no/recipes/street.js.map +1 -1
  1184. package/out/no/tools/fetch/matrikkelen.d.ts +29 -28
  1185. package/out/no/tools/fetch/matrikkelen.d.ts.map +1 -1
  1186. package/out/no/tools/fetch/matrikkelen.js +31 -28
  1187. package/out/no/tools/fetch/matrikkelen.js.map +1 -1
  1188. package/out/nz/recipes/unit-type-guideline.d.ts +0 -18
  1189. package/out/nz/recipes/unit-type-guideline.d.ts.map +1 -1
  1190. package/out/nz/recipes/unit-type-guideline.js +12 -13
  1191. package/out/nz/recipes/unit-type-guideline.js.map +1 -1
  1192. package/out/parquet/corpus-rows.d.ts +0 -3
  1193. package/out/parquet/corpus-rows.d.ts.map +1 -1
  1194. package/out/parquet/corpus-rows.js +2 -11
  1195. package/out/parquet/corpus-rows.js.map +1 -1
  1196. package/out/parquet/duckdb.d.ts +6 -16
  1197. package/out/parquet/duckdb.d.ts.map +1 -1
  1198. package/out/parquet/duckdb.js +15 -13
  1199. package/out/parquet/duckdb.js.map +1 -1
  1200. package/out/parquet/readers.d.ts +0 -9
  1201. package/out/parquet/readers.d.ts.map +1 -1
  1202. package/out/parquet/readers.js +2 -3
  1203. package/out/parquet/readers.js.map +1 -1
  1204. package/out/parquet/record.d.ts +3 -24
  1205. package/out/parquet/record.d.ts.map +1 -1
  1206. package/out/parquet/record.js +4 -5
  1207. package/out/parquet/record.js.map +1 -1
  1208. package/out/parquet/schema.d.ts +2 -5
  1209. package/out/parquet/schema.d.ts.map +1 -1
  1210. package/out/parquet/schema.js +5 -16
  1211. package/out/parquet/schema.js.map +1 -1
  1212. package/out/parquet/shuffle.d.ts +1 -7
  1213. package/out/parquet/shuffle.d.ts.map +1 -1
  1214. package/out/parquet/shuffle.js +3 -4
  1215. package/out/parquet/shuffle.js.map +1 -1
  1216. package/out/parquet/span-sql.d.ts +0 -3
  1217. package/out/parquet/span-sql.d.ts.map +1 -1
  1218. package/out/parquet/span-sql.js +2 -3
  1219. package/out/parquet/span-sql.js.map +1 -1
  1220. package/out/parquet/streams.d.ts +0 -3
  1221. package/out/parquet/streams.d.ts.map +1 -1
  1222. package/out/parquet/streams.js +3 -10
  1223. package/out/parquet/streams.js.map +1 -1
  1224. package/out/parquet/writers.d.ts +3 -35
  1225. package/out/parquet/writers.d.ts.map +1 -1
  1226. package/out/parquet/writers.js +6 -7
  1227. package/out/parquet/writers.js.map +1 -1
  1228. package/out/pl/adapters/emuia/adapter.d.ts +0 -53
  1229. package/out/pl/adapters/emuia/adapter.d.ts.map +1 -1
  1230. package/out/pl/adapters/emuia/adapter.js +55 -45
  1231. package/out/pl/adapters/emuia/adapter.js.map +1 -1
  1232. package/out/pl/tools/fetch/emuia.d.ts +59 -50
  1233. package/out/pl/tools/fetch/emuia.d.ts.map +1 -1
  1234. package/out/pl/tools/fetch/emuia.js +60 -49
  1235. package/out/pl/tools/fetch/emuia.js.map +1 -1
  1236. package/out/post-offices/source.d.ts +107 -0
  1237. package/out/post-offices/source.d.ts.map +1 -0
  1238. package/out/post-offices/source.js +21 -0
  1239. package/out/post-offices/source.js.map +1 -0
  1240. package/out/post-offices/sources.d.ts +13 -0
  1241. package/out/post-offices/sources.d.ts.map +1 -0
  1242. package/out/post-offices/sources.js +8 -0
  1243. package/out/post-offices/sources.js.map +1 -0
  1244. package/out/recipes/address-points.d.ts +1 -12
  1245. package/out/recipes/address-points.d.ts.map +1 -1
  1246. package/out/recipes/address-points.js +3 -4
  1247. package/out/recipes/address-points.js.map +1 -1
  1248. package/out/recipes/anchor-absorption.d.ts +0 -11
  1249. package/out/recipes/anchor-absorption.d.ts.map +1 -1
  1250. package/out/recipes/anchor-absorption.js +9 -9
  1251. package/out/recipes/anchor-absorption.js.map +1 -1
  1252. package/out/recipes/bare/country.d.ts.map +1 -1
  1253. package/out/recipes/bare/country.js +2 -0
  1254. package/out/recipes/bare/country.js.map +1 -1
  1255. package/out/recipes/bare/postcode/eval.d.ts +0 -10
  1256. package/out/recipes/bare/postcode/eval.d.ts.map +1 -1
  1257. package/out/recipes/bare/postcode/eval.js +6 -7
  1258. package/out/recipes/bare/postcode/eval.js.map +1 -1
  1259. package/out/recipes/bare/postcode.d.ts +3 -12
  1260. package/out/recipes/bare/postcode.d.ts.map +1 -1
  1261. package/out/recipes/bare/postcode.js +12 -13
  1262. package/out/recipes/bare/postcode.js.map +1 -1
  1263. package/out/recipes/boundary-stress.d.ts +0 -11
  1264. package/out/recipes/boundary-stress.d.ts.map +1 -1
  1265. package/out/recipes/boundary-stress.js +5 -6
  1266. package/out/recipes/boundary-stress.js.map +1 -1
  1267. package/out/recipes/country-balanced.d.ts +0 -8
  1268. package/out/recipes/country-balanced.d.ts.map +1 -1
  1269. package/out/recipes/country-balanced.js +17 -15
  1270. package/out/recipes/country-balanced.js.map +1 -1
  1271. package/out/recipes/deepseek/batches.d.ts +3 -14
  1272. package/out/recipes/deepseek/batches.d.ts.map +1 -1
  1273. package/out/recipes/deepseek/batches.js +6 -7
  1274. package/out/recipes/deepseek/batches.js.map +1 -1
  1275. package/out/recipes/deepseek/client.d.ts +0 -3
  1276. package/out/recipes/deepseek/client.d.ts.map +1 -1
  1277. package/out/recipes/deepseek/client.js +2 -3
  1278. package/out/recipes/deepseek/client.js.map +1 -1
  1279. package/out/recipes/deepseek/generate.d.ts +0 -9
  1280. package/out/recipes/deepseek/generate.d.ts.map +1 -1
  1281. package/out/recipes/deepseek/generate.js +2 -3
  1282. package/out/recipes/deepseek/generate.js.map +1 -1
  1283. package/out/recipes/deepseek/kryptonite.d.ts +1 -4
  1284. package/out/recipes/deepseek/kryptonite.d.ts.map +1 -1
  1285. package/out/recipes/deepseek/kryptonite.js +3 -4
  1286. package/out/recipes/deepseek/kryptonite.js.map +1 -1
  1287. package/out/recipes/deepseek/prompts.d.ts +0 -3
  1288. package/out/recipes/deepseek/prompts.d.ts.map +1 -1
  1289. package/out/recipes/deepseek/prompts.js +2 -10
  1290. package/out/recipes/deepseek/prompts.js.map +1 -1
  1291. package/out/recipes/deepseek/run.d.ts +2 -12
  1292. package/out/recipes/deepseek/run.d.ts.map +1 -1
  1293. package/out/recipes/deepseek/run.js +4 -5
  1294. package/out/recipes/deepseek/run.js.map +1 -1
  1295. package/out/recipes/deepseek/transliteration.d.ts +1 -4
  1296. package/out/recipes/deepseek/transliteration.d.ts.map +1 -1
  1297. package/out/recipes/deepseek/transliteration.js +3 -4
  1298. package/out/recipes/deepseek/transliteration.js.map +1 -1
  1299. package/out/recipes/fragment-assay/build.d.ts +0 -11
  1300. package/out/recipes/fragment-assay/build.d.ts.map +1 -1
  1301. package/out/recipes/fragment-assay/build.js +2 -3
  1302. package/out/recipes/fragment-assay/build.js.map +1 -1
  1303. package/out/recipes/fragment-assay/rows.d.ts +0 -10
  1304. package/out/recipes/fragment-assay/rows.d.ts.map +1 -1
  1305. package/out/recipes/fragment-assay/rows.js +2 -3
  1306. package/out/recipes/fragment-assay/rows.js.map +1 -1
  1307. package/out/recipes/fragment-assay/sources.d.ts +4 -16
  1308. package/out/recipes/fragment-assay/sources.d.ts.map +1 -1
  1309. package/out/recipes/fragment-assay/sources.js +6 -7
  1310. package/out/recipes/fragment-assay/sources.js.map +1 -1
  1311. package/out/recipes/house/venue/tuples.d.ts +1 -16
  1312. package/out/recipes/house/venue/tuples.d.ts.map +1 -1
  1313. package/out/recipes/house/venue/tuples.js +3 -4
  1314. package/out/recipes/house/venue/tuples.js.map +1 -1
  1315. package/out/recipes/house/venue.d.ts +0 -11
  1316. package/out/recipes/house/venue.d.ts.map +1 -1
  1317. package/out/recipes/house/venue.js +8 -9
  1318. package/out/recipes/house/venue.js.map +1 -1
  1319. package/out/recipes/intersection.d.ts +0 -34
  1320. package/out/recipes/intersection.d.ts.map +1 -1
  1321. package/out/recipes/intersection.js +2 -34
  1322. package/out/recipes/intersection.js.map +1 -1
  1323. package/out/recipes/po/box/cedex/au-nz.d.ts +0 -3
  1324. package/out/recipes/po/box/cedex/au-nz.d.ts.map +1 -1
  1325. package/out/recipes/po/box/cedex/au-nz.js +2 -3
  1326. package/out/recipes/po/box/cedex/au-nz.js.map +1 -1
  1327. package/out/recipes/po/box/cedex/ca.d.ts +0 -3
  1328. package/out/recipes/po/box/cedex/ca.d.ts.map +1 -1
  1329. package/out/recipes/po/box/cedex/ca.js +2 -3
  1330. package/out/recipes/po/box/cedex/ca.js.map +1 -1
  1331. package/out/recipes/po/box/cedex/fr.d.ts +0 -3
  1332. package/out/recipes/po/box/cedex/fr.d.ts.map +1 -1
  1333. package/out/recipes/po/box/cedex/fr.js +2 -3
  1334. package/out/recipes/po/box/cedex/fr.js.map +1 -1
  1335. package/out/recipes/po/box/cedex/phrases.d.ts +0 -3
  1336. package/out/recipes/po/box/cedex/phrases.d.ts.map +1 -1
  1337. package/out/recipes/po/box/cedex/phrases.js +2 -3
  1338. package/out/recipes/po/box/cedex/phrases.js.map +1 -1
  1339. package/out/recipes/po/box/cedex/recipe.d.ts +0 -3
  1340. package/out/recipes/po/box/cedex/recipe.d.ts.map +1 -1
  1341. package/out/recipes/po/box/cedex/recipe.js +4 -5
  1342. package/out/recipes/po/box/cedex/recipe.js.map +1 -1
  1343. package/out/recipes/po/box/cedex/sources.d.ts +1 -4
  1344. package/out/recipes/po/box/cedex/sources.d.ts.map +1 -1
  1345. package/out/recipes/po/box/cedex/sources.js +4 -5
  1346. package/out/recipes/po/box/cedex/sources.js.map +1 -1
  1347. package/out/recipes/po/box/cedex/types.d.ts +0 -3
  1348. package/out/recipes/po/box/cedex/types.d.ts.map +1 -1
  1349. package/out/recipes/po/box/cedex/types.js +2 -3
  1350. package/out/recipes/po/box/cedex/types.js.map +1 -1
  1351. package/out/recipes/po/box/cedex/us.d.ts +0 -3
  1352. package/out/recipes/po/box/cedex/us.d.ts.map +1 -1
  1353. package/out/recipes/po/box/cedex/us.js +2 -3
  1354. package/out/recipes/po/box/cedex/us.js.map +1 -1
  1355. package/out/recipes/po/box/cedex/vocabulary.d.ts +0 -3
  1356. package/out/recipes/po/box/cedex/vocabulary.d.ts.map +1 -1
  1357. package/out/recipes/po/box/cedex/vocabulary.js +2 -3
  1358. package/out/recipes/po/box/cedex/vocabulary.js.map +1 -1
  1359. package/out/recipes/po/box/cedex.d.ts +0 -4
  1360. package/out/recipes/po/box/cedex.d.ts.map +1 -1
  1361. package/out/recipes/po/box/cedex.js +2 -4
  1362. package/out/recipes/po/box/cedex.js.map +1 -1
  1363. package/out/recipes/po/box.d.ts +0 -9
  1364. package/out/recipes/po/box.d.ts.map +1 -1
  1365. package/out/recipes/po/box.js +3 -5
  1366. package/out/recipes/po/box.js.map +1 -1
  1367. package/out/recipes/postal/guideline/leg.d.ts +0 -8
  1368. package/out/recipes/postal/guideline/leg.d.ts.map +1 -1
  1369. package/out/recipes/postal/guideline/leg.js +4 -5
  1370. package/out/recipes/postal/guideline/leg.js.map +1 -1
  1371. package/out/recipes/postal/guideline.d.ts +1 -14
  1372. package/out/recipes/postal/guideline.d.ts.map +1 -1
  1373. package/out/recipes/postal/guideline.js +10 -10
  1374. package/out/recipes/postal/guideline.js.map +1 -1
  1375. package/out/recipes/postal/unit-guideline.d.ts +0 -19
  1376. package/out/recipes/postal/unit-guideline.d.ts.map +1 -1
  1377. package/out/recipes/postal/unit-guideline.js +15 -14
  1378. package/out/recipes/postal/unit-guideline.js.map +1 -1
  1379. package/out/recipes/scaffold.d.ts +4 -14
  1380. package/out/recipes/scaffold.d.ts.map +1 -1
  1381. package/out/recipes/scaffold.js +7 -8
  1382. package/out/recipes/scaffold.js.map +1 -1
  1383. package/out/recipes/secondary.d.ts +0 -17
  1384. package/out/recipes/secondary.d.ts.map +1 -1
  1385. package/out/recipes/secondary.js +2 -3
  1386. package/out/recipes/secondary.js.map +1 -1
  1387. package/out/recipes/sources.d.ts +5 -8
  1388. package/out/recipes/sources.d.ts.map +1 -1
  1389. package/out/recipes/sources.js +7 -8
  1390. package/out/recipes/sources.js.map +1 -1
  1391. package/out/recipes/street/affix.d.ts +0 -5
  1392. package/out/recipes/street/affix.d.ts.map +1 -1
  1393. package/out/recipes/street/affix.js +15 -12
  1394. package/out/recipes/street/affix.js.map +1 -1
  1395. package/out/recipes/street/bare.d.ts +0 -18
  1396. package/out/recipes/street/bare.d.ts.map +1 -1
  1397. package/out/recipes/street/bare.js +15 -14
  1398. package/out/recipes/street/bare.js.map +1 -1
  1399. package/out/recipes/street.d.ts +0 -8
  1400. package/out/recipes/street.d.ts.map +1 -1
  1401. package/out/recipes/street.js +5 -6
  1402. package/out/recipes/street.js.map +1 -1
  1403. package/out/recipes/sub/venue/context.d.ts +0 -6
  1404. package/out/recipes/sub/venue/context.d.ts.map +1 -1
  1405. package/out/recipes/sub/venue/context.js +8 -9
  1406. package/out/recipes/sub/venue/context.js.map +1 -1
  1407. package/out/recipes/sub/venue/render.d.ts +0 -6
  1408. package/out/recipes/sub/venue/render.d.ts.map +1 -1
  1409. package/out/recipes/sub/venue/render.js +2 -3
  1410. package/out/recipes/sub/venue/render.js.map +1 -1
  1411. package/out/recipes/sub/venue/sources.d.ts +1 -6
  1412. package/out/recipes/sub/venue/sources.d.ts.map +1 -1
  1413. package/out/recipes/sub/venue/sources.js +3 -6
  1414. package/out/recipes/sub/venue/sources.js.map +1 -1
  1415. package/out/recipes/sub/venue.d.ts +0 -8
  1416. package/out/recipes/sub/venue.d.ts.map +1 -1
  1417. package/out/recipes/sub/venue.js +4 -6
  1418. package/out/recipes/sub/venue.js.map +1 -1
  1419. package/out/recipes/trailing-region.d.ts +0 -16
  1420. package/out/recipes/trailing-region.d.ts.map +1 -1
  1421. package/out/recipes/trailing-region.js +13 -14
  1422. package/out/recipes/trailing-region.js.map +1 -1
  1423. package/out/recipes/unit.d.ts +5 -8
  1424. package/out/recipes/unit.d.ts.map +1 -1
  1425. package/out/recipes/unit.js +5 -14
  1426. package/out/recipes/unit.js.map +1 -1
  1427. package/out/recipes/venue.d.ts +1 -25
  1428. package/out/recipes/venue.d.ts.map +1 -1
  1429. package/out/recipes/venue.js +23 -21
  1430. package/out/recipes/venue.js.map +1 -1
  1431. package/out/recipes.d.ts +0 -11
  1432. package/out/recipes.d.ts.map +1 -1
  1433. package/out/recipes.js +8 -8
  1434. package/out/recipes.js.map +1 -1
  1435. package/out/registers.d.ts +4 -4
  1436. package/out/registers.d.ts.map +1 -1
  1437. package/out/registers.js +6 -4
  1438. package/out/registers.js.map +1 -1
  1439. package/out/ro/adapters/retea-scolara/adapter.d.ts +1 -47
  1440. package/out/ro/adapters/retea-scolara/adapter.d.ts.map +1 -1
  1441. package/out/ro/adapters/retea-scolara/adapter.js +35 -28
  1442. package/out/ro/adapters/retea-scolara/adapter.js.map +1 -1
  1443. package/out/ro/tools/fetch/retea-scolara.d.ts +7 -9
  1444. package/out/ro/tools/fetch/retea-scolara.d.ts.map +1 -1
  1445. package/out/ro/tools/fetch/retea-scolara.js +9 -9
  1446. package/out/ro/tools/fetch/retea-scolara.js.map +1 -1
  1447. package/out/runner.d.ts +15 -10
  1448. package/out/runner.d.ts.map +1 -1
  1449. package/out/runner.js +8 -8
  1450. package/out/runner.js.map +1 -1
  1451. package/out/sg/recipes/register.d.ts +2 -9
  1452. package/out/sg/recipes/register.d.ts.map +1 -1
  1453. package/out/sg/recipes/register.js +6 -7
  1454. package/out/sg/recipes/register.js.map +1 -1
  1455. package/out/sg/tools/fetch/acra.d.ts +4 -9
  1456. package/out/sg/tools/fetch/acra.d.ts.map +1 -1
  1457. package/out/sg/tools/fetch/acra.js +14 -7
  1458. package/out/sg/tools/fetch/acra.js.map +1 -1
  1459. package/out/si/recipes/bare-village.d.ts +0 -22
  1460. package/out/si/recipes/bare-village.d.ts.map +1 -1
  1461. package/out/si/recipes/bare-village.js +15 -13
  1462. package/out/si/recipes/bare-village.js.map +1 -1
  1463. package/out/sk/adapters/inspire/adapter.d.ts +0 -73
  1464. package/out/sk/adapters/inspire/adapter.d.ts.map +1 -1
  1465. package/out/sk/adapters/inspire/adapter.js +72 -51
  1466. package/out/sk/adapters/inspire/adapter.js.map +1 -1
  1467. package/out/sk/tools/fetch/inspire.d.ts +35 -34
  1468. package/out/sk/tools/fetch/inspire.d.ts.map +1 -1
  1469. package/out/sk/tools/fetch/inspire.js +36 -33
  1470. package/out/sk/tools/fetch/inspire.js.map +1 -1
  1471. package/out/source-register/corpus-inputs.d.ts +7 -24
  1472. package/out/source-register/corpus-inputs.d.ts.map +1 -1
  1473. package/out/source-register/corpus-inputs.js +17 -14
  1474. package/out/source-register/corpus-inputs.js.map +1 -1
  1475. package/out/source-register/effective-manifest.d.ts +3 -24
  1476. package/out/source-register/effective-manifest.d.ts.map +1 -1
  1477. package/out/source-register/effective-manifest.js +16 -9
  1478. package/out/source-register/effective-manifest.js.map +1 -1
  1479. package/out/source-register/register.d.ts +1 -8
  1480. package/out/source-register/register.d.ts.map +1 -1
  1481. package/out/source-register/register.js +4 -6
  1482. package/out/source-register/register.js.map +1 -1
  1483. package/out/source-register/row-license.d.ts +3 -20
  1484. package/out/source-register/row-license.d.ts.map +1 -1
  1485. package/out/source-register/row-license.js +18 -15
  1486. package/out/source-register/row-license.js.map +1 -1
  1487. package/out/source-register/training-manifest.d.ts +12 -23
  1488. package/out/source-register/training-manifest.d.ts.map +1 -1
  1489. package/out/source-register/training-manifest.js +12 -13
  1490. package/out/source-register/training-manifest.js.map +1 -1
  1491. package/out/source-register/types.d.ts +8 -11
  1492. package/out/source-register/types.d.ts.map +1 -1
  1493. package/out/source-register/types.js +6 -11
  1494. package/out/source-register/types.js.map +1 -1
  1495. package/out/source-register.d.ts +4 -7
  1496. package/out/source-register.d.ts.map +1 -1
  1497. package/out/source-register.js +6 -7
  1498. package/out/source-register.js.map +1 -1
  1499. package/out/south-asia/recipes/register.d.ts +0 -27
  1500. package/out/south-asia/recipes/register.d.ts.map +1 -1
  1501. package/out/south-asia/recipes/register.js +19 -17
  1502. package/out/south-asia/recipes/register.js.map +1 -1
  1503. package/out/street-index/reader.d.ts +0 -3
  1504. package/out/street-index/reader.d.ts.map +1 -1
  1505. package/out/street-index/reader.js +2 -3
  1506. package/out/street-index/reader.js.map +1 -1
  1507. package/out/street-index/schema.d.ts +0 -3
  1508. package/out/street-index/schema.d.ts.map +1 -1
  1509. package/out/street-index/schema.js +2 -3
  1510. package/out/street-index/schema.js.map +1 -1
  1511. package/out/street-index/write.d.ts +0 -6
  1512. package/out/street-index/write.d.ts.map +1 -1
  1513. package/out/street-index/write.js +2 -3
  1514. package/out/street-index/write.js.map +1 -1
  1515. package/out/subvenue/harvest.d.ts +5 -33
  1516. package/out/subvenue/harvest.d.ts.map +1 -1
  1517. package/out/subvenue/harvest.js +30 -21
  1518. package/out/subvenue/harvest.js.map +1 -1
  1519. package/out/subvenue/promotions.d.ts +1 -5
  1520. package/out/subvenue/promotions.d.ts.map +1 -1
  1521. package/out/subvenue/promotions.js +3 -8
  1522. package/out/subvenue/promotions.js.map +1 -1
  1523. package/out/subvenue/surfaces.d.ts +0 -10
  1524. package/out/subvenue/surfaces.d.ts.map +1 -1
  1525. package/out/subvenue/surfaces.js +3 -5
  1526. package/out/subvenue/surfaces.js.map +1 -1
  1527. package/out/subvenue/table.d.ts +2 -6
  1528. package/out/subvenue/table.d.ts.map +1 -1
  1529. package/out/subvenue/table.js +3 -12
  1530. package/out/subvenue/table.js.map +1 -1
  1531. package/out/surfaces/locale.d.ts +1 -16
  1532. package/out/surfaces/locale.d.ts.map +1 -1
  1533. package/out/surfaces/locale.js +12 -12
  1534. package/out/surfaces/locale.js.map +1 -1
  1535. package/out/synthesizers/anchor-absorption.d.ts +3 -6
  1536. package/out/synthesizers/anchor-absorption.d.ts.map +1 -1
  1537. package/out/synthesizers/anchor-absorption.js +2 -7
  1538. package/out/synthesizers/anchor-absorption.js.map +1 -1
  1539. package/out/synthesizers/boundary-stress.d.ts +0 -7
  1540. package/out/synthesizers/boundary-stress.d.ts.map +1 -1
  1541. package/out/synthesizers/boundary-stress.js +3 -5
  1542. package/out/synthesizers/boundary-stress.js.map +1 -1
  1543. package/out/synthesizers/house-venue.d.ts +0 -7
  1544. package/out/synthesizers/house-venue.d.ts.map +1 -1
  1545. package/out/synthesizers/house-venue.js +2 -4
  1546. package/out/synthesizers/house-venue.js.map +1 -1
  1547. package/out/synthesizers/no-street.d.ts +0 -9
  1548. package/out/synthesizers/no-street.d.ts.map +1 -1
  1549. package/out/synthesizers/no-street.js +7 -7
  1550. package/out/synthesizers/no-street.js.map +1 -1
  1551. package/out/synthesizers/po-box.d.ts +0 -7
  1552. package/out/synthesizers/po-box.d.ts.map +1 -1
  1553. package/out/synthesizers/po-box.js +4 -5
  1554. package/out/synthesizers/po-box.js.map +1 -1
  1555. package/out/synthesizers/tail.d.ts +0 -13
  1556. package/out/synthesizers/tail.d.ts.map +1 -1
  1557. package/out/synthesizers/tail.js +9 -10
  1558. package/out/synthesizers/tail.js.map +1 -1
  1559. package/out/synthesizers/utils.d.ts +8 -7
  1560. package/out/synthesizers/utils.d.ts.map +1 -1
  1561. package/out/synthesizers/utils.js +27 -6
  1562. package/out/synthesizers/utils.js.map +1 -1
  1563. package/out/test-kit/corpus-recipe.d.ts +3 -7
  1564. package/out/test-kit/corpus-recipe.d.ts.map +1 -1
  1565. package/out/test-kit/corpus-recipe.js +5 -7
  1566. package/out/test-kit/corpus-recipe.js.map +1 -1
  1567. package/out/test-kit.d.ts +2 -13
  1568. package/out/test-kit.d.ts.map +1 -1
  1569. package/out/test-kit.js +7 -7
  1570. package/out/test-kit.js.map +1 -1
  1571. package/out/tools/align-canonical.d.ts.map +1 -1
  1572. package/out/tools/align-canonical.js +4 -2
  1573. package/out/tools/align-canonical.js.map +1 -1
  1574. package/out/tools/audit.d.ts +0 -16
  1575. package/out/tools/audit.d.ts.map +1 -1
  1576. package/out/tools/audit.js +8 -9
  1577. package/out/tools/audit.js.map +1 -1
  1578. package/out/tools/cjk/foreign-places.run.d.ts +0 -11
  1579. package/out/tools/cjk/foreign-places.run.d.ts.map +1 -1
  1580. package/out/tools/cjk/foreign-places.run.js +2 -3
  1581. package/out/tools/cjk/foreign-places.run.js.map +1 -1
  1582. package/out/tools/cjk/overlay.run.d.ts +0 -16
  1583. package/out/tools/cjk/overlay.run.d.ts.map +1 -1
  1584. package/out/tools/cjk/overlay.run.js +2 -3
  1585. package/out/tools/cjk/overlay.run.js.map +1 -1
  1586. package/out/tools/corpus-stats.d.ts +0 -37
  1587. package/out/tools/corpus-stats.d.ts.map +1 -1
  1588. package/out/tools/corpus-stats.js +13 -12
  1589. package/out/tools/corpus-stats.js.map +1 -1
  1590. package/out/tools/de-fragment-board.run.d.ts +0 -12
  1591. package/out/tools/de-fragment-board.run.d.ts.map +1 -1
  1592. package/out/tools/de-fragment-board.run.js +5 -6
  1593. package/out/tools/de-fragment-board.run.js.map +1 -1
  1594. package/out/tools/deepseek.run.d.ts +0 -15
  1595. package/out/tools/deepseek.run.d.ts.map +1 -1
  1596. package/out/tools/deepseek.run.js +2 -3
  1597. package/out/tools/deepseek.run.js.map +1 -1
  1598. package/out/tools/fetch/atom.d.ts +2 -23
  1599. package/out/tools/fetch/atom.d.ts.map +1 -1
  1600. package/out/tools/fetch/atom.js +4 -5
  1601. package/out/tools/fetch/atom.js.map +1 -1
  1602. package/out/tools/fetch/cordis.d.ts +13 -15
  1603. package/out/tools/fetch/cordis.d.ts.map +1 -1
  1604. package/out/tools/fetch/cordis.js +15 -15
  1605. package/out/tools/fetch/cordis.js.map +1 -1
  1606. package/out/tools/fetch/download/manifest.d.ts +5 -11
  1607. package/out/tools/fetch/download/manifest.d.ts.map +1 -1
  1608. package/out/tools/fetch/download/manifest.js +6 -7
  1609. package/out/tools/fetch/download/manifest.js.map +1 -1
  1610. package/out/tools/fetch/download/network.d.ts +8 -8
  1611. package/out/tools/fetch/download/network.d.ts.map +1 -1
  1612. package/out/tools/fetch/download/network.js +2 -4
  1613. package/out/tools/fetch/download/network.js.map +1 -1
  1614. package/out/tools/fetch/download/retry.d.ts +0 -6
  1615. package/out/tools/fetch/download/retry.d.ts.map +1 -1
  1616. package/out/tools/fetch/download/retry.js +5 -9
  1617. package/out/tools/fetch/download/retry.js.map +1 -1
  1618. package/out/tools/fetch/download.d.ts +0 -3
  1619. package/out/tools/fetch/download.d.ts.map +1 -1
  1620. package/out/tools/fetch/download.js +2 -3
  1621. package/out/tools/fetch/download.js.map +1 -1
  1622. package/out/tools/fetch/geonames/dump.d.ts +2 -21
  1623. package/out/tools/fetch/geonames/dump.d.ts.map +1 -1
  1624. package/out/tools/fetch/geonames/dump.js +23 -16
  1625. package/out/tools/fetch/geonames/dump.js.map +1 -1
  1626. package/out/tools/fetch/geonames/postal.d.ts +2 -15
  1627. package/out/tools/fetch/geonames/postal.d.ts.map +1 -1
  1628. package/out/tools/fetch/geonames/postal.js +12 -13
  1629. package/out/tools/fetch/geonames/postal.js.map +1 -1
  1630. package/out/tools/fetch/gleif.d.ts +19 -20
  1631. package/out/tools/fetch/gleif.d.ts.map +1 -1
  1632. package/out/tools/fetch/gleif.js +21 -20
  1633. package/out/tools/fetch/gleif.js.map +1 -1
  1634. package/out/tools/fetch/header.d.ts +6 -12
  1635. package/out/tools/fetch/header.d.ts.map +1 -1
  1636. package/out/tools/fetch/header.js +4 -16
  1637. package/out/tools/fetch/header.js.map +1 -1
  1638. package/out/tools/fetch/inspire-addresses.d.ts +19 -19
  1639. package/out/tools/fetch/inspire-addresses.d.ts.map +1 -1
  1640. package/out/tools/fetch/inspire-addresses.js +20 -18
  1641. package/out/tools/fetch/inspire-addresses.js.map +1 -1
  1642. package/out/tools/fetch/openaddresses.d.ts +168 -0
  1643. package/out/tools/fetch/openaddresses.d.ts.map +1 -1
  1644. package/out/tools/fetch/openaddresses.js +191 -8
  1645. package/out/tools/fetch/openaddresses.js.map +1 -1
  1646. package/out/tools/fetch/ourairports.d.ts +0 -10
  1647. package/out/tools/fetch/ourairports.d.ts.map +1 -1
  1648. package/out/tools/fetch/ourairports.js +4 -6
  1649. package/out/tools/fetch/ourairports.js.map +1 -1
  1650. package/out/tools/fetch/storage.d.ts +259 -0
  1651. package/out/tools/fetch/storage.d.ts.map +1 -0
  1652. package/out/tools/fetch/storage.js +294 -0
  1653. package/out/tools/fetch/storage.js.map +1 -0
  1654. package/out/tools/fetch/vlaanderen-ad.d.ts +0 -28
  1655. package/out/tools/fetch/vlaanderen-ad.d.ts.map +1 -1
  1656. package/out/tools/fetch/vlaanderen-ad.js +25 -25
  1657. package/out/tools/fetch/vlaanderen-ad.js.map +1 -1
  1658. package/out/tools/fetch/wfs-harvest.d.ts +37 -34
  1659. package/out/tools/fetch/wfs-harvest.d.ts.map +1 -1
  1660. package/out/tools/fetch/wfs-harvest.js +45 -35
  1661. package/out/tools/fetch/wfs-harvest.js.map +1 -1
  1662. package/out/tools/fetch/wikidata/session.d.ts +5 -8
  1663. package/out/tools/fetch/wikidata/session.d.ts.map +1 -1
  1664. package/out/tools/fetch/wikidata/session.js +2 -11
  1665. package/out/tools/fetch/wikidata/session.js.map +1 -1
  1666. package/out/tools/fetch/wikidata/subvenue.d.ts +2 -5
  1667. package/out/tools/fetch/wikidata/subvenue.d.ts.map +1 -1
  1668. package/out/tools/fetch/wikidata/subvenue.js +3 -4
  1669. package/out/tools/fetch/wikidata/subvenue.js.map +1 -1
  1670. package/out/tools/fetch/wikidata/vital-places/classify.d.ts +12 -21
  1671. package/out/tools/fetch/wikidata/vital-places/classify.d.ts.map +1 -1
  1672. package/out/tools/fetch/wikidata/vital-places/classify.js +26 -21
  1673. package/out/tools/fetch/wikidata/vital-places/classify.js.map +1 -1
  1674. package/out/tools/fetch/wikidata/vital-places/entities.d.ts +31 -30
  1675. package/out/tools/fetch/wikidata/vital-places/entities.d.ts.map +1 -1
  1676. package/out/tools/fetch/wikidata/vital-places/entities.js +33 -30
  1677. package/out/tools/fetch/wikidata/vital-places/entities.js.map +1 -1
  1678. package/out/tools/fetch/wikidata/vital-places/inventory.d.ts +1 -9
  1679. package/out/tools/fetch/wikidata/vital-places/inventory.d.ts.map +1 -1
  1680. package/out/tools/fetch/wikidata/vital-places/inventory.js +5 -7
  1681. package/out/tools/fetch/wikidata/vital-places/inventory.js.map +1 -1
  1682. package/out/tools/fetch/wikidata/vital-places/progress.d.ts +0 -4
  1683. package/out/tools/fetch/wikidata/vital-places/progress.d.ts.map +1 -1
  1684. package/out/tools/fetch/wikidata/vital-places/progress.js +2 -7
  1685. package/out/tools/fetch/wikidata/vital-places/progress.js.map +1 -1
  1686. package/out/tools/fetch/wikidata/vital-places/qrank.d.ts +9 -11
  1687. package/out/tools/fetch/wikidata/vital-places/qrank.d.ts.map +1 -1
  1688. package/out/tools/fetch/wikidata/vital-places/qrank.js +2 -16
  1689. package/out/tools/fetch/wikidata/vital-places/qrank.js.map +1 -1
  1690. package/out/tools/fetch/wikidata/vital-places/query-entities.d.ts +1 -14
  1691. package/out/tools/fetch/wikidata/vital-places/query-entities.d.ts.map +1 -1
  1692. package/out/tools/fetch/wikidata/vital-places/query-entities.js +16 -12
  1693. package/out/tools/fetch/wikidata/vital-places/query-entities.js.map +1 -1
  1694. package/out/tools/fetch/wikidata/vital-places/render.d.ts +8 -10
  1695. package/out/tools/fetch/wikidata/vital-places/render.d.ts.map +1 -1
  1696. package/out/tools/fetch/wikidata/vital-places/render.js +2 -14
  1697. package/out/tools/fetch/wikidata/vital-places/render.js.map +1 -1
  1698. package/out/tools/fetch/wikidata/vital-places.d.ts +0 -24
  1699. package/out/tools/fetch/wikidata/vital-places.d.ts.map +1 -1
  1700. package/out/tools/fetch/wikidata/vital-places.js +16 -15
  1701. package/out/tools/fetch/wikidata/vital-places.js.map +1 -1
  1702. package/out/tools/fetch/zip-archive.d.ts +2 -5
  1703. package/out/tools/fetch/zip-archive.d.ts.map +1 -1
  1704. package/out/tools/fetch/zip-archive.js +3 -19
  1705. package/out/tools/fetch/zip-archive.js.map +1 -1
  1706. package/out/tools/fetch.d.ts +4 -4
  1707. package/out/tools/fetch.d.ts.map +1 -1
  1708. package/out/tools/fetch.js +6 -4
  1709. package/out/tools/fetch.js.map +1 -1
  1710. package/out/tools/fragment-assay.run.d.ts +0 -18
  1711. package/out/tools/fragment-assay.run.d.ts.map +1 -1
  1712. package/out/tools/fragment-assay.run.js +6 -7
  1713. package/out/tools/fragment-assay.run.js.map +1 -1
  1714. package/out/tools/golden/expand.d.ts +0 -48
  1715. package/out/tools/golden/expand.d.ts.map +1 -1
  1716. package/out/tools/golden/expand.js +24 -24
  1717. package/out/tools/golden/expand.js.map +1 -1
  1718. package/out/tools/golden/promote.d.ts +0 -32
  1719. package/out/tools/golden/promote.d.ts.map +1 -1
  1720. package/out/tools/golden/promote.js +6 -7
  1721. package/out/tools/golden/promote.js.map +1 -1
  1722. package/out/tools/golden/relabel-street/directory.d.ts +0 -6
  1723. package/out/tools/golden/relabel-street/directory.d.ts.map +1 -1
  1724. package/out/tools/golden/relabel-street/directory.js +2 -3
  1725. package/out/tools/golden/relabel-street/directory.js.map +1 -1
  1726. package/out/tools/golden/relabel-street/row.d.ts +0 -7
  1727. package/out/tools/golden/relabel-street/row.d.ts.map +1 -1
  1728. package/out/tools/golden/relabel-street/row.js +4 -5
  1729. package/out/tools/golden/relabel-street/row.js.map +1 -1
  1730. package/out/tools/golden/relabel-street.d.ts +0 -3
  1731. package/out/tools/golden/relabel-street.d.ts.map +1 -1
  1732. package/out/tools/golden/relabel-street.js +2 -3
  1733. package/out/tools/golden/relabel-street.js.map +1 -1
  1734. package/out/tools/house-venue-tuples.run.d.ts +0 -12
  1735. package/out/tools/house-venue-tuples.run.d.ts.map +1 -1
  1736. package/out/tools/house-venue-tuples.run.js +2 -3
  1737. package/out/tools/house-venue-tuples.run.js.map +1 -1
  1738. package/out/tools/ingest-csv.d.ts +1 -31
  1739. package/out/tools/ingest-csv.d.ts.map +1 -1
  1740. package/out/tools/ingest-csv.js +11 -16
  1741. package/out/tools/ingest-csv.js.map +1 -1
  1742. package/out/tools/input-changes.d.ts +3 -13
  1743. package/out/tools/input-changes.d.ts.map +1 -1
  1744. package/out/tools/input-changes.js +2 -3
  1745. package/out/tools/input-changes.js.map +1 -1
  1746. package/out/tools/jp/corpus.run.d.ts +0 -14
  1747. package/out/tools/jp/corpus.run.d.ts.map +1 -1
  1748. package/out/tools/jp/corpus.run.js +2 -3
  1749. package/out/tools/jp/corpus.run.js.map +1 -1
  1750. package/out/tools/jp/probe-corpus.run.d.ts +0 -12
  1751. package/out/tools/jp/probe-corpus.run.d.ts.map +1 -1
  1752. package/out/tools/jp/probe-corpus.run.js +2 -3
  1753. package/out/tools/jp/probe-corpus.run.js.map +1 -1
  1754. package/out/tools/jsonl-to-parquet.d.ts +0 -15
  1755. package/out/tools/jsonl-to-parquet.d.ts.map +1 -1
  1756. package/out/tools/jsonl-to-parquet.js +11 -8
  1757. package/out/tools/jsonl-to-parquet.js.map +1 -1
  1758. package/out/tools/kr-corpus.run.d.ts +0 -14
  1759. package/out/tools/kr-corpus.run.d.ts.map +1 -1
  1760. package/out/tools/kr-corpus.run.js +2 -3
  1761. package/out/tools/kr-corpus.run.js.map +1 -1
  1762. package/out/tools/lint/recipe-output/vocab.d.ts +0 -17
  1763. package/out/tools/lint/recipe-output/vocab.d.ts.map +1 -1
  1764. package/out/tools/lint/recipe-output/vocab.js +18 -14
  1765. package/out/tools/lint/recipe-output/vocab.js.map +1 -1
  1766. package/out/tools/lint/recipe-output.d.ts +0 -13
  1767. package/out/tools/lint/recipe-output.d.ts.map +1 -1
  1768. package/out/tools/lint/recipe-output.js +12 -10
  1769. package/out/tools/lint/recipe-output.js.map +1 -1
  1770. package/out/tools/migrate/overlay-parquet.d.ts +1 -8
  1771. package/out/tools/migrate/overlay-parquet.d.ts.map +1 -1
  1772. package/out/tools/migrate/overlay-parquet.js +5 -6
  1773. package/out/tools/migrate/overlay-parquet.js.map +1 -1
  1774. package/out/tools/migrate/recipe-output.d.ts +1 -10
  1775. package/out/tools/migrate/recipe-output.d.ts.map +1 -1
  1776. package/out/tools/migrate/recipe-output.js +3 -4
  1777. package/out/tools/migrate/recipe-output.js.map +1 -1
  1778. package/out/tools/migrate/source-names.d.ts +1 -24
  1779. package/out/tools/migrate/source-names.d.ts.map +1 -1
  1780. package/out/tools/migrate/source-names.js +3 -4
  1781. package/out/tools/migrate/source-names.js.map +1 -1
  1782. package/out/tools/overlay/deletions.d.ts +4 -19
  1783. package/out/tools/overlay/deletions.d.ts.map +1 -1
  1784. package/out/tools/overlay/deletions.js +6 -7
  1785. package/out/tools/overlay/deletions.js.map +1 -1
  1786. package/out/tools/overlay/distinct-row-ids.d.ts +0 -3
  1787. package/out/tools/overlay/distinct-row-ids.d.ts.map +1 -1
  1788. package/out/tools/overlay/distinct-row-ids.js +2 -16
  1789. package/out/tools/overlay/distinct-row-ids.js.map +1 -1
  1790. package/out/tools/overlay/held-out-spans.d.ts +2 -21
  1791. package/out/tools/overlay/held-out-spans.d.ts.map +1 -1
  1792. package/out/tools/overlay/held-out-spans.js +2 -3
  1793. package/out/tools/overlay/held-out-spans.js.map +1 -1
  1794. package/out/tools/overlay/kryptonite.d.ts +0 -17
  1795. package/out/tools/overlay/kryptonite.d.ts.map +1 -1
  1796. package/out/tools/overlay/kryptonite.js +8 -9
  1797. package/out/tools/overlay/kryptonite.js.map +1 -1
  1798. package/out/tools/overlay/manifest.d.ts +0 -8
  1799. package/out/tools/overlay/manifest.d.ts.map +1 -1
  1800. package/out/tools/overlay/manifest.js +3 -5
  1801. package/out/tools/overlay/manifest.js.map +1 -1
  1802. package/out/tools/overlay/merge-source.d.ts +0 -10
  1803. package/out/tools/overlay/merge-source.d.ts.map +1 -1
  1804. package/out/tools/overlay/merge-source.js +2 -3
  1805. package/out/tools/overlay/merge-source.js.map +1 -1
  1806. package/out/tools/overlay/split/attribute.d.ts +0 -13
  1807. package/out/tools/overlay/split/attribute.d.ts.map +1 -1
  1808. package/out/tools/overlay/split/attribute.js +2 -3
  1809. package/out/tools/overlay/split/attribute.js.map +1 -1
  1810. package/out/tools/overlay/split/overlay.d.ts +0 -9
  1811. package/out/tools/overlay/split/overlay.d.ts.map +1 -1
  1812. package/out/tools/overlay/split/overlay.js +2 -9
  1813. package/out/tools/overlay/split/overlay.js.map +1 -1
  1814. package/out/tools/overlay/translit.d.ts +1 -30
  1815. package/out/tools/overlay/translit.d.ts.map +1 -1
  1816. package/out/tools/overlay/translit.js +18 -19
  1817. package/out/tools/overlay/translit.js.map +1 -1
  1818. package/out/tools/overture-subvenue.d.ts +0 -11
  1819. package/out/tools/overture-subvenue.d.ts.map +1 -1
  1820. package/out/tools/overture-subvenue.js +7 -8
  1821. package/out/tools/overture-subvenue.js.map +1 -1
  1822. package/out/tools/postcode/non-native-order.d.ts +1 -19
  1823. package/out/tools/postcode/non-native-order.d.ts.map +1 -1
  1824. package/out/tools/postcode/non-native-order.js +15 -14
  1825. package/out/tools/postcode/non-native-order.js.map +1 -1
  1826. package/out/tools/postcode/triples.d.ts +5 -13
  1827. package/out/tools/postcode/triples.d.ts.map +1 -1
  1828. package/out/tools/postcode/triples.js +12 -12
  1829. package/out/tools/postcode/triples.js.map +1 -1
  1830. package/out/tools/registry-corpus.run.d.ts +0 -12
  1831. package/out/tools/registry-corpus.run.d.ts.map +1 -1
  1832. package/out/tools/registry-corpus.run.js +2 -3
  1833. package/out/tools/registry-corpus.run.js.map +1 -1
  1834. package/out/tools/secondary.run.d.ts +0 -12
  1835. package/out/tools/secondary.run.d.ts.map +1 -1
  1836. package/out/tools/secondary.run.js +2 -3
  1837. package/out/tools/secondary.run.js.map +1 -1
  1838. package/out/tools/source-register/build.d.ts +5 -14
  1839. package/out/tools/source-register/build.d.ts.map +1 -1
  1840. package/out/tools/source-register/build.js +9 -10
  1841. package/out/tools/source-register/build.js.map +1 -1
  1842. package/out/tools/street-index/build.d.ts +0 -10
  1843. package/out/tools/street-index/build.d.ts.map +1 -1
  1844. package/out/tools/street-index/build.js +2 -3
  1845. package/out/tools/street-index/build.js.map +1 -1
  1846. package/out/tools/street-index/build.run.d.ts +0 -9
  1847. package/out/tools/street-index/build.run.d.ts.map +1 -1
  1848. package/out/tools/street-index/build.run.js +2 -3
  1849. package/out/tools/street-index/build.run.js.map +1 -1
  1850. package/out/tools/sub/venue/head-nouns.d.ts +0 -10
  1851. package/out/tools/sub/venue/head-nouns.d.ts.map +1 -1
  1852. package/out/tools/sub/venue/head-nouns.js +2 -4
  1853. package/out/tools/sub/venue/head-nouns.js.map +1 -1
  1854. package/out/tools/sub/venue/lexicon.d.ts +1 -8
  1855. package/out/tools/sub/venue/lexicon.d.ts.map +1 -1
  1856. package/out/tools/sub/venue/lexicon.js +2 -4
  1857. package/out/tools/sub/venue/lexicon.js.map +1 -1
  1858. package/out/tools/sub/venue/wikidata.d.ts +0 -16
  1859. package/out/tools/sub/venue/wikidata.d.ts.map +1 -1
  1860. package/out/tools/sub/venue/wikidata.js +9 -9
  1861. package/out/tools/sub/venue/wikidata.js.map +1 -1
  1862. package/out/tools/support-index.d.ts +10 -12
  1863. package/out/tools/support-index.d.ts.map +1 -1
  1864. package/out/tools/support-index.js +11 -11
  1865. package/out/tools/support-index.js.map +1 -1
  1866. package/out/tools/tw-corpus.run.d.ts +0 -12
  1867. package/out/tools/tw-corpus.run.d.ts.map +1 -1
  1868. package/out/tools/tw-corpus.run.js +2 -3
  1869. package/out/tools/tw-corpus.run.js.map +1 -1
  1870. package/out/tools/variety-sample.d.ts +1 -19
  1871. package/out/tools/variety-sample.d.ts.map +1 -1
  1872. package/out/tools/variety-sample.js +13 -12
  1873. package/out/tools/variety-sample.js.map +1 -1
  1874. package/out/tools/vital-places.run.d.ts +0 -13
  1875. package/out/tools/vital-places.run.d.ts.map +1 -1
  1876. package/out/tools/vital-places.run.js +7 -8
  1877. package/out/tools/vital-places.run.js.map +1 -1
  1878. package/out/training/config/admission.d.ts +2 -6
  1879. package/out/training/config/admission.d.ts.map +1 -1
  1880. package/out/training/config/admission.js +4 -6
  1881. package/out/training/config/admission.js.map +1 -1
  1882. package/out/training/config/load.d.ts +19 -17
  1883. package/out/training/config/load.d.ts.map +1 -1
  1884. package/out/training/config/load.js +21 -17
  1885. package/out/training/config/load.js.map +1 -1
  1886. package/out/training/config/python-yaml.d.ts +1 -16
  1887. package/out/training/config/python-yaml.d.ts.map +1 -1
  1888. package/out/training/config/python-yaml.js +15 -12
  1889. package/out/training/config/python-yaml.js.map +1 -1
  1890. package/out/training/config/resolved.d.ts +0 -8
  1891. package/out/training/config/resolved.d.ts.map +1 -1
  1892. package/out/training/config/resolved.js +5 -6
  1893. package/out/training/config/resolved.js.map +1 -1
  1894. package/out/training/config/schema.d.ts +9 -9
  1895. package/out/training/config/schema.d.ts.map +1 -1
  1896. package/out/training/config/schema.js +12 -10
  1897. package/out/training/config/schema.js.map +1 -1
  1898. package/out/tw/corpus/assemble.d.ts +0 -12
  1899. package/out/tw/corpus/assemble.d.ts.map +1 -1
  1900. package/out/tw/corpus/assemble.js +2 -3
  1901. package/out/tw/corpus/assemble.js.map +1 -1
  1902. package/out/tw/corpus/rows.d.ts +1 -13
  1903. package/out/tw/corpus/rows.d.ts.map +1 -1
  1904. package/out/tw/corpus/rows.js +4 -5
  1905. package/out/tw/corpus/rows.js.map +1 -1
  1906. package/out/tw/registers.d.ts +1 -10
  1907. package/out/tw/registers.d.ts.map +1 -1
  1908. package/out/tw/registers.js +3 -4
  1909. package/out/tw/registers.js.map +1 -1
  1910. package/out/tw/tools/fetch/gcis.d.ts +7 -23
  1911. package/out/tw/tools/fetch/gcis.d.ts.map +1 -1
  1912. package/out/tw/tools/fetch/gcis.js +49 -35
  1913. package/out/tw/tools/fetch/gcis.js.map +1 -1
  1914. package/out/types.d.ts +7 -11
  1915. package/out/types.d.ts.map +1 -1
  1916. package/out/types.js +4 -9
  1917. package/out/types.js.map +1 -1
  1918. package/out/us/abbrev/region-samples.d.ts +7 -8
  1919. package/out/us/abbrev/region-samples.d.ts.map +1 -1
  1920. package/out/us/abbrev/region-samples.js +9 -8
  1921. package/out/us/abbrev/region-samples.js.map +1 -1
  1922. package/out/us/abbrev/regions.d.ts +3 -6
  1923. package/out/us/abbrev/regions.d.ts.map +1 -1
  1924. package/out/us/abbrev/regions.js +5 -6
  1925. package/out/us/abbrev/regions.js.map +1 -1
  1926. package/out/us/adapters/fcc-bdc/adapter.d.ts +0 -21
  1927. package/out/us/adapters/fcc-bdc/adapter.d.ts.map +1 -1
  1928. package/out/us/adapters/fcc-bdc/adapter.js +2 -21
  1929. package/out/us/adapters/fcc-bdc/adapter.js.map +1 -1
  1930. package/out/us/adapters/state/hi-schools/adapter.d.ts +0 -29
  1931. package/out/us/adapters/state/hi-schools/adapter.d.ts.map +1 -1
  1932. package/out/us/adapters/state/hi-schools/adapter.js +13 -13
  1933. package/out/us/adapters/state/hi-schools/adapter.js.map +1 -1
  1934. package/out/us/adapters/state/hi-schools/workbook.d.ts +0 -5
  1935. package/out/us/adapters/state/hi-schools/workbook.d.ts.map +1 -1
  1936. package/out/us/adapters/state/hi-schools/workbook.js +2 -5
  1937. package/out/us/adapters/state/hi-schools/workbook.js.map +1 -1
  1938. package/out/us/adapters/state/ia-contractors/adapter.d.ts +0 -23
  1939. package/out/us/adapters/state/ia-contractors/adapter.d.ts.map +1 -1
  1940. package/out/us/adapters/state/ia-contractors/adapter.js +4 -6
  1941. package/out/us/adapters/state/ia-contractors/adapter.js.map +1 -1
  1942. package/out/us/adapters/state/ny-notaries/adapter.d.ts +0 -15
  1943. package/out/us/adapters/state/ny-notaries/adapter.d.ts.map +1 -1
  1944. package/out/us/adapters/state/ny-notaries/adapter.js +6 -8
  1945. package/out/us/adapters/state/ny-notaries/adapter.js.map +1 -1
  1946. package/out/us/adapters/state/tx-notaries/adapter.d.ts +0 -16
  1947. package/out/us/adapters/state/tx-notaries/adapter.d.ts.map +1 -1
  1948. package/out/us/adapters/state/tx-notaries/adapter.js +6 -7
  1949. package/out/us/adapters/state/tx-notaries/adapter.js.map +1 -1
  1950. package/out/us/adapters/tiger/adapter.d.ts +0 -13
  1951. package/out/us/adapters/tiger/adapter.d.ts.map +1 -1
  1952. package/out/us/adapters/tiger/adapter.js +2 -4
  1953. package/out/us/adapters/tiger/adapter.js.map +1 -1
  1954. package/out/us/adapters/tiger/street-decompose.d.ts +0 -10
  1955. package/out/us/adapters/tiger/street-decompose.d.ts.map +1 -1
  1956. package/out/us/adapters/tiger/street-decompose.js +6 -8
  1957. package/out/us/adapters/tiger/street-decompose.js.map +1 -1
  1958. package/out/us/adapters/usgov/hrsa-fqhc/adapter.d.ts +0 -29
  1959. package/out/us/adapters/usgov/hrsa-fqhc/adapter.d.ts.map +1 -1
  1960. package/out/us/adapters/usgov/hrsa-fqhc/adapter.js +22 -20
  1961. package/out/us/adapters/usgov/hrsa-fqhc/adapter.js.map +1 -1
  1962. package/out/us/adapters/usgov/imls-pls/adapter.d.ts +0 -19
  1963. package/out/us/adapters/usgov/imls-pls/adapter.d.ts.map +1 -1
  1964. package/out/us/adapters/usgov/imls-pls/adapter.js +8 -10
  1965. package/out/us/adapters/usgov/imls-pls/adapter.js.map +1 -1
  1966. package/out/us/adapters/usgov/irs-bmf/adapter.d.ts +0 -20
  1967. package/out/us/adapters/usgov/irs-bmf/adapter.d.ts.map +1 -1
  1968. package/out/us/adapters/usgov/irs-bmf/adapter.js +14 -14
  1969. package/out/us/adapters/usgov/irs-bmf/adapter.js.map +1 -1
  1970. package/out/us/adapters/usgov/nad/adapter.d.ts +48 -10
  1971. package/out/us/adapters/usgov/nad/adapter.d.ts.map +1 -1
  1972. package/out/us/adapters/usgov/nad/adapter.js +159 -81
  1973. package/out/us/adapters/usgov/nad/adapter.js.map +1 -1
  1974. package/out/us/adapters/usgov/nppes/adapter.d.ts +0 -7
  1975. package/out/us/adapters/usgov/nppes/adapter.d.ts.map +1 -1
  1976. package/out/us/adapters/usgov/nppes/adapter.js +2 -4
  1977. package/out/us/adapters/usgov/nppes/adapter.js.map +1 -1
  1978. package/out/us/adapters/usgov/samhsa-treatment-locator/adapter.d.ts +0 -28
  1979. package/out/us/adapters/usgov/samhsa-treatment-locator/adapter.d.ts.map +1 -1
  1980. package/out/us/adapters/usgov/samhsa-treatment-locator/adapter.js +20 -18
  1981. package/out/us/adapters/usgov/samhsa-treatment-locator/adapter.js.map +1 -1
  1982. package/out/us/adapters/usgov/usgs-post-offices/adapter.d.ts +66 -0
  1983. package/out/us/adapters/usgov/usgs-post-offices/adapter.d.ts.map +1 -0
  1984. package/out/us/adapters/usgov/usgs-post-offices/adapter.js +110 -0
  1985. package/out/us/adapters/usgov/usgs-post-offices/adapter.js.map +1 -0
  1986. package/out/us/address-records/layer/worker.d.ts +2 -0
  1987. package/out/us/address-records/layer/worker.d.ts.map +1 -0
  1988. package/out/us/address-records/layer/worker.js +35 -0
  1989. package/out/us/address-records/layer/worker.js.map +1 -0
  1990. package/out/us/address-records/layer.d.ts +166 -0
  1991. package/out/us/address-records/layer.d.ts.map +1 -0
  1992. package/out/us/address-records/layer.js +475 -0
  1993. package/out/us/address-records/layer.js.map +1 -0
  1994. package/out/us/address-records/nad.d.ts +30 -0
  1995. package/out/us/address-records/nad.d.ts.map +1 -0
  1996. package/out/us/address-records/nad.js +91 -0
  1997. package/out/us/address-records/nad.js.map +1 -0
  1998. package/out/us/fips-state.d.ts +4 -8
  1999. package/out/us/fips-state.d.ts.map +1 -1
  2000. package/out/us/fips-state.js +2 -14
  2001. package/out/us/fips-state.js.map +1 -1
  2002. package/out/us/post-offices/usgs-national-map.d.ts +14 -0
  2003. package/out/us/post-offices/usgs-national-map.d.ts.map +1 -0
  2004. package/out/us/post-offices/usgs-national-map.js +56 -0
  2005. package/out/us/post-offices/usgs-national-map.js.map +1 -0
  2006. package/out/us/recipes/house-venue-tuples.d.ts +3 -9
  2007. package/out/us/recipes/house-venue-tuples.d.ts.map +1 -1
  2008. package/out/us/recipes/house-venue-tuples.js +5 -6
  2009. package/out/us/recipes/house-venue-tuples.js.map +1 -1
  2010. package/out/us/recipes/skeleton-sources.d.ts +0 -11
  2011. package/out/us/recipes/skeleton-sources.d.ts.map +1 -1
  2012. package/out/us/recipes/skeleton-sources.js +5 -6
  2013. package/out/us/recipes/skeleton-sources.js.map +1 -1
  2014. package/out/us/state-country-codes.d.ts +0 -9
  2015. package/out/us/state-country-codes.d.ts.map +1 -1
  2016. package/out/us/state-country-codes.js +6 -6
  2017. package/out/us/state-country-codes.js.map +1 -1
  2018. package/out/us/street-unit.d.ts +1 -7
  2019. package/out/us/street-unit.d.ts.map +1 -1
  2020. package/out/us/street-unit.js +3 -4
  2021. package/out/us/street-unit.js.map +1 -1
  2022. package/out/us/synthesizers/intersection.d.ts +0 -20
  2023. package/out/us/synthesizers/intersection.d.ts.map +1 -1
  2024. package/out/us/synthesizers/intersection.js +2 -20
  2025. package/out/us/synthesizers/intersection.js.map +1 -1
  2026. package/out/us/synthesizers/street.d.ts +0 -20
  2027. package/out/us/synthesizers/street.d.ts.map +1 -1
  2028. package/out/us/synthesizers/street.js +16 -15
  2029. package/out/us/synthesizers/street.js.map +1 -1
  2030. package/out/us/tools/fetch/hrsa.d.ts +0 -14
  2031. package/out/us/tools/fetch/hrsa.d.ts.map +1 -1
  2032. package/out/us/tools/fetch/hrsa.js +8 -8
  2033. package/out/us/tools/fetch/hrsa.js.map +1 -1
  2034. package/out/us/tools/fetch/imls-pls.d.ts +11 -9
  2035. package/out/us/tools/fetch/imls-pls.d.ts.map +1 -1
  2036. package/out/us/tools/fetch/imls-pls.js +32 -22
  2037. package/out/us/tools/fetch/imls-pls.js.map +1 -1
  2038. package/out/us/tools/fetch/nad/parquet.d.ts +44 -0
  2039. package/out/us/tools/fetch/nad/parquet.d.ts.map +1 -0
  2040. package/out/us/tools/fetch/nad/parquet.js +83 -0
  2041. package/out/us/tools/fetch/nad/parquet.js.map +1 -0
  2042. package/out/us/tools/fetch/nad.d.ts +41 -73
  2043. package/out/us/tools/fetch/nad.d.ts.map +1 -1
  2044. package/out/us/tools/fetch/nad.js +142 -209
  2045. package/out/us/tools/fetch/nad.js.map +1 -1
  2046. package/out/us/tools/fetch/nppes.d.ts +11 -10
  2047. package/out/us/tools/fetch/nppes.d.ts.map +1 -1
  2048. package/out/us/tools/fetch/nppes.js +48 -22
  2049. package/out/us/tools/fetch/nppes.js.map +1 -1
  2050. package/out/us/tools/fetch/state/hi-schools.d.ts +0 -17
  2051. package/out/us/tools/fetch/state/hi-schools.d.ts.map +1 -1
  2052. package/out/us/tools/fetch/state/hi-schools.js +36 -17
  2053. package/out/us/tools/fetch/state/hi-schools.js.map +1 -1
  2054. package/out/us/tools/fetch/state/sources.d.ts +0 -18
  2055. package/out/us/tools/fetch/state/sources.d.ts.map +1 -1
  2056. package/out/us/tools/fetch/state/sources.js +10 -11
  2057. package/out/us/tools/fetch/state/sources.js.map +1 -1
  2058. package/out/us/tools/fetch/tiger-full.d.ts +3 -2
  2059. package/out/us/tools/fetch/tiger-full.d.ts.map +1 -1
  2060. package/out/us/tools/fetch/tiger-full.js +39 -13
  2061. package/out/us/tools/fetch/tiger-full.js.map +1 -1
  2062. package/out/us/tools/fetch/usgs-post-offices.d.ts +99 -0
  2063. package/out/us/tools/fetch/usgs-post-offices.d.ts.map +1 -0
  2064. package/out/us/tools/fetch/usgs-post-offices.js +246 -0
  2065. package/out/us/tools/fetch/usgs-post-offices.js.map +1 -0
  2066. package/out/us/tools/nad-skeletons.d.ts +11 -18
  2067. package/out/us/tools/nad-skeletons.d.ts.map +1 -1
  2068. package/out/us/tools/nad-skeletons.js +45 -55
  2069. package/out/us/tools/nad-skeletons.js.map +1 -1
  2070. package/out/utils/align.d.ts +19 -23
  2071. package/out/utils/align.d.ts.map +1 -1
  2072. package/out/utils/align.js +21 -48
  2073. package/out/utils/align.js.map +1 -1
  2074. package/out/utils/cooccurrence-stats.d.ts +0 -10
  2075. package/out/utils/cooccurrence-stats.d.ts.map +1 -1
  2076. package/out/utils/cooccurrence-stats.js +7 -7
  2077. package/out/utils/cooccurrence-stats.js.map +1 -1
  2078. package/out/utils/golden.d.ts +0 -7
  2079. package/out/utils/golden.d.ts.map +1 -1
  2080. package/out/utils/golden.js +2 -4
  2081. package/out/utils/golden.js.map +1 -1
  2082. package/out/utils/license.d.ts +0 -28
  2083. package/out/utils/license.d.ts.map +1 -1
  2084. package/out/utils/license.js +28 -21
  2085. package/out/utils/license.js.map +1 -1
  2086. package/out/utils/retention.d.ts +0 -13
  2087. package/out/utils/retention.d.ts.map +1 -1
  2088. package/out/utils/retention.js +10 -8
  2089. package/out/utils/retention.js.map +1 -1
  2090. package/out/utils/shape-supply.d.ts +3 -7
  2091. package/out/utils/shape-supply.d.ts.map +1 -1
  2092. package/out/utils/shape-supply.js +5 -7
  2093. package/out/utils/shape-supply.js.map +1 -1
  2094. package/out/utils/split.d.ts +5 -18
  2095. package/out/utils/split.d.ts.map +1 -1
  2096. package/out/utils/split.js +14 -14
  2097. package/out/utils/split.js.map +1 -1
  2098. package/out/utils/tokenize.d.ts +5 -7
  2099. package/out/utils/tokenize.d.ts.map +1 -1
  2100. package/out/utils/tokenize.js +4 -11
  2101. package/out/utils/tokenize.js.map +1 -1
  2102. package/out/utils/wof-json.d.ts +15 -21
  2103. package/out/utils/wof-json.d.ts.map +1 -1
  2104. package/out/utils/wof-json.js +32 -19
  2105. package/out/utils/wof-json.js.map +1 -1
  2106. package/out/utils.d.ts +0 -5
  2107. package/out/utils.d.ts.map +1 -1
  2108. package/out/utils.js +2 -5
  2109. package/out/utils.js.map +1 -1
  2110. package/out/uy/adapters/ide/adapter.d.ts +0 -22
  2111. package/out/uy/adapters/ide/adapter.d.ts.map +1 -1
  2112. package/out/uy/adapters/ide/adapter.js +21 -17
  2113. package/out/uy/adapters/ide/adapter.js.map +1 -1
  2114. package/out/ve/recipes/reviewed-postcode-tail.d.ts +2 -12
  2115. package/out/ve/recipes/reviewed-postcode-tail.d.ts.map +1 -1
  2116. package/out/ve/recipes/reviewed-postcode-tail.js +7 -8
  2117. package/out/ve/recipes/reviewed-postcode-tail.js.map +1 -1
  2118. package/package.json +18 -18
@@ -1,25 +1,30 @@
1
1
  /**
2
- * @copyright Sister Software
3
- * @license AGPL-3.0
4
- * @author Teffen Ellis, et al.
5
- *
6
2
  * This module reads a house number and a street out of the columns a publisher supplies.
7
3
  *
8
- * Publishers divide the same address two ways. Some write one street line that holds the number and
9
- * the street together. {@linkcode splitStreetLine} separates that line for a number-first country and
10
- * {@linkcode splitTrailingStreetLine} for a number-last one. Others write the number across
11
- * two columns. {@linkcode composeHouseNumber} joins those. Every adapter facing either shape uses
12
- * these, so an edge case fixed here is fixed for all of them.
4
+ * Publishers divide the same address two ways.
5
+ * Some write one street line that holds the number and the street together.
6
+ * {@linkcode splitStreetLine} separates that line for a number-first country
7
+ * and {@linkcode splitTrailingStreetLine} for a number-last one.
8
+ *
9
+ * Others write the number across two columns. {@linkcode composeHouseNumber} joins those.
10
+ * Every adapter facing either shape uses these, so an edge case fixed here is fixed for all of them.
13
11
  *
14
12
  * Which of the two split functions a country takes is `STREET_ORDERS` in
15
- * `packages/mailwoman/tools/dev-tools/codex/street-orders.ts`, whose values reach the generated
16
- * layouts `@mailwoman/codex/address/layouts` serves.
13
+ * `packages/mailwoman/tools/dev-tools/codex/street-orders.ts`, whose values reach
14
+ * the generated layouts `@mailwoman/codex/address/layouts` serves.
17
15
  */
18
16
  /**
19
- * A leading house number on a US-style street line contains digits and an optional hyphenated range
20
- * (Queens `40-12`), an optional single alpha suffix (`101A`), then whitespace, then the rest.
17
+ * A leading house number on a US-style street line, then whitespace, then the rest.
18
+ *
19
+ * The number is digits, or a grid number with a directional letter before
20
+ * or inside it (Wisconsin's `N8722`, Illinois' `40W514`).
21
+ * An optional hyphenated range may follow, written with or without spaces
22
+ * (Queens `40-12`, Hawaii `91 - 760`).
23
+ *
24
+ * Then come an optional single alpha suffix (`101A`) and an optional half (`111 1/2`, `111 1 / 2`).
25
+ * The half is only `1/2`, so a fractional street name stays in the street (`12345 16 1/2 Mile Rd`).
21
26
  *
22
- * The remainder must stay `(\S.*)` and must not become `(.+)`: `\s+` and `.` both match a tab,
27
+ * The remainder must stay `(\S.*)` and mustn't become `(.+)`: `\s+` and `.` both match a tab,
23
28
  * so `\s+(.+)$` lets the engine split a run of tabs between the two groups every possible way
24
29
  * before failing — quadratic backtracking on attacker-shaped input.
25
30
  * The required non-space start removes the overlap.
@@ -45,9 +50,9 @@ export interface SplitStreetLine {
45
50
  * numbering. Hawaii uses it island-wide — `"47-470 Hui Aeko Place"`).
46
51
  *
47
52
  * @returns `null` for blank input.
48
- * An input that does not match the prefix shape, including `"PO Box 1234"`,
49
- * `"RR 2 Box 67"` and `"HC 1"`, becomes a single `street` value rather than being mangled,
50
- * so the model sees the original surface form and downstream classifiers pick it up.
53
+ * An input that doesn't match the prefix shape, including `"PO Box 1234"`, `"RR 2 Box 67"`
54
+ * and `"HC 1"`, becomes a single `street` value rather than being mangled, so the model
55
+ * sees the original surface form and downstream classifiers pick it up.
51
56
  * A caller that needs those forms recognized as something other than a street
52
57
  * (see `usgov-irs-bmf`) tests for them before calling this.
53
58
  */
@@ -64,7 +69,7 @@ export declare function splitStreetLine(line: string): SplitStreetLine | null;
64
69
  *
65
70
  * Group 1 starts at `\S` and the lazy `.*?` is bounded by that required separator,
66
71
  * so a run of whitespace between the two groups has one split rather than every possible split.
67
- * That is the same backtracking argument {@linkcode HOUSE_NUMBER_PREFIX} records, read from the other end.
72
+ * That's the same backtracking argument {@linkcode HOUSE_NUMBER_PREFIX} records, read from the other end.
68
73
  */
69
74
  export declare const HOUSE_NUMBER_SUFFIX: RegExp;
70
75
  /**
@@ -90,7 +95,7 @@ export declare function splitTrailingStreetLine(line: string): SplitStreetLine |
90
95
  * Several registers split a house number across two columns: BAN writes `10`
91
96
  * and `bis`, Kartverket writes `12` and `B`.
92
97
  * The separator differs per publisher, so the caller states it, and the two values are
93
- * trimmed here because a publisher's padding is not part of the number.
98
+ * trimmed here because a publisher's padding isn't part of the number.
94
99
  *
95
100
  * @param number The numeric part, from the publisher's number column.
96
101
  * @param suffix The letter or word that follows it, from the publisher's suffix column.
@@ -1 +1 @@
1
- {"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../lib/adapters/street/line.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,QAAuC,CAAA;AAEvE;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAUpE;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,QAAkE,CAAA;AAElG;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAU5E;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,SAAK,GAAG,MAAM,CAQzF"}
1
+ {"version":3,"file":"line.d.ts","sourceRoot":"","sources":["../../../lib/adapters/street/line.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,mBAAmB,QAAqF,CAAA;AAUrH;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAUpE;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,QAAkE,CAAA;AAElG;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAU5E;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,SAAK,GAAG,MAAM,CAQzF"}
@@ -1,25 +1,32 @@
1
+ // SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
2
+ // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
1
3
  /**
2
- * @copyright Sister Software
3
- * @license AGPL-3.0
4
- * @author Teffen Ellis, et al.
5
- *
6
4
  * This module reads a house number and a street out of the columns a publisher supplies.
7
5
  *
8
- * Publishers divide the same address two ways. Some write one street line that holds the number and
9
- * the street together. {@linkcode splitStreetLine} separates that line for a number-first country and
10
- * {@linkcode splitTrailingStreetLine} for a number-last one. Others write the number across
11
- * two columns. {@linkcode composeHouseNumber} joins those. Every adapter facing either shape uses
12
- * these, so an edge case fixed here is fixed for all of them.
6
+ * Publishers divide the same address two ways.
7
+ * Some write one street line that holds the number and the street together.
8
+ * {@linkcode splitStreetLine} separates that line for a number-first country
9
+ * and {@linkcode splitTrailingStreetLine} for a number-last one.
10
+ *
11
+ * Others write the number across two columns. {@linkcode composeHouseNumber} joins those.
12
+ * Every adapter facing either shape uses these, so an edge case fixed here is fixed for all of them.
13
13
  *
14
14
  * Which of the two split functions a country takes is `STREET_ORDERS` in
15
- * `packages/mailwoman/tools/dev-tools/codex/street-orders.ts`, whose values reach the generated
16
- * layouts `@mailwoman/codex/address/layouts` serves.
15
+ * `packages/mailwoman/tools/dev-tools/codex/street-orders.ts`, whose values reach
16
+ * the generated layouts `@mailwoman/codex/address/layouts` serves.
17
17
  */
18
18
  /**
19
- * A leading house number on a US-style street line contains digits and an optional hyphenated range
20
- * (Queens `40-12`), an optional single alpha suffix (`101A`), then whitespace, then the rest.
19
+ * A leading house number on a US-style street line, then whitespace, then the rest.
20
+ *
21
+ * The number is digits, or a grid number with a directional letter before
22
+ * or inside it (Wisconsin's `N8722`, Illinois' `40W514`).
23
+ * An optional hyphenated range may follow, written with or without spaces
24
+ * (Queens `40-12`, Hawaii `91 - 760`).
25
+ *
26
+ * Then come an optional single alpha suffix (`101A`) and an optional half (`111 1/2`, `111 1 / 2`).
27
+ * The half is only `1/2`, so a fractional street name stays in the street (`12345 16 1/2 Mile Rd`).
21
28
  *
22
- * The remainder must stay `(\S.*)` and must not become `(.+)`: `\s+` and `.` both match a tab,
29
+ * The remainder must stay `(\S.*)` and mustn't become `(.+)`: `\s+` and `.` both match a tab,
23
30
  * so `\s+(.+)$` lets the engine split a run of tabs between the two groups every possible way
24
31
  * before failing — quadratic backtracking on attacker-shaped input.
25
32
  * The required non-space start removes the overlap.
@@ -27,7 +34,14 @@
27
34
  * Group 2 is trimmed by the caller either way, so the two forms are indistinguishable on real input.
28
35
  * Only the failure cost differs.
29
36
  */
30
- export const HOUSE_NUMBER_PREFIX = /^(\d+(?:-\d+)?[A-Za-z]?)\s+(\S.*)$/;
37
+ export const HOUSE_NUMBER_PREFIX = /^((?:[NSEW]\d+|\d+(?:[NSEW]\d+)?)(?: ?- ?\d+)?[A-Za-z]?(?: 1 ?\/ ?2)?)\s+(\S.*)$/;
38
+ /**
39
+ * A grid house number written with its directional spelled out (Michigan's `West 17194 Main Street`).
40
+ *
41
+ * The rest must hold at least two words, so a numbered street keeps its directional
42
+ * (`West 125 Street`, `South 400 East`).
43
+ */
44
+ const SPELLED_GRID_NUMBER = /^((?:North|South|East|West) \d+) +(\S+ +\S.*)$/i;
31
45
  /**
32
46
  * Split a US-style street line on {@link HOUSE_NUMBER_PREFIX}.
33
47
  *
@@ -38,9 +52,9 @@ export const HOUSE_NUMBER_PREFIX = /^(\d+(?:-\d+)?[A-Za-z]?)\s+(\S.*)$/;
38
52
  * numbering. Hawaii uses it island-wide — `"47-470 Hui Aeko Place"`).
39
53
  *
40
54
  * @returns `null` for blank input.
41
- * An input that does not match the prefix shape, including `"PO Box 1234"`,
42
- * `"RR 2 Box 67"` and `"HC 1"`, becomes a single `street` value rather than being mangled,
43
- * so the model sees the original surface form and downstream classifiers pick it up.
55
+ * An input that doesn't match the prefix shape, including `"PO Box 1234"`, `"RR 2 Box 67"`
56
+ * and `"HC 1"`, becomes a single `street` value rather than being mangled, so the model
57
+ * sees the original surface form and downstream classifiers pick it up.
44
58
  * A caller that needs those forms recognized as something other than a street
45
59
  * (see `usgov-irs-bmf`) tests for them before calling this.
46
60
  */
@@ -48,7 +62,7 @@ export function splitStreetLine(line) {
48
62
  const trimmed = line.trim();
49
63
  if (!trimmed)
50
64
  return null;
51
- const match = HOUSE_NUMBER_PREFIX.exec(trimmed);
65
+ const match = HOUSE_NUMBER_PREFIX.exec(trimmed) ?? SPELLED_GRID_NUMBER.exec(trimmed);
52
66
  if (match)
53
67
  return { house_number: match[1], street: match[2].trim() };
54
68
  return { street: trimmed };
@@ -65,7 +79,7 @@ export function splitStreetLine(line) {
65
79
  *
66
80
  * Group 1 starts at `\S` and the lazy `.*?` is bounded by that required separator,
67
81
  * so a run of whitespace between the two groups has one split rather than every possible split.
68
- * That is the same backtracking argument {@linkcode HOUSE_NUMBER_PREFIX} records, read from the other end.
82
+ * That's the same backtracking argument {@linkcode HOUSE_NUMBER_PREFIX} records, read from the other end.
69
83
  */
70
84
  export const HOUSE_NUMBER_SUFFIX = /^(\S.*?)[\s,]+(\d+[A-Za-z]?(?:\s*[/-]\s*[0-9A-Za-z]{1,4})?)$/u;
71
85
  /**
@@ -99,7 +113,7 @@ export function splitTrailingStreetLine(line) {
99
113
  * Several registers split a house number across two columns: BAN writes `10`
100
114
  * and `bis`, Kartverket writes `12` and `B`.
101
115
  * The separator differs per publisher, so the caller states it, and the two values are
102
- * trimmed here because a publisher's padding is not part of the number.
116
+ * trimmed here because a publisher's padding isn't part of the number.
103
117
  *
104
118
  * @param number The numeric part, from the publisher's number column.
105
119
  * @param suffix The letter or word that follows it, from the publisher's suffix column.
@@ -1 +1 @@
1
- {"version":3,"file":"line.js","sourceRoot":"","sources":["../../../lib/adapters/street/line.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,oCAAoC,CAAA;AAUvE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,eAAe,CAAC,IAAY;IAC3C,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAA;IAE3B,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAA;IAEzB,MAAM,KAAK,GAAG,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAE/C,IAAI,KAAK;QAAE,OAAO,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAE,CAAC,IAAI,EAAE,EAAE,CAAA;IAEtE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAA;AAC3B,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,+DAA+D,CAAA;AAElG;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,uBAAuB,CAAC,IAAY;IACnD,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAA;IAEpD,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAA;IAEzB,MAAM,KAAK,GAAG,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAE/C,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAA;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AAE,CAAC,IAAI,EAAE,EAAE,CAAA;IAEtE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAA;AAC3B,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,+DAA+D,CAAA;AAElG;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,uBAAuB,CAAC,IAAY;IACnD,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAA;IAEpD,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAA;IAEzB,MAAM,KAAK,GAAG,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAE/C,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAA;IAEtC,OAAO,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC,CAAE,CAAC,UAAU,CAAC,gBAAgB,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAE,CAAC,IAAI,EAAE,EAAE,CAAA;AAChG,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,kBAAkB,CAAC,MAAc,EAAE,MAAc,EAAE,SAAS,GAAG,EAAE;IAChF,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,EAAE,CAAA;IAEnC,IAAI,CAAC,aAAa;QAAE,OAAO,EAAE,CAAA;IAE7B,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,EAAE,CAAA;IAEnC,OAAO,aAAa,CAAC,CAAC,CAAC,GAAG,aAAa,GAAG,SAAS,GAAG,aAAa,EAAE,CAAC,CAAC,CAAC,aAAa,CAAA;AACtF,CAAC"}
@@ -1,9 +1,3 @@
1
- /**
2
- * @copyright Sister Software
3
- * @license AGPL-3.0
4
- * @author Teffen Ellis, et al.
5
- * @file Splits a unit written at the end of a street, in the words of the row's country, for every source.
6
- */
7
1
  import type { StreetLocalityEvidence } from "@mailwoman/resolver";
8
2
  /**
9
3
  * The words a country writes a unit with, and the street-type words that end its streets.
@@ -15,14 +9,26 @@ export interface UnitVocabulary {
15
9
  * folded by `foldDesignatorSpelling`.
16
10
  */
17
11
  prefix: ReadonlySet<string>;
12
+ /**
13
+ * The prefix designators the country lets stand with no identifier (`OFFICE`, `LOWER`, `REAR`),
14
+ * from its designator table's `identifierOptional` rows.
15
+ */
16
+ bare?: ReadonlySet<string>;
18
17
  /**
19
18
  * Designators written after their identifier with no space (`2楼`, `305号室`).
20
19
  */
21
20
  suffix: ReadonlySet<string>;
22
21
  /**
23
- * Street-type words in the country's official languages, lower-cased (`street`, `rd`, `路`).
22
+ * Street-type words in the country's official and regional languages,
23
+ * lower-cased (`street`, `rd`, `avenida`, `路`).
24
24
  */
25
25
  streetTypes: ReadonlySet<string>;
26
+ /**
27
+ * Function words in the country's official and regional languages, lower-cased (`de`, `la`, `of`).
28
+ *
29
+ * A street name ends in none of them, so `Chemin de la` reads as an incomplete street name.
30
+ */
31
+ stopwords?: ReadonlySet<string>;
26
32
  /**
27
33
  * One-word directionals in the country's official languages, lower-cased (`n`, `sw`, `west`),
28
34
  * which can follow a street's type word or number (`HIGHWAY 6 N`, `CROWN RD SW`).
@@ -1 +1 @@
1
- {"version":3,"file":"unit.d.ts","sourceRoot":"","sources":["../../../lib/adapters/street/unit.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAKjE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC3B;;OAEG;IACH,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC3B;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC;;;OAGG;IACH,YAAY,EAA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U1E;AAiKD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC3B,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC5B,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,iBAAiB,GAAG,IAAI,CAAA;CACnE;AAED,MAAM,WAAW,yBAAyB;IACzC;;;;OAIG;IACH,WAAW,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;CACtC;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,sBAAsB,GAAG,IAAI,CAAA;AAElF;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,GAAE,yBAA8B,GAAG,OAAO,CAAC,YAAY,CAAC,CA4BvG;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,GAAG,iBAAiB,GAAG,IAAI,CAUxG"}
@@ -1,7 +1,6 @@
1
+ // SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
2
+ // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
1
3
  /**
2
- * @copyright Sister Software
3
- * @license AGPL-3.0
4
- * @author Teffen Ellis, et al.
5
4
  * @file Splits a unit written at the end of a street, in the words of the row's country, for every source.
6
5
  */
7
6
  import { OFFICIAL_LANGUAGES } from "@mailwoman/codex/country/official-languages";
@@ -52,7 +51,7 @@ const UNIT_IDENTIFIER = /^(?:\S*\d\S*|\p{L})$/u;
52
51
  /**
53
52
  * The fewest words a street can hold with a unit at its end.
54
53
  *
55
- * They are one street word, the designator and the identifier.
54
+ * They're one street word, the designator and the identifier.
56
55
  */
57
56
  const SHORTEST_STREET_WITH_UNIT = 3;
58
57
  /**
@@ -69,12 +68,17 @@ const SHORTEST_POSTCODE_DIGITS = 4;
69
68
  const CAPITALS_ONLY_LENGTH = 2;
70
69
  const VOCABULARY_BY_COUNTRY = new Map();
71
70
  /**
72
- * The libpostal languages a country writes: its official languages that have a dictionary directory.
71
+ * The libpostal languages a country writes that have a dictionary directory:
72
+ * its official languages, and its regional ones too when `withRegional` is set.
73
+ *
74
+ * Street names read in regional languages as well (Spanish `Avenida` in the United States),
75
+ * while unit words come from the official languages only.
73
76
  */
74
- async function libpostalLanguages(country) {
75
- const official = OFFICIAL_LANGUAGES[country]?.official ?? [];
77
+ async function libpostalLanguages(country, withRegional = false) {
78
+ const record = OFFICIAL_LANGUAGES[country];
79
+ const written = [...(record?.official ?? []), ...(withRegional ? (record?.regional ?? []) : [])];
76
80
  const languages = [];
77
- for (const language of official) {
81
+ for (const language of new Set(written)) {
78
82
  if (language.length === 2 && (await tryStat(resourceDictionaryPath("libpostal", language, "street_types.txt")))) {
79
83
  languages.push(language);
80
84
  }
@@ -96,9 +100,12 @@ async function libpostalForms(languages, files) {
96
100
  }
97
101
  async function buildVocabulary(country) {
98
102
  const languages = await libpostalLanguages(country);
99
- const streetTypes = await libpostalForms(languages, ["street_types.txt"]);
103
+ const streetLanguages = await libpostalLanguages(country, true);
104
+ const streetTypes = await libpostalForms(streetLanguages, ["street_types.txt"]);
105
+ const stopwords = await libpostalForms(streetLanguages, ["stopwords.txt"]);
100
106
  const directionals = new Set([...(await libpostalForms(languages, ["directionals.txt"]))].filter((form) => !/\s/u.test(form)));
101
107
  const prefix = new Set();
108
+ const bare = new Set();
102
109
  const suffix = new Set();
103
110
  const table = designatorTableFor(country);
104
111
  if (table) {
@@ -106,15 +113,20 @@ async function buildVocabulary(country) {
106
113
  if (row.partOfStreetLine || row.concept === "block" || !UNIT_CLASSES.has(DESIGNATOR_CLASS[row.concept])) {
107
114
  continue;
108
115
  }
109
- const target = row.position === "prefix" ? prefix : row.position === "suffix" ? suffix : null;
116
+ // A standalone unit row (`LOBBY`, `BASEMENT`) marks no identifier, so it reads as a bare prefix.
117
+ const standalone = row.position === "standalone";
118
+ const target = row.position === "prefix" || standalone ? prefix : row.position === "suffix" ? suffix : null;
110
119
  for (const spelling of [row.spelling, ...row.abbreviations]) {
111
120
  const folded = foldDesignatorSpelling(spelling);
112
121
  if (!SINGLE_LETTER.test(folded) || UNSPACED_SCRIPT.test(folded)) {
113
122
  target?.add(folded);
123
+ if (target === prefix && (row.identifierOptional || standalone)) {
124
+ bare.add(folded);
125
+ }
114
126
  }
115
127
  }
116
128
  }
117
- return { country, prefix, suffix, streetTypes, directionals, origin: "codex" };
129
+ return { country, prefix, bare, suffix, streetTypes, stopwords, directionals, origin: "codex" };
118
130
  }
119
131
  // libpostal lists some unit words among the street-line words too
120
132
  // (English `block` and `lot` are street types, Spanish `manzana` and `conjunto` qualifiers),
@@ -136,6 +148,7 @@ async function buildVocabulary(country) {
136
148
  prefix,
137
149
  suffix,
138
150
  streetTypes,
151
+ stopwords,
139
152
  directionals,
140
153
  origin: prefix.size + suffix.size > 0 ? "libpostal" : "none",
141
154
  };
@@ -168,7 +181,7 @@ function splitLastUnit(street, vocabulary, postcode) {
168
181
  const postcodeDigits = postcode?.replaceAll(/\D/gu, "") ?? "";
169
182
  // An identifier that repeats the row's own postcode is a city, region and postcode
170
183
  // tail run into the street (`TAMPA ROAD PALM HARBOR FL 34683`).
171
- // A one-letter directional after a designator that is also a street type
184
+ // A one-letter directional after a designator that's also a street type
172
185
  // belongs to the street: libpostal lists `front` among English street types,
173
186
  // so `Ocean Front S` is a street and `Suite C` a unit.
174
187
  const identifierAt = (token, designator) => {
@@ -218,13 +231,17 @@ function splitLastUnit(street, vocabulary, postcode) {
218
231
  }
219
232
  if (tokens.length < 2)
220
233
  return null;
234
+ // `MAIN STREET OFFICE`: a designator the country lets stand with no identifier.
235
+ if (vocabulary.bare?.has(foldDesignatorSpelling(last.replace(/[.,]$/u, ""))) && designatorAt(last)) {
236
+ return at(tokens.length - 1);
237
+ }
221
238
  // `#120`: a number sign joined to its identifier, where the country writes `#` as a unit.
222
239
  if (vocabulary.prefix.has("#") && /^#\S/u.test(last) && identifierAt(last)) {
223
240
  return at(tokens.length - 1);
224
241
  }
225
242
  // `RM203`: a designator joined to a numeric identifier.
226
- // A joined identifier that is a whole postcode of the country is a region and postcode run
227
- // together (`BAY FL33157`), which is not a unit, even where the row records no postcode.
243
+ // A joined identifier that's a whole postcode of the country is a region and postcode run
244
+ // together (`BAY FL33157`), which isn't a unit, even where the row records no postcode.
228
245
  const joined = /^(\p{L}{2,})(\d\S*)$/u.exec(last);
229
246
  if (joined &&
230
247
  designatorAt(joined[1]) &&
@@ -240,7 +257,10 @@ function splitLastUnit(street, vocabulary, postcode) {
240
257
  function streetEvidence(remainder, context) {
241
258
  const words = remainder.split(/\s+/u).map((word) => word.replace(/[.,]$/u, "").toLowerCase());
242
259
  // A directional after the street's type word or number (`HIGHWAY 6 N`, `IH 10 West`) is stepped over.
243
- while (words.length > 1 && context.vocabulary.directionals.has(words.at(-1))) {
260
+ // A word that's both a directional and a street type (`center`) ends the street, as in `Cummings Center`.
261
+ while (words.length > 1 &&
262
+ context.vocabulary.directionals.has(words.at(-1)) &&
263
+ !context.vocabulary.streetTypes.has(words.at(-1))) {
244
264
  words.pop();
245
265
  }
246
266
  const last = words.at(-1);
@@ -252,6 +272,13 @@ function streetEvidence(remainder, context) {
252
272
  }
253
273
  if (/\d/u.test(last))
254
274
  return "number";
275
+ // A street whose type word comes first (`Avenida Ponce de Leon`, `Calle Luna`)
276
+ // when the name after it is whole.
277
+ // A remainder that ends in a function word (`Chemin de la`) is an incomplete name,
278
+ // so the split is refused.
279
+ if (words.length > 1 && context.vocabulary.streetTypes.has(words[0]) && !context.vocabulary.stopwords?.has(last)) {
280
+ return "street-word";
281
+ }
255
282
  const scope = {
256
283
  ...(context.locality ? { locality: context.locality } : {}),
257
284
  ...(context.postcode ? { postcode: context.postcode } : {}),
@@ -1 +1 @@
1
- {"version":3,"file":"unit.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IAAI,EAAE,EAAE,CAAA;IACxE,MAAM,UAAU,GAAG,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAEvD,OAAO,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AAChF,CAAC"}
@@ -1,43 +1,3 @@
1
- /**
2
- * @copyright Sister Software
3
- * @license AGPL-3.0
4
- * @author Teffen Ellis, et al.
5
- *
6
- * `wof-admin`: Who's On First admin GeoJSON-bundle adapter.
7
- *
8
- * **Phase 1.5.1 pivot.** The original Phase 1.5 SQLite adapter (formerly at
9
- * `packages/corpus/lib/adapters/wof-admin/`, removed in this same change) was replaced by this
10
- * one because the SQLite distribution path was unworkable for the real corpus build:
11
- *
12
- * 1. `dist.whosonfirst.org/sqlite/` is dead (nxdomain); the Geocode-Earth mirror is the only one.
13
- * 2. The Geocode-Earth-hosted postalcode DB tags every row `mz:is_current = -1` ("unknown but treated
14
- * as active"); the SQLite adapter's `is_current = 1` predicate emitted zero rows.
15
- * 3. The `names` table in the SQLite distribution is empty — localized `name:*` variants live in a
16
- * separate distribution. The St. Petersburg / Mt. Vernon / Ft. Lauderdale alternation cases
17
- * (the original Phase 1.5.1 motivator) cannot be solved on the SQLite path even with a
18
- * patched `is_current` predicate.
19
- *
20
- * Input: a directory containing one or more cloned `whosonfirst-data-admin-<cc>` GitHub repos. Each
21
- * repo has `data/XXX/YYY/ZZZ/<wof-id>.geojson` files; `**\/*.geojson` walks the tree recursively.
22
- * Alternate-geometry siblings (`-alt-*`) are skipped — they're separate exports of the same
23
- * record rather than new records.
24
- *
25
- * Per record, the adapter emits one row per `(name-variant, hierarchy-variant)` pair:
26
- *
27
- * - **Name variants**: the canonical `wof:name` (slot key `default`) plus every `name:*` localized
28
- * variant present on the feature (`name:eng_x_preferred`, `name:eng_x_colloquial`,
29
- * `name:rus_x_preferred`, ...). This is the Phase 1.5.1 fix for the St. Petersburg case:
30
- * `"Saint Petersburg"` (canonical) and `"St. Petersburg"` (eng_x_colloquial) both become
31
- * training rows for the same WOF id.
32
- * - **Hierarchy variants** (unchanged from the SQLite adapter): locality → 3 variants, region → 2,
33
- * country → 1, county → 1.
34
- *
35
- * `source_id` is `wof-admin-<wof_id>-<name-slot>-<hierarchy-variant>`. The previous SQLite adapter
36
- * used `wof-admin-<wof_id>-<hierarchy-variant>` (no name slot); the new format adds a name-slot
37
- * segment so the colloquial / preferred / per-locale variants survive dedup independently.
38
- *
39
- * License: CC0. The adapter stamps every row with `CC0-1.0`.
40
- */
41
1
  import type { ComponentTag } from "@mailwoman/codex/component";
42
2
  import type { WhosOnFirstPlacetype } from "@mailwoman/gazetteer/whosonfirst";
43
3
  import { type NameSlot, type WOFVariantSpec } from "#adapters/wof/json-rows";
@@ -1 +1 @@
1
- {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../../lib/adapters/wof/admin/json/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAK9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AAG5E,OAAO,EAKN,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,MAAM,yBAAyB,CAAA;AAIhC,OAAO,EAAuD,KAAK,aAAa,EAAiB,MAAM,QAAQ,CAAA;AAC/G,OAAO,EAAuD,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAA;AAElH;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,oBAAoB,GAAG,MAAM,GAAG,YAAY,GAAG,IAAI,CAsB5F;AAuBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,G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;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,SAAS,GAAG,QAAQ,EAAE,CA+BvD;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,cAAc,CAAA;AAE/C;;;;;;GAMG;AACH,wBAAgB,qBAAqB,IAAI,aAAa,CA8CrD;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,eAA0B,CAAA"}
@@ -1,42 +1,46 @@
1
+ // SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
2
+ // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
1
3
  /**
2
- * @copyright Sister Software
3
- * @license AGPL-3.0
4
- * @author Teffen Ellis, et al.
5
- *
6
4
  * `wof-admin`: Who's On First admin GeoJSON-bundle adapter.
7
5
  *
8
- * **Phase 1.5.1 pivot.** The original Phase 1.5 SQLite adapter (formerly at
9
- * `packages/corpus/lib/adapters/wof-admin/`, removed in this same change) was replaced by this
10
- * one because the SQLite distribution path was unworkable for the real corpus build:
6
+ * **Phase 1.5.1 pivot.** The original Phase 1.5 SQLite adapter
7
+ * (formerly at `packages/corpus/lib/adapters/wof-admin/`, removed in this same change) was replaced
8
+ * by this one because the SQLite distribution path was unworkable for the real corpus build:
11
9
  *
12
10
  * 1. `dist.whosonfirst.org/sqlite/` is dead (nxdomain); the Geocode-Earth mirror is the only one.
13
- * 2. The Geocode-Earth-hosted postalcode DB tags every row `mz:is_current = -1` ("unknown but treated
14
- * as active"); the SQLite adapter's `is_current = 1` predicate emitted zero rows.
15
- * 3. The `names` table in the SQLite distribution is empty — localized `name:*` variants live in a
16
- * separate distribution. The St. Petersburg / Mt. Vernon / Ft. Lauderdale alternation cases
17
- * (the original Phase 1.5.1 motivator) cannot be solved on the SQLite path even with a
18
- * patched `is_current` predicate.
19
- *
20
- * Input: a directory containing one or more cloned `whosonfirst-data-admin-<cc>` GitHub repos. Each
21
- * repo has `data/XXX/YYY/ZZZ/<wof-id>.geojson` files; `**\/*.geojson` walks the tree recursively.
22
- * Alternate-geometry siblings (`-alt-*`) are skipped — they're separate exports of the same
23
- * record rather than new records.
11
+ * 2. The Geocode-Earth-hosted postalcode DB tags every row `mz:is_current = -1`
12
+ * ("unknown but treated as active"); the SQLite adapter's `is_current = 1`
13
+ * predicate emitted zero rows.
14
+ * 3. The `names` table in the SQLite distribution is empty — localized `name:*`
15
+ * variants live in a separate distribution.
16
+ * The St. Petersburg / Mt.
17
+ * Vernon / Ft.
18
+ * Lauderdale alternation cases (the original Phase 1.5.1 motivator) cannot be
19
+ * solved on the SQLite path even with a patched `is_current` predicate.
20
+ *
21
+ * Input: a directory containing one or more cloned `whosonfirst-data-admin-<cc>` GitHub repos.
22
+ * Each repo has `data/XXX/YYY/ZZZ/<wof-id>.geojson` files; `**\/*.geojson` walks the tree recursively.
23
+ *
24
+ * Alternate-geometry siblings (`-alt-*`) are skipped — they're separate exports
25
+ * of the same record rather than new records.
24
26
  *
25
27
  * Per record, the adapter emits one row per `(name-variant, hierarchy-variant)` pair:
26
28
  *
27
- * - **Name variants**: the canonical `wof:name` (slot key `default`) plus every `name:*` localized
28
- * variant present on the feature (`name:eng_x_preferred`, `name:eng_x_colloquial`,
29
- * `name:rus_x_preferred`, ...). This is the Phase 1.5.1 fix for the St. Petersburg case:
30
- * `"Saint Petersburg"` (canonical) and `"St. Petersburg"` (eng_x_colloquial) both become
31
- * training rows for the same WOF id.
32
- * - **Hierarchy variants** (unchanged from the SQLite adapter): locality → 3 variants, region → 2,
33
- * country → 1, county → 1.
34
- *
35
- * `source_id` is `wof-admin-<wof_id>-<name-slot>-<hierarchy-variant>`. The previous SQLite adapter
36
- * used `wof-admin-<wof_id>-<hierarchy-variant>` (no name slot); the new format adds a name-slot
37
- * segment so the colloquial / preferred / per-locale variants survive dedup independently.
38
- *
39
- * License: CC0. The adapter stamps every row with `CC0-1.0`.
29
+ * - **Name variants**: the canonical `wof:name` (slot key `default`)
30
+ * plus every `name:*` localized variant present on the feature
31
+ * (`name:eng_x_preferred`, `name:eng_x_colloquial`, `name:rus_x_preferred`, ...).
32
+ * This is the Phase 1.5.1 fix for the St. Petersburg case: `"Saint Petersburg"` (canonical)
33
+ * and `"St. Petersburg"` (eng_x_colloquial) both become training rows for the same WOF id.
34
+ * - **Hierarchy variants** (unchanged from the SQLite adapter): locality → 3 variants,
35
+ * region → 2, country → 1, county → 1.
36
+ *
37
+ * `source_id` is `wof-admin-<wof_id>-<name-slot>-<hierarchy-variant>`.
38
+ * The previous SQLite adapter used `wof-admin-<wof_id>-<hierarchy-variant>`
39
+ * (no name slot); the new format adds a name-slot segment so the colloquial /
40
+ * preferred / per-locale variants survive dedup independently.
41
+ *
42
+ * License: CC0.
43
+ * The adapter stamps every row with `CC0-1.0`.
40
44
  */
41
45
  import { layoutForCountry, layoutPrintsLargestFirst, lineJoinForCountry } from "@mailwoman/codex/address/layouts";
42
46
  import { countrySurfaceForms } from "@mailwoman/codex/country/country";
@@ -119,7 +123,7 @@ export function layoutCountryForLanguage(language) {
119
123
  .filter(([, entry]) => entry.official.includes(language))
120
124
  .map(([code]) => code);
121
125
  // The local-script layout's order, because a language's own hierarchies are written in its script.
122
- // A country whose local layout states no order (Macau, Singapore) does not vote.
126
+ // A country whose local layout states no order (Macau, Singapore) doesn't vote.
123
127
  const layoutOf = (code) => {
124
128
  const layout = layoutForCountry(code, "local");
125
129
  const largestFirst = layout ? layoutPrintsLargestFirst(layout) : null;