@mailwoman/corpus 10.7.0 → 10.8.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 (1677) hide show
  1. package/README.md +4 -4
  2. package/data/PROVENANCE.md +28 -5
  3. package/data/address-source-register.json +11 -5
  4. package/data/builds/v0.8.10-rebuild/inputs.json +56 -0
  5. package/data/builds/v0.8.12-geonames-features/inputs.json +10 -0
  6. package/data/builds/v0.8.3-script-joins/inputs.json +10 -0
  7. package/data/builds/v0.8.4-cross-language/inputs.json +10 -0
  8. package/data/builds/v0.8.5-wof-postalcode/inputs.json +8 -0
  9. package/data/builds/v0.8.5-wof-structure/inputs.json +8 -0
  10. package/data/builds/v0.8.6-wof-postalcode/inputs.json +16 -0
  11. package/data/builds/v0.8.6-wof-structure/inputs.json +69 -0
  12. package/data/corpus-source-inputs.json +278 -221
  13. package/data/license-decisions.json +4 -3
  14. package/data/source-additions.json +1 -1
  15. package/data/source-resolutions.json +7 -0
  16. package/data/training-configs/stage1-coarse.yaml +82 -0
  17. package/data/training-configs/stage1-smoke.yaml +46 -0
  18. package/data/training-configs/stage2.yaml +110 -0
  19. package/data/training-configs/v0.9.0-pilot-selfcond.yaml +157 -0
  20. package/data/training-configs/v0.9.1-pilot-anchor-off.yaml +159 -0
  21. package/data/training-configs/v0.9.1-pilot-anchor-on.yaml +164 -0
  22. package/data/training-configs/v0.9.10-country-bal.yaml +150 -0
  23. package/data/training-configs/v0.9.11-country-cw.yaml +126 -0
  24. package/data/training-configs/v0.9.12-country-gaz.yaml +131 -0
  25. package/data/training-configs/v0.9.13-country-gaz-curric.yaml +127 -0
  26. package/data/training-configs/v0.9.14-affix-ml.yaml +129 -0
  27. package/data/training-configs/v0.9.2-de-bothorder.yaml +156 -0
  28. package/data/training-configs/v0.9.3-de-regiontail.yaml +127 -0
  29. package/data/training-configs/v0.9.5-unit.yaml +160 -0
  30. package/data/training-configs/v0.9.6-unit-v2.yaml +169 -0
  31. package/data/training-configs/v0.9.7-unit-v3.yaml +155 -0
  32. package/data/training-configs/v0.9.8-affix.yaml +160 -0
  33. package/data/training-configs/v0_4_0-ablate-crf.yaml +101 -0
  34. package/data/training-configs/v0_4_0-ablate-cw.yaml +76 -0
  35. package/data/training-configs/v0_4_0-final.yaml +106 -0
  36. package/data/training-configs/v0_4_0-lr1.5e4.yaml +105 -0
  37. package/data/training-configs/v0_4_0-lr3e4.yaml +104 -0
  38. package/data/training-configs/v0_4_0-smoke.yaml +103 -0
  39. package/data/training-configs/v0_4_0-stableLR-crf-only.yaml +73 -0
  40. package/data/training-configs/v0_4_0-stableLR-cw-only.yaml +92 -0
  41. package/data/training-configs/v0_4_0-stableLR-source-only.yaml +61 -0
  42. package/data/training-configs/v0_4_0.yaml +132 -0
  43. package/data/training-configs/v0_5_0-classifier-ce-only-full.yaml +79 -0
  44. package/data/training-configs/v0_5_0-classifier-ce-only-smoke.yaml +104 -0
  45. package/data/training-configs/v0_5_0-classifier-smoke.yaml +148 -0
  46. package/data/training-configs/v0_5_1-classifier-unchained.yaml +111 -0
  47. package/data/training-configs/v0_5_2-classifier-rebalanced.yaml +102 -0
  48. package/data/training-configs/v0_5_3-classifier-diagnostic.yaml +114 -0
  49. package/data/training-configs/v0_5_4-revert-recipe.yaml +118 -0
  50. package/data/training-configs/v0_6_0-stage3.yaml +114 -0
  51. package/data/training-configs/v0_6_1-stage3-streets.yaml +114 -0
  52. package/data/training-configs/v0_6_2-crf-fp32-diagnostic.yaml +141 -0
  53. package/data/training-configs/v0_6_2-stage3-rebalance.yaml +169 -0
  54. package/data/training-configs/v0_6_2b-rebalance-half.yaml +151 -0
  55. package/data/training-configs/v0_6_3-house-venue.yaml +181 -0
  56. package/data/training-configs/v0_6_4-rebalance-no-street.yaml +176 -0
  57. package/data/training-configs/v0_7_0-calibration-label-smoothing.yaml +150 -0
  58. package/data/training-configs/v0_7_0b-calibration-ls005.yaml +128 -0
  59. package/data/training-configs/v0_7_1-intersection.yaml +130 -0
  60. package/data/training-configs/v0_7_2-intersection-bare.yaml +129 -0
  61. package/data/training-configs/v0_8_0-calibration-ls005.yaml +124 -0
  62. package/data/training-configs/v0_8_0-finetune-pretrained.yaml +133 -0
  63. package/data/training-configs/v0_8_0-finetune-scratch.yaml +131 -0
  64. package/data/training-configs/v0_8_0-german.yaml +130 -0
  65. package/data/training-configs/v0_8_0-mlm-pretrain.yaml +89 -0
  66. package/data/training-configs/v0_8_0-street-bare.yaml +113 -0
  67. package/data/training-configs/v0_8_1-finetune-pretrained.yaml +137 -0
  68. package/data/training-configs/v0_8_1-finetune-scratch.yaml +135 -0
  69. package/data/training-configs/v0_8_1-street-bare-v2.yaml +112 -0
  70. package/data/training-configs/v1.0.0-affixdiag.yaml +174 -0
  71. package/data/training-configs/v1.0.0-consolidation.yaml +167 -0
  72. package/data/training-configs/v1.0.1-consolidation-runA.yaml +174 -0
  73. package/data/training-configs/v1.0.2-consolidation-runB.yaml +182 -0
  74. package/data/training-configs/v1.0.3-consolidation-runC.yaml +180 -0
  75. package/data/training-configs/v1.0.4-probe0-curriculum.yaml +193 -0
  76. package/data/training-configs/v1.0.6-relabel-probe.yaml +133 -0
  77. package/data/training-configs/v1.1.0-relabel-consolidation.yaml +134 -0
  78. package/data/training-configs/v1.2.0-probe-glue.yaml +130 -0
  79. package/data/training-configs/v1.2.1-probe-intersection.yaml +130 -0
  80. package/data/training-configs/v1.2.2-probe-pobox.yaml +133 -0
  81. package/data/training-configs/v1.3.0-boundary-consolidation.yaml +144 -0
  82. package/data/training-configs/v1.4.0-charoffset.yaml +139 -0
  83. package/data/training-configs/v1.5.0-fr-order.yaml +140 -0
  84. package/data/training-configs/v1.5.1-fr-order.yaml +126 -0
  85. package/data/training-configs/v1.6.0-boundary-stress.yaml +208 -0
  86. package/data/training-configs/v1.7.0-boundary-stress.yaml +215 -0
  87. package/data/training-configs/v1.8.0-fr-admin-split.yaml +144 -0
  88. package/data/training-configs/v1.8.1-fr-admin-split.yaml +144 -0
  89. package/data/training-configs/v1.9.0-multilocale.yaml +165 -0
  90. package/data/training-configs/v1.9.1-multilocale-3order.yaml +169 -0
  91. package/data/training-configs/v1.9.2-multilocale-au.yaml +157 -0
  92. package/data/training-configs/v1.9.3-anchor-absorption.yaml +167 -0
  93. package/data/training-configs/v1.9.3a1-anchor-absorption.yaml +171 -0
  94. package/data/training-configs/v1.9.3a2-anchor-absorption.yaml +170 -0
  95. package/data/training-configs/v1.9.3a3-anchor-absorption.yaml +170 -0
  96. package/data/training-configs/v1.9.4-fr-bare-street.yaml +182 -0
  97. package/data/training-configs/v1.9.5-surface-aug.yaml +182 -0
  98. package/data/training-configs/v1.9.6-slavic-anchor.yaml +158 -0
  99. package/data/training-configs/v1.9.6-surface-aug-full.yaml +191 -0
  100. package/data/training-configs/v1.9.7-bsplice.yaml +160 -0
  101. package/data/training-configs/v1.9.8-bare-street-bsplice.yaml +205 -0
  102. package/data/training-configs/v1.9.9-bare-street-si.yaml +225 -0
  103. package/data/training-configs/v2.1.0-boundary-family-probe.yaml +169 -0
  104. package/data/training-configs/v2.1.0-boundary-family.yaml +168 -0
  105. package/data/training-configs/v2.1.1-family-mass-probe.yaml +171 -0
  106. package/data/training-configs/v2.1.2-zeroslice-control.yaml +167 -0
  107. package/data/training-configs/v2.1.3-family-embfreeze.yaml +172 -0
  108. package/data/training-configs/v2.2.0-full-family.yaml +162 -0
  109. package/data/training-configs/v2.3.0-nl-postcode-full.yaml +173 -0
  110. package/data/training-configs/v2.4.1-fr-nsplice-ft.yaml +197 -0
  111. package/data/training-configs/v2.5.0-fragment-assay.yaml +179 -0
  112. package/data/training-configs/v2.5.1-fragment-splice.yaml +161 -0
  113. package/data/training-configs/v2.5.2-fragment-v2.yaml +160 -0
  114. package/data/training-configs/v2.5.3-fragment-v3.yaml +159 -0
  115. package/data/training-configs/v2.5.4-fragment-v4.yaml +160 -0
  116. package/data/training-configs/v2.5.5-fragment-v5.yaml +160 -0
  117. package/data/training-configs/v2.5.6-dynamics-probe.yaml +161 -0
  118. package/data/training-configs/v2.5.7-fragment-v5-gentle-full.yaml +166 -0
  119. package/data/training-configs/v2.6.0-span-boundary-probe.yaml +166 -0
  120. package/data/training-configs/v2.6.1-span-boundary-full.yaml +163 -0
  121. package/data/training-configs/v2.6.2-span-boundary-w15.yaml +162 -0
  122. package/data/training-configs/v2.6.3-country-channel.yaml +176 -0
  123. package/data/training-configs/v2.6.4-country-softguard.yaml +180 -0
  124. package/data/training-configs/v2.6.5-country-softguard-025.yaml +183 -0
  125. package/data/training-configs/v2.7.0-punct-drop.yaml +161 -0
  126. package/data/training-configs/v2.8.0-combined.yaml +163 -0
  127. package/data/training-configs/v2.9.0-country-counterweight.yaml +160 -0
  128. package/data/training-configs/v2.9.1-country-leading.yaml +161 -0
  129. package/data/training-configs/v3.0.0-span-head.yaml +194 -0
  130. package/data/training-configs/v3.0.1-span-head-lr.yaml +205 -0
  131. package/data/training-configs/v3.1.0-fr-fragment.yaml +171 -0
  132. package/data/training-configs/v3.10.0-gb-probe.yaml +192 -0
  133. package/data/training-configs/v3.10.0-span-ship-probe.yaml +181 -0
  134. package/data/training-configs/v3.10.1-gb-probe2.yaml +189 -0
  135. package/data/training-configs/v3.10.1-span-ship-8k.yaml +180 -0
  136. package/data/training-configs/v3.11.0-deploc-feed.yaml +195 -0
  137. package/data/training-configs/v3.11.1-deploc-consolidate.yaml +192 -0
  138. package/data/training-configs/v3.12.0-crt-probe.yaml +195 -0
  139. package/data/training-configs/v3.13.0-two-phase.yaml +197 -0
  140. package/data/training-configs/v3.15.0-street-type.yaml +197 -0
  141. package/data/training-configs/v3.16.0-evidence-bundle.yaml +199 -0
  142. package/data/training-configs/v3.17.0-selective-locality.yaml +199 -0
  143. package/data/training-configs/v3.18.0-personname-floor.yaml +199 -0
  144. package/data/training-configs/v3.19.0-bundle-8k.yaml +199 -0
  145. package/data/training-configs/v3.2.0-fragment-span.yaml +177 -0
  146. package/data/training-configs/v3.20.0-bundle-v5-8k.yaml +201 -0
  147. package/data/training-configs/v3.21.0-bundle-noise-8k.yaml +203 -0
  148. package/data/training-configs/v3.22.0-bundle-v385feed-8k.yaml +192 -0
  149. package/data/training-configs/v3.23.0-bundle-guard-8k.yaml +195 -0
  150. package/data/training-configs/v3.24.0-bundle-ordinal-8k.yaml +195 -0
  151. package/data/training-configs/v3.3.0-no-fragment-probe.yaml +173 -0
  152. package/data/training-configs/v3.4.0-norway-coverage-probe.yaml +173 -0
  153. package/data/training-configs/v3.4.1-norway-full.yaml +171 -0
  154. package/data/training-configs/v3.5.0-numsplice-probe.yaml +183 -0
  155. package/data/training-configs/v3.5.1-numsplice-full.yaml +183 -0
  156. package/data/training-configs/v3.5.2-numsplice3-probe.yaml +199 -0
  157. package/data/training-configs/v3.5.3-numsplice23-probe.yaml +201 -0
  158. package/data/training-configs/v3.5.4-numsplice3-full.yaml +201 -0
  159. package/data/training-configs/v3.6.0-no-fragment-b4b.yaml +184 -0
  160. package/data/training-configs/v3.7.0-no-fragment-b4b3.yaml +185 -0
  161. package/data/training-configs/v3.7.1-no-fragment-b4b3-full.yaml +184 -0
  162. package/data/training-configs/v3.7.2-no-fragment-b4b3tweak.yaml +185 -0
  163. package/data/training-configs/v3.7.3-no-fragment-b4b3tweak-full.yaml +184 -0
  164. package/data/training-configs/v3.8.0-punct-fix-probe.yaml +186 -0
  165. package/data/training-configs/v3.8.1-punct-fix-full.yaml +186 -0
  166. package/data/training-configs/v3.8.2-nz-locale-probe.yaml +195 -0
  167. package/data/training-configs/v3.8.3-nz-probe2.yaml +197 -0
  168. package/data/training-configs/v3.8.4-latam-probe.yaml +192 -0
  169. package/data/training-configs/v3.8.5-latam-8k.yaml +191 -0
  170. package/data/training-configs/v3.8.6-latam-br-8k.yaml +193 -0
  171. package/data/training-configs/v3.9.0-ptro-probe.yaml +193 -0
  172. package/data/training-configs/v3.9.1-ptro-full.yaml +191 -0
  173. package/data/training-configs/v4.0.0-base-60k.yaml +233 -0
  174. package/data/training-configs/v4.0.1-base-60k.yaml +192 -0
  175. package/data/training-configs/v4.1.0-gb-venue-l0-2k.yaml +186 -0
  176. package/data/training-configs/v4.1.0-gb-venue-l1e2-2k.yaml +186 -0
  177. package/data/training-configs/v4.1.0-gb-venue-l1e4-2k.yaml +186 -0
  178. package/data/training-configs/v4.1.0-gb-venue-l1e6-2k.yaml +186 -0
  179. package/data/training-configs/v4.1.1-gb-venue-8k.yaml +186 -0
  180. package/data/training-configs/v4.1.2-gb-venue-l0-2k.yaml +186 -0
  181. package/data/training-configs/v4.1.2-gb-venue-l1e2-2k.yaml +186 -0
  182. package/data/training-configs/v4.1.2-gb-venue-l1e4-2k.yaml +186 -0
  183. package/data/training-configs/v4.1.2-gb-venue-l1e6-2k.yaml +186 -0
  184. package/data/training-configs/v4.1.3-gb-venue-country-8k.yaml +186 -0
  185. package/data/training-configs/v4.10.0-trailing-region-lowdose-8k.yaml +326 -0
  186. package/data/training-configs/v4.11.0-house-venue-intl-4k.yaml +336 -0
  187. package/data/training-configs/v4.12.0-house-venue-ewc1e5-4k.yaml +361 -0
  188. package/data/training-configs/v4.13.0-null-control-4k.yaml +305 -0
  189. package/data/training-configs/v4.14.0-house-venue-1k.yaml +329 -0
  190. package/data/training-configs/v4.15.0-ru-exposure-d0-2k.yaml +228 -0
  191. package/data/training-configs/v4.15.0-ru-exposure-d100-2k.yaml +206 -0
  192. package/data/training-configs/v4.15.0-ru-exposure-d1000-2k.yaml +205 -0
  193. package/data/training-configs/v4.15.0-ru-exposure-d10000-2k.yaml +205 -0
  194. package/data/training-configs/v4.15.0-ru-exposure-d100000-2k.yaml +207 -0
  195. package/data/training-configs/v4.2.0-base-anchor-v2-2k.yaml +228 -0
  196. package/data/training-configs/v4.2.0-base-anchor-v2.yaml +267 -0
  197. package/data/training-configs/v4.3.0-suffix-boundary-8k.yaml +211 -0
  198. package/data/training-configs/v4.3.1-suffix-boundary-target-dose-8k.yaml +218 -0
  199. package/data/training-configs/v4.3.2-suffix-boundary-idempotent-feed-8k.yaml +219 -0
  200. package/data/training-configs/v4.3.3-cooldown46k.yaml +212 -0
  201. package/data/training-configs/v4.3.3-suffix-boundary-base-60k.yaml +193 -0
  202. package/data/training-configs/v4.4.0-suffix-boundary-v2-base-60k.yaml +200 -0
  203. package/data/training-configs/v4.5.0-psc-frsurfaces-2k.yaml +194 -0
  204. package/data/training-configs/v4.5.0-psc-frsurfaces-8k.yaml +194 -0
  205. package/data/training-configs/v4.5.1-psc-frsurfaces-2k.yaml +195 -0
  206. package/data/training-configs/v4.5.2-psc-frsurfaces-2k.yaml +196 -0
  207. package/data/training-configs/v4.6.0-admin-surfaces-base-60k.yaml +203 -0
  208. package/data/training-configs/v4.6.0-admin-surfaces-smoke-500.yaml +194 -0
  209. package/data/training-configs/v4.7.0-trailing-region-structured-8k.yaml +220 -0
  210. package/data/training-configs/v4.7.0-trailing-region-structured-smoke-500.yaml +223 -0
  211. package/data/training-configs/v4.8.0-trailing-region-placement-8k.yaml +373 -0
  212. package/data/training-configs/v4.8.0-trailing-region-placement-smoke-500.yaml +378 -0
  213. package/data/training-configs/v4.9.0-trailing-region-leftcontext-8k.yaml +331 -0
  214. package/data/training-configs/v5.0.0-base-alltails-60k.yaml +305 -0
  215. package/data/training-configs/v5.0.1-null-1k.yaml +294 -0
  216. package/data/training-configs/v5.1.0-nostreetless-60k.yaml +291 -0
  217. package/data/training-configs/v5.2.0-seed-variance-60k.yaml +294 -0
  218. package/data/training-configs/v5.3.0-reviewed-ve-postcode-tail-60k.yaml +315 -0
  219. package/data/training-configs/v5.4.0-target-families-2k.yaml +336 -0
  220. package/data/training-configs/v5.4.0-target-families-60k.yaml +419 -0
  221. package/data/training-configs/v5.5.0-restored-generations-60k.yaml +397 -0
  222. package/data/training-configs/v5.6.0-bare-postcode-60k.yaml +454 -0
  223. package/data/training-configs/v5.7.0-region-code-and-unit-60k.yaml +476 -0
  224. package/data/training-configs/v5.8.0-gazetteer-choreography-off-60k.yaml +477 -0
  225. package/data/training-configs/v5.9.0-locality-shape-60k.yaml +416 -0
  226. package/data/training-configs/v6.0.0-register-surface-60k.yaml +468 -0
  227. package/data/training-configs/v7.0.0-de-holdout-60k.yaml +479 -0
  228. package/data/training-configs/v7.1.0-osm-exposure-60k.yaml +527 -0
  229. package/data/training-configs/v7.10.0-gb-county-60k-s43.yaml +606 -0
  230. package/data/training-configs/v7.10.0-gb-county-60k.yaml +603 -0
  231. package/data/training-configs/v7.2.0-address-systems-60k.yaml +527 -0
  232. package/data/training-configs/v7.3.0-null-4k.yaml +667 -0
  233. package/data/training-configs/v7.3.0-venue-4k.yaml +679 -0
  234. package/data/training-configs/v7.3.1-venue-nr-4k.yaml +678 -0
  235. package/data/training-configs/v7.3.2-venue-planet-4k.yaml +683 -0
  236. package/data/training-configs/v7.4.0-venue-planet-60k.yaml +702 -0
  237. package/data/training-configs/v7.4.1-venue-locality-60k.yaml +692 -0
  238. package/data/training-configs/v7.5.0-gb-region-4k.yaml +680 -0
  239. package/data/training-configs/v7.6.0-venue-gb-region-60k.yaml +714 -0
  240. package/data/training-configs/v7.7.0-no-ppd-60k.yaml +551 -0
  241. package/data/training-configs/v7.8.0-rights-clean-60k.yaml +562 -0
  242. package/data/training-configs/v7.9.0-country-gap-60k.yaml +609 -0
  243. package/data/training-configs/v8-cjk-control.yaml +68 -0
  244. package/data/training-configs/v8-cjk-full-2k.yaml +79 -0
  245. package/data/training-configs/v8-cjk-full.yaml +119 -0
  246. package/data/training-configs/v8-cjk-kana.yaml +82 -0
  247. package/data/training-configs/v8-cjk-kr-probe.yaml +79 -0
  248. package/data/training-configs/v8-cjk-kr.yaml +77 -0
  249. package/data/training-configs/v8-cjk-regs-probe.yaml +62 -0
  250. package/data/training-configs/v8-cjk-regs.yaml +93 -0
  251. package/data/training-configs/v8-cjk-shi.yaml +76 -0
  252. package/data/training-configs/v8-jp-full-2k.yaml +82 -0
  253. package/data/training-configs/v8-jp-full.yaml +134 -0
  254. package/data/training-configs/v8-jp-probe.yaml +55 -0
  255. package/data/training-configs/v8-leg2-charword.yaml +122 -0
  256. package/data/training-configs/v8-leg2-sp.yaml +113 -0
  257. package/data/training-configs/v8.0.0-postcode-move-p000-60k.yaml +645 -0
  258. package/data/training-configs/v8.0.0-postcode-move-p005-60k.yaml +646 -0
  259. package/data/training-configs/v8.0.0-postcode-move-p015-60k.yaml +646 -0
  260. package/data/training-configs/v8.1.0-base-60k-s43.yaml +666 -0
  261. package/data/training-configs/v8.1.0-base-60k.yaml +661 -0
  262. package/data/training-configs/v8.2.0-base-60k.yaml +654 -0
  263. package/data/training-configs/v8.3.0-base-c6-60k-no-primer-s42.yaml +679 -0
  264. package/data/training-configs/v8.3.0-base-c6-60k-no-primer-s43.yaml +679 -0
  265. package/data/training-configs/v8.3.0-base-c6-60k-s43.yaml +678 -0
  266. package/data/training-configs/v8.3.0-base-c6-60k.yaml +670 -0
  267. package/data/training-configs/v8.3.0-base-c6-90k-fp32master-s42.yaml +710 -0
  268. package/data/training-configs/v8.3.0-base-c6-90k-fp32master-s43.yaml +710 -0
  269. package/data/training-configs/v8.3.0-base-c6-90k-mixed-s42.yaml +688 -0
  270. package/data/training-configs/v8.3.0-base-c6-90k-mixed-s43.yaml +688 -0
  271. package/data/training-configs/v8.3.0-primer-wof-30k-s43.yaml +208 -0
  272. package/data/training-configs/v8.3.0-primer-wof-30k.yaml +201 -0
  273. package/data/training-configs/v8.3.0-probe-c4-split-digits-2k.yaml +661 -0
  274. package/data/training-configs/v8.3.0-probe-c5-mixed-digits-2k.yaml +660 -0
  275. package/data/training-configs/v8.3.0-probe-c6-isolated-punctuation-2k.yaml +660 -0
  276. package/data/training-configs/v8.3.0-probe-code-unit-2k.yaml +659 -0
  277. package/data/training-configs/v8.3.0-probe-rust-loader-2k.yaml +703 -0
  278. package/data/training-configs/v8.3.1-base-c6-90k-nppes088-s42.yaml +730 -0
  279. package/data/training-configs/v8.3.1-base-c6-90k-nppes088-s43.yaml +730 -0
  280. package/data/training-configs/v8.3.2-base-c6-90k-v0810-s42-r2.yaml +671 -0
  281. package/data/training-configs/v8.3.2-base-c6-90k-v0810-s42.yaml +713 -0
  282. package/data/training-configs/v8.3.2-base-c6-90k-v0810-s43.yaml +670 -0
  283. package/data/training-configs/v8.4.0-base-c6-90k-v0812-s42-r2.yaml +666 -0
  284. package/data/training-configs/v8.4.0-base-c6-90k-v0812-s42.yaml +690 -0
  285. package/data/training-configs/v8.4.0-base-c6-90k-v0812-s43.yaml +665 -0
  286. package/data/training-configs/v8.4.0-cpu-lifecycle.yaml +523 -0
  287. package/data/training-configs/v8.6.0-base-c6-90k-v0816-s42.yaml +689 -0
  288. package/data/training-configs/v8.6.1-base-c6-90k-v0817-s42.yaml +685 -0
  289. package/data/training-configs/v8.6.2-base-c6-90k-v0817-wof15-s42.yaml +686 -0
  290. package/data/training-configs/v8.6.3-base-c6-90k-v0818-wof15-s42.yaml +683 -0
  291. package/data/training-manifests/v0.8.0.json +1136 -0
  292. package/data/training-manifests/v0.8.1.json +1136 -0
  293. package/data/training-manifests/v0.8.18-retention-overlay.effective.json +2370 -0
  294. package/data/training-manifests/v0.8.18-retention-overlay.json +4410 -0
  295. package/data/training-manifests/v0.8.2.json +1136 -0
  296. package/data/us-situs-sources.json +1 -1
  297. package/data/wof-refuted-parents.json +4256 -0
  298. package/lib/adapters/cordis/adapter.ts +65 -14
  299. package/lib/adapters/dedup-key.ts +3 -3
  300. package/lib/adapters/geonames/adapter.ts +4 -5
  301. package/lib/adapters/geonames/features/adapter.ts +208 -0
  302. package/lib/adapters/geonames/postal/adapter.ts +2 -3
  303. package/lib/adapters/gleif/adapter.ts +29 -10
  304. package/lib/adapters/libpostal-dictionary.ts +3 -2
  305. package/lib/adapters/openaddresses/adapter.ts +1 -2
  306. package/lib/adapters/osm/adapter.ts +49 -23
  307. package/lib/adapters/osm/license.ts +34 -0
  308. package/lib/adapters/overture/adapter.ts +1 -2
  309. package/lib/adapters/po-box/adapter.ts +3 -5
  310. package/lib/adapters/present.ts +23 -0
  311. package/lib/adapters/record-id.ts +88 -0
  312. package/lib/adapters/source-id.ts +2 -2
  313. package/lib/adapters/street/unit.ts +490 -0
  314. package/lib/adapters/wof/admin/json/adapter.ts +364 -18
  315. package/lib/adapters/wof/admin/json/explore.ts +294 -0
  316. package/lib/adapters/wof/admin/json/region-codes.ts +69 -0
  317. package/lib/adapters/wof/json-rows.ts +196 -40
  318. package/lib/adapters/wof/postalcode-json/adapter.ts +22 -12
  319. package/lib/adapters/wof/record-cache.ts +118 -0
  320. package/lib/adapters/wof/sample.ts +407 -0
  321. package/lib/adapters.ts +3 -0
  322. package/lib/au/adapters/gnaf/adapter.ts +1 -2
  323. package/lib/au/adapters/gnaf/assemble.ts +2 -1
  324. package/lib/au/recipes/delivery-guideline.ts +77 -0
  325. package/lib/au/recipes/unit-type-guideline.ts +99 -0
  326. package/lib/az/adapters/opendata/adapter.ts +15 -22
  327. package/lib/be/adapters/brussels/adapter.ts +2 -3
  328. package/lib/be/adapters/vlaanderen/adapter.ts +5 -6
  329. package/lib/be/adapters/wallonie/adapter.ts +3 -4
  330. package/lib/bs/adapters/gbpa/adapter.ts +7 -12
  331. package/lib/build/adapters.ts +8 -5
  332. package/lib/build/align/range.ts +300 -0
  333. package/lib/build/align/totals.ts +156 -0
  334. package/lib/build/align.ts +279 -110
  335. package/lib/build/budget.ts +162 -0
  336. package/lib/build/checkpoint.ts +10 -0
  337. package/lib/build/code-hash.ts +399 -0
  338. package/lib/build/component-check.ts +125 -0
  339. package/lib/build/eligibility.ts +10 -5
  340. package/lib/build/heap.ts +7 -0
  341. package/lib/build/holdout-check.ts +141 -0
  342. package/lib/build/inputs.ts +16 -2
  343. package/lib/build/lock.ts +38 -0
  344. package/lib/build/manifest.ts +126 -0
  345. package/lib/build/parallel.ts +635 -0
  346. package/lib/build/prior-output.ts +186 -0
  347. package/lib/build/rows.ts +6 -6
  348. package/lib/build/settings.ts +139 -0
  349. package/lib/build/source-record.ts +170 -0
  350. package/lib/build/types.ts +84 -2
  351. package/lib/build/worker.ts +359 -0
  352. package/lib/build.ts +127 -91
  353. package/lib/cjk/builder.ts +718 -0
  354. package/lib/cjk/foreign-places.ts +369 -0
  355. package/lib/cjk/overlay.ts +301 -0
  356. package/lib/cjk/registry.ts +316 -0
  357. package/lib/cjk/text.ts +199 -0
  358. package/lib/cn/recipes/organizational-units.ts +0 -1
  359. package/lib/cz/adapters/cuzk/adapter.ts +2 -3
  360. package/lib/cz/recipes/pcfirst-preposition.ts +0 -1
  361. package/lib/cz/tools/fetch/cuzk.ts +1 -1
  362. package/lib/de/fragment-board.ts +257 -0
  363. package/lib/de/recipes/locale.ts +47 -35
  364. package/lib/de/recipes/postfach-guideline.ts +68 -0
  365. package/lib/dk/adapters/inspire/adapter.ts +2 -3
  366. package/lib/ee/adapters/ads/adapter.ts +1 -2
  367. package/lib/env.ts +41 -5
  368. package/lib/es/adapters/bizkaia/adapter.ts +3 -3
  369. package/lib/es/adapters/catastro/adapter.ts +3 -3
  370. package/lib/es/adapters/gipuzkoa/adapter.ts +3 -3
  371. package/lib/es/adapters/navarra/adapter.ts +2 -2
  372. package/lib/es/cadastre.ts +0 -1
  373. package/lib/es/tools/fetch/bizkaia.ts +1 -1
  374. package/lib/es/tools/fetch/catastro.ts +6 -6
  375. package/lib/es/tools/fetch/navarra.ts +2 -2
  376. package/lib/fi/adapters/ryhti/adapter.ts +2 -3
  377. package/lib/fo/adapters/adressur/adapter.ts +8 -16
  378. package/lib/fr/adapters/annuaire-education/adapter.ts +2 -3
  379. package/lib/fr/adapters/ban/adapter.ts +19 -5
  380. package/lib/fr/adapters/finess/adapter.ts +2 -3
  381. package/lib/fr/recipes/admin-split.ts +17 -7
  382. package/lib/fr/recipes/bare-street.ts +0 -2
  383. package/lib/fr/recipes/fragment.ts +1 -8
  384. package/lib/fr/recipes/house-venue-tuples.ts +102 -0
  385. package/lib/fr/recipes/lieudit.ts +1 -2
  386. package/lib/fr/recipes/order.ts +6 -9
  387. package/lib/fr/recipes/unit-line-guideline.ts +108 -0
  388. package/lib/fr/street-decompose.ts +1 -1
  389. package/lib/gb/adapters/os-open/adapter.ts +15 -18
  390. package/lib/gb/county.ts +1 -1
  391. package/lib/gb/os-open/nearest-link.ts +1 -1
  392. package/lib/gb/os-open/open/names.ts +4 -5
  393. package/lib/gb/os-open/open/roads.ts +10 -10
  394. package/lib/gb/recipes/house-venue-tuples.ts +121 -0
  395. package/lib/gb/recipes/sub-building-guideline.ts +92 -0
  396. package/lib/gb/tools/fetch/os-open.ts +3 -3
  397. package/lib/gu/adapters/bsp/adapter.ts +7 -17
  398. package/lib/im/adapters/land-registry/adapter.ts +13 -19
  399. package/lib/index.ts +1 -1
  400. package/lib/inspire/stream.ts +3 -3
  401. package/lib/international/recipes/locale.ts +94 -44
  402. package/lib/it/adapters/anac/adapter.ts +4 -5
  403. package/lib/it/recipes/casella-postale-guideline.ts +90 -0
  404. package/lib/it/recipes/unit-line-guideline.ts +93 -0
  405. package/lib/it/tools/fetch/anac.ts +1 -1
  406. package/lib/jp/adapters/wof-admin/adapter.ts +1 -2
  407. package/lib/jp/corpus/assemble.ts +492 -0
  408. package/lib/jp/corpus/probe.ts +429 -0
  409. package/lib/jp/corpus/rows.ts +187 -0
  410. package/lib/jp/corpus/sources.ts +259 -0
  411. package/lib/jp/kana.ts +181 -0
  412. package/lib/jp/registers.ts +286 -0
  413. package/lib/jp/text.ts +76 -0
  414. package/lib/kr/adapters/juso/label-rows.ts +8 -1
  415. package/lib/kr/adapters/localdata/align.ts +14 -4
  416. package/lib/kr/adapters/localdata/key-index.ts +2 -25
  417. package/lib/kr/adapters/localdata/permit-rows.ts +28 -30
  418. package/lib/kr/corpus/assemble.ts +650 -0
  419. package/lib/kr/corpus/rows.ts +304 -0
  420. package/lib/kr/tools/fetch/localdata.ts +1 -1
  421. package/lib/li/adapters/llv/adapter.ts +6 -12
  422. package/lib/lu/adapters/bd-adresses/adapter.ts +2 -3
  423. package/lib/lv/adapters/varis/adapter.ts +1 -2
  424. package/lib/nl/adapters/kadaster/adapter.ts +4 -5
  425. package/lib/nl/recipes/postcode.ts +0 -1
  426. package/lib/no/adapters/matrikkelen/adapter.ts +2 -3
  427. package/lib/no/recipes/fragment.ts +0 -1
  428. package/lib/no/recipes/street/led.ts +0 -1
  429. package/lib/no/recipes/street.ts +0 -1
  430. package/lib/no/tools/fetch/matrikkelen.ts +2 -2
  431. package/lib/nz/recipes/unit-type-guideline.ts +100 -0
  432. package/lib/parquet/corpus-rows.ts +56 -0
  433. package/lib/parquet/duckdb.ts +38 -4
  434. package/lib/parquet/readers.ts +22 -1
  435. package/lib/parquet/record.ts +659 -0
  436. package/lib/parquet/schema.ts +61 -13
  437. package/lib/parquet/shuffle.ts +101 -1
  438. package/lib/parquet/span-sql.ts +1 -1
  439. package/lib/parquet/streams.ts +37 -8
  440. package/lib/parquet/writers.ts +523 -139
  441. package/lib/pl/adapters/emuia/adapter.ts +2 -3
  442. package/lib/recipes/address-points.ts +108 -0
  443. package/lib/recipes/anchor-absorption.ts +0 -1
  444. package/lib/recipes/bare/country.ts +0 -1
  445. package/lib/recipes/bare/postcode/eval.ts +5 -10
  446. package/lib/recipes/bare/postcode.ts +2 -2
  447. package/lib/recipes/boundary-stress.ts +1 -2
  448. package/lib/recipes/country-balanced.ts +15 -26
  449. package/lib/recipes/deepseek/batches.ts +323 -0
  450. package/lib/recipes/deepseek/client.ts +139 -0
  451. package/lib/recipes/deepseek/generate.ts +104 -0
  452. package/lib/recipes/deepseek/kryptonite.ts +164 -0
  453. package/lib/recipes/deepseek/prompts.ts +268 -0
  454. package/lib/recipes/deepseek/run.ts +243 -0
  455. package/lib/recipes/deepseek/transliteration.ts +242 -0
  456. package/lib/recipes/fragment-assay/build.ts +456 -0
  457. package/lib/recipes/fragment-assay/rows.ts +298 -0
  458. package/lib/recipes/fragment-assay/sources.ts +517 -0
  459. package/lib/recipes/house/venue/tuples.ts +151 -0
  460. package/lib/recipes/{house-venue.ts → house/venue.ts} +8 -3
  461. package/lib/recipes/intersection.ts +0 -1
  462. package/lib/recipes/po/box/cedex/recipe.ts +1 -2
  463. package/lib/recipes/po/box.ts +0 -2
  464. package/lib/recipes/postal/guideline/leg.ts +179 -0
  465. package/lib/recipes/postal/guideline.ts +278 -0
  466. package/lib/recipes/postal/unit-guideline.ts +83 -0
  467. package/lib/recipes/scaffold.ts +37 -29
  468. package/lib/recipes/secondary.ts +295 -0
  469. package/lib/recipes/sources.ts +22 -4
  470. package/lib/recipes/street/affix.ts +0 -3
  471. package/lib/recipes/street/bare.ts +1 -3
  472. package/lib/recipes/street.ts +0 -1
  473. package/lib/recipes/sub/venue/context.ts +11 -9
  474. package/lib/recipes/sub/venue/sources.ts +3 -2
  475. package/lib/recipes/sub/venue.ts +4 -13
  476. package/lib/recipes/trailing-region.ts +0 -1
  477. package/lib/recipes/unit.ts +0 -2
  478. package/lib/recipes/venue.ts +0 -1
  479. package/lib/recipes.ts +6 -2
  480. package/lib/registers.ts +5 -1
  481. package/lib/ro/adapters/retea-scolara/adapter.ts +1 -2
  482. package/lib/runner.ts +2 -3
  483. package/lib/sg/recipes/register.ts +1 -2
  484. package/lib/si/recipes/bare-village.ts +0 -1
  485. package/lib/sk/adapters/inspire/adapter.ts +3 -4
  486. package/lib/source-register/corpus-inputs.ts +95 -26
  487. package/lib/source-register/effective-manifest.ts +11 -8
  488. package/lib/source-register/register.ts +6 -128
  489. package/lib/source-register/row-license.ts +189 -0
  490. package/lib/source-register/training-manifest.ts +230 -53
  491. package/lib/source-register/types.ts +7 -166
  492. package/lib/source-register.ts +11 -6
  493. package/lib/south-asia/recipes/register.ts +4 -4
  494. package/lib/street-index/reader.ts +62 -0
  495. package/lib/street-index/schema.ts +55 -0
  496. package/lib/street-index/write.ts +94 -0
  497. package/lib/subvenue/table.ts +1 -1
  498. package/lib/surfaces/locale.ts +43 -32
  499. package/lib/synthesizers/house-venue.ts +1 -1
  500. package/lib/synthesizers/utils.ts +85 -18
  501. package/lib/test-kit/corpus-recipe.ts +1 -1
  502. package/lib/test-kit.ts +171 -1
  503. package/lib/tools/align-canonical.ts +2 -5
  504. package/lib/tools/audit.ts +10 -8
  505. package/lib/tools/cjk/foreign-places.run.ts +36 -0
  506. package/lib/tools/cjk/overlay.run.ts +79 -0
  507. package/lib/tools/de-fragment-board.run.ts +49 -0
  508. package/lib/tools/deepseek.run.ts +73 -0
  509. package/lib/tools/fetch/download/retry.ts +32 -2
  510. package/lib/tools/fetch/geonames/dump.ts +1 -1
  511. package/lib/tools/fetch/geonames/postal.ts +3 -1
  512. package/lib/tools/fetch/gleif.ts +1 -1
  513. package/lib/tools/fetch/inspire-addresses.ts +1 -1
  514. package/lib/tools/fetch/openaddresses.ts +2 -2
  515. package/lib/tools/fetch/vlaanderen-ad.ts +1 -1
  516. package/lib/tools/fetch/wfs-harvest.ts +4 -4
  517. package/lib/tools/fetch/wikidata/session.ts +165 -0
  518. package/lib/tools/fetch/{wikidata-subvenue.ts → wikidata/subvenue.ts} +64 -10
  519. package/lib/tools/fetch/wikidata/vital-places/classify.ts +251 -0
  520. package/lib/tools/fetch/wikidata/vital-places/entities.ts +971 -0
  521. package/lib/tools/fetch/wikidata/vital-places/inventory.ts +154 -0
  522. package/lib/tools/fetch/wikidata/vital-places/progress.ts +45 -0
  523. package/lib/tools/fetch/wikidata/vital-places/qrank.ts +268 -0
  524. package/lib/tools/fetch/wikidata/vital-places/query-entities.ts +269 -0
  525. package/lib/tools/fetch/wikidata/vital-places/render.ts +266 -0
  526. package/lib/tools/fetch/wikidata/vital-places.ts +296 -0
  527. package/lib/tools/fetch.ts +3 -1
  528. package/lib/tools/fragment-assay.run.ts +65 -0
  529. package/lib/tools/golden/expand.ts +2 -3
  530. package/lib/tools/house-venue-tuples.run.ts +67 -0
  531. package/lib/tools/input-changes.ts +213 -0
  532. package/lib/tools/jp/corpus.run.ts +80 -0
  533. package/lib/tools/jp/probe-corpus.run.ts +60 -0
  534. package/lib/tools/jsonl-to-parquet.ts +29 -10
  535. package/lib/tools/kr-corpus.run.ts +83 -0
  536. package/lib/tools/migrate/overlay-parquet.ts +2 -1
  537. package/lib/tools/migrate/recipe-output.ts +2 -1
  538. package/lib/tools/overlay/deletions.ts +208 -0
  539. package/lib/tools/overlay/distinct-row-ids.ts +110 -0
  540. package/lib/tools/overlay/held-out-spans.ts +399 -0
  541. package/lib/tools/overlay/kryptonite.ts +46 -23
  542. package/lib/tools/overlay/manifest.ts +360 -157
  543. package/lib/tools/overlay/merge-source.ts +201 -11
  544. package/lib/tools/overlay/split/attribute.ts +159 -0
  545. package/lib/tools/overlay/split/overlay.ts +239 -0
  546. package/lib/tools/overlay/translit.ts +33 -17
  547. package/lib/tools/postcode/non-native-order.ts +337 -0
  548. package/lib/tools/{postcode-triples.ts → postcode/triples.ts} +1 -1
  549. package/lib/tools/registry-corpus.run.ts +67 -0
  550. package/lib/tools/secondary.run.ts +88 -0
  551. package/lib/tools/source-register/build.ts +8 -6
  552. package/lib/tools/street-index/build.run.ts +38 -0
  553. package/lib/tools/street-index/build.ts +129 -0
  554. package/lib/tools/sub/venue/lexicon.ts +2 -2
  555. package/lib/tools/sub/venue/wikidata.ts +2 -2
  556. package/lib/tools/support-index.ts +686 -0
  557. package/lib/tools/tw-corpus.run.ts +66 -0
  558. package/lib/tools/variety-sample.ts +7 -5
  559. package/lib/tools/vital-places.run.ts +123 -0
  560. package/lib/training/config/admission.ts +116 -0
  561. package/lib/training/config/load.ts +643 -0
  562. package/lib/training/config/python-yaml.ts +273 -0
  563. package/lib/training/config/resolved.ts +101 -0
  564. package/lib/training/config/schema.ts +339 -0
  565. package/lib/tw/corpus/assemble.ts +320 -0
  566. package/lib/tw/corpus/rows.ts +306 -0
  567. package/lib/tw/registers.ts +270 -0
  568. package/lib/types.ts +108 -20
  569. package/lib/us/abbrev/region-samples.ts +46 -0
  570. package/lib/us/abbrev/regions.ts +51 -0
  571. package/lib/us/adapters/fcc-bdc/adapter.ts +2 -3
  572. package/lib/us/adapters/state/hi-schools/adapter.ts +9 -7
  573. package/lib/us/adapters/state/hi-schools/workbook.ts +1 -1
  574. package/lib/us/adapters/state/ia-contractors/adapter.ts +16 -11
  575. package/lib/us/adapters/state/ny-notaries/adapter.ts +9 -7
  576. package/lib/us/adapters/state/tx-notaries/adapter.ts +9 -7
  577. package/lib/us/adapters/tiger/adapter.ts +2 -4
  578. package/lib/us/adapters/usgov/hrsa-fqhc/adapter.ts +13 -20
  579. package/lib/us/adapters/usgov/imls-pls/adapter.ts +18 -8
  580. package/lib/us/adapters/usgov/irs-bmf/adapter.ts +2 -3
  581. package/lib/us/adapters/usgov/nad/adapter.ts +20 -9
  582. package/lib/us/adapters/usgov/nppes/adapter.ts +28 -15
  583. package/lib/us/adapters/usgov/samhsa-treatment-locator/adapter.ts +19 -33
  584. package/lib/us/recipes/house-venue-tuples.ts +148 -0
  585. package/lib/us/recipes/skeleton-sources.ts +3 -3
  586. package/lib/us/state-country-codes.ts +25 -0
  587. package/lib/us/street-unit.ts +72 -0
  588. package/lib/us/tools/nad-skeletons.ts +2 -2
  589. package/lib/utils/align.ts +78 -33
  590. package/lib/utils/retention.ts +87 -0
  591. package/lib/utils/shape-supply.ts +102 -0
  592. package/lib/utils/split.ts +777 -138
  593. package/lib/utils/wof-json.ts +243 -50
  594. package/lib/uy/adapters/ide/adapter.ts +27 -32
  595. package/lib/ve/recipes/reviewed-postcode-tail.ts +5 -5
  596. package/out/adapters/cordis/adapter.d.ts +7 -4
  597. package/out/adapters/cordis/adapter.d.ts.map +1 -1
  598. package/out/adapters/cordis/adapter.js +44 -13
  599. package/out/adapters/cordis/adapter.js.map +1 -1
  600. package/out/adapters/dedup-key.d.ts +1 -1
  601. package/out/adapters/dedup-key.js +3 -3
  602. package/out/adapters/dedup-key.js.map +1 -1
  603. package/out/adapters/geonames/adapter.d.ts +11 -0
  604. package/out/adapters/geonames/adapter.d.ts.map +1 -1
  605. package/out/adapters/geonames/adapter.js +4 -5
  606. package/out/adapters/geonames/adapter.js.map +1 -1
  607. package/out/adapters/geonames/features/adapter.d.ts +56 -0
  608. package/out/adapters/geonames/features/adapter.d.ts.map +1 -0
  609. package/out/adapters/geonames/features/adapter.js +170 -0
  610. package/out/adapters/geonames/features/adapter.js.map +1 -0
  611. package/out/adapters/geonames/postal/adapter.d.ts.map +1 -1
  612. package/out/adapters/geonames/postal/adapter.js +2 -3
  613. package/out/adapters/geonames/postal/adapter.js.map +1 -1
  614. package/out/adapters/gleif/adapter.d.ts +2 -1
  615. package/out/adapters/gleif/adapter.d.ts.map +1 -1
  616. package/out/adapters/gleif/adapter.js +20 -10
  617. package/out/adapters/gleif/adapter.js.map +1 -1
  618. package/out/adapters/libpostal-dictionary.d.ts +2 -1
  619. package/out/adapters/libpostal-dictionary.d.ts.map +1 -1
  620. package/out/adapters/libpostal-dictionary.js +3 -2
  621. package/out/adapters/libpostal-dictionary.js.map +1 -1
  622. package/out/adapters/openaddresses/adapter.d.ts.map +1 -1
  623. package/out/adapters/openaddresses/adapter.js +1 -2
  624. package/out/adapters/openaddresses/adapter.js.map +1 -1
  625. package/out/adapters/osm/adapter.d.ts +16 -15
  626. package/out/adapters/osm/adapter.d.ts.map +1 -1
  627. package/out/adapters/osm/adapter.js +38 -19
  628. package/out/adapters/osm/adapter.js.map +1 -1
  629. package/out/adapters/osm/license.d.ts +30 -0
  630. package/out/adapters/osm/license.d.ts.map +1 -0
  631. package/out/adapters/osm/license.js +31 -0
  632. package/out/adapters/osm/license.js.map +1 -0
  633. package/out/adapters/overture/adapter.d.ts.map +1 -1
  634. package/out/adapters/overture/adapter.js +1 -2
  635. package/out/adapters/overture/adapter.js.map +1 -1
  636. package/out/adapters/po-box/adapter.d.ts.map +1 -1
  637. package/out/adapters/po-box/adapter.js +3 -5
  638. package/out/adapters/po-box/adapter.js.map +1 -1
  639. package/out/adapters/present.d.ts +12 -0
  640. package/out/adapters/present.d.ts.map +1 -0
  641. package/out/adapters/present.js +19 -0
  642. package/out/adapters/present.js.map +1 -0
  643. package/out/adapters/record-id.d.ts +54 -0
  644. package/out/adapters/record-id.d.ts.map +1 -0
  645. package/out/adapters/record-id.js +77 -0
  646. package/out/adapters/record-id.js.map +1 -0
  647. package/out/adapters/source-id.d.ts +2 -2
  648. package/out/adapters/source-id.d.ts.map +1 -1
  649. package/out/adapters/source-id.js.map +1 -1
  650. package/out/adapters/{street-line.d.ts → street/line.d.ts} +1 -1
  651. package/out/adapters/street/line.d.ts.map +1 -0
  652. package/out/adapters/{street-line.js → street/line.js} +1 -1
  653. package/out/adapters/street/line.js.map +1 -0
  654. package/out/adapters/street/unit.d.ts +124 -0
  655. package/out/adapters/street/unit.d.ts.map +1 -0
  656. package/out/adapters/street/unit.js +321 -0
  657. package/out/adapters/street/unit.js.map +1 -0
  658. package/out/adapters/wof/admin/json/adapter.d.ts +40 -13
  659. package/out/adapters/wof/admin/json/adapter.d.ts.map +1 -1
  660. package/out/adapters/wof/admin/json/adapter.js +285 -16
  661. package/out/adapters/wof/admin/json/adapter.js.map +1 -1
  662. package/out/adapters/wof/admin/json/explore.d.ts +114 -0
  663. package/out/adapters/wof/admin/json/explore.d.ts.map +1 -0
  664. package/out/adapters/wof/admin/json/explore.js +175 -0
  665. package/out/adapters/wof/admin/json/explore.js.map +1 -0
  666. package/out/adapters/wof/admin/json/region-codes.d.ts +18 -0
  667. package/out/adapters/wof/admin/json/region-codes.d.ts.map +1 -0
  668. package/out/adapters/wof/admin/json/region-codes.js +52 -0
  669. package/out/adapters/wof/admin/json/region-codes.js.map +1 -0
  670. package/out/adapters/wof/json-rows.d.ts +70 -15
  671. package/out/adapters/wof/json-rows.d.ts.map +1 -1
  672. package/out/adapters/wof/json-rows.js +112 -28
  673. package/out/adapters/wof/json-rows.js.map +1 -1
  674. package/out/adapters/wof/postalcode-json/adapter.d.ts +4 -7
  675. package/out/adapters/wof/postalcode-json/adapter.d.ts.map +1 -1
  676. package/out/adapters/wof/postalcode-json/adapter.js +16 -10
  677. package/out/adapters/wof/postalcode-json/adapter.js.map +1 -1
  678. package/out/adapters/wof/record-cache.d.ts +28 -0
  679. package/out/adapters/wof/record-cache.d.ts.map +1 -0
  680. package/out/adapters/wof/record-cache.js +90 -0
  681. package/out/adapters/wof/record-cache.js.map +1 -0
  682. package/out/adapters/wof/sample.d.ts +91 -0
  683. package/out/adapters/wof/sample.d.ts.map +1 -0
  684. package/out/adapters/wof/sample.js +296 -0
  685. package/out/adapters/wof/sample.js.map +1 -0
  686. package/out/adapters.d.ts +1 -0
  687. package/out/adapters.d.ts.map +1 -1
  688. package/out/adapters.js +3 -0
  689. package/out/adapters.js.map +1 -1
  690. package/out/au/adapters/gnaf/adapter.d.ts.map +1 -1
  691. package/out/au/adapters/gnaf/adapter.js +1 -2
  692. package/out/au/adapters/gnaf/adapter.js.map +1 -1
  693. package/out/au/adapters/gnaf/assemble.d.ts.map +1 -1
  694. package/out/au/adapters/gnaf/assemble.js +2 -1
  695. package/out/au/adapters/gnaf/assemble.js.map +1 -1
  696. package/out/au/recipes/delivery-guideline.d.ts +19 -0
  697. package/out/au/recipes/delivery-guideline.d.ts.map +1 -0
  698. package/out/au/recipes/delivery-guideline.js +60 -0
  699. package/out/au/recipes/delivery-guideline.js.map +1 -0
  700. package/out/au/recipes/unit-type-guideline.d.ts +25 -0
  701. package/out/au/recipes/unit-type-guideline.d.ts.map +1 -0
  702. package/out/au/recipes/unit-type-guideline.js +82 -0
  703. package/out/au/recipes/unit-type-guideline.js.map +1 -0
  704. package/out/az/adapters/opendata/adapter.d.ts +12 -10
  705. package/out/az/adapters/opendata/adapter.d.ts.map +1 -1
  706. package/out/az/adapters/opendata/adapter.js +15 -20
  707. package/out/az/adapters/opendata/adapter.js.map +1 -1
  708. package/out/be/adapters/brussels/adapter.d.ts +1 -1
  709. package/out/be/adapters/brussels/adapter.d.ts.map +1 -1
  710. package/out/be/adapters/brussels/adapter.js +2 -3
  711. package/out/be/adapters/brussels/adapter.js.map +1 -1
  712. package/out/be/adapters/vlaanderen/adapter.d.ts +1 -1
  713. package/out/be/adapters/vlaanderen/adapter.d.ts.map +1 -1
  714. package/out/be/adapters/vlaanderen/adapter.js +5 -6
  715. package/out/be/adapters/vlaanderen/adapter.js.map +1 -1
  716. package/out/be/adapters/wallonie/adapter.d.ts +2 -2
  717. package/out/be/adapters/wallonie/adapter.d.ts.map +1 -1
  718. package/out/be/adapters/wallonie/adapter.js +3 -4
  719. package/out/be/adapters/wallonie/adapter.js.map +1 -1
  720. package/out/bs/adapters/gbpa/adapter.d.ts +2 -2
  721. package/out/bs/adapters/gbpa/adapter.d.ts.map +1 -1
  722. package/out/bs/adapters/gbpa/adapter.js +7 -10
  723. package/out/bs/adapters/gbpa/adapter.js.map +1 -1
  724. package/out/build/adapters.d.ts +17 -0
  725. package/out/build/adapters.d.ts.map +1 -1
  726. package/out/build/adapters.js +2 -5
  727. package/out/build/adapters.js.map +1 -1
  728. package/out/build/align/range.d.ts +107 -0
  729. package/out/build/align/range.d.ts.map +1 -0
  730. package/out/build/align/range.js +196 -0
  731. package/out/build/align/range.js.map +1 -0
  732. package/out/build/align/totals.d.ts +71 -0
  733. package/out/build/align/totals.d.ts.map +1 -0
  734. package/out/build/align/totals.js +107 -0
  735. package/out/build/align/totals.js.map +1 -0
  736. package/out/build/align.d.ts +85 -0
  737. package/out/build/align.d.ts.map +1 -1
  738. package/out/build/align.js +164 -84
  739. package/out/build/align.js.map +1 -1
  740. package/out/build/budget.d.ts +111 -0
  741. package/out/build/budget.d.ts.map +1 -0
  742. package/out/build/budget.js +100 -0
  743. package/out/build/budget.js.map +1 -0
  744. package/out/build/checkpoint.d.ts +9 -0
  745. package/out/build/checkpoint.d.ts.map +1 -1
  746. package/out/build/checkpoint.js.map +1 -1
  747. package/out/build/code-hash.d.ts +87 -0
  748. package/out/build/code-hash.d.ts.map +1 -0
  749. package/out/build/code-hash.js +286 -0
  750. package/out/build/code-hash.js.map +1 -0
  751. package/out/build/component-check.d.ts +56 -0
  752. package/out/build/component-check.d.ts.map +1 -0
  753. package/out/build/component-check.js +96 -0
  754. package/out/build/component-check.js.map +1 -0
  755. package/out/build/eligibility.d.ts +5 -4
  756. package/out/build/eligibility.d.ts.map +1 -1
  757. package/out/build/eligibility.js +9 -4
  758. package/out/build/eligibility.js.map +1 -1
  759. package/out/build/heap.d.ts +4 -0
  760. package/out/build/heap.d.ts.map +1 -1
  761. package/out/build/heap.js +6 -0
  762. package/out/build/heap.js.map +1 -1
  763. package/out/build/holdout-check.d.ts +75 -0
  764. package/out/build/holdout-check.d.ts.map +1 -0
  765. package/out/build/holdout-check.js +88 -0
  766. package/out/build/holdout-check.js.map +1 -0
  767. package/out/build/inputs.d.ts +7 -0
  768. package/out/build/inputs.d.ts.map +1 -1
  769. package/out/build/inputs.js +9 -2
  770. package/out/build/inputs.js.map +1 -1
  771. package/out/build/lock.d.ts +25 -0
  772. package/out/build/lock.d.ts.map +1 -0
  773. package/out/build/lock.js +29 -0
  774. package/out/build/lock.js.map +1 -0
  775. package/out/build/manifest.d.ts +44 -0
  776. package/out/build/manifest.d.ts.map +1 -0
  777. package/out/build/manifest.js +80 -0
  778. package/out/build/manifest.js.map +1 -0
  779. package/out/build/parallel.d.ts +78 -0
  780. package/out/build/parallel.d.ts.map +1 -0
  781. package/out/build/parallel.js +448 -0
  782. package/out/build/parallel.js.map +1 -0
  783. package/out/build/prior-output.d.ts +76 -0
  784. package/out/build/prior-output.d.ts.map +1 -0
  785. package/out/build/prior-output.js +113 -0
  786. package/out/build/prior-output.js.map +1 -0
  787. package/out/build/rows.d.ts +4 -3
  788. package/out/build/rows.d.ts.map +1 -1
  789. package/out/build/rows.js +6 -6
  790. package/out/build/rows.js.map +1 -1
  791. package/out/build/settings.d.ts +53 -0
  792. package/out/build/settings.d.ts.map +1 -0
  793. package/out/build/settings.js +96 -0
  794. package/out/build/settings.js.map +1 -0
  795. package/out/build/source-record.d.ts +103 -0
  796. package/out/build/source-record.d.ts.map +1 -0
  797. package/out/build/source-record.js +89 -0
  798. package/out/build/source-record.js.map +1 -0
  799. package/out/build/types.d.ts +80 -2
  800. package/out/build/types.d.ts.map +1 -1
  801. package/out/build/types.js +22 -0
  802. package/out/build/types.js.map +1 -1
  803. package/out/build/worker.d.ts +119 -0
  804. package/out/build/worker.d.ts.map +1 -0
  805. package/out/build/worker.js +222 -0
  806. package/out/build/worker.js.map +1 -0
  807. package/out/build.d.ts +3 -0
  808. package/out/build.d.ts.map +1 -1
  809. package/out/build.js +105 -78
  810. package/out/build.js.map +1 -1
  811. package/out/cjk/builder.d.ts +298 -0
  812. package/out/cjk/builder.d.ts.map +1 -0
  813. package/out/cjk/builder.js +500 -0
  814. package/out/cjk/builder.js.map +1 -0
  815. package/out/cjk/foreign-places.d.ts +105 -0
  816. package/out/cjk/foreign-places.d.ts.map +1 -0
  817. package/out/cjk/foreign-places.js +281 -0
  818. package/out/cjk/foreign-places.js.map +1 -0
  819. package/out/cjk/overlay.d.ts +89 -0
  820. package/out/cjk/overlay.d.ts.map +1 -0
  821. package/out/cjk/overlay.js +194 -0
  822. package/out/cjk/overlay.js.map +1 -0
  823. package/out/cjk/registry.d.ts +81 -0
  824. package/out/cjk/registry.d.ts.map +1 -0
  825. package/out/cjk/registry.js +193 -0
  826. package/out/cjk/registry.js.map +1 -0
  827. package/out/cjk/text.d.ts +51 -0
  828. package/out/cjk/text.d.ts.map +1 -0
  829. package/out/cjk/text.js +171 -0
  830. package/out/cjk/text.js.map +1 -0
  831. package/out/cn/recipes/organizational-units.d.ts.map +1 -1
  832. package/out/cn/recipes/organizational-units.js +0 -1
  833. package/out/cn/recipes/organizational-units.js.map +1 -1
  834. package/out/cz/adapters/cuzk/adapter.d.ts.map +1 -1
  835. package/out/cz/adapters/cuzk/adapter.js +2 -3
  836. package/out/cz/adapters/cuzk/adapter.js.map +1 -1
  837. package/out/cz/recipes/pcfirst-preposition.d.ts.map +1 -1
  838. package/out/cz/recipes/pcfirst-preposition.js +0 -1
  839. package/out/cz/recipes/pcfirst-preposition.js.map +1 -1
  840. package/out/cz/tools/fetch/cuzk.js +1 -1
  841. package/out/cz/tools/fetch/cuzk.js.map +1 -1
  842. package/out/de/fragment-board.d.ts +79 -0
  843. package/out/de/fragment-board.d.ts.map +1 -0
  844. package/out/de/fragment-board.js +167 -0
  845. package/out/de/fragment-board.js.map +1 -0
  846. package/out/de/recipes/locale.d.ts +4 -7
  847. package/out/de/recipes/locale.d.ts.map +1 -1
  848. package/out/de/recipes/locale.js +37 -30
  849. package/out/de/recipes/locale.js.map +1 -1
  850. package/out/de/recipes/postfach-guideline.d.ts +17 -0
  851. package/out/de/recipes/postfach-guideline.d.ts.map +1 -0
  852. package/out/de/recipes/postfach-guideline.js +53 -0
  853. package/out/de/recipes/postfach-guideline.js.map +1 -0
  854. package/out/dk/adapters/inspire/adapter.d.ts.map +1 -1
  855. package/out/dk/adapters/inspire/adapter.js +2 -3
  856. package/out/dk/adapters/inspire/adapter.js.map +1 -1
  857. package/out/ee/adapters/ads/adapter.d.ts.map +1 -1
  858. package/out/ee/adapters/ads/adapter.js +1 -2
  859. package/out/ee/adapters/ads/adapter.js.map +1 -1
  860. package/out/env.d.ts +21 -3
  861. package/out/env.d.ts.map +1 -1
  862. package/out/env.js +35 -5
  863. package/out/env.js.map +1 -1
  864. package/out/es/adapters/bizkaia/adapter.js +3 -3
  865. package/out/es/adapters/bizkaia/adapter.js.map +1 -1
  866. package/out/es/adapters/catastro/adapter.js +3 -3
  867. package/out/es/adapters/catastro/adapter.js.map +1 -1
  868. package/out/es/adapters/gipuzkoa/adapter.js +3 -3
  869. package/out/es/adapters/gipuzkoa/adapter.js.map +1 -1
  870. package/out/es/adapters/navarra/adapter.js +2 -2
  871. package/out/es/adapters/navarra/adapter.js.map +1 -1
  872. package/out/es/cadastre.d.ts.map +1 -1
  873. package/out/es/cadastre.js +0 -1
  874. package/out/es/cadastre.js.map +1 -1
  875. package/out/es/tools/fetch/bizkaia.js +1 -1
  876. package/out/es/tools/fetch/bizkaia.js.map +1 -1
  877. package/out/es/tools/fetch/catastro.d.ts +2 -2
  878. package/out/es/tools/fetch/catastro.d.ts.map +1 -1
  879. package/out/es/tools/fetch/catastro.js +3 -3
  880. package/out/es/tools/fetch/catastro.js.map +1 -1
  881. package/out/es/tools/fetch/navarra.d.ts +1 -1
  882. package/out/es/tools/fetch/navarra.d.ts.map +1 -1
  883. package/out/es/tools/fetch/navarra.js +1 -1
  884. package/out/es/tools/fetch/navarra.js.map +1 -1
  885. package/out/fi/adapters/ryhti/adapter.d.ts.map +1 -1
  886. package/out/fi/adapters/ryhti/adapter.js +2 -3
  887. package/out/fi/adapters/ryhti/adapter.js.map +1 -1
  888. package/out/fo/adapters/adressur/adapter.d.ts +3 -3
  889. package/out/fo/adapters/adressur/adapter.d.ts.map +1 -1
  890. package/out/fo/adapters/adressur/adapter.js +8 -14
  891. package/out/fo/adapters/adressur/adapter.js.map +1 -1
  892. package/out/fr/adapters/annuaire-education/adapter.d.ts.map +1 -1
  893. package/out/fr/adapters/annuaire-education/adapter.js +2 -3
  894. package/out/fr/adapters/annuaire-education/adapter.js.map +1 -1
  895. package/out/fr/adapters/ban/adapter.d.ts.map +1 -1
  896. package/out/fr/adapters/ban/adapter.js +18 -5
  897. package/out/fr/adapters/ban/adapter.js.map +1 -1
  898. package/out/fr/adapters/finess/adapter.d.ts.map +1 -1
  899. package/out/fr/adapters/finess/adapter.js +2 -3
  900. package/out/fr/adapters/finess/adapter.js.map +1 -1
  901. package/out/fr/recipes/admin-split.d.ts.map +1 -1
  902. package/out/fr/recipes/admin-split.js +9 -4
  903. package/out/fr/recipes/admin-split.js.map +1 -1
  904. package/out/fr/recipes/bare-street.d.ts.map +1 -1
  905. package/out/fr/recipes/bare-street.js +0 -2
  906. package/out/fr/recipes/bare-street.js.map +1 -1
  907. package/out/fr/recipes/fragment.d.ts.map +1 -1
  908. package/out/fr/recipes/fragment.js +1 -8
  909. package/out/fr/recipes/fragment.js.map +1 -1
  910. package/out/fr/recipes/house-venue-tuples.d.ts +36 -0
  911. package/out/fr/recipes/house-venue-tuples.d.ts.map +1 -0
  912. package/out/fr/recipes/house-venue-tuples.js +81 -0
  913. package/out/fr/recipes/house-venue-tuples.js.map +1 -0
  914. package/out/fr/recipes/lieudit.d.ts.map +1 -1
  915. package/out/fr/recipes/lieudit.js +1 -2
  916. package/out/fr/recipes/lieudit.js.map +1 -1
  917. package/out/fr/recipes/order.d.ts.map +1 -1
  918. package/out/fr/recipes/order.js +6 -10
  919. package/out/fr/recipes/order.js.map +1 -1
  920. package/out/fr/recipes/unit-line-guideline.d.ts +21 -0
  921. package/out/fr/recipes/unit-line-guideline.d.ts.map +1 -0
  922. package/out/fr/recipes/unit-line-guideline.js +87 -0
  923. package/out/fr/recipes/unit-line-guideline.js.map +1 -0
  924. package/out/fr/street-decompose.d.ts +1 -1
  925. package/out/fr/street-decompose.js +1 -1
  926. package/out/gb/adapters/os-open/adapter.d.ts +12 -14
  927. package/out/gb/adapters/os-open/adapter.d.ts.map +1 -1
  928. package/out/gb/adapters/os-open/adapter.js +13 -16
  929. package/out/gb/adapters/os-open/adapter.js.map +1 -1
  930. package/out/gb/county.d.ts +1 -1
  931. package/out/gb/county.js +1 -1
  932. package/out/gb/os-open/nearest-link.js +1 -1
  933. package/out/gb/os-open/nearest-link.js.map +1 -1
  934. package/out/gb/os-open/open/names.d.ts +4 -5
  935. package/out/gb/os-open/open/names.d.ts.map +1 -1
  936. package/out/gb/os-open/open/names.js +4 -5
  937. package/out/gb/os-open/open/names.js.map +1 -1
  938. package/out/gb/os-open/open/roads.d.ts +10 -10
  939. package/out/gb/os-open/open/roads.js +7 -7
  940. package/out/gb/recipes/house-venue-tuples.d.ts +38 -0
  941. package/out/gb/recipes/house-venue-tuples.d.ts.map +1 -0
  942. package/out/gb/recipes/house-venue-tuples.js +88 -0
  943. package/out/gb/recipes/house-venue-tuples.js.map +1 -0
  944. package/out/gb/recipes/sub-building-guideline.d.ts +22 -0
  945. package/out/gb/recipes/sub-building-guideline.d.ts.map +1 -0
  946. package/out/gb/recipes/sub-building-guideline.js +73 -0
  947. package/out/gb/recipes/sub-building-guideline.js.map +1 -0
  948. package/out/gb/tools/fetch/os-open.d.ts +2 -2
  949. package/out/gb/tools/fetch/os-open.js +3 -3
  950. package/out/gb/tools/fetch/os-open.js.map +1 -1
  951. package/out/gu/adapters/bsp/adapter.d.ts +5 -5
  952. package/out/gu/adapters/bsp/adapter.d.ts.map +1 -1
  953. package/out/gu/adapters/bsp/adapter.js +7 -15
  954. package/out/gu/adapters/bsp/adapter.js.map +1 -1
  955. package/out/im/adapters/land-registry/adapter.d.ts +5 -5
  956. package/out/im/adapters/land-registry/adapter.d.ts.map +1 -1
  957. package/out/im/adapters/land-registry/adapter.js +13 -17
  958. package/out/im/adapters/land-registry/adapter.js.map +1 -1
  959. package/out/index.d.ts +1 -1
  960. package/out/index.js +1 -1
  961. package/out/inspire/stream.js +3 -3
  962. package/out/inspire/stream.js.map +1 -1
  963. package/out/international/recipes/locale.d.ts +24 -6
  964. package/out/international/recipes/locale.d.ts.map +1 -1
  965. package/out/international/recipes/locale.js +66 -35
  966. package/out/international/recipes/locale.js.map +1 -1
  967. package/out/it/adapters/anac/adapter.d.ts.map +1 -1
  968. package/out/it/adapters/anac/adapter.js +4 -5
  969. package/out/it/adapters/anac/adapter.js.map +1 -1
  970. package/out/it/recipes/casella-postale-guideline.d.ts +23 -0
  971. package/out/it/recipes/casella-postale-guideline.d.ts.map +1 -0
  972. package/out/it/recipes/casella-postale-guideline.js +68 -0
  973. package/out/it/recipes/casella-postale-guideline.js.map +1 -0
  974. package/out/it/recipes/unit-line-guideline.d.ts +20 -0
  975. package/out/it/recipes/unit-line-guideline.d.ts.map +1 -0
  976. package/out/it/recipes/unit-line-guideline.js +75 -0
  977. package/out/it/recipes/unit-line-guideline.js.map +1 -0
  978. package/out/it/tools/fetch/anac.d.ts +1 -1
  979. package/out/it/tools/fetch/anac.d.ts.map +1 -1
  980. package/out/jp/adapters/wof-admin/adapter.d.ts.map +1 -1
  981. package/out/jp/adapters/wof-admin/adapter.js +1 -2
  982. package/out/jp/adapters/wof-admin/adapter.js.map +1 -1
  983. package/out/jp/corpus/assemble.d.ts +107 -0
  984. package/out/jp/corpus/assemble.d.ts.map +1 -0
  985. package/out/jp/corpus/assemble.js +306 -0
  986. package/out/jp/corpus/assemble.js.map +1 -0
  987. package/out/jp/corpus/probe.d.ts +92 -0
  988. package/out/jp/corpus/probe.d.ts.map +1 -0
  989. package/out/jp/corpus/probe.js +276 -0
  990. package/out/jp/corpus/probe.js.map +1 -0
  991. package/out/jp/corpus/rows.d.ts +71 -0
  992. package/out/jp/corpus/rows.d.ts.map +1 -0
  993. package/out/jp/corpus/rows.js +146 -0
  994. package/out/jp/corpus/rows.js.map +1 -0
  995. package/out/jp/corpus/sources.d.ts +91 -0
  996. package/out/jp/corpus/sources.d.ts.map +1 -0
  997. package/out/jp/corpus/sources.js +171 -0
  998. package/out/jp/corpus/sources.js.map +1 -0
  999. package/out/jp/kana.d.ts +45 -0
  1000. package/out/jp/kana.d.ts.map +1 -0
  1001. package/out/jp/kana.js +138 -0
  1002. package/out/jp/kana.js.map +1 -0
  1003. package/out/jp/registers.d.ts +93 -0
  1004. package/out/jp/registers.d.ts.map +1 -0
  1005. package/out/jp/registers.js +209 -0
  1006. package/out/jp/registers.js.map +1 -0
  1007. package/out/jp/text.d.ts +41 -0
  1008. package/out/jp/text.d.ts.map +1 -0
  1009. package/out/jp/text.js +64 -0
  1010. package/out/jp/text.js.map +1 -0
  1011. package/out/kr/adapters/juso/label-rows.d.ts.map +1 -1
  1012. package/out/kr/adapters/juso/label-rows.js +6 -1
  1013. package/out/kr/adapters/juso/label-rows.js.map +1 -1
  1014. package/out/kr/adapters/localdata/align.d.ts.map +1 -1
  1015. package/out/kr/adapters/localdata/align.js +10 -4
  1016. package/out/kr/adapters/localdata/align.js.map +1 -1
  1017. package/out/kr/adapters/localdata/key-index.d.ts +0 -4
  1018. package/out/kr/adapters/localdata/key-index.d.ts.map +1 -1
  1019. package/out/kr/adapters/localdata/key-index.js +2 -23
  1020. package/out/kr/adapters/localdata/key-index.js.map +1 -1
  1021. package/out/kr/adapters/localdata/permit-rows.d.ts +8 -1
  1022. package/out/kr/adapters/localdata/permit-rows.d.ts.map +1 -1
  1023. package/out/kr/adapters/localdata/permit-rows.js +21 -23
  1024. package/out/kr/adapters/localdata/permit-rows.js.map +1 -1
  1025. package/out/kr/corpus/assemble.d.ts +145 -0
  1026. package/out/kr/corpus/assemble.d.ts.map +1 -0
  1027. package/out/kr/corpus/assemble.js +420 -0
  1028. package/out/kr/corpus/assemble.js.map +1 -0
  1029. package/out/kr/corpus/rows.d.ts +88 -0
  1030. package/out/kr/corpus/rows.d.ts.map +1 -0
  1031. package/out/kr/corpus/rows.js +242 -0
  1032. package/out/kr/corpus/rows.js.map +1 -0
  1033. package/out/kr/tools/fetch/localdata.d.ts +1 -1
  1034. package/out/kr/tools/fetch/localdata.d.ts.map +1 -1
  1035. package/out/li/adapters/llv/adapter.d.ts +2 -2
  1036. package/out/li/adapters/llv/adapter.d.ts.map +1 -1
  1037. package/out/li/adapters/llv/adapter.js +6 -10
  1038. package/out/li/adapters/llv/adapter.js.map +1 -1
  1039. package/out/lu/adapters/bd-adresses/adapter.d.ts +1 -1
  1040. package/out/lu/adapters/bd-adresses/adapter.d.ts.map +1 -1
  1041. package/out/lu/adapters/bd-adresses/adapter.js +2 -3
  1042. package/out/lu/adapters/bd-adresses/adapter.js.map +1 -1
  1043. package/out/lv/adapters/varis/adapter.d.ts.map +1 -1
  1044. package/out/lv/adapters/varis/adapter.js +1 -2
  1045. package/out/lv/adapters/varis/adapter.js.map +1 -1
  1046. package/out/nl/adapters/kadaster/adapter.d.ts.map +1 -1
  1047. package/out/nl/adapters/kadaster/adapter.js +4 -5
  1048. package/out/nl/adapters/kadaster/adapter.js.map +1 -1
  1049. package/out/nl/recipes/postcode.d.ts.map +1 -1
  1050. package/out/nl/recipes/postcode.js +0 -1
  1051. package/out/nl/recipes/postcode.js.map +1 -1
  1052. package/out/no/adapters/matrikkelen/adapter.d.ts.map +1 -1
  1053. package/out/no/adapters/matrikkelen/adapter.js +2 -3
  1054. package/out/no/adapters/matrikkelen/adapter.js.map +1 -1
  1055. package/out/no/recipes/fragment.d.ts.map +1 -1
  1056. package/out/no/recipes/fragment.js +0 -1
  1057. package/out/no/recipes/fragment.js.map +1 -1
  1058. package/out/no/recipes/street/led.d.ts.map +1 -1
  1059. package/out/no/recipes/street/led.js +0 -1
  1060. package/out/no/recipes/street/led.js.map +1 -1
  1061. package/out/no/recipes/street.d.ts.map +1 -1
  1062. package/out/no/recipes/street.js +0 -1
  1063. package/out/no/recipes/street.js.map +1 -1
  1064. package/out/no/tools/fetch/matrikkelen.d.ts +2 -2
  1065. package/out/no/tools/fetch/matrikkelen.d.ts.map +1 -1
  1066. package/out/nz/recipes/unit-type-guideline.d.ts +24 -0
  1067. package/out/nz/recipes/unit-type-guideline.d.ts.map +1 -0
  1068. package/out/nz/recipes/unit-type-guideline.js +81 -0
  1069. package/out/nz/recipes/unit-type-guideline.js.map +1 -0
  1070. package/out/parquet/corpus-rows.d.ts +25 -0
  1071. package/out/parquet/corpus-rows.d.ts.map +1 -0
  1072. package/out/parquet/corpus-rows.js +44 -0
  1073. package/out/parquet/corpus-rows.js.map +1 -0
  1074. package/out/parquet/duckdb.d.ts +24 -1
  1075. package/out/parquet/duckdb.d.ts.map +1 -1
  1076. package/out/parquet/duckdb.js +32 -3
  1077. package/out/parquet/duckdb.js.map +1 -1
  1078. package/out/parquet/readers.d.ts +7 -0
  1079. package/out/parquet/readers.d.ts.map +1 -1
  1080. package/out/parquet/readers.js +16 -1
  1081. package/out/parquet/readers.js.map +1 -1
  1082. package/out/parquet/record.d.ts +289 -0
  1083. package/out/parquet/record.d.ts.map +1 -0
  1084. package/out/parquet/record.js +383 -0
  1085. package/out/parquet/record.js.map +1 -0
  1086. package/out/parquet/schema.d.ts +41 -4
  1087. package/out/parquet/schema.d.ts.map +1 -1
  1088. package/out/parquet/schema.js +46 -11
  1089. package/out/parquet/schema.js.map +1 -1
  1090. package/out/parquet/shuffle.d.ts +41 -0
  1091. package/out/parquet/shuffle.d.ts.map +1 -1
  1092. package/out/parquet/shuffle.js +71 -1
  1093. package/out/parquet/shuffle.js.map +1 -1
  1094. package/out/parquet/span-sql.d.ts +1 -1
  1095. package/out/parquet/span-sql.js +1 -1
  1096. package/out/parquet/streams.d.ts +26 -3
  1097. package/out/parquet/streams.d.ts.map +1 -1
  1098. package/out/parquet/streams.js +15 -6
  1099. package/out/parquet/streams.js.map +1 -1
  1100. package/out/parquet/writers.d.ts +181 -32
  1101. package/out/parquet/writers.d.ts.map +1 -1
  1102. package/out/parquet/writers.js +332 -119
  1103. package/out/parquet/writers.js.map +1 -1
  1104. package/out/pl/adapters/emuia/adapter.d.ts +1 -1
  1105. package/out/pl/adapters/emuia/adapter.d.ts.map +1 -1
  1106. package/out/pl/adapters/emuia/adapter.js +2 -3
  1107. package/out/pl/adapters/emuia/adapter.js.map +1 -1
  1108. package/out/recipes/address-points.d.ts +47 -0
  1109. package/out/recipes/address-points.d.ts.map +1 -0
  1110. package/out/recipes/address-points.js +59 -0
  1111. package/out/recipes/address-points.js.map +1 -0
  1112. package/out/recipes/anchor-absorption.d.ts.map +1 -1
  1113. package/out/recipes/anchor-absorption.js +0 -1
  1114. package/out/recipes/anchor-absorption.js.map +1 -1
  1115. package/out/recipes/bare/country.d.ts.map +1 -1
  1116. package/out/recipes/bare/country.js +0 -1
  1117. package/out/recipes/bare/country.js.map +1 -1
  1118. package/out/recipes/bare/postcode/eval.d.ts +1 -5
  1119. package/out/recipes/bare/postcode/eval.d.ts.map +1 -1
  1120. package/out/recipes/bare/postcode/eval.js +4 -9
  1121. package/out/recipes/bare/postcode/eval.js.map +1 -1
  1122. package/out/recipes/bare/postcode.d.ts.map +1 -1
  1123. package/out/recipes/bare/postcode.js +2 -2
  1124. package/out/recipes/bare/postcode.js.map +1 -1
  1125. package/out/recipes/boundary-stress.d.ts.map +1 -1
  1126. package/out/recipes/boundary-stress.js +1 -2
  1127. package/out/recipes/boundary-stress.js.map +1 -1
  1128. package/out/recipes/country-balanced.d.ts.map +1 -1
  1129. package/out/recipes/country-balanced.js +11 -17
  1130. package/out/recipes/country-balanced.js.map +1 -1
  1131. package/out/recipes/deepseek/batches.d.ts +90 -0
  1132. package/out/recipes/deepseek/batches.d.ts.map +1 -0
  1133. package/out/recipes/deepseek/batches.js +228 -0
  1134. package/out/recipes/deepseek/batches.js.map +1 -0
  1135. package/out/recipes/deepseek/client.d.ts +99 -0
  1136. package/out/recipes/deepseek/client.d.ts.map +1 -0
  1137. package/out/recipes/deepseek/client.js +80 -0
  1138. package/out/recipes/deepseek/client.js.map +1 -0
  1139. package/out/recipes/deepseek/generate.d.ts +64 -0
  1140. package/out/recipes/deepseek/generate.d.ts.map +1 -0
  1141. package/out/recipes/deepseek/generate.js +58 -0
  1142. package/out/recipes/deepseek/generate.js.map +1 -0
  1143. package/out/recipes/deepseek/kryptonite.d.ts +36 -0
  1144. package/out/recipes/deepseek/kryptonite.d.ts.map +1 -0
  1145. package/out/recipes/deepseek/kryptonite.js +106 -0
  1146. package/out/recipes/deepseek/kryptonite.js.map +1 -0
  1147. package/out/recipes/deepseek/prompts.d.ts +65 -0
  1148. package/out/recipes/deepseek/prompts.d.ts.map +1 -0
  1149. package/out/recipes/deepseek/prompts.js +218 -0
  1150. package/out/recipes/deepseek/prompts.js.map +1 -0
  1151. package/out/recipes/deepseek/run.d.ts +100 -0
  1152. package/out/recipes/deepseek/run.d.ts.map +1 -0
  1153. package/out/recipes/deepseek/run.js +170 -0
  1154. package/out/recipes/deepseek/run.js.map +1 -0
  1155. package/out/recipes/deepseek/transliteration.d.ts +60 -0
  1156. package/out/recipes/deepseek/transliteration.d.ts.map +1 -0
  1157. package/out/recipes/deepseek/transliteration.js +158 -0
  1158. package/out/recipes/deepseek/transliteration.js.map +1 -0
  1159. package/out/recipes/fragment-assay/build.d.ts +70 -0
  1160. package/out/recipes/fragment-assay/build.d.ts.map +1 -0
  1161. package/out/recipes/fragment-assay/build.js +243 -0
  1162. package/out/recipes/fragment-assay/build.js.map +1 -0
  1163. package/out/recipes/fragment-assay/rows.d.ts +66 -0
  1164. package/out/recipes/fragment-assay/rows.d.ts.map +1 -0
  1165. package/out/recipes/fragment-assay/rows.js +225 -0
  1166. package/out/recipes/fragment-assay/rows.js.map +1 -0
  1167. package/out/recipes/fragment-assay/sources.d.ts +114 -0
  1168. package/out/recipes/fragment-assay/sources.d.ts.map +1 -0
  1169. package/out/recipes/fragment-assay/sources.js +402 -0
  1170. package/out/recipes/fragment-assay/sources.js.map +1 -0
  1171. package/out/recipes/house/venue/tuples.d.ts +93 -0
  1172. package/out/recipes/house/venue/tuples.d.ts.map +1 -0
  1173. package/out/recipes/house/venue/tuples.js +95 -0
  1174. package/out/recipes/house/venue/tuples.js.map +1 -0
  1175. package/out/recipes/{house-venue.d.ts → house/venue.d.ts} +3 -3
  1176. package/out/recipes/house/venue.d.ts.map +1 -0
  1177. package/out/recipes/{house-venue.js → house/venue.js} +9 -4
  1178. package/out/recipes/house/venue.js.map +1 -0
  1179. package/out/recipes/intersection.d.ts.map +1 -1
  1180. package/out/recipes/intersection.js +0 -1
  1181. package/out/recipes/intersection.js.map +1 -1
  1182. package/out/recipes/po/box/cedex/recipe.d.ts.map +1 -1
  1183. package/out/recipes/po/box/cedex/recipe.js +1 -2
  1184. package/out/recipes/po/box/cedex/recipe.js.map +1 -1
  1185. package/out/recipes/po/box.d.ts.map +1 -1
  1186. package/out/recipes/po/box.js +0 -2
  1187. package/out/recipes/po/box.js.map +1 -1
  1188. package/out/recipes/postal/guideline/leg.d.ts +100 -0
  1189. package/out/recipes/postal/guideline/leg.d.ts.map +1 -0
  1190. package/out/recipes/postal/guideline/leg.js +81 -0
  1191. package/out/recipes/postal/guideline/leg.js.map +1 -0
  1192. package/out/recipes/postal/guideline.d.ts +81 -0
  1193. package/out/recipes/postal/guideline.d.ts.map +1 -0
  1194. package/out/recipes/postal/guideline.js +196 -0
  1195. package/out/recipes/postal/guideline.js.map +1 -0
  1196. package/out/recipes/postal/unit-guideline.d.ts +30 -0
  1197. package/out/recipes/postal/unit-guideline.d.ts.map +1 -0
  1198. package/out/recipes/postal/unit-guideline.js +67 -0
  1199. package/out/recipes/postal/unit-guideline.js.map +1 -0
  1200. package/out/recipes/scaffold.d.ts +34 -26
  1201. package/out/recipes/scaffold.d.ts.map +1 -1
  1202. package/out/recipes/scaffold.js +11 -7
  1203. package/out/recipes/scaffold.js.map +1 -1
  1204. package/out/recipes/secondary.d.ts +67 -0
  1205. package/out/recipes/secondary.d.ts.map +1 -0
  1206. package/out/recipes/secondary.js +231 -0
  1207. package/out/recipes/secondary.js.map +1 -0
  1208. package/out/recipes/sources.d.ts.map +1 -1
  1209. package/out/recipes/sources.js +22 -4
  1210. package/out/recipes/sources.js.map +1 -1
  1211. package/out/recipes/street/affix.d.ts.map +1 -1
  1212. package/out/recipes/street/affix.js +0 -3
  1213. package/out/recipes/street/affix.js.map +1 -1
  1214. package/out/recipes/street/bare.d.ts.map +1 -1
  1215. package/out/recipes/street/bare.js +1 -3
  1216. package/out/recipes/street/bare.js.map +1 -1
  1217. package/out/recipes/street.d.ts.map +1 -1
  1218. package/out/recipes/street.js +0 -1
  1219. package/out/recipes/street.js.map +1 -1
  1220. package/out/recipes/sub/venue/context.d.ts +10 -8
  1221. package/out/recipes/sub/venue/context.d.ts.map +1 -1
  1222. package/out/recipes/sub/venue/context.js +11 -9
  1223. package/out/recipes/sub/venue/context.js.map +1 -1
  1224. package/out/recipes/sub/venue/sources.d.ts +3 -2
  1225. package/out/recipes/sub/venue/sources.d.ts.map +1 -1
  1226. package/out/recipes/sub/venue/sources.js +3 -2
  1227. package/out/recipes/sub/venue/sources.js.map +1 -1
  1228. package/out/recipes/sub/venue.d.ts +0 -6
  1229. package/out/recipes/sub/venue.d.ts.map +1 -1
  1230. package/out/recipes/sub/venue.js +4 -11
  1231. package/out/recipes/sub/venue.js.map +1 -1
  1232. package/out/recipes/trailing-region.d.ts.map +1 -1
  1233. package/out/recipes/trailing-region.js +0 -1
  1234. package/out/recipes/trailing-region.js.map +1 -1
  1235. package/out/recipes/unit.d.ts.map +1 -1
  1236. package/out/recipes/unit.js +0 -2
  1237. package/out/recipes/unit.js.map +1 -1
  1238. package/out/recipes/venue.d.ts.map +1 -1
  1239. package/out/recipes/venue.js +0 -1
  1240. package/out/recipes/venue.js.map +1 -1
  1241. package/out/recipes.d.ts +1 -1
  1242. package/out/recipes.d.ts.map +1 -1
  1243. package/out/recipes.js +6 -2
  1244. package/out/recipes.js.map +1 -1
  1245. package/out/registers.d.ts +5 -1
  1246. package/out/registers.d.ts.map +1 -1
  1247. package/out/registers.js +5 -1
  1248. package/out/registers.js.map +1 -1
  1249. package/out/ro/adapters/retea-scolara/adapter.d.ts.map +1 -1
  1250. package/out/ro/adapters/retea-scolara/adapter.js +1 -2
  1251. package/out/ro/adapters/retea-scolara/adapter.js.map +1 -1
  1252. package/out/runner.d.ts.map +1 -1
  1253. package/out/runner.js +2 -3
  1254. package/out/runner.js.map +1 -1
  1255. package/out/sg/recipes/register.d.ts.map +1 -1
  1256. package/out/sg/recipes/register.js +1 -2
  1257. package/out/sg/recipes/register.js.map +1 -1
  1258. package/out/si/recipes/bare-village.d.ts.map +1 -1
  1259. package/out/si/recipes/bare-village.js +0 -1
  1260. package/out/si/recipes/bare-village.js.map +1 -1
  1261. package/out/sk/adapters/inspire/adapter.d.ts.map +1 -1
  1262. package/out/sk/adapters/inspire/adapter.js +3 -4
  1263. package/out/sk/adapters/inspire/adapter.js.map +1 -1
  1264. package/out/source-register/corpus-inputs.d.ts +60 -11
  1265. package/out/source-register/corpus-inputs.d.ts.map +1 -1
  1266. package/out/source-register/corpus-inputs.js +55 -13
  1267. package/out/source-register/corpus-inputs.js.map +1 -1
  1268. package/out/source-register/effective-manifest.d.ts +1 -1
  1269. package/out/source-register/effective-manifest.d.ts.map +1 -1
  1270. package/out/source-register/effective-manifest.js +10 -7
  1271. package/out/source-register/effective-manifest.js.map +1 -1
  1272. package/out/source-register/register.d.ts +3 -16
  1273. package/out/source-register/register.d.ts.map +1 -1
  1274. package/out/source-register/register.js +4 -95
  1275. package/out/source-register/register.js.map +1 -1
  1276. package/out/source-register/row-license.d.ts +82 -0
  1277. package/out/source-register/row-license.d.ts.map +1 -0
  1278. package/out/source-register/row-license.js +126 -0
  1279. package/out/source-register/row-license.js.map +1 -0
  1280. package/out/source-register/training-manifest.d.ts +129 -25
  1281. package/out/source-register/training-manifest.d.ts.map +1 -1
  1282. package/out/source-register/training-manifest.js +135 -33
  1283. package/out/source-register/training-manifest.js.map +1 -1
  1284. package/out/source-register/types.d.ts +7 -155
  1285. package/out/source-register/types.d.ts.map +1 -1
  1286. package/out/source-register/types.js +5 -51
  1287. package/out/source-register/types.js.map +1 -1
  1288. package/out/source-register.d.ts +4 -4
  1289. package/out/source-register.d.ts.map +1 -1
  1290. package/out/source-register.js +3 -3
  1291. package/out/source-register.js.map +1 -1
  1292. package/out/south-asia/recipes/register.d.ts +1 -1
  1293. package/out/south-asia/recipes/register.d.ts.map +1 -1
  1294. package/out/south-asia/recipes/register.js +4 -4
  1295. package/out/south-asia/recipes/register.js.map +1 -1
  1296. package/out/street-index/reader.d.ts +31 -0
  1297. package/out/street-index/reader.d.ts.map +1 -0
  1298. package/out/street-index/reader.js +47 -0
  1299. package/out/street-index/reader.js.map +1 -0
  1300. package/out/street-index/schema.d.ts +42 -0
  1301. package/out/street-index/schema.d.ts.map +1 -0
  1302. package/out/street-index/schema.js +27 -0
  1303. package/out/street-index/schema.js.map +1 -0
  1304. package/out/street-index/write.d.ts +37 -0
  1305. package/out/street-index/write.d.ts.map +1 -0
  1306. package/out/street-index/write.js +52 -0
  1307. package/out/street-index/write.js.map +1 -0
  1308. package/out/subvenue/table.d.ts +1 -1
  1309. package/out/subvenue/table.js +1 -1
  1310. package/out/surfaces/locale.d.ts +15 -17
  1311. package/out/surfaces/locale.d.ts.map +1 -1
  1312. package/out/surfaces/locale.js +29 -22
  1313. package/out/surfaces/locale.js.map +1 -1
  1314. package/out/synthesizers/house-venue.js +1 -1
  1315. package/out/synthesizers/house-venue.js.map +1 -1
  1316. package/out/synthesizers/utils.d.ts +5 -4
  1317. package/out/synthesizers/utils.d.ts.map +1 -1
  1318. package/out/synthesizers/utils.js +80 -18
  1319. package/out/synthesizers/utils.js.map +1 -1
  1320. package/out/test-kit/corpus-recipe.d.ts +1 -1
  1321. package/out/test-kit/corpus-recipe.d.ts.map +1 -1
  1322. package/out/test-kit.d.ts +61 -0
  1323. package/out/test-kit.d.ts.map +1 -1
  1324. package/out/test-kit.js +144 -1
  1325. package/out/test-kit.js.map +1 -1
  1326. package/out/tools/align-canonical.d.ts +0 -1
  1327. package/out/tools/align-canonical.d.ts.map +1 -1
  1328. package/out/tools/align-canonical.js +2 -4
  1329. package/out/tools/align-canonical.js.map +1 -1
  1330. package/out/tools/audit.d.ts.map +1 -1
  1331. package/out/tools/audit.js +4 -5
  1332. package/out/tools/audit.js.map +1 -1
  1333. package/out/tools/cjk/foreign-places.run.d.ts +13 -0
  1334. package/out/tools/cjk/foreign-places.run.d.ts.map +1 -0
  1335. package/out/tools/cjk/foreign-places.run.js +31 -0
  1336. package/out/tools/cjk/foreign-places.run.js.map +1 -0
  1337. package/out/tools/cjk/overlay.run.d.ts +18 -0
  1338. package/out/tools/cjk/overlay.run.d.ts.map +1 -0
  1339. package/out/tools/cjk/overlay.run.js +67 -0
  1340. package/out/tools/cjk/overlay.run.js.map +1 -0
  1341. package/out/tools/de-fragment-board.run.d.ts +14 -0
  1342. package/out/tools/de-fragment-board.run.d.ts.map +1 -0
  1343. package/out/tools/de-fragment-board.run.js +37 -0
  1344. package/out/tools/de-fragment-board.run.js.map +1 -0
  1345. package/out/tools/deepseek.run.d.ts +17 -0
  1346. package/out/tools/deepseek.run.d.ts.map +1 -0
  1347. package/out/tools/deepseek.run.js +62 -0
  1348. package/out/tools/deepseek.run.js.map +1 -0
  1349. package/out/tools/fetch/download/retry.d.ts +6 -0
  1350. package/out/tools/fetch/download/retry.d.ts.map +1 -1
  1351. package/out/tools/fetch/download/retry.js +22 -2
  1352. package/out/tools/fetch/download/retry.js.map +1 -1
  1353. package/out/tools/fetch/geonames/dump.d.ts +1 -1
  1354. package/out/tools/fetch/geonames/dump.d.ts.map +1 -1
  1355. package/out/tools/fetch/geonames/postal.d.ts +1 -1
  1356. package/out/tools/fetch/geonames/postal.d.ts.map +1 -1
  1357. package/out/tools/fetch/geonames/postal.js +2 -0
  1358. package/out/tools/fetch/geonames/postal.js.map +1 -1
  1359. package/out/tools/fetch/gleif.js +1 -1
  1360. package/out/tools/fetch/gleif.js.map +1 -1
  1361. package/out/tools/fetch/inspire-addresses.js +1 -1
  1362. package/out/tools/fetch/inspire-addresses.js.map +1 -1
  1363. package/out/tools/fetch/openaddresses.js +2 -2
  1364. package/out/tools/fetch/openaddresses.js.map +1 -1
  1365. package/out/tools/fetch/vlaanderen-ad.js +1 -1
  1366. package/out/tools/fetch/vlaanderen-ad.js.map +1 -1
  1367. package/out/tools/fetch/wfs-harvest.js +4 -4
  1368. package/out/tools/fetch/wfs-harvest.js.map +1 -1
  1369. package/out/tools/fetch/wikidata/session.d.ts +80 -0
  1370. package/out/tools/fetch/wikidata/session.d.ts.map +1 -0
  1371. package/out/tools/fetch/wikidata/session.js +122 -0
  1372. package/out/tools/fetch/wikidata/session.js.map +1 -0
  1373. package/out/tools/fetch/{wikidata-subvenue.d.ts → wikidata/subvenue.d.ts} +33 -1
  1374. package/out/tools/fetch/wikidata/subvenue.d.ts.map +1 -0
  1375. package/out/tools/fetch/{wikidata-subvenue.js → wikidata/subvenue.js} +28 -11
  1376. package/out/tools/fetch/wikidata/subvenue.js.map +1 -0
  1377. package/out/tools/fetch/wikidata/vital-places/classify.d.ts +115 -0
  1378. package/out/tools/fetch/wikidata/vital-places/classify.d.ts.map +1 -0
  1379. package/out/tools/fetch/wikidata/vital-places/classify.js +187 -0
  1380. package/out/tools/fetch/wikidata/vital-places/classify.js.map +1 -0
  1381. package/out/tools/fetch/wikidata/vital-places/entities.d.ts +379 -0
  1382. package/out/tools/fetch/wikidata/vital-places/entities.d.ts.map +1 -0
  1383. package/out/tools/fetch/wikidata/vital-places/entities.js +596 -0
  1384. package/out/tools/fetch/wikidata/vital-places/entities.js.map +1 -0
  1385. package/out/tools/fetch/wikidata/vital-places/inventory.d.ts +70 -0
  1386. package/out/tools/fetch/wikidata/vital-places/inventory.d.ts.map +1 -0
  1387. package/out/tools/fetch/wikidata/vital-places/inventory.js +84 -0
  1388. package/out/tools/fetch/wikidata/vital-places/inventory.js.map +1 -0
  1389. package/out/tools/fetch/wikidata/vital-places/progress.d.ts +26 -0
  1390. package/out/tools/fetch/wikidata/vital-places/progress.d.ts.map +1 -0
  1391. package/out/tools/fetch/wikidata/vital-places/progress.js +33 -0
  1392. package/out/tools/fetch/wikidata/vital-places/progress.js.map +1 -0
  1393. package/out/tools/fetch/wikidata/vital-places/qrank.d.ts +116 -0
  1394. package/out/tools/fetch/wikidata/vital-places/qrank.d.ts.map +1 -0
  1395. package/out/tools/fetch/wikidata/vital-places/qrank.js +167 -0
  1396. package/out/tools/fetch/wikidata/vital-places/qrank.js.map +1 -0
  1397. package/out/tools/fetch/wikidata/vital-places/query-entities.d.ts +65 -0
  1398. package/out/tools/fetch/wikidata/vital-places/query-entities.d.ts.map +1 -0
  1399. package/out/tools/fetch/wikidata/vital-places/query-entities.js +189 -0
  1400. package/out/tools/fetch/wikidata/vital-places/query-entities.js.map +1 -0
  1401. package/out/tools/fetch/wikidata/vital-places/render.d.ts +129 -0
  1402. package/out/tools/fetch/wikidata/vital-places/render.d.ts.map +1 -0
  1403. package/out/tools/fetch/wikidata/vital-places/render.js +186 -0
  1404. package/out/tools/fetch/wikidata/vital-places/render.js.map +1 -0
  1405. package/out/tools/fetch/wikidata/vital-places.d.ts +121 -0
  1406. package/out/tools/fetch/wikidata/vital-places.d.ts.map +1 -0
  1407. package/out/tools/fetch/wikidata/vital-places.js +171 -0
  1408. package/out/tools/fetch/wikidata/vital-places.js.map +1 -0
  1409. package/out/tools/fetch.d.ts +3 -1
  1410. package/out/tools/fetch.d.ts.map +1 -1
  1411. package/out/tools/fetch.js +3 -1
  1412. package/out/tools/fetch.js.map +1 -1
  1413. package/out/tools/fragment-assay.run.d.ts +20 -0
  1414. package/out/tools/fragment-assay.run.d.ts.map +1 -0
  1415. package/out/tools/fragment-assay.run.js +59 -0
  1416. package/out/tools/fragment-assay.run.js.map +1 -0
  1417. package/out/tools/golden/expand.d.ts.map +1 -1
  1418. package/out/tools/golden/expand.js +2 -3
  1419. package/out/tools/golden/expand.js.map +1 -1
  1420. package/out/tools/house-venue-tuples.run.d.ts +14 -0
  1421. package/out/tools/house-venue-tuples.run.d.ts.map +1 -0
  1422. package/out/tools/house-venue-tuples.run.js +48 -0
  1423. package/out/tools/house-venue-tuples.run.js.map +1 -0
  1424. package/out/tools/input-changes.d.ts +110 -0
  1425. package/out/tools/input-changes.d.ts.map +1 -0
  1426. package/out/tools/input-changes.js +104 -0
  1427. package/out/tools/input-changes.js.map +1 -0
  1428. package/out/tools/jp/corpus.run.d.ts +16 -0
  1429. package/out/tools/jp/corpus.run.d.ts.map +1 -0
  1430. package/out/tools/jp/corpus.run.js +72 -0
  1431. package/out/tools/jp/corpus.run.js.map +1 -0
  1432. package/out/tools/jp/probe-corpus.run.d.ts +14 -0
  1433. package/out/tools/jp/probe-corpus.run.d.ts.map +1 -0
  1434. package/out/tools/jp/probe-corpus.run.js +51 -0
  1435. package/out/tools/jp/probe-corpus.run.js.map +1 -0
  1436. package/out/tools/jsonl-to-parquet.d.ts +10 -0
  1437. package/out/tools/jsonl-to-parquet.d.ts.map +1 -1
  1438. package/out/tools/jsonl-to-parquet.js +13 -10
  1439. package/out/tools/jsonl-to-parquet.js.map +1 -1
  1440. package/out/tools/kr-corpus.run.d.ts +16 -0
  1441. package/out/tools/kr-corpus.run.d.ts.map +1 -0
  1442. package/out/tools/kr-corpus.run.js +76 -0
  1443. package/out/tools/kr-corpus.run.js.map +1 -0
  1444. package/out/tools/migrate/overlay-parquet.d.ts.map +1 -1
  1445. package/out/tools/migrate/overlay-parquet.js +2 -1
  1446. package/out/tools/migrate/overlay-parquet.js.map +1 -1
  1447. package/out/tools/migrate/recipe-output.d.ts.map +1 -1
  1448. package/out/tools/migrate/recipe-output.js +2 -1
  1449. package/out/tools/migrate/recipe-output.js.map +1 -1
  1450. package/out/tools/overlay/deletions.d.ts +122 -0
  1451. package/out/tools/overlay/deletions.d.ts.map +1 -0
  1452. package/out/tools/overlay/deletions.js +107 -0
  1453. package/out/tools/overlay/deletions.js.map +1 -0
  1454. package/out/tools/overlay/distinct-row-ids.d.ts +48 -0
  1455. package/out/tools/overlay/distinct-row-ids.d.ts.map +1 -0
  1456. package/out/tools/overlay/distinct-row-ids.js +57 -0
  1457. package/out/tools/overlay/distinct-row-ids.js.map +1 -0
  1458. package/out/tools/overlay/held-out-spans.d.ts +114 -0
  1459. package/out/tools/overlay/held-out-spans.d.ts.map +1 -0
  1460. package/out/tools/overlay/held-out-spans.js +237 -0
  1461. package/out/tools/overlay/held-out-spans.js.map +1 -0
  1462. package/out/tools/overlay/kryptonite.d.ts +10 -1
  1463. package/out/tools/overlay/kryptonite.d.ts.map +1 -1
  1464. package/out/tools/overlay/kryptonite.js +36 -21
  1465. package/out/tools/overlay/kryptonite.js.map +1 -1
  1466. package/out/tools/overlay/manifest.d.ts +55 -57
  1467. package/out/tools/overlay/manifest.d.ts.map +1 -1
  1468. package/out/tools/overlay/manifest.js +213 -110
  1469. package/out/tools/overlay/manifest.js.map +1 -1
  1470. package/out/tools/overlay/merge-source.d.ts +68 -1
  1471. package/out/tools/overlay/merge-source.d.ts.map +1 -1
  1472. package/out/tools/overlay/merge-source.js +126 -7
  1473. package/out/tools/overlay/merge-source.js.map +1 -1
  1474. package/out/tools/overlay/split/attribute.d.ts +114 -0
  1475. package/out/tools/overlay/split/attribute.d.ts.map +1 -0
  1476. package/out/tools/overlay/split/attribute.js +90 -0
  1477. package/out/tools/overlay/split/attribute.js.map +1 -0
  1478. package/out/tools/overlay/{split-slice.d.ts → split/overlay.d.ts} +22 -12
  1479. package/out/tools/overlay/split/overlay.d.ts.map +1 -0
  1480. package/out/tools/overlay/split/overlay.js +132 -0
  1481. package/out/tools/overlay/split/overlay.js.map +1 -0
  1482. package/out/tools/overlay/translit.d.ts +1 -1
  1483. package/out/tools/overlay/translit.d.ts.map +1 -1
  1484. package/out/tools/overlay/translit.js +22 -17
  1485. package/out/tools/overlay/translit.js.map +1 -1
  1486. package/out/tools/postcode/non-native-order.d.ts +148 -0
  1487. package/out/tools/postcode/non-native-order.d.ts.map +1 -0
  1488. package/out/tools/postcode/non-native-order.js +211 -0
  1489. package/out/tools/postcode/non-native-order.js.map +1 -0
  1490. package/out/tools/{postcode-triples.d.ts → postcode/triples.d.ts} +1 -1
  1491. package/out/tools/postcode/triples.d.ts.map +1 -0
  1492. package/out/tools/{postcode-triples.js → postcode/triples.js} +2 -2
  1493. package/out/tools/postcode/triples.js.map +1 -0
  1494. package/out/tools/registry-corpus.run.d.ts +14 -0
  1495. package/out/tools/registry-corpus.run.d.ts.map +1 -0
  1496. package/out/tools/registry-corpus.run.js +58 -0
  1497. package/out/tools/registry-corpus.run.js.map +1 -0
  1498. package/out/tools/secondary.run.d.ts +14 -0
  1499. package/out/tools/secondary.run.d.ts.map +1 -0
  1500. package/out/tools/secondary.run.js +65 -0
  1501. package/out/tools/secondary.run.js.map +1 -0
  1502. package/out/tools/source-register/build.d.ts +2 -1
  1503. package/out/tools/source-register/build.d.ts.map +1 -1
  1504. package/out/tools/source-register/build.js +3 -2
  1505. package/out/tools/source-register/build.js.map +1 -1
  1506. package/out/tools/street-index/build.d.ts +51 -0
  1507. package/out/tools/street-index/build.d.ts.map +1 -0
  1508. package/out/tools/street-index/build.js +86 -0
  1509. package/out/tools/street-index/build.js.map +1 -0
  1510. package/out/tools/street-index/build.run.d.ts +11 -0
  1511. package/out/tools/street-index/build.run.d.ts.map +1 -0
  1512. package/out/tools/street-index/build.run.js +33 -0
  1513. package/out/tools/street-index/build.run.js.map +1 -0
  1514. package/out/tools/sub/venue/lexicon.d.ts +2 -2
  1515. package/out/tools/sub/venue/lexicon.d.ts.map +1 -1
  1516. package/out/tools/sub/venue/wikidata.d.ts +1 -1
  1517. package/out/tools/sub/venue/wikidata.js +2 -2
  1518. package/out/tools/sub/venue/wikidata.js.map +1 -1
  1519. package/out/tools/support-index.d.ts +185 -0
  1520. package/out/tools/support-index.d.ts.map +1 -0
  1521. package/out/tools/support-index.js +432 -0
  1522. package/out/tools/support-index.js.map +1 -0
  1523. package/out/tools/tw-corpus.run.d.ts +14 -0
  1524. package/out/tools/tw-corpus.run.d.ts.map +1 -0
  1525. package/out/tools/tw-corpus.run.js +58 -0
  1526. package/out/tools/tw-corpus.run.js.map +1 -0
  1527. package/out/tools/variety-sample.d.ts +5 -3
  1528. package/out/tools/variety-sample.d.ts.map +1 -1
  1529. package/out/tools/variety-sample.js +7 -5
  1530. package/out/tools/variety-sample.js.map +1 -1
  1531. package/out/tools/vital-places.run.d.ts +15 -0
  1532. package/out/tools/vital-places.run.d.ts.map +1 -0
  1533. package/out/tools/vital-places.run.js +96 -0
  1534. package/out/tools/vital-places.run.js.map +1 -0
  1535. package/out/training/config/admission.d.ts +49 -0
  1536. package/out/training/config/admission.d.ts.map +1 -0
  1537. package/out/training/config/admission.js +67 -0
  1538. package/out/training/config/admission.js.map +1 -0
  1539. package/out/training/config/load.d.ts +127 -0
  1540. package/out/training/config/load.d.ts.map +1 -0
  1541. package/out/training/config/load.js +420 -0
  1542. package/out/training/config/load.js.map +1 -0
  1543. package/out/training/config/python-yaml.d.ts +42 -0
  1544. package/out/training/config/python-yaml.d.ts.map +1 -0
  1545. package/out/training/config/python-yaml.js +229 -0
  1546. package/out/training/config/python-yaml.js.map +1 -0
  1547. package/out/training/config/resolved.d.ts +52 -0
  1548. package/out/training/config/resolved.d.ts.map +1 -0
  1549. package/out/training/config/resolved.js +51 -0
  1550. package/out/training/config/resolved.js.map +1 -0
  1551. package/out/training/config/schema.d.ts +1147 -0
  1552. package/out/training/config/schema.d.ts.map +1 -0
  1553. package/out/training/config/schema.js +286 -0
  1554. package/out/training/config/schema.js.map +1 -0
  1555. package/out/tw/corpus/assemble.d.ts +85 -0
  1556. package/out/tw/corpus/assemble.d.ts.map +1 -0
  1557. package/out/tw/corpus/assemble.js +194 -0
  1558. package/out/tw/corpus/assemble.js.map +1 -0
  1559. package/out/tw/corpus/rows.d.ts +109 -0
  1560. package/out/tw/corpus/rows.d.ts.map +1 -0
  1561. package/out/tw/corpus/rows.js +200 -0
  1562. package/out/tw/corpus/rows.js.map +1 -0
  1563. package/out/tw/registers.d.ts +79 -0
  1564. package/out/tw/registers.d.ts.map +1 -0
  1565. package/out/tw/registers.js +192 -0
  1566. package/out/tw/registers.js.map +1 -0
  1567. package/out/types.d.ts +105 -19
  1568. package/out/types.d.ts.map +1 -1
  1569. package/out/types.js.map +1 -1
  1570. package/out/us/abbrev/region-samples.d.ts +20 -0
  1571. package/out/us/abbrev/region-samples.d.ts.map +1 -0
  1572. package/out/us/abbrev/region-samples.js +44 -0
  1573. package/out/us/abbrev/region-samples.js.map +1 -0
  1574. package/out/us/abbrev/regions.d.ts +32 -0
  1575. package/out/us/abbrev/regions.d.ts.map +1 -0
  1576. package/out/us/abbrev/regions.js +34 -0
  1577. package/out/us/abbrev/regions.js.map +1 -0
  1578. package/out/us/adapters/fcc-bdc/adapter.d.ts.map +1 -1
  1579. package/out/us/adapters/fcc-bdc/adapter.js +2 -3
  1580. package/out/us/adapters/fcc-bdc/adapter.js.map +1 -1
  1581. package/out/us/adapters/state/hi-schools/adapter.d.ts.map +1 -1
  1582. package/out/us/adapters/state/hi-schools/adapter.js +8 -7
  1583. package/out/us/adapters/state/hi-schools/adapter.js.map +1 -1
  1584. package/out/us/adapters/state/hi-schools/workbook.js +1 -1
  1585. package/out/us/adapters/state/hi-schools/workbook.js.map +1 -1
  1586. package/out/us/adapters/state/ia-contractors/adapter.d.ts.map +1 -1
  1587. package/out/us/adapters/state/ia-contractors/adapter.js +8 -10
  1588. package/out/us/adapters/state/ia-contractors/adapter.js.map +1 -1
  1589. package/out/us/adapters/state/ny-notaries/adapter.d.ts.map +1 -1
  1590. package/out/us/adapters/state/ny-notaries/adapter.js +8 -7
  1591. package/out/us/adapters/state/ny-notaries/adapter.js.map +1 -1
  1592. package/out/us/adapters/state/tx-notaries/adapter.d.ts.map +1 -1
  1593. package/out/us/adapters/state/tx-notaries/adapter.js +8 -7
  1594. package/out/us/adapters/state/tx-notaries/adapter.js.map +1 -1
  1595. package/out/us/adapters/tiger/adapter.d.ts.map +1 -1
  1596. package/out/us/adapters/tiger/adapter.js +2 -4
  1597. package/out/us/adapters/tiger/adapter.js.map +1 -1
  1598. package/out/us/adapters/usgov/hrsa-fqhc/adapter.d.ts +4 -12
  1599. package/out/us/adapters/usgov/hrsa-fqhc/adapter.d.ts.map +1 -1
  1600. package/out/us/adapters/usgov/hrsa-fqhc/adapter.js +12 -19
  1601. package/out/us/adapters/usgov/hrsa-fqhc/adapter.js.map +1 -1
  1602. package/out/us/adapters/usgov/imls-pls/adapter.d.ts.map +1 -1
  1603. package/out/us/adapters/usgov/imls-pls/adapter.js +15 -8
  1604. package/out/us/adapters/usgov/imls-pls/adapter.js.map +1 -1
  1605. package/out/us/adapters/usgov/irs-bmf/adapter.d.ts.map +1 -1
  1606. package/out/us/adapters/usgov/irs-bmf/adapter.js +2 -3
  1607. package/out/us/adapters/usgov/irs-bmf/adapter.js.map +1 -1
  1608. package/out/us/adapters/usgov/nad/adapter.d.ts +5 -4
  1609. package/out/us/adapters/usgov/nad/adapter.d.ts.map +1 -1
  1610. package/out/us/adapters/usgov/nad/adapter.js +18 -9
  1611. package/out/us/adapters/usgov/nad/adapter.js.map +1 -1
  1612. package/out/us/adapters/usgov/nppes/adapter.d.ts.map +1 -1
  1613. package/out/us/adapters/usgov/nppes/adapter.js +26 -15
  1614. package/out/us/adapters/usgov/nppes/adapter.js.map +1 -1
  1615. package/out/us/adapters/usgov/samhsa-treatment-locator/adapter.d.ts +4 -5
  1616. package/out/us/adapters/usgov/samhsa-treatment-locator/adapter.d.ts.map +1 -1
  1617. package/out/us/adapters/usgov/samhsa-treatment-locator/adapter.js +18 -31
  1618. package/out/us/adapters/usgov/samhsa-treatment-locator/adapter.js.map +1 -1
  1619. package/out/us/recipes/house-venue-tuples.d.ts +55 -0
  1620. package/out/us/recipes/house-venue-tuples.d.ts.map +1 -0
  1621. package/out/us/recipes/house-venue-tuples.js +115 -0
  1622. package/out/us/recipes/house-venue-tuples.js.map +1 -0
  1623. package/out/us/recipes/skeleton-sources.d.ts +2 -2
  1624. package/out/us/recipes/skeleton-sources.js +3 -3
  1625. package/out/us/recipes/skeleton-sources.js.map +1 -1
  1626. package/out/us/state-country-codes.d.ts +18 -0
  1627. package/out/us/state-country-codes.d.ts.map +1 -0
  1628. package/out/us/state-country-codes.js +21 -0
  1629. package/out/us/state-country-codes.js.map +1 -0
  1630. package/out/us/street-unit.d.ts +43 -0
  1631. package/out/us/street-unit.d.ts.map +1 -0
  1632. package/out/us/street-unit.js +56 -0
  1633. package/out/us/street-unit.js.map +1 -0
  1634. package/out/us/tools/nad-skeletons.d.ts +2 -2
  1635. package/out/us/tools/nad-skeletons.js +2 -2
  1636. package/out/utils/align.d.ts +15 -0
  1637. package/out/utils/align.d.ts.map +1 -1
  1638. package/out/utils/align.js +58 -28
  1639. package/out/utils/align.js.map +1 -1
  1640. package/out/utils/retention.d.ts +74 -0
  1641. package/out/utils/retention.d.ts.map +1 -0
  1642. package/out/utils/retention.js +39 -0
  1643. package/out/utils/retention.js.map +1 -0
  1644. package/out/utils/shape-supply.d.ts +30 -0
  1645. package/out/utils/shape-supply.d.ts.map +1 -0
  1646. package/out/utils/shape-supply.js +74 -0
  1647. package/out/utils/shape-supply.js.map +1 -0
  1648. package/out/utils/split.d.ts +159 -7
  1649. package/out/utils/split.d.ts.map +1 -1
  1650. package/out/utils/split.js +683 -130
  1651. package/out/utils/split.js.map +1 -1
  1652. package/out/utils/wof-json.d.ts +112 -17
  1653. package/out/utils/wof-json.d.ts.map +1 -1
  1654. package/out/utils/wof-json.js +179 -41
  1655. package/out/utils/wof-json.js.map +1 -1
  1656. package/out/uy/adapters/ide/adapter.d.ts +9 -9
  1657. package/out/uy/adapters/ide/adapter.d.ts.map +1 -1
  1658. package/out/uy/adapters/ide/adapter.js +24 -30
  1659. package/out/uy/adapters/ide/adapter.js.map +1 -1
  1660. package/out/ve/recipes/reviewed-postcode-tail.d.ts +2 -2
  1661. package/out/ve/recipes/reviewed-postcode-tail.d.ts.map +1 -1
  1662. package/out/ve/recipes/reviewed-postcode-tail.js +2 -3
  1663. package/out/ve/recipes/reviewed-postcode-tail.js.map +1 -1
  1664. package/package.json +25 -19
  1665. package/lib/tools/overlay/split-slice.ts +0 -136
  1666. package/out/adapters/street-line.d.ts.map +0 -1
  1667. package/out/adapters/street-line.js.map +0 -1
  1668. package/out/recipes/house-venue.d.ts.map +0 -1
  1669. package/out/recipes/house-venue.js.map +0 -1
  1670. package/out/tools/fetch/wikidata-subvenue.d.ts.map +0 -1
  1671. package/out/tools/fetch/wikidata-subvenue.js.map +0 -1
  1672. package/out/tools/overlay/split-slice.d.ts.map +0 -1
  1673. package/out/tools/overlay/split-slice.js +0 -71
  1674. package/out/tools/overlay/split-slice.js.map +0 -1
  1675. package/out/tools/postcode-triples.d.ts.map +0 -1
  1676. package/out/tools/postcode-triples.js.map +0 -1
  1677. /package/lib/adapters/{street-line.ts → street/line.ts} +0 -0
@@ -0,0 +1,175 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * `mailwoman wof explore`: render every row the `wof-admin` adapter would emit for one Who's On First record.
7
+ *
8
+ * The build indexes the whole 121 GB tree before it renders anything.
9
+ * This reads only the record and the ancestors identified by its `wof:hierarchy` and `wof:parent_id` chain.
10
+ * It builds an index from those records and calls the adapter's own functions on that index.
11
+ * The resulting rows match what a build would emit for the record.
12
+ */
13
+ import { wofReposPath } from "@mailwoman/core/data-root";
14
+ import { pathExists } from "@mailwoman/core/fs/readers/stat";
15
+ import { PathBuilder } from "path-ts";
16
+ import { Globerator } from "spliterator/node/fs";
17
+ import { nameSlotsFor, placetypeToTag as adapterTag, variantsFor, WOF_ADMIN_ADAPTER_ID, } from "#adapters/wof/admin/json/adapter";
18
+ import { emitWOFJSONRows, LOCALE_BY_COUNTRY } from "#adapters/wof/json-rows";
19
+ import { AUGMENTATIONS } from "#synthesizers/utils";
20
+ import { buildAncestorRecordIndex, readFeatureRecord } from "#utils";
21
+ /**
22
+ * The deepest `wof:parent_id` chain read, a guard against a corrupt cycle.
23
+ */
24
+ const PARENT_CHAIN_LIMIT = 16;
25
+ /**
26
+ * The relative path of a feature inside a WOF repo.
27
+ *
28
+ * `421205765` is at `data/421/205/765/421205765.geojson`.
29
+ * WOF splits the decimal id into groups of three digits from the left.
30
+ * `1021` is at `data/102/1/1021.geojson`.
31
+ */
32
+ export function wofFeatureRelativePath(id) {
33
+ const groups = String(id).match(/\d{1,3}/g) ?? [];
34
+ return ["data", ...groups, `${id}.geojson`].join("/");
35
+ }
36
+ /**
37
+ * The repos under `reposRoot`, as paths relative to it, per-country admin repos first, then the rest.
38
+ *
39
+ * A repo is a directory holding `data/`.
40
+ * The data root keeps some one level down, such as `whosonfirst-data/whosonfirst-data-admin-fr`.
41
+ */
42
+ export async function listWOFRepos(reposRoot = wofReposPath) {
43
+ const root = PathBuilder.from(reposRoot);
44
+ const cwd = root.toString();
45
+ // A pattern ending in `data` matches only a repo's data directory, so a stray file beside it is never probed.
46
+ const dataDirectories = [
47
+ ...(await Globerator.from("*/data", { cwd, absolute: false, onlyFiles: false }).toSorted()),
48
+ ...(await Globerator.from("*/*/data", { cwd, absolute: false, onlyFiles: false }).toSorted()),
49
+ ];
50
+ const repos = dataDirectories.map((directory) => directory.slice(0, -"/data".length));
51
+ const isAdmin = (name) => name.includes("-admin-");
52
+ return [...repos.filter(isAdmin), ...repos.filter((name) => !isAdmin(name))];
53
+ }
54
+ /**
55
+ * The file holding a feature, searched across every repo, or `null` when none holds it.
56
+ *
57
+ * A caller looking up several features passes the {@linkcode listWOFRepos} result once.
58
+ */
59
+ export async function findWOFFeaturePath(id, reposRoot = wofReposPath, repos) {
60
+ const root = PathBuilder.from(reposRoot);
61
+ const relative = wofFeatureRelativePath(id);
62
+ for (const repo of repos ?? (await listWOFRepos(root))) {
63
+ const candidate = root(repo, relative).toString();
64
+ if (await pathExists(candidate))
65
+ return candidate;
66
+ }
67
+ return null;
68
+ }
69
+ /**
70
+ * Render every row the `wof-admin` adapter emits for one record.
71
+ *
72
+ * @throws When no repo holds the record, or its file is not a record the adapter reads.
73
+ */
74
+ export async function exploreWOFRecord(id, options = {}) {
75
+ const reposRoot = options.reposRoot ?? wofReposPath;
76
+ const repos = await listWOFRepos(reposRoot);
77
+ const path = await findWOFFeaturePath(id, reposRoot, repos);
78
+ if (!path) {
79
+ throw new Error(`WOF ${id}: no repo under ${PathBuilder.from(reposRoot)} holds ${wofFeatureRelativePath(id)}`);
80
+ }
81
+ const record = await readFeatureRecord(path);
82
+ if (!record) {
83
+ throw new Error(`WOF ${id}: ${path} is unreadable, superseded or lacks a name, placetype or country`);
84
+ }
85
+ if (!adapterTag(record.placetype)) {
86
+ throw new Error(`WOF ${id}: placetype "${record.placetype}" is not one the wof-admin adapter renders`);
87
+ }
88
+ const byID = new Map([[record.id, record]]);
89
+ const ancestors = [];
90
+ const unresolvedAncestors = [];
91
+ // The build indexes by `wof:hierarchy` and walks `wof:parent_id` upward, so this reads the same two sets.
92
+ const load = async (ancestorID) => {
93
+ const known = byID.get(ancestorID);
94
+ if (known)
95
+ return known;
96
+ const file = await findWOFFeaturePath(ancestorID, reposRoot, repos);
97
+ const ancestor = file ? await readFeatureRecord(file) : null;
98
+ // A record the build does not index never enters its `byID`, so the parent walk stops there.
99
+ if (!ancestor || !adapterTag(ancestor.placetype)) {
100
+ if (!unresolvedAncestors.includes(ancestorID)) {
101
+ unresolvedAncestors.push(ancestorID);
102
+ }
103
+ return null;
104
+ }
105
+ byID.set(ancestor.id, ancestor);
106
+ ancestors.push(ancestor);
107
+ return ancestor;
108
+ };
109
+ for (const ancestorID of record.ancestors) {
110
+ await load(ancestorID);
111
+ }
112
+ let parent = record.parent_id;
113
+ for (let step = 0; parent !== null && parent > 0 && step < PARENT_CHAIN_LIMIT; step++) {
114
+ const next = await load(parent);
115
+ parent = next ? next.parent_id : null;
116
+ }
117
+ const ancestry = buildAncestorRecordIndex(byID, adapterTag);
118
+ const slots = new Map();
119
+ for (const slot of nameSlotsFor(record)) {
120
+ slots.set(slot.key, { slot, rows: [] });
121
+ }
122
+ const prefix = `${WOF_ADMIN_ADAPTER_ID}-${record.id}-`;
123
+ const byLongestKey = [...slots.keys()].toSorted((a, b) => b.length - a.length);
124
+ for (const row of emitWOFJSONRows({
125
+ records: new Map([[record.id, record]]),
126
+ ancestry,
127
+ adapterOptions: { inputPath: path },
128
+ adapterID: WOF_ADMIN_ADAPTER_ID,
129
+ localeByCountry: LOCALE_BY_COUNTRY,
130
+ nameSlotsFor,
131
+ variantsFor,
132
+ })) {
133
+ const rest = row.source_id.slice(prefix.length);
134
+ const key = byLongestKey.find((candidate) => rest.startsWith(`${candidate}-`));
135
+ if (!key)
136
+ throw new Error(`WOF ${id}: row ${row.source_id} matches none of the record's name slots`);
137
+ slots.get(key).rows.push({
138
+ suffix: rest.slice(key.length + 1),
139
+ raw: row.raw,
140
+ components: row.components,
141
+ source_id: row.source_id,
142
+ country: row.country,
143
+ });
144
+ }
145
+ return { record, path, ancestors, unresolvedAncestors, slots: [...slots.values()] };
146
+ }
147
+ /**
148
+ * Apply every registered augmentation to a row, keeping those that produce a row different from it.
149
+ *
150
+ * An augmentation that does not apply to the row returns `null` and is left out.
151
+ */
152
+ export function augmentExploredRow(row) {
153
+ const canonical = {
154
+ raw: row.raw,
155
+ components: row.components,
156
+ country: row.country,
157
+ source: WOF_ADMIN_ADAPTER_ID,
158
+ source_id: row.source_id,
159
+ license: "CC0-1.0",
160
+ };
161
+ const out = [];
162
+ for (const [augmentation, apply] of Object.entries(AUGMENTATIONS)) {
163
+ const augmented = apply(canonical);
164
+ if (!augmented || augmented.raw === row.raw)
165
+ continue;
166
+ out.push({
167
+ augmentation,
168
+ raw: augmented.raw,
169
+ components: augmented.components,
170
+ source_id: augmented.source_id,
171
+ });
172
+ }
173
+ return out;
174
+ }
175
+ //# sourceMappingURL=explore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"explore.js","sourceRoot":"","sources":["../../../../../lib/adapters/wof/admin/json/explore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAwB,MAAM,SAAS,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAEhD,OAAO,EACN,YAAY,EACZ,cAAc,IAAI,UAAU,EAC5B,WAAW,EACX,oBAAoB,GACpB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAiB,MAAM,yBAAyB,CAAA;AAC3F,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAEnD,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAkB,MAAM,QAAQ,CAAA;AAEpF;;GAEG;AACH,MAAM,kBAAkB,GAAG,EAAE,CAAA;AAE7B;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CAAC,EAAU;IAChD,MAAM,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA;IAEjD,OAAO,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,UAAU,CAAC,CAAC,IAA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C;YACR,YAAY;YACZ,GAAG,EAAE,SAAS,CAAC,GAAG;YAClB,UAAU,EAAE,SAAS,CAAC,UAAU;YAChC,SAAS,EAAE,SAAS,CAAC,SAAS;SAC9B,CAAC,CAAA;IACH,CAAC;IAED,OAAO,GAAG,CAAA;AACX,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * The region codes a country's addresses write in place of the region's name, from Google libaddressinput.
7
+ *
8
+ * A libaddressinput country spec lists its subdivisions twice: `sub_keys`, the value an address writes, and
9
+ * `sub_names`, the subdivision's name. The United States keys `NY` and names `New York`, so its addresses write
10
+ * `NY`. France lists no subdivisions and Japan keys each prefecture by its name, so neither has a code to write.
11
+ * A country counts as writing codes when most of its keys differ from their names: AU, BR, CA, ES, HK, IT, KR, MX,
12
+ * SO and US in the vendored specs.
13
+ */
14
+ /**
15
+ * The code `country`'s addresses use for the region `regionName`, or `null` when they write the name.
16
+ */
17
+ export declare function regionCodeFor(country: string, regionName: string): string | null;
18
+ //# sourceMappingURL=region-codes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"region-codes.d.ts","sourceRoot":"","sources":["../../../../../lib/adapters/wof/admin/json/region-codes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAmDH;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAEhF"}
@@ -0,0 +1,52 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * The region codes a country's addresses write in place of the region's name, from Google libaddressinput.
7
+ *
8
+ * A libaddressinput country spec lists its subdivisions twice: `sub_keys`, the value an address writes, and
9
+ * `sub_names`, the subdivision's name. The United States keys `NY` and names `New York`, so its addresses write
10
+ * `NY`. France lists no subdivisions and Japan keys each prefecture by its name, so neither has a code to write.
11
+ * A country counts as writing codes when most of its keys differ from their names: AU, BR, CA, ES, HK, IT, KR, MX,
12
+ * SO and US in the vendored specs.
13
+ */
14
+ import { readLocalTextFileSync } from "@mailwoman/core/fs/readers";
15
+ import { isFileSync } from "@mailwoman/core/fs/readers/stat";
16
+ import { tryParsingJSON } from "@mailwoman/core/json";
17
+ import { sslAddressSpecsPath } from "@mailwoman/dictionaries/paths";
18
+ const CODES_BY_COUNTRY = new Map();
19
+ /**
20
+ * Reads one country's name-to-code map, or an empty map when the country writes no codes.
21
+ */
22
+ function codesFor(country) {
23
+ const cached = CODES_BY_COUNTRY.get(country);
24
+ if (cached)
25
+ return cached;
26
+ const codes = new Map();
27
+ const path = sslAddressSpecsPath()(`${country}.json`);
28
+ // `variantsFor` runs synchronously inside the row generator, so the spec is read synchronously, once per country.
29
+ const spec = isFileSync(path) ? tryParsingJSON(readLocalTextFileSync(path)) : null;
30
+ const keys = spec?.sub_keys?.split("~") ?? [];
31
+ for (const names of [spec?.sub_names, spec?.sub_lnames]) {
32
+ const values = names?.split("~") ?? [];
33
+ const differing = values.filter((name, i) => keys[i] && name !== keys[i]).length;
34
+ // A country whose keys are its names writes the name, so it has no code to substitute.
35
+ if (values.length !== keys.length || differing * 2 <= keys.length)
36
+ continue;
37
+ for (const [i, name] of values.entries()) {
38
+ if (name !== keys[i]) {
39
+ codes.set(name.toLowerCase(), keys[i]);
40
+ }
41
+ }
42
+ }
43
+ CODES_BY_COUNTRY.set(country, codes);
44
+ return codes;
45
+ }
46
+ /**
47
+ * The code `country`'s addresses use for the region `regionName`, or `null` when they write the name.
48
+ */
49
+ export function regionCodeFor(country, regionName) {
50
+ return codesFor(country.toUpperCase()).get(regionName.toLowerCase()) ?? null;
51
+ }
52
+ //# sourceMappingURL=region-codes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"region-codes.js","sourceRoot":"","sources":["../../../../../lib/adapters/wof/admin/json/region-codes.ts"],"names":[],"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AI,CAAC,MAAM,IAAI,SAAS,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM;YAAE,SAAQ;QAE3E,KAAK,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,EAAE,EAAE,CAAC;YAC1C,IAAI,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;gBACtB,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,CAAC,CAAC,CAAE,CAAC,CAAA;YACxC,CAAC;QACF,CAAC;IACF,CAAC;IAED,gBAAgB,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;IAEpC,OAAO,KAAK,CAAA;AACb,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,OAAe,EAAE,UAAkB;IAChE,OAAO,QAAQ,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,IAAI,IAAI,CAAA;AAC7E,CAAC"}
@@ -5,8 +5,22 @@
5
5
  * @file Deterministic canonical-row emission shared by WOF GeoJSON adapters.
6
6
  */
7
7
  import type { ComponentTag } from "@mailwoman/codex/component";
8
+ import type { RowSampler } from "#adapters/wof/sample";
8
9
  import type { AdapterOptions, CanonicalRow } from "#types";
9
- import { type AncestorNames, type WOFRecord } from "#utils";
10
+ import { type WOFRecord } from "#utils";
11
+ /**
12
+ * Render an admin-hierarchy variant: the components it contains, in hierarchy order,
13
+ * joined the way the country joins a line.
14
+ *
15
+ * This adapter emits a gazetteer query.
16
+ * It follows the gazetteer path without a postal layout.
17
+ *
18
+ * A country whose postal layout drops the region would collapse `Paris, Île-de-France` back into `Paris`.
19
+ */
20
+ export declare function renderHierarchy(components: Partial<Record<ComponentTag, string>>, country: string): {
21
+ raw: string;
22
+ components: Partial<Record<ComponentTag, string>>;
23
+ } | null;
10
24
  /**
11
25
  * Display name for the country, keyed by ISO 3166-1 alpha-2.
12
26
  *
@@ -44,6 +58,11 @@ export interface WOFVariantSpec {
44
58
  * for the systems that write that way, with the country's own separator.
45
59
  */
46
60
  hierarchy?: boolean;
61
+ /**
62
+ * The country whose hierarchy order and line join render this variant,
63
+ * when it differs from the record's own.
64
+ */
65
+ layoutCountry?: string;
47
66
  }
48
67
  export interface NameSlotOptions {
49
68
  /**
@@ -54,37 +73,73 @@ export interface NameSlotOptions {
54
73
  * @defaultValue `rec.name` verbatim.
55
74
  */
56
75
  canonicalName?: (rec: WOFRecord) => string;
76
+ /**
77
+ * Ranks a preferred-name language for one record, lower first.
78
+ *
79
+ * The adapter visits keys in rank order.
80
+ * If two keys share a value, the first key's rank decides which language renders the name.
81
+ *
82
+ * Brooklyn's `name:wuu_x_preferred` and `name:zho_x_preferred` both hold 布鲁克林区,
83
+ * and in source order `wuu` would claim it.
84
+ *
85
+ * Keys without a preferred-name language follow the ranked ones in source order.
86
+ *
87
+ * @defaultValue Source order.
88
+ */
89
+ languageRank?: (language: string) => number;
57
90
  }
58
91
  /**
59
- * Build the per-record name-slot list: the canonical `"default"` slot, then every `name:*` variant
60
- * deduplicated against it so a redundant `"default"`-equivalent row is not emitted under a localized key.
92
+ * One name a record's rows are rendered from.
61
93
  */
62
- export declare function nameSlotsFor(rec: WOFRecord, options?: NameSlotOptions): Array<{
94
+ export interface NameSlot {
95
+ /**
96
+ * The `source_id` fragment: `default`, a normalized `name:*` key, or that key
97
+ * with `-2`, `-3`… for a key's later values.
98
+ */
63
99
  key: string;
64
100
  value: string;
65
- }>;
66
- interface EmitWOFJSONRowsOptions {
101
+ /**
102
+ * The ISO 639-3 language of a `name:<language>_x_preferred` slot.
103
+ * The admin adapter uses it to render a localized hierarchy.
104
+ */
105
+ language?: string;
106
+ }
107
+ /**
108
+ * Build the per-record name-slot list: the canonical `"default"` slot, then every
109
+ * value of every `name:*` variant, deduplicated so a redundant `"default"`-equivalent
110
+ * row is not emitted under a localized key.
111
+ */
112
+ export declare function nameSlotsFor(rec: WOFRecord, options?: NameSlotOptions): NameSlot[];
113
+ interface EmitWOFJSONRowsOptions<A extends object> {
67
114
  records: ReadonlyMap<number, WOFRecord>;
68
115
  /**
69
- * The ancestor names each record's variants read, rather than its ancestor records.
116
+ * The ancestors each record's variants read: names for `wof-postalcode`, records for `wof-admin`.
70
117
  *
71
- * A record absent from the map resolves to an empty set of ancestor names.
118
+ * A record absent from the map resolves to an empty object.
72
119
  * Records with no resolvable ancestor produce the same value.
73
120
  */
74
- ancestry: ReadonlyMap<number, AncestorNames>;
121
+ ancestry: ReadonlyMap<number, A>;
75
122
  adapterOptions: AdapterOptions;
76
123
  adapterID: string;
77
124
  localeByCountry: Readonly<Record<string, string>>;
78
125
  shouldEmit?: (record: WOFRecord) => boolean;
79
- nameSlotsFor: (record: WOFRecord) => Array<{
80
- key: string;
81
- value: string;
82
- }>;
83
- variantsFor: (record: WOFRecord, ancestry: AncestorNames, selfName: string) => WOFVariantSpec[];
126
+ nameSlotsFor: (record: WOFRecord) => NameSlot[];
127
+ variantsFor: (record: WOFRecord, ancestry: A, slot: NameSlot) => WOFVariantSpec[];
128
+ /**
129
+ * Chooses the rows to emit when the adapter options include a sample.
130
+ *
131
+ * The emitter renders every row once into it, then emits the rows it keeps, in WOF-id order.
132
+ * The caller reads its cell counts afterwards.
133
+ */
134
+ sampler?: RowSampler<CanonicalRow>;
84
135
  }
85
136
  /**
86
137
  * Emit aligned rows in WOF-id order, enforcing the adapter limit across all name and hierarchy variants.
138
+ *
139
+ * A variant's `country` renders it in another country's order and join
140
+ * (a Japanese hierarchy of a US place is written largest first with no separator),
141
+ * while the row keeps the record's own country.
87
142
  */
88
- export declare function emitWOFJSONRows(options: EmitWOFJSONRowsOptions): Generator<CanonicalRow>;
143
+ export declare function emitWOFJSONRows<A extends object>(options: EmitWOFJSONRowsOptions<A>): Generator<CanonicalRow>;
89
144
  export {};
90
145
  //# sourceMappingURL=json-rows.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"json-rows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,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,KAAK,cAAc,EAAE,CAAA;IACjF;;;;;OAKG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC,YAAY,CAAC,CAAA;CAClC;AAUD;;;;;;GAMG;AACH,wBAAiB,eAAe,CAAC,CAAC,SAAS,MAAM,EAAE,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,CA0B9G"}
@@ -5,8 +5,10 @@
5
5
  * @file Deterministic canonical-row emission shared by WOF GeoJSON adapters.
6
6
  */
7
7
  import { formatAddressRow } from "@mailwoman/codex/address/format";
8
- import { isLargestFirstSystem, lineJoinForCountry } from "@mailwoman/codex/address/layouts";
9
- import { normalizeNameKey } from "#utils";
8
+ import { adminRunJoinForCountry, isLargestFirstSystem, lineJoinForCountry, } from "@mailwoman/codex/address/layouts";
9
+ import { isPresent } from "@mailwoman/core/objects";
10
+ import { classifyTokenScript } from "@mailwoman/query-shape/character-class";
11
+ import { nameValues, normalizeNameKey } from "#utils";
10
12
  /**
11
13
  * The order an admin hierarchy is written in, smallest unit first.
12
14
  *
@@ -29,8 +31,11 @@ const HIERARCHY_ORDER = [
29
31
  *
30
32
  * A country whose postal layout drops the region would collapse `Paris, Île-de-France` back into `Paris`.
31
33
  */
32
- function renderHierarchy(components, country) {
33
- const order = isLargestFirstSystem(country) ? [...HIERARCHY_ORDER].toReversed() : HIERARCHY_ORDER;
34
+ export function renderHierarchy(components, country) {
35
+ const script = hierarchyScript(Object.values(components).filter(isPresent));
36
+ // A largest-first country writes its own script largest first and a romanized address
37
+ // smallest first: `東京都渋谷区` against `Shibuya, Tokyo, Japan`.
38
+ const order = isLargestFirstSystem(country, script) ? [...HIERARCHY_ORDER].toReversed() : HIERARCHY_ORDER;
34
39
  const present = {};
35
40
  const parts = [];
36
41
  for (const tag of order) {
@@ -38,11 +43,46 @@ function renderHierarchy(components, country) {
38
43
  if (!value)
39
44
  continue;
40
45
  present[tag] = value;
41
- parts.push(value);
46
+ parts.push({ tag, value });
42
47
  }
43
48
  if (!parts.length)
44
49
  return null;
45
- return { raw: parts.join(lineJoinForCountry(country)), components: present };
50
+ const lineJoin = lineJoinForCountry(country, script);
51
+ const adminJoin = adminRunJoinForCountry(country, script);
52
+ // Two adjacent admin units share a line and take the admin-run join.
53
+ // The postcode and the country sit on lines of their own.
54
+ const raw = parts
55
+ .map((part, index) => {
56
+ if (!index)
57
+ return part.value;
58
+ const shared = ADMIN_RUN_TAGS.has(part.tag) && ADMIN_RUN_TAGS.has(parts[index - 1].tag);
59
+ return (shared ? adminJoin : lineJoin) + part.value;
60
+ })
61
+ .join("");
62
+ return { raw, components: present };
63
+ }
64
+ /**
65
+ * The hierarchy tags a layout prints together on its admin line.
66
+ */
67
+ const ADMIN_RUN_TAGS = new Set(["dependent_locality", "locality", "subregion", "region"]);
68
+ /**
69
+ * Scripts whose addresses join their units without a separator or with a single space.
70
+ */
71
+ const CJK_SCRIPTS = new Set(["Hani", "Hira", "Kana", "Hang"]);
72
+ /**
73
+ * Chooses the join script for a hierarchy from the names being joined.
74
+ *
75
+ * A country's local join, such as China's empty separator, belongs to names written in its CJK script.
76
+ * A romanized or other non-CJK name joined that way runs into its neighbor (`HEBEICHAOZHITUN`).
77
+ *
78
+ * A part with no script letters, such as a number, leaves the choice to the other parts.
79
+ */
80
+ function hierarchyScript(parts) {
81
+ const allCJK = parts.every((part) => {
82
+ const script = classifyTokenScript(part);
83
+ return script === "Zyyy" || CJK_SCRIPTS.has(script);
84
+ });
85
+ return allCJK ? "local" : "latin";
46
86
  }
47
87
  /**
48
88
  * Display name for the country, keyed by ISO 3166-1 alpha-2.
@@ -72,24 +112,37 @@ export const LOCALE_BY_COUNTRY = {
72
112
  US: "en-US",
73
113
  FR: "fr-FR",
74
114
  };
115
+ const PREFERRED_KEY = /^name:([a-z]{3})_x_preferred$/;
75
116
  /**
76
- * Build the per-record name-slot list: the canonical `"default"` slot, then every `name:*` variant
77
- * deduplicated against it so a redundant `"default"`-equivalent row is not emitted under a localized key.
117
+ * Build the per-record name-slot list: the canonical `"default"` slot, then every
118
+ * value of every `name:*` variant, deduplicated so a redundant `"default"`-equivalent
119
+ * row is not emitted under a localized key.
78
120
  */
79
121
  export function nameSlotsFor(rec, options = {}) {
80
122
  const canonicalSelfName = options.canonicalName?.(rec) ?? rec.name;
81
123
  const seen = new Set([canonicalSelfName]);
82
124
  const slots = [{ key: "default", value: canonicalSelfName }];
83
- for (const [rawKey, value] of rec.nameVariants) {
84
- if (seen.has(value))
85
- continue;
86
- seen.add(value);
87
- slots.push({ key: normalizeNameKey(rawKey), value });
125
+ const rank = options.languageRank;
126
+ const keyRank = (rawKey) => {
127
+ const language = PREFERRED_KEY.exec(rawKey)?.[1];
128
+ return rank && language ? rank(language) : Number.POSITIVE_INFINITY;
129
+ };
130
+ const entries = rank ? [...rec.nameVariants].toSorted(([a], [b]) => keyRank(a) - keyRank(b) || 0) : rec.nameVariants;
131
+ for (const [rawKey, variant] of entries) {
132
+ const values = nameValues(variant);
133
+ const language = PREFERRED_KEY.exec(rawKey)?.[1];
134
+ for (const [position, value] of values.entries()) {
135
+ if (seen.has(value))
136
+ continue;
137
+ seen.add(value);
138
+ const key = position ? `${normalizeNameKey(rawKey)}-${position + 1}` : normalizeNameKey(rawKey);
139
+ slots.push(language && !position ? { key, value, language } : { key, value });
140
+ }
88
141
  }
89
142
  return slots;
90
143
  }
91
144
  /**
92
- * The value a record uses in place of ancestor names when its ancestors do not resolve.
145
+ * The value a record uses in place of ancestors when they do not resolve.
93
146
  *
94
147
  * Frozen and shared, because the emitter reaches it once per such record
95
148
  * and constructing a fresh object per row would allocate one per name slot.
@@ -97,10 +150,42 @@ export function nameSlotsFor(rec, options = {}) {
97
150
  const NO_ANCESTORS = Object.freeze({});
98
151
  /**
99
152
  * Emit aligned rows in WOF-id order, enforcing the adapter limit across all name and hierarchy variants.
153
+ *
154
+ * A variant's `country` renders it in another country's order and join
155
+ * (a Japanese hierarchy of a US place is written largest first with no separator),
156
+ * while the row keeps the record's own country.
100
157
  */
101
158
  export function* emitWOFJSONRows(options) {
102
- const { records, ancestry, adapterOptions, adapterID, localeByCountry, shouldEmit = () => true, nameSlotsFor: slotsForRecord, variantsFor, } = options;
159
+ const { adapterOptions, sampler } = options;
160
+ const limit = adapterOptions.limit;
103
161
  let emitted = 0;
162
+ if (sampler) {
163
+ for (const { row, slotKey } of renderWOFRows(options)) {
164
+ sampler.observe(sampledRow(row, slotKey), row);
165
+ }
166
+ }
167
+ const rows = sampler
168
+ ? sampler.kept()
169
+ : (function* () {
170
+ for (const { row } of renderWOFRows(options)) {
171
+ yield row;
172
+ }
173
+ })();
174
+ for (const row of rows) {
175
+ if (typeof limit === "number" && emitted >= limit)
176
+ return;
177
+ yield row;
178
+ emitted++;
179
+ }
180
+ }
181
+ function sampledRow(row, slotKey) {
182
+ return { sourceID: row.source_id, country: row.country, slotKey, raw: row.raw, components: row.components };
183
+ }
184
+ /**
185
+ * Every row the records render, in WOF-id order, each with the name-slot key it came from.
186
+ */
187
+ function* renderWOFRows(options) {
188
+ const { records, ancestry, adapterOptions, adapterID, localeByCountry, shouldEmit = () => true, nameSlotsFor: slotsForRecord, variantsFor, } = options;
104
189
  for (const id of [...records.keys()].toSorted((a, b) => a - b)) {
105
190
  if (adapterOptions.signal?.aborted)
106
191
  return;
@@ -108,26 +193,25 @@ export function* emitWOFJSONRows(options) {
108
193
  if (!shouldEmit(record))
109
194
  continue;
110
195
  for (const slot of slotsForRecord(record)) {
111
- for (const variant of variantsFor(record, ancestry.get(id) ?? NO_ANCESTORS, slot.value)) {
112
- if (adapterOptions.limit !== undefined && emitted >= adapterOptions.limit)
113
- return;
196
+ for (const variant of variantsFor(record, ancestry.get(id) ?? NO_ANCESTORS, slot)) {
114
197
  const rendered = variant.hierarchy
115
- ? renderHierarchy(variant.components, record.country)
198
+ ? renderHierarchy(variant.components, variant.layoutCountry ?? record.country)
116
199
  : formatAddressRow(variant.components, record.country, { singleLine: true });
117
200
  if (!rendered)
118
201
  continue;
119
202
  const { raw, components } = rendered;
120
203
  yield {
121
- raw,
122
- components,
123
- country: record.country,
124
- locale: localeByCountry[record.country],
125
- source: adapterID,
126
- source_id: `${adapterID}-${record.id}-${slot.key}-${variant.suffix}`,
127
- corpus_version: "",
128
- license: "CC0-1.0",
204
+ slotKey: slot.key,
205
+ row: {
206
+ raw,
207
+ components,
208
+ country: record.country,
209
+ locale: localeByCountry[record.country],
210
+ source: adapterID,
211
+ source_id: `${adapterID}-${record.id}-${slot.key}-${variant.suffix}`,
212
+ license: "CC0-1.0",
213
+ },
129
214
  };
130
- emitted++;
131
215
  }
132
216
  }
133
217
  }
@@ -1 +1 @@
1
- {"version":3,"file":"json-rows.js","sourceRoot":"","sources":["../../../lib/adapters/wof/json-rows.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAClE,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAI3F,OAAO,EAAE,gBAAgB,EAAsC,MAAM,QAAQ,CAAA;AAE7E;;;;GAIG;AACH,MAAM,eAAe,GAA4B;IAChD,UAAU;IACV,oBAAoB;IACpB,UAAU;IACV,WAAW;IACX,QAAQ;IACR,SAAS;CACT,CAAA;AAED;;;;;;;;GAQG;AACH,SAAS,eAAe,CACvB,UAAiD,EACjD,OAAe;IAEf,MAAM,KAAK,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,eAAe,CAAA;IACjG,MAAM,OAAO,GAA0C,EAAE,CAAA;IACzD,MAAM,KAAK,GAAa,EAAE,CAAA;IAE1B,KAAK,MAAM,GAAG,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,KAAK,GAAG,UAAU,CAA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