@mailwoman/corpus 10.6.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 (1708) hide show
  1. package/README.md +4 -4
  2. package/data/PROVENANCE.md +52 -5
  3. package/data/address-source-register.json +18925 -8728
  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 +4813 -0
  13. package/data/license-decisions.json +7261 -0
  14. package/data/licenses/whosonfirst-licenses.md +3 -2
  15. package/data/reviewed-ve-postcode-tuples.json +5 -72
  16. package/data/source-additions.json +2450 -0
  17. package/data/source-resolutions.json +94 -0
  18. package/data/training-configs/stage1-coarse.yaml +82 -0
  19. package/data/training-configs/stage1-smoke.yaml +46 -0
  20. package/data/training-configs/stage2.yaml +110 -0
  21. package/data/training-configs/v0.9.0-pilot-selfcond.yaml +157 -0
  22. package/data/training-configs/v0.9.1-pilot-anchor-off.yaml +159 -0
  23. package/data/training-configs/v0.9.1-pilot-anchor-on.yaml +164 -0
  24. package/data/training-configs/v0.9.10-country-bal.yaml +150 -0
  25. package/data/training-configs/v0.9.11-country-cw.yaml +126 -0
  26. package/data/training-configs/v0.9.12-country-gaz.yaml +131 -0
  27. package/data/training-configs/v0.9.13-country-gaz-curric.yaml +127 -0
  28. package/data/training-configs/v0.9.14-affix-ml.yaml +129 -0
  29. package/data/training-configs/v0.9.2-de-bothorder.yaml +156 -0
  30. package/data/training-configs/v0.9.3-de-regiontail.yaml +127 -0
  31. package/data/training-configs/v0.9.5-unit.yaml +160 -0
  32. package/data/training-configs/v0.9.6-unit-v2.yaml +169 -0
  33. package/data/training-configs/v0.9.7-unit-v3.yaml +155 -0
  34. package/data/training-configs/v0.9.8-affix.yaml +160 -0
  35. package/data/training-configs/v0_4_0-ablate-crf.yaml +101 -0
  36. package/data/training-configs/v0_4_0-ablate-cw.yaml +76 -0
  37. package/data/training-configs/v0_4_0-final.yaml +106 -0
  38. package/data/training-configs/v0_4_0-lr1.5e4.yaml +105 -0
  39. package/data/training-configs/v0_4_0-lr3e4.yaml +104 -0
  40. package/data/training-configs/v0_4_0-smoke.yaml +103 -0
  41. package/data/training-configs/v0_4_0-stableLR-crf-only.yaml +73 -0
  42. package/data/training-configs/v0_4_0-stableLR-cw-only.yaml +92 -0
  43. package/data/training-configs/v0_4_0-stableLR-source-only.yaml +61 -0
  44. package/data/training-configs/v0_4_0.yaml +132 -0
  45. package/data/training-configs/v0_5_0-classifier-ce-only-full.yaml +79 -0
  46. package/data/training-configs/v0_5_0-classifier-ce-only-smoke.yaml +104 -0
  47. package/data/training-configs/v0_5_0-classifier-smoke.yaml +148 -0
  48. package/data/training-configs/v0_5_1-classifier-unchained.yaml +111 -0
  49. package/data/training-configs/v0_5_2-classifier-rebalanced.yaml +102 -0
  50. package/data/training-configs/v0_5_3-classifier-diagnostic.yaml +114 -0
  51. package/data/training-configs/v0_5_4-revert-recipe.yaml +118 -0
  52. package/data/training-configs/v0_6_0-stage3.yaml +114 -0
  53. package/data/training-configs/v0_6_1-stage3-streets.yaml +114 -0
  54. package/data/training-configs/v0_6_2-crf-fp32-diagnostic.yaml +141 -0
  55. package/data/training-configs/v0_6_2-stage3-rebalance.yaml +169 -0
  56. package/data/training-configs/v0_6_2b-rebalance-half.yaml +151 -0
  57. package/data/training-configs/v0_6_3-house-venue.yaml +181 -0
  58. package/data/training-configs/v0_6_4-rebalance-no-street.yaml +176 -0
  59. package/data/training-configs/v0_7_0-calibration-label-smoothing.yaml +150 -0
  60. package/data/training-configs/v0_7_0b-calibration-ls005.yaml +128 -0
  61. package/data/training-configs/v0_7_1-intersection.yaml +130 -0
  62. package/data/training-configs/v0_7_2-intersection-bare.yaml +129 -0
  63. package/data/training-configs/v0_8_0-calibration-ls005.yaml +124 -0
  64. package/data/training-configs/v0_8_0-finetune-pretrained.yaml +133 -0
  65. package/data/training-configs/v0_8_0-finetune-scratch.yaml +131 -0
  66. package/data/training-configs/v0_8_0-german.yaml +130 -0
  67. package/data/training-configs/v0_8_0-mlm-pretrain.yaml +89 -0
  68. package/data/training-configs/v0_8_0-street-bare.yaml +113 -0
  69. package/data/training-configs/v0_8_1-finetune-pretrained.yaml +137 -0
  70. package/data/training-configs/v0_8_1-finetune-scratch.yaml +135 -0
  71. package/data/training-configs/v0_8_1-street-bare-v2.yaml +112 -0
  72. package/data/training-configs/v1.0.0-affixdiag.yaml +174 -0
  73. package/data/training-configs/v1.0.0-consolidation.yaml +167 -0
  74. package/data/training-configs/v1.0.1-consolidation-runA.yaml +174 -0
  75. package/data/training-configs/v1.0.2-consolidation-runB.yaml +182 -0
  76. package/data/training-configs/v1.0.3-consolidation-runC.yaml +180 -0
  77. package/data/training-configs/v1.0.4-probe0-curriculum.yaml +193 -0
  78. package/data/training-configs/v1.0.6-relabel-probe.yaml +133 -0
  79. package/data/training-configs/v1.1.0-relabel-consolidation.yaml +134 -0
  80. package/data/training-configs/v1.2.0-probe-glue.yaml +130 -0
  81. package/data/training-configs/v1.2.1-probe-intersection.yaml +130 -0
  82. package/data/training-configs/v1.2.2-probe-pobox.yaml +133 -0
  83. package/data/training-configs/v1.3.0-boundary-consolidation.yaml +144 -0
  84. package/data/training-configs/v1.4.0-charoffset.yaml +139 -0
  85. package/data/training-configs/v1.5.0-fr-order.yaml +140 -0
  86. package/data/training-configs/v1.5.1-fr-order.yaml +126 -0
  87. package/data/training-configs/v1.6.0-boundary-stress.yaml +208 -0
  88. package/data/training-configs/v1.7.0-boundary-stress.yaml +215 -0
  89. package/data/training-configs/v1.8.0-fr-admin-split.yaml +144 -0
  90. package/data/training-configs/v1.8.1-fr-admin-split.yaml +144 -0
  91. package/data/training-configs/v1.9.0-multilocale.yaml +165 -0
  92. package/data/training-configs/v1.9.1-multilocale-3order.yaml +169 -0
  93. package/data/training-configs/v1.9.2-multilocale-au.yaml +157 -0
  94. package/data/training-configs/v1.9.3-anchor-absorption.yaml +167 -0
  95. package/data/training-configs/v1.9.3a1-anchor-absorption.yaml +171 -0
  96. package/data/training-configs/v1.9.3a2-anchor-absorption.yaml +170 -0
  97. package/data/training-configs/v1.9.3a3-anchor-absorption.yaml +170 -0
  98. package/data/training-configs/v1.9.4-fr-bare-street.yaml +182 -0
  99. package/data/training-configs/v1.9.5-surface-aug.yaml +182 -0
  100. package/data/training-configs/v1.9.6-slavic-anchor.yaml +158 -0
  101. package/data/training-configs/v1.9.6-surface-aug-full.yaml +191 -0
  102. package/data/training-configs/v1.9.7-bsplice.yaml +160 -0
  103. package/data/training-configs/v1.9.8-bare-street-bsplice.yaml +205 -0
  104. package/data/training-configs/v1.9.9-bare-street-si.yaml +225 -0
  105. package/data/training-configs/v2.1.0-boundary-family-probe.yaml +169 -0
  106. package/data/training-configs/v2.1.0-boundary-family.yaml +168 -0
  107. package/data/training-configs/v2.1.1-family-mass-probe.yaml +171 -0
  108. package/data/training-configs/v2.1.2-zeroslice-control.yaml +167 -0
  109. package/data/training-configs/v2.1.3-family-embfreeze.yaml +172 -0
  110. package/data/training-configs/v2.2.0-full-family.yaml +162 -0
  111. package/data/training-configs/v2.3.0-nl-postcode-full.yaml +173 -0
  112. package/data/training-configs/v2.4.1-fr-nsplice-ft.yaml +197 -0
  113. package/data/training-configs/v2.5.0-fragment-assay.yaml +179 -0
  114. package/data/training-configs/v2.5.1-fragment-splice.yaml +161 -0
  115. package/data/training-configs/v2.5.2-fragment-v2.yaml +160 -0
  116. package/data/training-configs/v2.5.3-fragment-v3.yaml +159 -0
  117. package/data/training-configs/v2.5.4-fragment-v4.yaml +160 -0
  118. package/data/training-configs/v2.5.5-fragment-v5.yaml +160 -0
  119. package/data/training-configs/v2.5.6-dynamics-probe.yaml +161 -0
  120. package/data/training-configs/v2.5.7-fragment-v5-gentle-full.yaml +166 -0
  121. package/data/training-configs/v2.6.0-span-boundary-probe.yaml +166 -0
  122. package/data/training-configs/v2.6.1-span-boundary-full.yaml +163 -0
  123. package/data/training-configs/v2.6.2-span-boundary-w15.yaml +162 -0
  124. package/data/training-configs/v2.6.3-country-channel.yaml +176 -0
  125. package/data/training-configs/v2.6.4-country-softguard.yaml +180 -0
  126. package/data/training-configs/v2.6.5-country-softguard-025.yaml +183 -0
  127. package/data/training-configs/v2.7.0-punct-drop.yaml +161 -0
  128. package/data/training-configs/v2.8.0-combined.yaml +163 -0
  129. package/data/training-configs/v2.9.0-country-counterweight.yaml +160 -0
  130. package/data/training-configs/v2.9.1-country-leading.yaml +161 -0
  131. package/data/training-configs/v3.0.0-span-head.yaml +194 -0
  132. package/data/training-configs/v3.0.1-span-head-lr.yaml +205 -0
  133. package/data/training-configs/v3.1.0-fr-fragment.yaml +171 -0
  134. package/data/training-configs/v3.10.0-gb-probe.yaml +192 -0
  135. package/data/training-configs/v3.10.0-span-ship-probe.yaml +181 -0
  136. package/data/training-configs/v3.10.1-gb-probe2.yaml +189 -0
  137. package/data/training-configs/v3.10.1-span-ship-8k.yaml +180 -0
  138. package/data/training-configs/v3.11.0-deploc-feed.yaml +195 -0
  139. package/data/training-configs/v3.11.1-deploc-consolidate.yaml +192 -0
  140. package/data/training-configs/v3.12.0-crt-probe.yaml +195 -0
  141. package/data/training-configs/v3.13.0-two-phase.yaml +197 -0
  142. package/data/training-configs/v3.15.0-street-type.yaml +197 -0
  143. package/data/training-configs/v3.16.0-evidence-bundle.yaml +199 -0
  144. package/data/training-configs/v3.17.0-selective-locality.yaml +199 -0
  145. package/data/training-configs/v3.18.0-personname-floor.yaml +199 -0
  146. package/data/training-configs/v3.19.0-bundle-8k.yaml +199 -0
  147. package/data/training-configs/v3.2.0-fragment-span.yaml +177 -0
  148. package/data/training-configs/v3.20.0-bundle-v5-8k.yaml +201 -0
  149. package/data/training-configs/v3.21.0-bundle-noise-8k.yaml +203 -0
  150. package/data/training-configs/v3.22.0-bundle-v385feed-8k.yaml +192 -0
  151. package/data/training-configs/v3.23.0-bundle-guard-8k.yaml +195 -0
  152. package/data/training-configs/v3.24.0-bundle-ordinal-8k.yaml +195 -0
  153. package/data/training-configs/v3.3.0-no-fragment-probe.yaml +173 -0
  154. package/data/training-configs/v3.4.0-norway-coverage-probe.yaml +173 -0
  155. package/data/training-configs/v3.4.1-norway-full.yaml +171 -0
  156. package/data/training-configs/v3.5.0-numsplice-probe.yaml +183 -0
  157. package/data/training-configs/v3.5.1-numsplice-full.yaml +183 -0
  158. package/data/training-configs/v3.5.2-numsplice3-probe.yaml +199 -0
  159. package/data/training-configs/v3.5.3-numsplice23-probe.yaml +201 -0
  160. package/data/training-configs/v3.5.4-numsplice3-full.yaml +201 -0
  161. package/data/training-configs/v3.6.0-no-fragment-b4b.yaml +184 -0
  162. package/data/training-configs/v3.7.0-no-fragment-b4b3.yaml +185 -0
  163. package/data/training-configs/v3.7.1-no-fragment-b4b3-full.yaml +184 -0
  164. package/data/training-configs/v3.7.2-no-fragment-b4b3tweak.yaml +185 -0
  165. package/data/training-configs/v3.7.3-no-fragment-b4b3tweak-full.yaml +184 -0
  166. package/data/training-configs/v3.8.0-punct-fix-probe.yaml +186 -0
  167. package/data/training-configs/v3.8.1-punct-fix-full.yaml +186 -0
  168. package/data/training-configs/v3.8.2-nz-locale-probe.yaml +195 -0
  169. package/data/training-configs/v3.8.3-nz-probe2.yaml +197 -0
  170. package/data/training-configs/v3.8.4-latam-probe.yaml +192 -0
  171. package/data/training-configs/v3.8.5-latam-8k.yaml +191 -0
  172. package/data/training-configs/v3.8.6-latam-br-8k.yaml +193 -0
  173. package/data/training-configs/v3.9.0-ptro-probe.yaml +193 -0
  174. package/data/training-configs/v3.9.1-ptro-full.yaml +191 -0
  175. package/data/training-configs/v4.0.0-base-60k.yaml +233 -0
  176. package/data/training-configs/v4.0.1-base-60k.yaml +192 -0
  177. package/data/training-configs/v4.1.0-gb-venue-l0-2k.yaml +186 -0
  178. package/data/training-configs/v4.1.0-gb-venue-l1e2-2k.yaml +186 -0
  179. package/data/training-configs/v4.1.0-gb-venue-l1e4-2k.yaml +186 -0
  180. package/data/training-configs/v4.1.0-gb-venue-l1e6-2k.yaml +186 -0
  181. package/data/training-configs/v4.1.1-gb-venue-8k.yaml +186 -0
  182. package/data/training-configs/v4.1.2-gb-venue-l0-2k.yaml +186 -0
  183. package/data/training-configs/v4.1.2-gb-venue-l1e2-2k.yaml +186 -0
  184. package/data/training-configs/v4.1.2-gb-venue-l1e4-2k.yaml +186 -0
  185. package/data/training-configs/v4.1.2-gb-venue-l1e6-2k.yaml +186 -0
  186. package/data/training-configs/v4.1.3-gb-venue-country-8k.yaml +186 -0
  187. package/data/training-configs/v4.10.0-trailing-region-lowdose-8k.yaml +326 -0
  188. package/data/training-configs/v4.11.0-house-venue-intl-4k.yaml +336 -0
  189. package/data/training-configs/v4.12.0-house-venue-ewc1e5-4k.yaml +361 -0
  190. package/data/training-configs/v4.13.0-null-control-4k.yaml +305 -0
  191. package/data/training-configs/v4.14.0-house-venue-1k.yaml +329 -0
  192. package/data/training-configs/v4.15.0-ru-exposure-d0-2k.yaml +228 -0
  193. package/data/training-configs/v4.15.0-ru-exposure-d100-2k.yaml +206 -0
  194. package/data/training-configs/v4.15.0-ru-exposure-d1000-2k.yaml +205 -0
  195. package/data/training-configs/v4.15.0-ru-exposure-d10000-2k.yaml +205 -0
  196. package/data/training-configs/v4.15.0-ru-exposure-d100000-2k.yaml +207 -0
  197. package/data/training-configs/v4.2.0-base-anchor-v2-2k.yaml +228 -0
  198. package/data/training-configs/v4.2.0-base-anchor-v2.yaml +267 -0
  199. package/data/training-configs/v4.3.0-suffix-boundary-8k.yaml +211 -0
  200. package/data/training-configs/v4.3.1-suffix-boundary-target-dose-8k.yaml +218 -0
  201. package/data/training-configs/v4.3.2-suffix-boundary-idempotent-feed-8k.yaml +219 -0
  202. package/data/training-configs/v4.3.3-cooldown46k.yaml +212 -0
  203. package/data/training-configs/v4.3.3-suffix-boundary-base-60k.yaml +193 -0
  204. package/data/training-configs/v4.4.0-suffix-boundary-v2-base-60k.yaml +200 -0
  205. package/data/training-configs/v4.5.0-psc-frsurfaces-2k.yaml +194 -0
  206. package/data/training-configs/v4.5.0-psc-frsurfaces-8k.yaml +194 -0
  207. package/data/training-configs/v4.5.1-psc-frsurfaces-2k.yaml +195 -0
  208. package/data/training-configs/v4.5.2-psc-frsurfaces-2k.yaml +196 -0
  209. package/data/training-configs/v4.6.0-admin-surfaces-base-60k.yaml +203 -0
  210. package/data/training-configs/v4.6.0-admin-surfaces-smoke-500.yaml +194 -0
  211. package/data/training-configs/v4.7.0-trailing-region-structured-8k.yaml +220 -0
  212. package/data/training-configs/v4.7.0-trailing-region-structured-smoke-500.yaml +223 -0
  213. package/data/training-configs/v4.8.0-trailing-region-placement-8k.yaml +373 -0
  214. package/data/training-configs/v4.8.0-trailing-region-placement-smoke-500.yaml +378 -0
  215. package/data/training-configs/v4.9.0-trailing-region-leftcontext-8k.yaml +331 -0
  216. package/data/training-configs/v5.0.0-base-alltails-60k.yaml +305 -0
  217. package/data/training-configs/v5.0.1-null-1k.yaml +294 -0
  218. package/data/training-configs/v5.1.0-nostreetless-60k.yaml +291 -0
  219. package/data/training-configs/v5.2.0-seed-variance-60k.yaml +294 -0
  220. package/data/training-configs/v5.3.0-reviewed-ve-postcode-tail-60k.yaml +315 -0
  221. package/data/training-configs/v5.4.0-target-families-2k.yaml +336 -0
  222. package/data/training-configs/v5.4.0-target-families-60k.yaml +419 -0
  223. package/data/training-configs/v5.5.0-restored-generations-60k.yaml +397 -0
  224. package/data/training-configs/v5.6.0-bare-postcode-60k.yaml +454 -0
  225. package/data/training-configs/v5.7.0-region-code-and-unit-60k.yaml +476 -0
  226. package/data/training-configs/v5.8.0-gazetteer-choreography-off-60k.yaml +477 -0
  227. package/data/training-configs/v5.9.0-locality-shape-60k.yaml +416 -0
  228. package/data/training-configs/v6.0.0-register-surface-60k.yaml +468 -0
  229. package/data/training-configs/v7.0.0-de-holdout-60k.yaml +479 -0
  230. package/data/training-configs/v7.1.0-osm-exposure-60k.yaml +527 -0
  231. package/data/training-configs/v7.10.0-gb-county-60k-s43.yaml +606 -0
  232. package/data/training-configs/v7.10.0-gb-county-60k.yaml +603 -0
  233. package/data/training-configs/v7.2.0-address-systems-60k.yaml +527 -0
  234. package/data/training-configs/v7.3.0-null-4k.yaml +667 -0
  235. package/data/training-configs/v7.3.0-venue-4k.yaml +679 -0
  236. package/data/training-configs/v7.3.1-venue-nr-4k.yaml +678 -0
  237. package/data/training-configs/v7.3.2-venue-planet-4k.yaml +683 -0
  238. package/data/training-configs/v7.4.0-venue-planet-60k.yaml +702 -0
  239. package/data/training-configs/v7.4.1-venue-locality-60k.yaml +692 -0
  240. package/data/training-configs/v7.5.0-gb-region-4k.yaml +680 -0
  241. package/data/training-configs/v7.6.0-venue-gb-region-60k.yaml +714 -0
  242. package/data/training-configs/v7.7.0-no-ppd-60k.yaml +551 -0
  243. package/data/training-configs/v7.8.0-rights-clean-60k.yaml +562 -0
  244. package/data/training-configs/v7.9.0-country-gap-60k.yaml +609 -0
  245. package/data/training-configs/v8-cjk-control.yaml +68 -0
  246. package/data/training-configs/v8-cjk-full-2k.yaml +79 -0
  247. package/data/training-configs/v8-cjk-full.yaml +119 -0
  248. package/data/training-configs/v8-cjk-kana.yaml +82 -0
  249. package/data/training-configs/v8-cjk-kr-probe.yaml +79 -0
  250. package/data/training-configs/v8-cjk-kr.yaml +77 -0
  251. package/data/training-configs/v8-cjk-regs-probe.yaml +62 -0
  252. package/data/training-configs/v8-cjk-regs.yaml +93 -0
  253. package/data/training-configs/v8-cjk-shi.yaml +76 -0
  254. package/data/training-configs/v8-jp-full-2k.yaml +82 -0
  255. package/data/training-configs/v8-jp-full.yaml +134 -0
  256. package/data/training-configs/v8-jp-probe.yaml +55 -0
  257. package/data/training-configs/v8-leg2-charword.yaml +122 -0
  258. package/data/training-configs/v8-leg2-sp.yaml +113 -0
  259. package/data/training-configs/v8.0.0-postcode-move-p000-60k.yaml +645 -0
  260. package/data/training-configs/v8.0.0-postcode-move-p005-60k.yaml +646 -0
  261. package/data/training-configs/v8.0.0-postcode-move-p015-60k.yaml +646 -0
  262. package/data/training-configs/v8.1.0-base-60k-s43.yaml +666 -0
  263. package/data/training-configs/v8.1.0-base-60k.yaml +661 -0
  264. package/data/training-configs/v8.2.0-base-60k.yaml +654 -0
  265. package/data/training-configs/v8.3.0-base-c6-60k-no-primer-s42.yaml +679 -0
  266. package/data/training-configs/v8.3.0-base-c6-60k-no-primer-s43.yaml +679 -0
  267. package/data/training-configs/v8.3.0-base-c6-60k-s43.yaml +678 -0
  268. package/data/training-configs/v8.3.0-base-c6-60k.yaml +670 -0
  269. package/data/training-configs/v8.3.0-base-c6-90k-fp32master-s42.yaml +710 -0
  270. package/data/training-configs/v8.3.0-base-c6-90k-fp32master-s43.yaml +710 -0
  271. package/data/training-configs/v8.3.0-base-c6-90k-mixed-s42.yaml +688 -0
  272. package/data/training-configs/v8.3.0-base-c6-90k-mixed-s43.yaml +688 -0
  273. package/data/training-configs/v8.3.0-primer-wof-30k-s43.yaml +208 -0
  274. package/data/training-configs/v8.3.0-primer-wof-30k.yaml +201 -0
  275. package/data/training-configs/v8.3.0-probe-c4-split-digits-2k.yaml +661 -0
  276. package/data/training-configs/v8.3.0-probe-c5-mixed-digits-2k.yaml +660 -0
  277. package/data/training-configs/v8.3.0-probe-c6-isolated-punctuation-2k.yaml +660 -0
  278. package/data/training-configs/v8.3.0-probe-code-unit-2k.yaml +659 -0
  279. package/data/training-configs/v8.3.0-probe-rust-loader-2k.yaml +703 -0
  280. package/data/training-configs/v8.3.1-base-c6-90k-nppes088-s42.yaml +730 -0
  281. package/data/training-configs/v8.3.1-base-c6-90k-nppes088-s43.yaml +730 -0
  282. package/data/training-configs/v8.3.2-base-c6-90k-v0810-s42-r2.yaml +671 -0
  283. package/data/training-configs/v8.3.2-base-c6-90k-v0810-s42.yaml +713 -0
  284. package/data/training-configs/v8.3.2-base-c6-90k-v0810-s43.yaml +670 -0
  285. package/data/training-configs/v8.4.0-base-c6-90k-v0812-s42-r2.yaml +666 -0
  286. package/data/training-configs/v8.4.0-base-c6-90k-v0812-s42.yaml +690 -0
  287. package/data/training-configs/v8.4.0-base-c6-90k-v0812-s43.yaml +665 -0
  288. package/data/training-configs/v8.4.0-cpu-lifecycle.yaml +523 -0
  289. package/data/training-configs/v8.6.0-base-c6-90k-v0816-s42.yaml +689 -0
  290. package/data/training-configs/v8.6.1-base-c6-90k-v0817-s42.yaml +685 -0
  291. package/data/training-configs/v8.6.2-base-c6-90k-v0817-wof15-s42.yaml +686 -0
  292. package/data/training-configs/v8.6.3-base-c6-90k-v0818-wof15-s42.yaml +683 -0
  293. package/data/training-manifests/v0.7.10-gb-county.effective.json +2335 -0
  294. package/data/training-manifests/v0.7.10-gb-county.json +1132 -0
  295. package/data/training-manifests/v0.7.2-address-systems.effective.json +3 -2
  296. package/data/training-manifests/v0.7.7-no-ppd.json +550 -0
  297. package/data/training-manifests/v0.7.8-rights-clean.json +538 -0
  298. package/data/training-manifests/v0.7.9-country-gap.json +1132 -0
  299. package/data/training-manifests/v0.8.0.json +1136 -0
  300. package/data/training-manifests/v0.8.1.json +1136 -0
  301. package/data/training-manifests/v0.8.18-retention-overlay.effective.json +2370 -0
  302. package/data/training-manifests/v0.8.18-retention-overlay.json +4410 -0
  303. package/data/training-manifests/v0.8.2.json +1136 -0
  304. package/data/us-situs-sources.json +128 -0
  305. package/data/wof-refuted-parents.json +4256 -0
  306. package/lib/adapters/cordis/adapter.ts +66 -15
  307. package/lib/adapters/dedup-key.ts +3 -3
  308. package/lib/adapters/geonames/adapter.ts +4 -5
  309. package/lib/adapters/geonames/features/adapter.ts +208 -0
  310. package/lib/adapters/geonames/postal/adapter.ts +2 -3
  311. package/lib/adapters/gleif/adapter.ts +29 -10
  312. package/lib/adapters/libpostal-dictionary.ts +26 -5
  313. package/lib/adapters/openaddresses/adapter.ts +1 -2
  314. package/lib/adapters/osm/adapter.ts +86 -29
  315. package/lib/adapters/osm/license.ts +34 -0
  316. package/lib/adapters/overture/adapter.ts +1 -2
  317. package/lib/adapters/po-box/adapter.ts +3 -5
  318. package/lib/adapters/present.ts +23 -0
  319. package/lib/adapters/record-id.ts +88 -0
  320. package/lib/adapters/source-id.ts +2 -2
  321. package/lib/adapters/street/unit.ts +490 -0
  322. package/lib/adapters/wof/admin/json/adapter.ts +364 -18
  323. package/lib/adapters/wof/admin/json/explore.ts +294 -0
  324. package/lib/adapters/wof/admin/json/region-codes.ts +69 -0
  325. package/lib/adapters/wof/json-rows.ts +196 -40
  326. package/lib/adapters/wof/postalcode-json/adapter.ts +22 -12
  327. package/lib/adapters/wof/record-cache.ts +118 -0
  328. package/lib/adapters/wof/sample.ts +407 -0
  329. package/lib/adapters.ts +17 -0
  330. package/lib/au/adapters/gnaf/adapter.ts +1 -2
  331. package/lib/au/adapters/gnaf/assemble.ts +2 -1
  332. package/lib/au/recipes/delivery-guideline.ts +77 -0
  333. package/lib/au/recipes/unit-type-guideline.ts +99 -0
  334. package/lib/az/adapters/opendata/adapter.ts +382 -0
  335. package/lib/be/adapters/brussels/adapter.ts +2 -3
  336. package/lib/be/adapters/vlaanderen/adapter.ts +5 -6
  337. package/lib/be/adapters/wallonie/adapter.ts +3 -4
  338. package/lib/bs/adapters/gbpa/adapter.ts +243 -0
  339. package/lib/build/adapters.ts +8 -5
  340. package/lib/build/align/range.ts +300 -0
  341. package/lib/build/align/totals.ts +156 -0
  342. package/lib/build/align.ts +279 -110
  343. package/lib/build/budget.ts +162 -0
  344. package/lib/build/checkpoint.ts +10 -0
  345. package/lib/build/code-hash.ts +399 -0
  346. package/lib/build/component-check.ts +125 -0
  347. package/lib/build/eligibility.ts +10 -5
  348. package/lib/build/heap.ts +7 -0
  349. package/lib/build/holdout-check.ts +141 -0
  350. package/lib/build/inputs.ts +16 -2
  351. package/lib/build/lock.ts +38 -0
  352. package/lib/build/manifest.ts +126 -0
  353. package/lib/build/parallel.ts +635 -0
  354. package/lib/build/prior-output.ts +186 -0
  355. package/lib/build/rows.ts +6 -6
  356. package/lib/build/settings.ts +139 -0
  357. package/lib/build/source-record.ts +170 -0
  358. package/lib/build/types.ts +100 -2
  359. package/lib/build/worker.ts +359 -0
  360. package/lib/build.ts +146 -89
  361. package/lib/cjk/builder.ts +718 -0
  362. package/lib/cjk/foreign-places.ts +369 -0
  363. package/lib/cjk/overlay.ts +301 -0
  364. package/lib/cjk/registry.ts +316 -0
  365. package/lib/cjk/text.ts +199 -0
  366. package/lib/cn/recipes/organizational-units.ts +0 -1
  367. package/lib/cz/adapters/cuzk/adapter.ts +2 -3
  368. package/lib/cz/recipes/pcfirst-preposition.ts +0 -1
  369. package/lib/cz/tools/fetch/cuzk.ts +1 -1
  370. package/lib/de/fragment-board.ts +257 -0
  371. package/lib/de/recipes/locale.ts +47 -35
  372. package/lib/de/recipes/postfach-guideline.ts +68 -0
  373. package/lib/dk/adapters/inspire/adapter.ts +2 -3
  374. package/lib/ee/adapters/ads/adapter.ts +19 -2
  375. package/lib/env.ts +41 -5
  376. package/lib/es/adapters/bizkaia/adapter.ts +3 -3
  377. package/lib/es/adapters/catastro/adapter.ts +3 -3
  378. package/lib/es/adapters/gipuzkoa/adapter.ts +3 -3
  379. package/lib/es/adapters/navarra/adapter.ts +2 -2
  380. package/lib/es/cadastre.ts +0 -1
  381. package/lib/es/tools/fetch/bizkaia.ts +1 -1
  382. package/lib/es/tools/fetch/catastro.ts +6 -6
  383. package/lib/es/tools/fetch/navarra.ts +2 -2
  384. package/lib/fi/adapters/ryhti/adapter.ts +2 -3
  385. package/lib/fo/adapters/adressur/adapter.ts +234 -0
  386. package/lib/fr/adapters/annuaire-education/adapter.ts +2 -3
  387. package/lib/fr/adapters/ban/adapter.ts +19 -5
  388. package/lib/fr/adapters/finess/adapter.ts +2 -3
  389. package/lib/fr/recipes/admin-split.ts +17 -7
  390. package/lib/fr/recipes/bare-street.ts +0 -2
  391. package/lib/fr/recipes/fragment.ts +1 -8
  392. package/lib/fr/recipes/house-venue-tuples.ts +102 -0
  393. package/lib/fr/recipes/lieudit.ts +1 -2
  394. package/lib/fr/recipes/order.ts +6 -9
  395. package/lib/fr/recipes/unit-line-guideline.ts +108 -0
  396. package/lib/fr/street-decompose.ts +1 -1
  397. package/lib/gb/adapters/os-open/adapter.ts +24 -15
  398. package/lib/gb/county.ts +59 -0
  399. package/lib/gb/os-open/nearest-link.ts +1 -1
  400. package/lib/gb/os-open/open/names.ts +45 -5
  401. package/lib/gb/os-open/open/roads.ts +10 -10
  402. package/lib/gb/recipes/house-venue-tuples.ts +121 -0
  403. package/lib/gb/recipes/sub-building-guideline.ts +92 -0
  404. package/lib/gb/tools/fetch/os-open.ts +3 -3
  405. package/lib/gu/adapters/bsp/adapter.ts +424 -0
  406. package/lib/im/adapters/land-registry/adapter.ts +334 -0
  407. package/lib/index.ts +1 -1
  408. package/lib/inspire/stream.ts +3 -3
  409. package/lib/international/recipes/locale.ts +247 -52
  410. package/lib/it/adapters/anac/adapter.ts +4 -5
  411. package/lib/it/recipes/casella-postale-guideline.ts +90 -0
  412. package/lib/it/recipes/unit-line-guideline.ts +93 -0
  413. package/lib/it/tools/fetch/anac.ts +1 -1
  414. package/lib/jp/adapters/wof-admin/adapter.ts +1 -2
  415. package/lib/jp/corpus/assemble.ts +492 -0
  416. package/lib/jp/corpus/probe.ts +429 -0
  417. package/lib/jp/corpus/rows.ts +187 -0
  418. package/lib/jp/corpus/sources.ts +259 -0
  419. package/lib/jp/kana.ts +181 -0
  420. package/lib/jp/registers.ts +286 -0
  421. package/lib/jp/text.ts +76 -0
  422. package/lib/kr/adapters/juso/label-rows.ts +8 -1
  423. package/lib/kr/adapters/localdata/align.ts +14 -4
  424. package/lib/kr/adapters/localdata/key-index.ts +2 -25
  425. package/lib/kr/adapters/localdata/permit-rows.ts +28 -30
  426. package/lib/kr/corpus/assemble.ts +650 -0
  427. package/lib/kr/corpus/rows.ts +304 -0
  428. package/lib/kr/tools/fetch/localdata.ts +1 -1
  429. package/lib/li/adapters/llv/adapter.ts +240 -0
  430. package/lib/lu/adapters/bd-adresses/adapter.ts +2 -3
  431. package/lib/lv/adapters/varis/adapter.ts +1 -2
  432. package/lib/nl/adapters/kadaster/adapter.ts +4 -5
  433. package/lib/nl/recipes/postcode.ts +0 -1
  434. package/lib/no/adapters/matrikkelen/adapter.ts +2 -3
  435. package/lib/no/recipes/fragment.ts +0 -1
  436. package/lib/no/recipes/street/led.ts +0 -1
  437. package/lib/no/recipes/street.ts +0 -1
  438. package/lib/no/tools/fetch/matrikkelen.ts +2 -2
  439. package/lib/nz/recipes/unit-type-guideline.ts +100 -0
  440. package/lib/parquet/corpus-rows.ts +56 -0
  441. package/lib/parquet/duckdb.ts +38 -4
  442. package/lib/parquet/readers.ts +22 -1
  443. package/lib/parquet/record.ts +659 -0
  444. package/lib/parquet/schema.ts +61 -13
  445. package/lib/parquet/shuffle.ts +101 -1
  446. package/lib/parquet/span-sql.ts +1 -1
  447. package/lib/parquet/streams.ts +37 -8
  448. package/lib/parquet/writers.ts +523 -139
  449. package/lib/pl/adapters/emuia/adapter.ts +2 -3
  450. package/lib/recipes/address-points.ts +108 -0
  451. package/lib/recipes/anchor-absorption.ts +0 -1
  452. package/lib/recipes/bare/country.ts +0 -1
  453. package/lib/recipes/bare/postcode/eval.ts +5 -10
  454. package/lib/recipes/bare/postcode.ts +12 -36
  455. package/lib/recipes/boundary-stress.ts +1 -2
  456. package/lib/recipes/country-balanced.ts +108 -102
  457. package/lib/recipes/deepseek/batches.ts +323 -0
  458. package/lib/recipes/deepseek/client.ts +139 -0
  459. package/lib/recipes/deepseek/generate.ts +104 -0
  460. package/lib/recipes/deepseek/kryptonite.ts +164 -0
  461. package/lib/recipes/deepseek/prompts.ts +268 -0
  462. package/lib/recipes/deepseek/run.ts +243 -0
  463. package/lib/recipes/deepseek/transliteration.ts +242 -0
  464. package/lib/recipes/fragment-assay/build.ts +456 -0
  465. package/lib/recipes/fragment-assay/rows.ts +298 -0
  466. package/lib/recipes/fragment-assay/sources.ts +517 -0
  467. package/lib/recipes/house/venue/tuples.ts +151 -0
  468. package/lib/recipes/{house-venue.ts → house/venue.ts} +8 -3
  469. package/lib/recipes/intersection.ts +22 -31
  470. package/lib/recipes/po/box/cedex/recipe.ts +9 -7
  471. package/lib/recipes/po/box/cedex/sources.ts +2 -23
  472. package/lib/recipes/po/box.ts +0 -2
  473. package/lib/recipes/postal/guideline/leg.ts +179 -0
  474. package/lib/recipes/postal/guideline.ts +278 -0
  475. package/lib/recipes/postal/unit-guideline.ts +83 -0
  476. package/lib/recipes/scaffold.ts +61 -28
  477. package/lib/recipes/secondary.ts +295 -0
  478. package/lib/recipes/sources.ts +133 -4
  479. package/lib/recipes/street/affix.ts +17 -32
  480. package/lib/recipes/street/bare.ts +1 -3
  481. package/lib/recipes/street.ts +0 -1
  482. package/lib/recipes/sub/venue/context.ts +35 -9
  483. package/lib/recipes/sub/venue/sources.ts +55 -13
  484. package/lib/recipes/sub/venue.ts +69 -33
  485. package/lib/recipes/trailing-region.ts +0 -1
  486. package/lib/recipes/unit.ts +20 -9
  487. package/lib/recipes/venue.ts +0 -1
  488. package/lib/recipes.ts +6 -2
  489. package/lib/registers.ts +37 -0
  490. package/lib/ro/adapters/retea-scolara/adapter.ts +1 -2
  491. package/lib/runner.ts +2 -3
  492. package/lib/sg/recipes/register.ts +1 -2
  493. package/lib/si/recipes/bare-village.ts +0 -1
  494. package/lib/sk/adapters/inspire/adapter.ts +3 -4
  495. package/lib/source-register/corpus-inputs.ts +597 -0
  496. package/lib/source-register/effective-manifest.ts +42 -7
  497. package/lib/source-register/register.ts +6 -128
  498. package/lib/source-register/row-license.ts +189 -0
  499. package/lib/source-register/training-manifest.ts +230 -53
  500. package/lib/source-register/types.ts +21 -160
  501. package/lib/source-register.ts +11 -6
  502. package/lib/south-asia/recipes/register.ts +5 -5
  503. package/lib/street-index/reader.ts +62 -0
  504. package/lib/street-index/schema.ts +55 -0
  505. package/lib/street-index/write.ts +94 -0
  506. package/lib/subvenue/table.ts +1 -1
  507. package/lib/surfaces/locale.ts +43 -32
  508. package/lib/synthesizers/house-venue.ts +1 -1
  509. package/lib/synthesizers/utils.ts +85 -18
  510. package/lib/test-kit/corpus-recipe.ts +1 -1
  511. package/lib/test-kit.ts +171 -1
  512. package/lib/tools/align-canonical.ts +2 -5
  513. package/lib/tools/audit.ts +10 -8
  514. package/lib/tools/cjk/foreign-places.run.ts +36 -0
  515. package/lib/tools/cjk/overlay.run.ts +79 -0
  516. package/lib/tools/de-fragment-board.run.ts +49 -0
  517. package/lib/tools/deepseek.run.ts +73 -0
  518. package/lib/tools/fetch/download/retry.ts +32 -2
  519. package/lib/tools/fetch/geonames/dump.ts +1 -1
  520. package/lib/tools/fetch/geonames/postal.ts +3 -1
  521. package/lib/tools/fetch/gleif.ts +1 -1
  522. package/lib/tools/fetch/inspire-addresses.ts +1 -1
  523. package/lib/tools/fetch/openaddresses.ts +2 -2
  524. package/lib/tools/fetch/vlaanderen-ad.ts +1 -1
  525. package/lib/tools/fetch/wfs-harvest.ts +4 -4
  526. package/lib/tools/fetch/wikidata/session.ts +165 -0
  527. package/lib/tools/fetch/{wikidata-subvenue.ts → wikidata/subvenue.ts} +64 -10
  528. package/lib/tools/fetch/wikidata/vital-places/classify.ts +251 -0
  529. package/lib/tools/fetch/wikidata/vital-places/entities.ts +971 -0
  530. package/lib/tools/fetch/wikidata/vital-places/inventory.ts +154 -0
  531. package/lib/tools/fetch/wikidata/vital-places/progress.ts +45 -0
  532. package/lib/tools/fetch/wikidata/vital-places/qrank.ts +268 -0
  533. package/lib/tools/fetch/wikidata/vital-places/query-entities.ts +269 -0
  534. package/lib/tools/fetch/wikidata/vital-places/render.ts +266 -0
  535. package/lib/tools/fetch/wikidata/vital-places.ts +296 -0
  536. package/lib/tools/fetch.ts +3 -1
  537. package/lib/tools/fragment-assay.run.ts +65 -0
  538. package/lib/tools/golden/expand.ts +2 -3
  539. package/lib/tools/house-venue-tuples.run.ts +67 -0
  540. package/lib/tools/input-changes.ts +213 -0
  541. package/lib/tools/jp/corpus.run.ts +80 -0
  542. package/lib/tools/jp/probe-corpus.run.ts +60 -0
  543. package/lib/tools/jsonl-to-parquet.ts +29 -10
  544. package/lib/tools/kr-corpus.run.ts +83 -0
  545. package/lib/tools/migrate/overlay-parquet.ts +2 -1
  546. package/lib/tools/migrate/recipe-output.ts +2 -1
  547. package/lib/tools/overlay/deletions.ts +208 -0
  548. package/lib/tools/overlay/distinct-row-ids.ts +110 -0
  549. package/lib/tools/overlay/held-out-spans.ts +399 -0
  550. package/lib/tools/overlay/kryptonite.ts +46 -23
  551. package/lib/tools/overlay/manifest.ts +465 -154
  552. package/lib/tools/overlay/merge-source.ts +201 -11
  553. package/lib/tools/overlay/split/attribute.ts +159 -0
  554. package/lib/tools/overlay/split/overlay.ts +239 -0
  555. package/lib/tools/overlay/translit.ts +33 -17
  556. package/lib/tools/postcode/non-native-order.ts +337 -0
  557. package/lib/tools/{postcode-triples.ts → postcode/triples.ts} +1 -1
  558. package/lib/tools/registry-corpus.run.ts +67 -0
  559. package/lib/tools/secondary.run.ts +88 -0
  560. package/lib/tools/source-register/build.ts +55 -7
  561. package/lib/tools/street-index/build.run.ts +38 -0
  562. package/lib/tools/street-index/build.ts +129 -0
  563. package/lib/tools/sub/venue/lexicon.ts +2 -2
  564. package/lib/tools/sub/venue/wikidata.ts +2 -2
  565. package/lib/tools/support-index.ts +686 -0
  566. package/lib/tools/tw-corpus.run.ts +66 -0
  567. package/lib/tools/variety-sample.ts +635 -0
  568. package/lib/tools/vital-places.run.ts +123 -0
  569. package/lib/training/config/admission.ts +116 -0
  570. package/lib/training/config/load.ts +643 -0
  571. package/lib/training/config/python-yaml.ts +273 -0
  572. package/lib/training/config/resolved.ts +101 -0
  573. package/lib/training/config/schema.ts +339 -0
  574. package/lib/tw/corpus/assemble.ts +320 -0
  575. package/lib/tw/corpus/rows.ts +306 -0
  576. package/lib/tw/registers.ts +270 -0
  577. package/lib/types.ts +108 -20
  578. package/lib/us/abbrev/region-samples.ts +46 -0
  579. package/lib/us/abbrev/regions.ts +51 -0
  580. package/lib/us/adapters/fcc-bdc/adapter.ts +2 -3
  581. package/lib/us/adapters/state/hi-schools/adapter.ts +9 -7
  582. package/lib/us/adapters/state/hi-schools/workbook.ts +1 -1
  583. package/lib/us/adapters/state/ia-contractors/adapter.ts +16 -11
  584. package/lib/us/adapters/state/ny-notaries/adapter.ts +9 -7
  585. package/lib/us/adapters/state/tx-notaries/adapter.ts +9 -7
  586. package/lib/us/adapters/tiger/adapter.ts +2 -4
  587. package/lib/us/adapters/usgov/hrsa-fqhc/adapter.ts +13 -20
  588. package/lib/us/adapters/usgov/imls-pls/adapter.ts +18 -8
  589. package/lib/us/adapters/usgov/irs-bmf/adapter.ts +2 -3
  590. package/lib/us/adapters/usgov/nad/adapter.ts +59 -19
  591. package/lib/us/adapters/usgov/nppes/adapter.ts +28 -15
  592. package/lib/us/adapters/usgov/samhsa-treatment-locator/adapter.ts +19 -33
  593. package/lib/us/recipes/house-venue-tuples.ts +148 -0
  594. package/lib/us/recipes/skeleton-sources.ts +156 -0
  595. package/lib/us/state-country-codes.ts +25 -0
  596. package/lib/us/street-unit.ts +72 -0
  597. package/lib/us/tools/nad-skeletons.ts +395 -0
  598. package/lib/utils/align.ts +78 -33
  599. package/lib/utils/retention.ts +87 -0
  600. package/lib/utils/shape-supply.ts +102 -0
  601. package/lib/utils/split.ts +777 -138
  602. package/lib/utils/wof-json.ts +243 -50
  603. package/lib/uy/adapters/ide/adapter.ts +270 -0
  604. package/lib/ve/recipes/reviewed-postcode-tail.ts +30 -7
  605. package/out/adapters/cordis/adapter.d.ts +8 -5
  606. package/out/adapters/cordis/adapter.d.ts.map +1 -1
  607. package/out/adapters/cordis/adapter.js +45 -14
  608. package/out/adapters/cordis/adapter.js.map +1 -1
  609. package/out/adapters/dedup-key.d.ts +1 -1
  610. package/out/adapters/dedup-key.js +3 -3
  611. package/out/adapters/dedup-key.js.map +1 -1
  612. package/out/adapters/geonames/adapter.d.ts +11 -0
  613. package/out/adapters/geonames/adapter.d.ts.map +1 -1
  614. package/out/adapters/geonames/adapter.js +4 -5
  615. package/out/adapters/geonames/adapter.js.map +1 -1
  616. package/out/adapters/geonames/features/adapter.d.ts +56 -0
  617. package/out/adapters/geonames/features/adapter.d.ts.map +1 -0
  618. package/out/adapters/geonames/features/adapter.js +170 -0
  619. package/out/adapters/geonames/features/adapter.js.map +1 -0
  620. package/out/adapters/geonames/postal/adapter.d.ts.map +1 -1
  621. package/out/adapters/geonames/postal/adapter.js +2 -3
  622. package/out/adapters/geonames/postal/adapter.js.map +1 -1
  623. package/out/adapters/gleif/adapter.d.ts +2 -1
  624. package/out/adapters/gleif/adapter.d.ts.map +1 -1
  625. package/out/adapters/gleif/adapter.js +20 -10
  626. package/out/adapters/gleif/adapter.js.map +1 -1
  627. package/out/adapters/libpostal-dictionary.d.ts +11 -1
  628. package/out/adapters/libpostal-dictionary.d.ts.map +1 -1
  629. package/out/adapters/libpostal-dictionary.js +22 -5
  630. package/out/adapters/libpostal-dictionary.js.map +1 -1
  631. package/out/adapters/openaddresses/adapter.d.ts.map +1 -1
  632. package/out/adapters/openaddresses/adapter.js +1 -2
  633. package/out/adapters/openaddresses/adapter.js.map +1 -1
  634. package/out/adapters/osm/adapter.d.ts +26 -14
  635. package/out/adapters/osm/adapter.d.ts.map +1 -1
  636. package/out/adapters/osm/adapter.js +65 -29
  637. package/out/adapters/osm/adapter.js.map +1 -1
  638. package/out/adapters/osm/license.d.ts +30 -0
  639. package/out/adapters/osm/license.d.ts.map +1 -0
  640. package/out/adapters/osm/license.js +31 -0
  641. package/out/adapters/osm/license.js.map +1 -0
  642. package/out/adapters/overture/adapter.d.ts.map +1 -1
  643. package/out/adapters/overture/adapter.js +1 -2
  644. package/out/adapters/overture/adapter.js.map +1 -1
  645. package/out/adapters/po-box/adapter.d.ts.map +1 -1
  646. package/out/adapters/po-box/adapter.js +3 -5
  647. package/out/adapters/po-box/adapter.js.map +1 -1
  648. package/out/adapters/present.d.ts +12 -0
  649. package/out/adapters/present.d.ts.map +1 -0
  650. package/out/adapters/present.js +19 -0
  651. package/out/adapters/present.js.map +1 -0
  652. package/out/adapters/record-id.d.ts +54 -0
  653. package/out/adapters/record-id.d.ts.map +1 -0
  654. package/out/adapters/record-id.js +77 -0
  655. package/out/adapters/record-id.js.map +1 -0
  656. package/out/adapters/source-id.d.ts +2 -2
  657. package/out/adapters/source-id.d.ts.map +1 -1
  658. package/out/adapters/source-id.js.map +1 -1
  659. package/out/adapters/{street-line.d.ts → street/line.d.ts} +1 -1
  660. package/out/adapters/street/line.d.ts.map +1 -0
  661. package/out/adapters/{street-line.js → street/line.js} +1 -1
  662. package/out/adapters/street/line.js.map +1 -0
  663. package/out/adapters/street/unit.d.ts +124 -0
  664. package/out/adapters/street/unit.d.ts.map +1 -0
  665. package/out/adapters/street/unit.js +321 -0
  666. package/out/adapters/street/unit.js.map +1 -0
  667. package/out/adapters/wof/admin/json/adapter.d.ts +40 -13
  668. package/out/adapters/wof/admin/json/adapter.d.ts.map +1 -1
  669. package/out/adapters/wof/admin/json/adapter.js +285 -16
  670. package/out/adapters/wof/admin/json/adapter.js.map +1 -1
  671. package/out/adapters/wof/admin/json/explore.d.ts +114 -0
  672. package/out/adapters/wof/admin/json/explore.d.ts.map +1 -0
  673. package/out/adapters/wof/admin/json/explore.js +175 -0
  674. package/out/adapters/wof/admin/json/explore.js.map +1 -0
  675. package/out/adapters/wof/admin/json/region-codes.d.ts +18 -0
  676. package/out/adapters/wof/admin/json/region-codes.d.ts.map +1 -0
  677. package/out/adapters/wof/admin/json/region-codes.js +52 -0
  678. package/out/adapters/wof/admin/json/region-codes.js.map +1 -0
  679. package/out/adapters/wof/json-rows.d.ts +70 -15
  680. package/out/adapters/wof/json-rows.d.ts.map +1 -1
  681. package/out/adapters/wof/json-rows.js +112 -28
  682. package/out/adapters/wof/json-rows.js.map +1 -1
  683. package/out/adapters/wof/postalcode-json/adapter.d.ts +4 -7
  684. package/out/adapters/wof/postalcode-json/adapter.d.ts.map +1 -1
  685. package/out/adapters/wof/postalcode-json/adapter.js +16 -10
  686. package/out/adapters/wof/postalcode-json/adapter.js.map +1 -1
  687. package/out/adapters/wof/record-cache.d.ts +28 -0
  688. package/out/adapters/wof/record-cache.d.ts.map +1 -0
  689. package/out/adapters/wof/record-cache.js +90 -0
  690. package/out/adapters/wof/record-cache.js.map +1 -0
  691. package/out/adapters/wof/sample.d.ts +91 -0
  692. package/out/adapters/wof/sample.d.ts.map +1 -0
  693. package/out/adapters/wof/sample.js +296 -0
  694. package/out/adapters/wof/sample.js.map +1 -0
  695. package/out/adapters.d.ts +1 -0
  696. package/out/adapters.d.ts.map +1 -1
  697. package/out/adapters.js +17 -0
  698. package/out/adapters.js.map +1 -1
  699. package/out/au/adapters/gnaf/adapter.d.ts.map +1 -1
  700. package/out/au/adapters/gnaf/adapter.js +1 -2
  701. package/out/au/adapters/gnaf/adapter.js.map +1 -1
  702. package/out/au/adapters/gnaf/assemble.d.ts.map +1 -1
  703. package/out/au/adapters/gnaf/assemble.js +2 -1
  704. package/out/au/adapters/gnaf/assemble.js.map +1 -1
  705. package/out/au/recipes/delivery-guideline.d.ts +19 -0
  706. package/out/au/recipes/delivery-guideline.d.ts.map +1 -0
  707. package/out/au/recipes/delivery-guideline.js +60 -0
  708. package/out/au/recipes/delivery-guideline.js.map +1 -0
  709. package/out/au/recipes/unit-type-guideline.d.ts +25 -0
  710. package/out/au/recipes/unit-type-guideline.d.ts.map +1 -0
  711. package/out/au/recipes/unit-type-guideline.js +82 -0
  712. package/out/au/recipes/unit-type-guideline.js.map +1 -0
  713. package/out/az/adapters/opendata/adapter.d.ts +90 -0
  714. package/out/az/adapters/opendata/adapter.d.ts.map +1 -0
  715. package/out/az/adapters/opendata/adapter.js +277 -0
  716. package/out/az/adapters/opendata/adapter.js.map +1 -0
  717. package/out/be/adapters/brussels/adapter.d.ts +1 -1
  718. package/out/be/adapters/brussels/adapter.d.ts.map +1 -1
  719. package/out/be/adapters/brussels/adapter.js +2 -3
  720. package/out/be/adapters/brussels/adapter.js.map +1 -1
  721. package/out/be/adapters/vlaanderen/adapter.d.ts +1 -1
  722. package/out/be/adapters/vlaanderen/adapter.d.ts.map +1 -1
  723. package/out/be/adapters/vlaanderen/adapter.js +5 -6
  724. package/out/be/adapters/vlaanderen/adapter.js.map +1 -1
  725. package/out/be/adapters/wallonie/adapter.d.ts +2 -2
  726. package/out/be/adapters/wallonie/adapter.d.ts.map +1 -1
  727. package/out/be/adapters/wallonie/adapter.js +3 -4
  728. package/out/be/adapters/wallonie/adapter.js.map +1 -1
  729. package/out/bs/adapters/gbpa/adapter.d.ts +64 -0
  730. package/out/bs/adapters/gbpa/adapter.d.ts.map +1 -0
  731. package/out/bs/adapters/gbpa/adapter.js +184 -0
  732. package/out/bs/adapters/gbpa/adapter.js.map +1 -0
  733. package/out/build/adapters.d.ts +17 -0
  734. package/out/build/adapters.d.ts.map +1 -1
  735. package/out/build/adapters.js +2 -5
  736. package/out/build/adapters.js.map +1 -1
  737. package/out/build/align/range.d.ts +107 -0
  738. package/out/build/align/range.d.ts.map +1 -0
  739. package/out/build/align/range.js +196 -0
  740. package/out/build/align/range.js.map +1 -0
  741. package/out/build/align/totals.d.ts +71 -0
  742. package/out/build/align/totals.d.ts.map +1 -0
  743. package/out/build/align/totals.js +107 -0
  744. package/out/build/align/totals.js.map +1 -0
  745. package/out/build/align.d.ts +85 -0
  746. package/out/build/align.d.ts.map +1 -1
  747. package/out/build/align.js +164 -84
  748. package/out/build/align.js.map +1 -1
  749. package/out/build/budget.d.ts +111 -0
  750. package/out/build/budget.d.ts.map +1 -0
  751. package/out/build/budget.js +100 -0
  752. package/out/build/budget.js.map +1 -0
  753. package/out/build/checkpoint.d.ts +9 -0
  754. package/out/build/checkpoint.d.ts.map +1 -1
  755. package/out/build/checkpoint.js.map +1 -1
  756. package/out/build/code-hash.d.ts +87 -0
  757. package/out/build/code-hash.d.ts.map +1 -0
  758. package/out/build/code-hash.js +286 -0
  759. package/out/build/code-hash.js.map +1 -0
  760. package/out/build/component-check.d.ts +56 -0
  761. package/out/build/component-check.d.ts.map +1 -0
  762. package/out/build/component-check.js +96 -0
  763. package/out/build/component-check.js.map +1 -0
  764. package/out/build/eligibility.d.ts +5 -4
  765. package/out/build/eligibility.d.ts.map +1 -1
  766. package/out/build/eligibility.js +9 -4
  767. package/out/build/eligibility.js.map +1 -1
  768. package/out/build/heap.d.ts +4 -0
  769. package/out/build/heap.d.ts.map +1 -1
  770. package/out/build/heap.js +6 -0
  771. package/out/build/heap.js.map +1 -1
  772. package/out/build/holdout-check.d.ts +75 -0
  773. package/out/build/holdout-check.d.ts.map +1 -0
  774. package/out/build/holdout-check.js +88 -0
  775. package/out/build/holdout-check.js.map +1 -0
  776. package/out/build/inputs.d.ts +7 -0
  777. package/out/build/inputs.d.ts.map +1 -1
  778. package/out/build/inputs.js +9 -2
  779. package/out/build/inputs.js.map +1 -1
  780. package/out/build/lock.d.ts +25 -0
  781. package/out/build/lock.d.ts.map +1 -0
  782. package/out/build/lock.js +29 -0
  783. package/out/build/lock.js.map +1 -0
  784. package/out/build/manifest.d.ts +44 -0
  785. package/out/build/manifest.d.ts.map +1 -0
  786. package/out/build/manifest.js +80 -0
  787. package/out/build/manifest.js.map +1 -0
  788. package/out/build/parallel.d.ts +78 -0
  789. package/out/build/parallel.d.ts.map +1 -0
  790. package/out/build/parallel.js +448 -0
  791. package/out/build/parallel.js.map +1 -0
  792. package/out/build/prior-output.d.ts +76 -0
  793. package/out/build/prior-output.d.ts.map +1 -0
  794. package/out/build/prior-output.js +113 -0
  795. package/out/build/prior-output.js.map +1 -0
  796. package/out/build/rows.d.ts +4 -3
  797. package/out/build/rows.d.ts.map +1 -1
  798. package/out/build/rows.js +6 -6
  799. package/out/build/rows.js.map +1 -1
  800. package/out/build/settings.d.ts +53 -0
  801. package/out/build/settings.d.ts.map +1 -0
  802. package/out/build/settings.js +96 -0
  803. package/out/build/settings.js.map +1 -0
  804. package/out/build/source-record.d.ts +103 -0
  805. package/out/build/source-record.d.ts.map +1 -0
  806. package/out/build/source-record.js +89 -0
  807. package/out/build/source-record.js.map +1 -0
  808. package/out/build/types.d.ts +95 -2
  809. package/out/build/types.d.ts.map +1 -1
  810. package/out/build/types.js +22 -0
  811. package/out/build/types.js.map +1 -1
  812. package/out/build/worker.d.ts +119 -0
  813. package/out/build/worker.d.ts.map +1 -0
  814. package/out/build/worker.js +222 -0
  815. package/out/build/worker.js.map +1 -0
  816. package/out/build.d.ts +3 -0
  817. package/out/build.d.ts.map +1 -1
  818. package/out/build.js +120 -76
  819. package/out/build.js.map +1 -1
  820. package/out/cjk/builder.d.ts +298 -0
  821. package/out/cjk/builder.d.ts.map +1 -0
  822. package/out/cjk/builder.js +500 -0
  823. package/out/cjk/builder.js.map +1 -0
  824. package/out/cjk/foreign-places.d.ts +105 -0
  825. package/out/cjk/foreign-places.d.ts.map +1 -0
  826. package/out/cjk/foreign-places.js +281 -0
  827. package/out/cjk/foreign-places.js.map +1 -0
  828. package/out/cjk/overlay.d.ts +89 -0
  829. package/out/cjk/overlay.d.ts.map +1 -0
  830. package/out/cjk/overlay.js +194 -0
  831. package/out/cjk/overlay.js.map +1 -0
  832. package/out/cjk/registry.d.ts +81 -0
  833. package/out/cjk/registry.d.ts.map +1 -0
  834. package/out/cjk/registry.js +193 -0
  835. package/out/cjk/registry.js.map +1 -0
  836. package/out/cjk/text.d.ts +51 -0
  837. package/out/cjk/text.d.ts.map +1 -0
  838. package/out/cjk/text.js +171 -0
  839. package/out/cjk/text.js.map +1 -0
  840. package/out/cn/recipes/organizational-units.d.ts.map +1 -1
  841. package/out/cn/recipes/organizational-units.js +0 -1
  842. package/out/cn/recipes/organizational-units.js.map +1 -1
  843. package/out/cz/adapters/cuzk/adapter.d.ts.map +1 -1
  844. package/out/cz/adapters/cuzk/adapter.js +2 -3
  845. package/out/cz/adapters/cuzk/adapter.js.map +1 -1
  846. package/out/cz/recipes/pcfirst-preposition.d.ts.map +1 -1
  847. package/out/cz/recipes/pcfirst-preposition.js +0 -1
  848. package/out/cz/recipes/pcfirst-preposition.js.map +1 -1
  849. package/out/cz/tools/fetch/cuzk.js +1 -1
  850. package/out/cz/tools/fetch/cuzk.js.map +1 -1
  851. package/out/de/fragment-board.d.ts +79 -0
  852. package/out/de/fragment-board.d.ts.map +1 -0
  853. package/out/de/fragment-board.js +167 -0
  854. package/out/de/fragment-board.js.map +1 -0
  855. package/out/de/recipes/locale.d.ts +4 -7
  856. package/out/de/recipes/locale.d.ts.map +1 -1
  857. package/out/de/recipes/locale.js +37 -30
  858. package/out/de/recipes/locale.js.map +1 -1
  859. package/out/de/recipes/postfach-guideline.d.ts +17 -0
  860. package/out/de/recipes/postfach-guideline.d.ts.map +1 -0
  861. package/out/de/recipes/postfach-guideline.js +53 -0
  862. package/out/de/recipes/postfach-guideline.js.map +1 -0
  863. package/out/dk/adapters/inspire/adapter.d.ts.map +1 -1
  864. package/out/dk/adapters/inspire/adapter.js +2 -3
  865. package/out/dk/adapters/inspire/adapter.js.map +1 -1
  866. package/out/ee/adapters/ads/adapter.d.ts +6 -0
  867. package/out/ee/adapters/ads/adapter.d.ts.map +1 -1
  868. package/out/ee/adapters/ads/adapter.js +17 -2
  869. package/out/ee/adapters/ads/adapter.js.map +1 -1
  870. package/out/env.d.ts +21 -3
  871. package/out/env.d.ts.map +1 -1
  872. package/out/env.js +35 -5
  873. package/out/env.js.map +1 -1
  874. package/out/es/adapters/bizkaia/adapter.js +3 -3
  875. package/out/es/adapters/bizkaia/adapter.js.map +1 -1
  876. package/out/es/adapters/catastro/adapter.js +3 -3
  877. package/out/es/adapters/catastro/adapter.js.map +1 -1
  878. package/out/es/adapters/gipuzkoa/adapter.js +3 -3
  879. package/out/es/adapters/gipuzkoa/adapter.js.map +1 -1
  880. package/out/es/adapters/navarra/adapter.js +2 -2
  881. package/out/es/adapters/navarra/adapter.js.map +1 -1
  882. package/out/es/cadastre.d.ts.map +1 -1
  883. package/out/es/cadastre.js +0 -1
  884. package/out/es/cadastre.js.map +1 -1
  885. package/out/es/tools/fetch/bizkaia.js +1 -1
  886. package/out/es/tools/fetch/bizkaia.js.map +1 -1
  887. package/out/es/tools/fetch/catastro.d.ts +2 -2
  888. package/out/es/tools/fetch/catastro.d.ts.map +1 -1
  889. package/out/es/tools/fetch/catastro.js +3 -3
  890. package/out/es/tools/fetch/catastro.js.map +1 -1
  891. package/out/es/tools/fetch/navarra.d.ts +1 -1
  892. package/out/es/tools/fetch/navarra.d.ts.map +1 -1
  893. package/out/es/tools/fetch/navarra.js +1 -1
  894. package/out/es/tools/fetch/navarra.js.map +1 -1
  895. package/out/fi/adapters/ryhti/adapter.d.ts.map +1 -1
  896. package/out/fi/adapters/ryhti/adapter.js +2 -3
  897. package/out/fi/adapters/ryhti/adapter.js.map +1 -1
  898. package/out/fo/adapters/adressur/adapter.d.ts +63 -0
  899. package/out/fo/adapters/adressur/adapter.d.ts.map +1 -0
  900. package/out/fo/adapters/adressur/adapter.js +171 -0
  901. package/out/fo/adapters/adressur/adapter.js.map +1 -0
  902. package/out/fr/adapters/annuaire-education/adapter.d.ts.map +1 -1
  903. package/out/fr/adapters/annuaire-education/adapter.js +2 -3
  904. package/out/fr/adapters/annuaire-education/adapter.js.map +1 -1
  905. package/out/fr/adapters/ban/adapter.d.ts.map +1 -1
  906. package/out/fr/adapters/ban/adapter.js +18 -5
  907. package/out/fr/adapters/ban/adapter.js.map +1 -1
  908. package/out/fr/adapters/finess/adapter.d.ts.map +1 -1
  909. package/out/fr/adapters/finess/adapter.js +2 -3
  910. package/out/fr/adapters/finess/adapter.js.map +1 -1
  911. package/out/fr/recipes/admin-split.d.ts.map +1 -1
  912. package/out/fr/recipes/admin-split.js +9 -4
  913. package/out/fr/recipes/admin-split.js.map +1 -1
  914. package/out/fr/recipes/bare-street.d.ts.map +1 -1
  915. package/out/fr/recipes/bare-street.js +0 -2
  916. package/out/fr/recipes/bare-street.js.map +1 -1
  917. package/out/fr/recipes/fragment.d.ts.map +1 -1
  918. package/out/fr/recipes/fragment.js +1 -8
  919. package/out/fr/recipes/fragment.js.map +1 -1
  920. package/out/fr/recipes/house-venue-tuples.d.ts +36 -0
  921. package/out/fr/recipes/house-venue-tuples.d.ts.map +1 -0
  922. package/out/fr/recipes/house-venue-tuples.js +81 -0
  923. package/out/fr/recipes/house-venue-tuples.js.map +1 -0
  924. package/out/fr/recipes/lieudit.d.ts.map +1 -1
  925. package/out/fr/recipes/lieudit.js +1 -2
  926. package/out/fr/recipes/lieudit.js.map +1 -1
  927. package/out/fr/recipes/order.d.ts.map +1 -1
  928. package/out/fr/recipes/order.js +6 -10
  929. package/out/fr/recipes/order.js.map +1 -1
  930. package/out/fr/recipes/unit-line-guideline.d.ts +21 -0
  931. package/out/fr/recipes/unit-line-guideline.d.ts.map +1 -0
  932. package/out/fr/recipes/unit-line-guideline.js +87 -0
  933. package/out/fr/recipes/unit-line-guideline.js.map +1 -0
  934. package/out/fr/street-decompose.d.ts +1 -1
  935. package/out/fr/street-decompose.js +1 -1
  936. package/out/gb/adapters/os-open/adapter.d.ts +17 -11
  937. package/out/gb/adapters/os-open/adapter.d.ts.map +1 -1
  938. package/out/gb/adapters/os-open/adapter.js +21 -13
  939. package/out/gb/adapters/os-open/adapter.js.map +1 -1
  940. package/out/gb/county.d.ts +30 -0
  941. package/out/gb/county.d.ts.map +1 -0
  942. package/out/gb/county.js +51 -0
  943. package/out/gb/county.js.map +1 -0
  944. package/out/gb/os-open/nearest-link.js +1 -1
  945. package/out/gb/os-open/nearest-link.js.map +1 -1
  946. package/out/gb/os-open/open/names.d.ts +21 -5
  947. package/out/gb/os-open/open/names.d.ts.map +1 -1
  948. package/out/gb/os-open/open/names.js +23 -5
  949. package/out/gb/os-open/open/names.js.map +1 -1
  950. package/out/gb/os-open/open/roads.d.ts +10 -10
  951. package/out/gb/os-open/open/roads.js +7 -7
  952. package/out/gb/recipes/house-venue-tuples.d.ts +38 -0
  953. package/out/gb/recipes/house-venue-tuples.d.ts.map +1 -0
  954. package/out/gb/recipes/house-venue-tuples.js +88 -0
  955. package/out/gb/recipes/house-venue-tuples.js.map +1 -0
  956. package/out/gb/recipes/sub-building-guideline.d.ts +22 -0
  957. package/out/gb/recipes/sub-building-guideline.d.ts.map +1 -0
  958. package/out/gb/recipes/sub-building-guideline.js +73 -0
  959. package/out/gb/recipes/sub-building-guideline.js.map +1 -0
  960. package/out/gb/tools/fetch/os-open.d.ts +2 -2
  961. package/out/gb/tools/fetch/os-open.js +3 -3
  962. package/out/gb/tools/fetch/os-open.js.map +1 -1
  963. package/out/gu/adapters/bsp/adapter.d.ts +83 -0
  964. package/out/gu/adapters/bsp/adapter.d.ts.map +1 -0
  965. package/out/gu/adapters/bsp/adapter.js +338 -0
  966. package/out/gu/adapters/bsp/adapter.js.map +1 -0
  967. package/out/im/adapters/land-registry/adapter.d.ts +68 -0
  968. package/out/im/adapters/land-registry/adapter.d.ts.map +1 -0
  969. package/out/im/adapters/land-registry/adapter.js +257 -0
  970. package/out/im/adapters/land-registry/adapter.js.map +1 -0
  971. package/out/index.d.ts +1 -1
  972. package/out/index.js +1 -1
  973. package/out/inspire/stream.js +3 -3
  974. package/out/inspire/stream.js.map +1 -1
  975. package/out/international/recipes/locale.d.ts +46 -8
  976. package/out/international/recipes/locale.d.ts.map +1 -1
  977. package/out/international/recipes/locale.js +164 -41
  978. package/out/international/recipes/locale.js.map +1 -1
  979. package/out/it/adapters/anac/adapter.d.ts.map +1 -1
  980. package/out/it/adapters/anac/adapter.js +4 -5
  981. package/out/it/adapters/anac/adapter.js.map +1 -1
  982. package/out/it/recipes/casella-postale-guideline.d.ts +23 -0
  983. package/out/it/recipes/casella-postale-guideline.d.ts.map +1 -0
  984. package/out/it/recipes/casella-postale-guideline.js +68 -0
  985. package/out/it/recipes/casella-postale-guideline.js.map +1 -0
  986. package/out/it/recipes/unit-line-guideline.d.ts +20 -0
  987. package/out/it/recipes/unit-line-guideline.d.ts.map +1 -0
  988. package/out/it/recipes/unit-line-guideline.js +75 -0
  989. package/out/it/recipes/unit-line-guideline.js.map +1 -0
  990. package/out/it/tools/fetch/anac.d.ts +1 -1
  991. package/out/it/tools/fetch/anac.d.ts.map +1 -1
  992. package/out/jp/adapters/wof-admin/adapter.d.ts.map +1 -1
  993. package/out/jp/adapters/wof-admin/adapter.js +1 -2
  994. package/out/jp/adapters/wof-admin/adapter.js.map +1 -1
  995. package/out/jp/corpus/assemble.d.ts +107 -0
  996. package/out/jp/corpus/assemble.d.ts.map +1 -0
  997. package/out/jp/corpus/assemble.js +306 -0
  998. package/out/jp/corpus/assemble.js.map +1 -0
  999. package/out/jp/corpus/probe.d.ts +92 -0
  1000. package/out/jp/corpus/probe.d.ts.map +1 -0
  1001. package/out/jp/corpus/probe.js +276 -0
  1002. package/out/jp/corpus/probe.js.map +1 -0
  1003. package/out/jp/corpus/rows.d.ts +71 -0
  1004. package/out/jp/corpus/rows.d.ts.map +1 -0
  1005. package/out/jp/corpus/rows.js +146 -0
  1006. package/out/jp/corpus/rows.js.map +1 -0
  1007. package/out/jp/corpus/sources.d.ts +91 -0
  1008. package/out/jp/corpus/sources.d.ts.map +1 -0
  1009. package/out/jp/corpus/sources.js +171 -0
  1010. package/out/jp/corpus/sources.js.map +1 -0
  1011. package/out/jp/kana.d.ts +45 -0
  1012. package/out/jp/kana.d.ts.map +1 -0
  1013. package/out/jp/kana.js +138 -0
  1014. package/out/jp/kana.js.map +1 -0
  1015. package/out/jp/registers.d.ts +93 -0
  1016. package/out/jp/registers.d.ts.map +1 -0
  1017. package/out/jp/registers.js +209 -0
  1018. package/out/jp/registers.js.map +1 -0
  1019. package/out/jp/text.d.ts +41 -0
  1020. package/out/jp/text.d.ts.map +1 -0
  1021. package/out/jp/text.js +64 -0
  1022. package/out/jp/text.js.map +1 -0
  1023. package/out/kr/adapters/juso/label-rows.d.ts.map +1 -1
  1024. package/out/kr/adapters/juso/label-rows.js +6 -1
  1025. package/out/kr/adapters/juso/label-rows.js.map +1 -1
  1026. package/out/kr/adapters/localdata/align.d.ts.map +1 -1
  1027. package/out/kr/adapters/localdata/align.js +10 -4
  1028. package/out/kr/adapters/localdata/align.js.map +1 -1
  1029. package/out/kr/adapters/localdata/key-index.d.ts +0 -4
  1030. package/out/kr/adapters/localdata/key-index.d.ts.map +1 -1
  1031. package/out/kr/adapters/localdata/key-index.js +2 -23
  1032. package/out/kr/adapters/localdata/key-index.js.map +1 -1
  1033. package/out/kr/adapters/localdata/permit-rows.d.ts +8 -1
  1034. package/out/kr/adapters/localdata/permit-rows.d.ts.map +1 -1
  1035. package/out/kr/adapters/localdata/permit-rows.js +21 -23
  1036. package/out/kr/adapters/localdata/permit-rows.js.map +1 -1
  1037. package/out/kr/corpus/assemble.d.ts +145 -0
  1038. package/out/kr/corpus/assemble.d.ts.map +1 -0
  1039. package/out/kr/corpus/assemble.js +420 -0
  1040. package/out/kr/corpus/assemble.js.map +1 -0
  1041. package/out/kr/corpus/rows.d.ts +88 -0
  1042. package/out/kr/corpus/rows.d.ts.map +1 -0
  1043. package/out/kr/corpus/rows.js +242 -0
  1044. package/out/kr/corpus/rows.js.map +1 -0
  1045. package/out/kr/tools/fetch/localdata.d.ts +1 -1
  1046. package/out/kr/tools/fetch/localdata.d.ts.map +1 -1
  1047. package/out/li/adapters/llv/adapter.d.ts +69 -0
  1048. package/out/li/adapters/llv/adapter.d.ts.map +1 -0
  1049. package/out/li/adapters/llv/adapter.js +177 -0
  1050. package/out/li/adapters/llv/adapter.js.map +1 -0
  1051. package/out/lu/adapters/bd-adresses/adapter.d.ts +1 -1
  1052. package/out/lu/adapters/bd-adresses/adapter.d.ts.map +1 -1
  1053. package/out/lu/adapters/bd-adresses/adapter.js +2 -3
  1054. package/out/lu/adapters/bd-adresses/adapter.js.map +1 -1
  1055. package/out/lv/adapters/varis/adapter.d.ts.map +1 -1
  1056. package/out/lv/adapters/varis/adapter.js +1 -2
  1057. package/out/lv/adapters/varis/adapter.js.map +1 -1
  1058. package/out/nl/adapters/kadaster/adapter.d.ts.map +1 -1
  1059. package/out/nl/adapters/kadaster/adapter.js +4 -5
  1060. package/out/nl/adapters/kadaster/adapter.js.map +1 -1
  1061. package/out/nl/recipes/postcode.d.ts.map +1 -1
  1062. package/out/nl/recipes/postcode.js +0 -1
  1063. package/out/nl/recipes/postcode.js.map +1 -1
  1064. package/out/no/adapters/matrikkelen/adapter.d.ts.map +1 -1
  1065. package/out/no/adapters/matrikkelen/adapter.js +2 -3
  1066. package/out/no/adapters/matrikkelen/adapter.js.map +1 -1
  1067. package/out/no/recipes/fragment.d.ts.map +1 -1
  1068. package/out/no/recipes/fragment.js +0 -1
  1069. package/out/no/recipes/fragment.js.map +1 -1
  1070. package/out/no/recipes/street/led.d.ts.map +1 -1
  1071. package/out/no/recipes/street/led.js +0 -1
  1072. package/out/no/recipes/street/led.js.map +1 -1
  1073. package/out/no/recipes/street.d.ts.map +1 -1
  1074. package/out/no/recipes/street.js +0 -1
  1075. package/out/no/recipes/street.js.map +1 -1
  1076. package/out/no/tools/fetch/matrikkelen.d.ts +2 -2
  1077. package/out/no/tools/fetch/matrikkelen.d.ts.map +1 -1
  1078. package/out/nz/recipes/unit-type-guideline.d.ts +24 -0
  1079. package/out/nz/recipes/unit-type-guideline.d.ts.map +1 -0
  1080. package/out/nz/recipes/unit-type-guideline.js +81 -0
  1081. package/out/nz/recipes/unit-type-guideline.js.map +1 -0
  1082. package/out/parquet/corpus-rows.d.ts +25 -0
  1083. package/out/parquet/corpus-rows.d.ts.map +1 -0
  1084. package/out/parquet/corpus-rows.js +44 -0
  1085. package/out/parquet/corpus-rows.js.map +1 -0
  1086. package/out/parquet/duckdb.d.ts +24 -1
  1087. package/out/parquet/duckdb.d.ts.map +1 -1
  1088. package/out/parquet/duckdb.js +32 -3
  1089. package/out/parquet/duckdb.js.map +1 -1
  1090. package/out/parquet/readers.d.ts +7 -0
  1091. package/out/parquet/readers.d.ts.map +1 -1
  1092. package/out/parquet/readers.js +16 -1
  1093. package/out/parquet/readers.js.map +1 -1
  1094. package/out/parquet/record.d.ts +289 -0
  1095. package/out/parquet/record.d.ts.map +1 -0
  1096. package/out/parquet/record.js +383 -0
  1097. package/out/parquet/record.js.map +1 -0
  1098. package/out/parquet/schema.d.ts +41 -4
  1099. package/out/parquet/schema.d.ts.map +1 -1
  1100. package/out/parquet/schema.js +46 -11
  1101. package/out/parquet/schema.js.map +1 -1
  1102. package/out/parquet/shuffle.d.ts +41 -0
  1103. package/out/parquet/shuffle.d.ts.map +1 -1
  1104. package/out/parquet/shuffle.js +71 -1
  1105. package/out/parquet/shuffle.js.map +1 -1
  1106. package/out/parquet/span-sql.d.ts +1 -1
  1107. package/out/parquet/span-sql.js +1 -1
  1108. package/out/parquet/streams.d.ts +26 -3
  1109. package/out/parquet/streams.d.ts.map +1 -1
  1110. package/out/parquet/streams.js +15 -6
  1111. package/out/parquet/streams.js.map +1 -1
  1112. package/out/parquet/writers.d.ts +181 -32
  1113. package/out/parquet/writers.d.ts.map +1 -1
  1114. package/out/parquet/writers.js +332 -119
  1115. package/out/parquet/writers.js.map +1 -1
  1116. package/out/pl/adapters/emuia/adapter.d.ts +1 -1
  1117. package/out/pl/adapters/emuia/adapter.d.ts.map +1 -1
  1118. package/out/pl/adapters/emuia/adapter.js +2 -3
  1119. package/out/pl/adapters/emuia/adapter.js.map +1 -1
  1120. package/out/recipes/address-points.d.ts +47 -0
  1121. package/out/recipes/address-points.d.ts.map +1 -0
  1122. package/out/recipes/address-points.js +59 -0
  1123. package/out/recipes/address-points.js.map +1 -0
  1124. package/out/recipes/anchor-absorption.d.ts.map +1 -1
  1125. package/out/recipes/anchor-absorption.js +0 -1
  1126. package/out/recipes/anchor-absorption.js.map +1 -1
  1127. package/out/recipes/bare/country.d.ts.map +1 -1
  1128. package/out/recipes/bare/country.js +0 -1
  1129. package/out/recipes/bare/country.js.map +1 -1
  1130. package/out/recipes/bare/postcode/eval.d.ts +1 -5
  1131. package/out/recipes/bare/postcode/eval.d.ts.map +1 -1
  1132. package/out/recipes/bare/postcode/eval.js +4 -9
  1133. package/out/recipes/bare/postcode/eval.js.map +1 -1
  1134. package/out/recipes/bare/postcode.d.ts.map +1 -1
  1135. package/out/recipes/bare/postcode.js +11 -32
  1136. package/out/recipes/bare/postcode.js.map +1 -1
  1137. package/out/recipes/boundary-stress.d.ts.map +1 -1
  1138. package/out/recipes/boundary-stress.js +1 -2
  1139. package/out/recipes/boundary-stress.js.map +1 -1
  1140. package/out/recipes/country-balanced.d.ts.map +1 -1
  1141. package/out/recipes/country-balanced.js +91 -88
  1142. package/out/recipes/country-balanced.js.map +1 -1
  1143. package/out/recipes/deepseek/batches.d.ts +90 -0
  1144. package/out/recipes/deepseek/batches.d.ts.map +1 -0
  1145. package/out/recipes/deepseek/batches.js +228 -0
  1146. package/out/recipes/deepseek/batches.js.map +1 -0
  1147. package/out/recipes/deepseek/client.d.ts +99 -0
  1148. package/out/recipes/deepseek/client.d.ts.map +1 -0
  1149. package/out/recipes/deepseek/client.js +80 -0
  1150. package/out/recipes/deepseek/client.js.map +1 -0
  1151. package/out/recipes/deepseek/generate.d.ts +64 -0
  1152. package/out/recipes/deepseek/generate.d.ts.map +1 -0
  1153. package/out/recipes/deepseek/generate.js +58 -0
  1154. package/out/recipes/deepseek/generate.js.map +1 -0
  1155. package/out/recipes/deepseek/kryptonite.d.ts +36 -0
  1156. package/out/recipes/deepseek/kryptonite.d.ts.map +1 -0
  1157. package/out/recipes/deepseek/kryptonite.js +106 -0
  1158. package/out/recipes/deepseek/kryptonite.js.map +1 -0
  1159. package/out/recipes/deepseek/prompts.d.ts +65 -0
  1160. package/out/recipes/deepseek/prompts.d.ts.map +1 -0
  1161. package/out/recipes/deepseek/prompts.js +218 -0
  1162. package/out/recipes/deepseek/prompts.js.map +1 -0
  1163. package/out/recipes/deepseek/run.d.ts +100 -0
  1164. package/out/recipes/deepseek/run.d.ts.map +1 -0
  1165. package/out/recipes/deepseek/run.js +170 -0
  1166. package/out/recipes/deepseek/run.js.map +1 -0
  1167. package/out/recipes/deepseek/transliteration.d.ts +60 -0
  1168. package/out/recipes/deepseek/transliteration.d.ts.map +1 -0
  1169. package/out/recipes/deepseek/transliteration.js +158 -0
  1170. package/out/recipes/deepseek/transliteration.js.map +1 -0
  1171. package/out/recipes/fragment-assay/build.d.ts +70 -0
  1172. package/out/recipes/fragment-assay/build.d.ts.map +1 -0
  1173. package/out/recipes/fragment-assay/build.js +243 -0
  1174. package/out/recipes/fragment-assay/build.js.map +1 -0
  1175. package/out/recipes/fragment-assay/rows.d.ts +66 -0
  1176. package/out/recipes/fragment-assay/rows.d.ts.map +1 -0
  1177. package/out/recipes/fragment-assay/rows.js +225 -0
  1178. package/out/recipes/fragment-assay/rows.js.map +1 -0
  1179. package/out/recipes/fragment-assay/sources.d.ts +114 -0
  1180. package/out/recipes/fragment-assay/sources.d.ts.map +1 -0
  1181. package/out/recipes/fragment-assay/sources.js +402 -0
  1182. package/out/recipes/fragment-assay/sources.js.map +1 -0
  1183. package/out/recipes/house/venue/tuples.d.ts +93 -0
  1184. package/out/recipes/house/venue/tuples.d.ts.map +1 -0
  1185. package/out/recipes/house/venue/tuples.js +95 -0
  1186. package/out/recipes/house/venue/tuples.js.map +1 -0
  1187. package/out/recipes/{house-venue.d.ts → house/venue.d.ts} +3 -3
  1188. package/out/recipes/house/venue.d.ts.map +1 -0
  1189. package/out/recipes/{house-venue.js → house/venue.js} +9 -4
  1190. package/out/recipes/house/venue.js.map +1 -0
  1191. package/out/recipes/intersection.d.ts +3 -2
  1192. package/out/recipes/intersection.d.ts.map +1 -1
  1193. package/out/recipes/intersection.js +20 -27
  1194. package/out/recipes/intersection.js.map +1 -1
  1195. package/out/recipes/po/box/cedex/recipe.d.ts.map +1 -1
  1196. package/out/recipes/po/box/cedex/recipe.js +6 -6
  1197. package/out/recipes/po/box/cedex/recipe.js.map +1 -1
  1198. package/out/recipes/po/box/cedex/sources.d.ts +2 -45
  1199. package/out/recipes/po/box/cedex/sources.d.ts.map +1 -1
  1200. package/out/recipes/po/box/cedex/sources.js +0 -20
  1201. package/out/recipes/po/box/cedex/sources.js.map +1 -1
  1202. package/out/recipes/po/box.d.ts.map +1 -1
  1203. package/out/recipes/po/box.js +0 -2
  1204. package/out/recipes/po/box.js.map +1 -1
  1205. package/out/recipes/postal/guideline/leg.d.ts +100 -0
  1206. package/out/recipes/postal/guideline/leg.d.ts.map +1 -0
  1207. package/out/recipes/postal/guideline/leg.js +81 -0
  1208. package/out/recipes/postal/guideline/leg.js.map +1 -0
  1209. package/out/recipes/postal/guideline.d.ts +81 -0
  1210. package/out/recipes/postal/guideline.d.ts.map +1 -0
  1211. package/out/recipes/postal/guideline.js +196 -0
  1212. package/out/recipes/postal/guideline.js.map +1 -0
  1213. package/out/recipes/postal/unit-guideline.d.ts +30 -0
  1214. package/out/recipes/postal/unit-guideline.d.ts.map +1 -0
  1215. package/out/recipes/postal/unit-guideline.js +67 -0
  1216. package/out/recipes/postal/unit-guideline.js.map +1 -0
  1217. package/out/recipes/scaffold.d.ts +45 -24
  1218. package/out/recipes/scaffold.d.ts.map +1 -1
  1219. package/out/recipes/scaffold.js +31 -7
  1220. package/out/recipes/scaffold.js.map +1 -1
  1221. package/out/recipes/secondary.d.ts +67 -0
  1222. package/out/recipes/secondary.d.ts.map +1 -0
  1223. package/out/recipes/secondary.js +231 -0
  1224. package/out/recipes/secondary.js.map +1 -0
  1225. package/out/recipes/sources.d.ts.map +1 -1
  1226. package/out/recipes/sources.js +133 -4
  1227. package/out/recipes/sources.js.map +1 -1
  1228. package/out/recipes/street/affix.d.ts.map +1 -1
  1229. package/out/recipes/street/affix.js +8 -23
  1230. package/out/recipes/street/affix.js.map +1 -1
  1231. package/out/recipes/street/bare.d.ts.map +1 -1
  1232. package/out/recipes/street/bare.js +1 -3
  1233. package/out/recipes/street/bare.js.map +1 -1
  1234. package/out/recipes/street.d.ts.map +1 -1
  1235. package/out/recipes/street.js +0 -1
  1236. package/out/recipes/street.js.map +1 -1
  1237. package/out/recipes/sub/venue/context.d.ts +16 -3
  1238. package/out/recipes/sub/venue/context.d.ts.map +1 -1
  1239. package/out/recipes/sub/venue/context.js +31 -9
  1240. package/out/recipes/sub/venue/context.js.map +1 -1
  1241. package/out/recipes/sub/venue/sources.d.ts +42 -8
  1242. package/out/recipes/sub/venue/sources.d.ts.map +1 -1
  1243. package/out/recipes/sub/venue/sources.js +27 -7
  1244. package/out/recipes/sub/venue/sources.js.map +1 -1
  1245. package/out/recipes/sub/venue.d.ts +0 -6
  1246. package/out/recipes/sub/venue.d.ts.map +1 -1
  1247. package/out/recipes/sub/venue.js +36 -22
  1248. package/out/recipes/sub/venue.js.map +1 -1
  1249. package/out/recipes/trailing-region.d.ts.map +1 -1
  1250. package/out/recipes/trailing-region.js +0 -1
  1251. package/out/recipes/trailing-region.js.map +1 -1
  1252. package/out/recipes/unit.d.ts +4 -0
  1253. package/out/recipes/unit.d.ts.map +1 -1
  1254. package/out/recipes/unit.js +7 -8
  1255. package/out/recipes/unit.js.map +1 -1
  1256. package/out/recipes/venue.d.ts.map +1 -1
  1257. package/out/recipes/venue.js +0 -1
  1258. package/out/recipes/venue.js.map +1 -1
  1259. package/out/recipes.d.ts +1 -1
  1260. package/out/recipes.d.ts.map +1 -1
  1261. package/out/recipes.js +6 -2
  1262. package/out/recipes.js.map +1 -1
  1263. package/out/registers.d.ts +37 -0
  1264. package/out/registers.d.ts.map +1 -1
  1265. package/out/registers.js +37 -0
  1266. package/out/registers.js.map +1 -1
  1267. package/out/ro/adapters/retea-scolara/adapter.d.ts.map +1 -1
  1268. package/out/ro/adapters/retea-scolara/adapter.js +1 -2
  1269. package/out/ro/adapters/retea-scolara/adapter.js.map +1 -1
  1270. package/out/runner.d.ts.map +1 -1
  1271. package/out/runner.js +2 -3
  1272. package/out/runner.js.map +1 -1
  1273. package/out/sg/recipes/register.d.ts.map +1 -1
  1274. package/out/sg/recipes/register.js +1 -2
  1275. package/out/sg/recipes/register.js.map +1 -1
  1276. package/out/si/recipes/bare-village.d.ts.map +1 -1
  1277. package/out/si/recipes/bare-village.js +0 -1
  1278. package/out/si/recipes/bare-village.js.map +1 -1
  1279. package/out/sk/adapters/inspire/adapter.d.ts.map +1 -1
  1280. package/out/sk/adapters/inspire/adapter.js +3 -4
  1281. package/out/sk/adapters/inspire/adapter.js.map +1 -1
  1282. package/out/source-register/corpus-inputs.d.ts +289 -0
  1283. package/out/source-register/corpus-inputs.d.ts.map +1 -0
  1284. package/out/source-register/corpus-inputs.js +317 -0
  1285. package/out/source-register/corpus-inputs.js.map +1 -0
  1286. package/out/source-register/effective-manifest.d.ts +3 -1
  1287. package/out/source-register/effective-manifest.d.ts.map +1 -1
  1288. package/out/source-register/effective-manifest.js +37 -5
  1289. package/out/source-register/effective-manifest.js.map +1 -1
  1290. package/out/source-register/register.d.ts +3 -16
  1291. package/out/source-register/register.d.ts.map +1 -1
  1292. package/out/source-register/register.js +4 -95
  1293. package/out/source-register/register.js.map +1 -1
  1294. package/out/source-register/row-license.d.ts +82 -0
  1295. package/out/source-register/row-license.d.ts.map +1 -0
  1296. package/out/source-register/row-license.js +126 -0
  1297. package/out/source-register/row-license.js.map +1 -0
  1298. package/out/source-register/training-manifest.d.ts +129 -25
  1299. package/out/source-register/training-manifest.d.ts.map +1 -1
  1300. package/out/source-register/training-manifest.js +135 -33
  1301. package/out/source-register/training-manifest.js.map +1 -1
  1302. package/out/source-register/types.d.ts +22 -150
  1303. package/out/source-register/types.d.ts.map +1 -1
  1304. package/out/source-register/types.js +17 -43
  1305. package/out/source-register/types.js.map +1 -1
  1306. package/out/source-register.d.ts +4 -4
  1307. package/out/source-register.d.ts.map +1 -1
  1308. package/out/source-register.js +3 -3
  1309. package/out/source-register.js.map +1 -1
  1310. package/out/south-asia/recipes/register.d.ts +1 -1
  1311. package/out/south-asia/recipes/register.d.ts.map +1 -1
  1312. package/out/south-asia/recipes/register.js +5 -5
  1313. package/out/south-asia/recipes/register.js.map +1 -1
  1314. package/out/street-index/reader.d.ts +31 -0
  1315. package/out/street-index/reader.d.ts.map +1 -0
  1316. package/out/street-index/reader.js +47 -0
  1317. package/out/street-index/reader.js.map +1 -0
  1318. package/out/street-index/schema.d.ts +42 -0
  1319. package/out/street-index/schema.d.ts.map +1 -0
  1320. package/out/street-index/schema.js +27 -0
  1321. package/out/street-index/schema.js.map +1 -0
  1322. package/out/street-index/write.d.ts +37 -0
  1323. package/out/street-index/write.d.ts.map +1 -0
  1324. package/out/street-index/write.js +52 -0
  1325. package/out/street-index/write.js.map +1 -0
  1326. package/out/subvenue/table.d.ts +1 -1
  1327. package/out/subvenue/table.js +1 -1
  1328. package/out/surfaces/locale.d.ts +15 -17
  1329. package/out/surfaces/locale.d.ts.map +1 -1
  1330. package/out/surfaces/locale.js +29 -22
  1331. package/out/surfaces/locale.js.map +1 -1
  1332. package/out/synthesizers/house-venue.js +1 -1
  1333. package/out/synthesizers/house-venue.js.map +1 -1
  1334. package/out/synthesizers/utils.d.ts +5 -4
  1335. package/out/synthesizers/utils.d.ts.map +1 -1
  1336. package/out/synthesizers/utils.js +80 -18
  1337. package/out/synthesizers/utils.js.map +1 -1
  1338. package/out/test-kit/corpus-recipe.d.ts +1 -1
  1339. package/out/test-kit/corpus-recipe.d.ts.map +1 -1
  1340. package/out/test-kit.d.ts +61 -0
  1341. package/out/test-kit.d.ts.map +1 -1
  1342. package/out/test-kit.js +144 -1
  1343. package/out/test-kit.js.map +1 -1
  1344. package/out/tools/align-canonical.d.ts +0 -1
  1345. package/out/tools/align-canonical.d.ts.map +1 -1
  1346. package/out/tools/align-canonical.js +2 -4
  1347. package/out/tools/align-canonical.js.map +1 -1
  1348. package/out/tools/audit.d.ts.map +1 -1
  1349. package/out/tools/audit.js +4 -5
  1350. package/out/tools/audit.js.map +1 -1
  1351. package/out/tools/cjk/foreign-places.run.d.ts +13 -0
  1352. package/out/tools/cjk/foreign-places.run.d.ts.map +1 -0
  1353. package/out/tools/cjk/foreign-places.run.js +31 -0
  1354. package/out/tools/cjk/foreign-places.run.js.map +1 -0
  1355. package/out/tools/cjk/overlay.run.d.ts +18 -0
  1356. package/out/tools/cjk/overlay.run.d.ts.map +1 -0
  1357. package/out/tools/cjk/overlay.run.js +67 -0
  1358. package/out/tools/cjk/overlay.run.js.map +1 -0
  1359. package/out/tools/de-fragment-board.run.d.ts +14 -0
  1360. package/out/tools/de-fragment-board.run.d.ts.map +1 -0
  1361. package/out/tools/de-fragment-board.run.js +37 -0
  1362. package/out/tools/de-fragment-board.run.js.map +1 -0
  1363. package/out/tools/deepseek.run.d.ts +17 -0
  1364. package/out/tools/deepseek.run.d.ts.map +1 -0
  1365. package/out/tools/deepseek.run.js +62 -0
  1366. package/out/tools/deepseek.run.js.map +1 -0
  1367. package/out/tools/fetch/download/retry.d.ts +6 -0
  1368. package/out/tools/fetch/download/retry.d.ts.map +1 -1
  1369. package/out/tools/fetch/download/retry.js +22 -2
  1370. package/out/tools/fetch/download/retry.js.map +1 -1
  1371. package/out/tools/fetch/geonames/dump.d.ts +1 -1
  1372. package/out/tools/fetch/geonames/dump.d.ts.map +1 -1
  1373. package/out/tools/fetch/geonames/postal.d.ts +1 -1
  1374. package/out/tools/fetch/geonames/postal.d.ts.map +1 -1
  1375. package/out/tools/fetch/geonames/postal.js +2 -0
  1376. package/out/tools/fetch/geonames/postal.js.map +1 -1
  1377. package/out/tools/fetch/gleif.js +1 -1
  1378. package/out/tools/fetch/gleif.js.map +1 -1
  1379. package/out/tools/fetch/inspire-addresses.js +1 -1
  1380. package/out/tools/fetch/inspire-addresses.js.map +1 -1
  1381. package/out/tools/fetch/openaddresses.js +2 -2
  1382. package/out/tools/fetch/openaddresses.js.map +1 -1
  1383. package/out/tools/fetch/vlaanderen-ad.js +1 -1
  1384. package/out/tools/fetch/vlaanderen-ad.js.map +1 -1
  1385. package/out/tools/fetch/wfs-harvest.js +4 -4
  1386. package/out/tools/fetch/wfs-harvest.js.map +1 -1
  1387. package/out/tools/fetch/wikidata/session.d.ts +80 -0
  1388. package/out/tools/fetch/wikidata/session.d.ts.map +1 -0
  1389. package/out/tools/fetch/wikidata/session.js +122 -0
  1390. package/out/tools/fetch/wikidata/session.js.map +1 -0
  1391. package/out/tools/fetch/{wikidata-subvenue.d.ts → wikidata/subvenue.d.ts} +33 -1
  1392. package/out/tools/fetch/wikidata/subvenue.d.ts.map +1 -0
  1393. package/out/tools/fetch/{wikidata-subvenue.js → wikidata/subvenue.js} +28 -11
  1394. package/out/tools/fetch/wikidata/subvenue.js.map +1 -0
  1395. package/out/tools/fetch/wikidata/vital-places/classify.d.ts +115 -0
  1396. package/out/tools/fetch/wikidata/vital-places/classify.d.ts.map +1 -0
  1397. package/out/tools/fetch/wikidata/vital-places/classify.js +187 -0
  1398. package/out/tools/fetch/wikidata/vital-places/classify.js.map +1 -0
  1399. package/out/tools/fetch/wikidata/vital-places/entities.d.ts +379 -0
  1400. package/out/tools/fetch/wikidata/vital-places/entities.d.ts.map +1 -0
  1401. package/out/tools/fetch/wikidata/vital-places/entities.js +596 -0
  1402. package/out/tools/fetch/wikidata/vital-places/entities.js.map +1 -0
  1403. package/out/tools/fetch/wikidata/vital-places/inventory.d.ts +70 -0
  1404. package/out/tools/fetch/wikidata/vital-places/inventory.d.ts.map +1 -0
  1405. package/out/tools/fetch/wikidata/vital-places/inventory.js +84 -0
  1406. package/out/tools/fetch/wikidata/vital-places/inventory.js.map +1 -0
  1407. package/out/tools/fetch/wikidata/vital-places/progress.d.ts +26 -0
  1408. package/out/tools/fetch/wikidata/vital-places/progress.d.ts.map +1 -0
  1409. package/out/tools/fetch/wikidata/vital-places/progress.js +33 -0
  1410. package/out/tools/fetch/wikidata/vital-places/progress.js.map +1 -0
  1411. package/out/tools/fetch/wikidata/vital-places/qrank.d.ts +116 -0
  1412. package/out/tools/fetch/wikidata/vital-places/qrank.d.ts.map +1 -0
  1413. package/out/tools/fetch/wikidata/vital-places/qrank.js +167 -0
  1414. package/out/tools/fetch/wikidata/vital-places/qrank.js.map +1 -0
  1415. package/out/tools/fetch/wikidata/vital-places/query-entities.d.ts +65 -0
  1416. package/out/tools/fetch/wikidata/vital-places/query-entities.d.ts.map +1 -0
  1417. package/out/tools/fetch/wikidata/vital-places/query-entities.js +189 -0
  1418. package/out/tools/fetch/wikidata/vital-places/query-entities.js.map +1 -0
  1419. package/out/tools/fetch/wikidata/vital-places/render.d.ts +129 -0
  1420. package/out/tools/fetch/wikidata/vital-places/render.d.ts.map +1 -0
  1421. package/out/tools/fetch/wikidata/vital-places/render.js +186 -0
  1422. package/out/tools/fetch/wikidata/vital-places/render.js.map +1 -0
  1423. package/out/tools/fetch/wikidata/vital-places.d.ts +121 -0
  1424. package/out/tools/fetch/wikidata/vital-places.d.ts.map +1 -0
  1425. package/out/tools/fetch/wikidata/vital-places.js +171 -0
  1426. package/out/tools/fetch/wikidata/vital-places.js.map +1 -0
  1427. package/out/tools/fetch.d.ts +3 -1
  1428. package/out/tools/fetch.d.ts.map +1 -1
  1429. package/out/tools/fetch.js +3 -1
  1430. package/out/tools/fetch.js.map +1 -1
  1431. package/out/tools/fragment-assay.run.d.ts +20 -0
  1432. package/out/tools/fragment-assay.run.d.ts.map +1 -0
  1433. package/out/tools/fragment-assay.run.js +59 -0
  1434. package/out/tools/fragment-assay.run.js.map +1 -0
  1435. package/out/tools/golden/expand.d.ts.map +1 -1
  1436. package/out/tools/golden/expand.js +2 -3
  1437. package/out/tools/golden/expand.js.map +1 -1
  1438. package/out/tools/house-venue-tuples.run.d.ts +14 -0
  1439. package/out/tools/house-venue-tuples.run.d.ts.map +1 -0
  1440. package/out/tools/house-venue-tuples.run.js +48 -0
  1441. package/out/tools/house-venue-tuples.run.js.map +1 -0
  1442. package/out/tools/input-changes.d.ts +110 -0
  1443. package/out/tools/input-changes.d.ts.map +1 -0
  1444. package/out/tools/input-changes.js +104 -0
  1445. package/out/tools/input-changes.js.map +1 -0
  1446. package/out/tools/jp/corpus.run.d.ts +16 -0
  1447. package/out/tools/jp/corpus.run.d.ts.map +1 -0
  1448. package/out/tools/jp/corpus.run.js +72 -0
  1449. package/out/tools/jp/corpus.run.js.map +1 -0
  1450. package/out/tools/jp/probe-corpus.run.d.ts +14 -0
  1451. package/out/tools/jp/probe-corpus.run.d.ts.map +1 -0
  1452. package/out/tools/jp/probe-corpus.run.js +51 -0
  1453. package/out/tools/jp/probe-corpus.run.js.map +1 -0
  1454. package/out/tools/jsonl-to-parquet.d.ts +10 -0
  1455. package/out/tools/jsonl-to-parquet.d.ts.map +1 -1
  1456. package/out/tools/jsonl-to-parquet.js +13 -10
  1457. package/out/tools/jsonl-to-parquet.js.map +1 -1
  1458. package/out/tools/kr-corpus.run.d.ts +16 -0
  1459. package/out/tools/kr-corpus.run.d.ts.map +1 -0
  1460. package/out/tools/kr-corpus.run.js +76 -0
  1461. package/out/tools/kr-corpus.run.js.map +1 -0
  1462. package/out/tools/migrate/overlay-parquet.d.ts.map +1 -1
  1463. package/out/tools/migrate/overlay-parquet.js +2 -1
  1464. package/out/tools/migrate/overlay-parquet.js.map +1 -1
  1465. package/out/tools/migrate/recipe-output.d.ts.map +1 -1
  1466. package/out/tools/migrate/recipe-output.js +2 -1
  1467. package/out/tools/migrate/recipe-output.js.map +1 -1
  1468. package/out/tools/overlay/deletions.d.ts +122 -0
  1469. package/out/tools/overlay/deletions.d.ts.map +1 -0
  1470. package/out/tools/overlay/deletions.js +107 -0
  1471. package/out/tools/overlay/deletions.js.map +1 -0
  1472. package/out/tools/overlay/distinct-row-ids.d.ts +48 -0
  1473. package/out/tools/overlay/distinct-row-ids.d.ts.map +1 -0
  1474. package/out/tools/overlay/distinct-row-ids.js +57 -0
  1475. package/out/tools/overlay/distinct-row-ids.js.map +1 -0
  1476. package/out/tools/overlay/held-out-spans.d.ts +114 -0
  1477. package/out/tools/overlay/held-out-spans.d.ts.map +1 -0
  1478. package/out/tools/overlay/held-out-spans.js +237 -0
  1479. package/out/tools/overlay/held-out-spans.js.map +1 -0
  1480. package/out/tools/overlay/kryptonite.d.ts +10 -1
  1481. package/out/tools/overlay/kryptonite.d.ts.map +1 -1
  1482. package/out/tools/overlay/kryptonite.js +36 -21
  1483. package/out/tools/overlay/kryptonite.js.map +1 -1
  1484. package/out/tools/overlay/manifest.d.ts +62 -57
  1485. package/out/tools/overlay/manifest.d.ts.map +1 -1
  1486. package/out/tools/overlay/manifest.js +280 -106
  1487. package/out/tools/overlay/manifest.js.map +1 -1
  1488. package/out/tools/overlay/merge-source.d.ts +68 -1
  1489. package/out/tools/overlay/merge-source.d.ts.map +1 -1
  1490. package/out/tools/overlay/merge-source.js +126 -7
  1491. package/out/tools/overlay/merge-source.js.map +1 -1
  1492. package/out/tools/overlay/split/attribute.d.ts +114 -0
  1493. package/out/tools/overlay/split/attribute.d.ts.map +1 -0
  1494. package/out/tools/overlay/split/attribute.js +90 -0
  1495. package/out/tools/overlay/split/attribute.js.map +1 -0
  1496. package/out/tools/overlay/{split-slice.d.ts → split/overlay.d.ts} +22 -12
  1497. package/out/tools/overlay/split/overlay.d.ts.map +1 -0
  1498. package/out/tools/overlay/split/overlay.js +132 -0
  1499. package/out/tools/overlay/split/overlay.js.map +1 -0
  1500. package/out/tools/overlay/translit.d.ts +1 -1
  1501. package/out/tools/overlay/translit.d.ts.map +1 -1
  1502. package/out/tools/overlay/translit.js +22 -17
  1503. package/out/tools/overlay/translit.js.map +1 -1
  1504. package/out/tools/postcode/non-native-order.d.ts +148 -0
  1505. package/out/tools/postcode/non-native-order.d.ts.map +1 -0
  1506. package/out/tools/postcode/non-native-order.js +211 -0
  1507. package/out/tools/postcode/non-native-order.js.map +1 -0
  1508. package/out/tools/{postcode-triples.d.ts → postcode/triples.d.ts} +1 -1
  1509. package/out/tools/postcode/triples.d.ts.map +1 -0
  1510. package/out/tools/{postcode-triples.js → postcode/triples.js} +2 -2
  1511. package/out/tools/postcode/triples.js.map +1 -0
  1512. package/out/tools/registry-corpus.run.d.ts +14 -0
  1513. package/out/tools/registry-corpus.run.d.ts.map +1 -0
  1514. package/out/tools/registry-corpus.run.js +58 -0
  1515. package/out/tools/registry-corpus.run.js.map +1 -0
  1516. package/out/tools/secondary.run.d.ts +14 -0
  1517. package/out/tools/secondary.run.d.ts.map +1 -0
  1518. package/out/tools/secondary.run.js +65 -0
  1519. package/out/tools/secondary.run.js.map +1 -0
  1520. package/out/tools/source-register/build.d.ts +11 -1
  1521. package/out/tools/source-register/build.d.ts.map +1 -1
  1522. package/out/tools/source-register/build.js +28 -5
  1523. package/out/tools/source-register/build.js.map +1 -1
  1524. package/out/tools/street-index/build.d.ts +51 -0
  1525. package/out/tools/street-index/build.d.ts.map +1 -0
  1526. package/out/tools/street-index/build.js +86 -0
  1527. package/out/tools/street-index/build.js.map +1 -0
  1528. package/out/tools/street-index/build.run.d.ts +11 -0
  1529. package/out/tools/street-index/build.run.d.ts.map +1 -0
  1530. package/out/tools/street-index/build.run.js +33 -0
  1531. package/out/tools/street-index/build.run.js.map +1 -0
  1532. package/out/tools/sub/venue/lexicon.d.ts +2 -2
  1533. package/out/tools/sub/venue/lexicon.d.ts.map +1 -1
  1534. package/out/tools/sub/venue/wikidata.d.ts +1 -1
  1535. package/out/tools/sub/venue/wikidata.js +2 -2
  1536. package/out/tools/sub/venue/wikidata.js.map +1 -1
  1537. package/out/tools/support-index.d.ts +185 -0
  1538. package/out/tools/support-index.d.ts.map +1 -0
  1539. package/out/tools/support-index.js +432 -0
  1540. package/out/tools/support-index.js.map +1 -0
  1541. package/out/tools/tw-corpus.run.d.ts +14 -0
  1542. package/out/tools/tw-corpus.run.d.ts.map +1 -0
  1543. package/out/tools/tw-corpus.run.js +58 -0
  1544. package/out/tools/tw-corpus.run.js.map +1 -0
  1545. package/out/tools/variety-sample.d.ts +198 -0
  1546. package/out/tools/variety-sample.d.ts.map +1 -0
  1547. package/out/tools/variety-sample.js +419 -0
  1548. package/out/tools/variety-sample.js.map +1 -0
  1549. package/out/tools/vital-places.run.d.ts +15 -0
  1550. package/out/tools/vital-places.run.d.ts.map +1 -0
  1551. package/out/tools/vital-places.run.js +96 -0
  1552. package/out/tools/vital-places.run.js.map +1 -0
  1553. package/out/training/config/admission.d.ts +49 -0
  1554. package/out/training/config/admission.d.ts.map +1 -0
  1555. package/out/training/config/admission.js +67 -0
  1556. package/out/training/config/admission.js.map +1 -0
  1557. package/out/training/config/load.d.ts +127 -0
  1558. package/out/training/config/load.d.ts.map +1 -0
  1559. package/out/training/config/load.js +420 -0
  1560. package/out/training/config/load.js.map +1 -0
  1561. package/out/training/config/python-yaml.d.ts +42 -0
  1562. package/out/training/config/python-yaml.d.ts.map +1 -0
  1563. package/out/training/config/python-yaml.js +229 -0
  1564. package/out/training/config/python-yaml.js.map +1 -0
  1565. package/out/training/config/resolved.d.ts +52 -0
  1566. package/out/training/config/resolved.d.ts.map +1 -0
  1567. package/out/training/config/resolved.js +51 -0
  1568. package/out/training/config/resolved.js.map +1 -0
  1569. package/out/training/config/schema.d.ts +1147 -0
  1570. package/out/training/config/schema.d.ts.map +1 -0
  1571. package/out/training/config/schema.js +286 -0
  1572. package/out/training/config/schema.js.map +1 -0
  1573. package/out/tw/corpus/assemble.d.ts +85 -0
  1574. package/out/tw/corpus/assemble.d.ts.map +1 -0
  1575. package/out/tw/corpus/assemble.js +194 -0
  1576. package/out/tw/corpus/assemble.js.map +1 -0
  1577. package/out/tw/corpus/rows.d.ts +109 -0
  1578. package/out/tw/corpus/rows.d.ts.map +1 -0
  1579. package/out/tw/corpus/rows.js +200 -0
  1580. package/out/tw/corpus/rows.js.map +1 -0
  1581. package/out/tw/registers.d.ts +79 -0
  1582. package/out/tw/registers.d.ts.map +1 -0
  1583. package/out/tw/registers.js +192 -0
  1584. package/out/tw/registers.js.map +1 -0
  1585. package/out/types.d.ts +105 -19
  1586. package/out/types.d.ts.map +1 -1
  1587. package/out/types.js.map +1 -1
  1588. package/out/us/abbrev/region-samples.d.ts +20 -0
  1589. package/out/us/abbrev/region-samples.d.ts.map +1 -0
  1590. package/out/us/abbrev/region-samples.js +44 -0
  1591. package/out/us/abbrev/region-samples.js.map +1 -0
  1592. package/out/us/abbrev/regions.d.ts +32 -0
  1593. package/out/us/abbrev/regions.d.ts.map +1 -0
  1594. package/out/us/abbrev/regions.js +34 -0
  1595. package/out/us/abbrev/regions.js.map +1 -0
  1596. package/out/us/adapters/fcc-bdc/adapter.d.ts.map +1 -1
  1597. package/out/us/adapters/fcc-bdc/adapter.js +2 -3
  1598. package/out/us/adapters/fcc-bdc/adapter.js.map +1 -1
  1599. package/out/us/adapters/state/hi-schools/adapter.d.ts.map +1 -1
  1600. package/out/us/adapters/state/hi-schools/adapter.js +8 -7
  1601. package/out/us/adapters/state/hi-schools/adapter.js.map +1 -1
  1602. package/out/us/adapters/state/hi-schools/workbook.js +1 -1
  1603. package/out/us/adapters/state/hi-schools/workbook.js.map +1 -1
  1604. package/out/us/adapters/state/ia-contractors/adapter.d.ts.map +1 -1
  1605. package/out/us/adapters/state/ia-contractors/adapter.js +8 -10
  1606. package/out/us/adapters/state/ia-contractors/adapter.js.map +1 -1
  1607. package/out/us/adapters/state/ny-notaries/adapter.d.ts.map +1 -1
  1608. package/out/us/adapters/state/ny-notaries/adapter.js +8 -7
  1609. package/out/us/adapters/state/ny-notaries/adapter.js.map +1 -1
  1610. package/out/us/adapters/state/tx-notaries/adapter.d.ts.map +1 -1
  1611. package/out/us/adapters/state/tx-notaries/adapter.js +8 -7
  1612. package/out/us/adapters/state/tx-notaries/adapter.js.map +1 -1
  1613. package/out/us/adapters/tiger/adapter.d.ts.map +1 -1
  1614. package/out/us/adapters/tiger/adapter.js +2 -4
  1615. package/out/us/adapters/tiger/adapter.js.map +1 -1
  1616. package/out/us/adapters/usgov/hrsa-fqhc/adapter.d.ts +4 -12
  1617. package/out/us/adapters/usgov/hrsa-fqhc/adapter.d.ts.map +1 -1
  1618. package/out/us/adapters/usgov/hrsa-fqhc/adapter.js +12 -19
  1619. package/out/us/adapters/usgov/hrsa-fqhc/adapter.js.map +1 -1
  1620. package/out/us/adapters/usgov/imls-pls/adapter.d.ts.map +1 -1
  1621. package/out/us/adapters/usgov/imls-pls/adapter.js +15 -8
  1622. package/out/us/adapters/usgov/imls-pls/adapter.js.map +1 -1
  1623. package/out/us/adapters/usgov/irs-bmf/adapter.d.ts.map +1 -1
  1624. package/out/us/adapters/usgov/irs-bmf/adapter.js +2 -3
  1625. package/out/us/adapters/usgov/irs-bmf/adapter.js.map +1 -1
  1626. package/out/us/adapters/usgov/nad/adapter.d.ts +81 -0
  1627. package/out/us/adapters/usgov/nad/adapter.d.ts.map +1 -1
  1628. package/out/us/adapters/usgov/nad/adapter.js +45 -17
  1629. package/out/us/adapters/usgov/nad/adapter.js.map +1 -1
  1630. package/out/us/adapters/usgov/nppes/adapter.d.ts.map +1 -1
  1631. package/out/us/adapters/usgov/nppes/adapter.js +26 -15
  1632. package/out/us/adapters/usgov/nppes/adapter.js.map +1 -1
  1633. package/out/us/adapters/usgov/samhsa-treatment-locator/adapter.d.ts +4 -5
  1634. package/out/us/adapters/usgov/samhsa-treatment-locator/adapter.d.ts.map +1 -1
  1635. package/out/us/adapters/usgov/samhsa-treatment-locator/adapter.js +18 -31
  1636. package/out/us/adapters/usgov/samhsa-treatment-locator/adapter.js.map +1 -1
  1637. package/out/us/recipes/house-venue-tuples.d.ts +55 -0
  1638. package/out/us/recipes/house-venue-tuples.d.ts.map +1 -0
  1639. package/out/us/recipes/house-venue-tuples.js +115 -0
  1640. package/out/us/recipes/house-venue-tuples.js.map +1 -0
  1641. package/out/us/recipes/skeleton-sources.d.ts +92 -0
  1642. package/out/us/recipes/skeleton-sources.d.ts.map +1 -0
  1643. package/out/us/recipes/skeleton-sources.js +121 -0
  1644. package/out/us/recipes/skeleton-sources.js.map +1 -0
  1645. package/out/us/state-country-codes.d.ts +18 -0
  1646. package/out/us/state-country-codes.d.ts.map +1 -0
  1647. package/out/us/state-country-codes.js +21 -0
  1648. package/out/us/state-country-codes.js.map +1 -0
  1649. package/out/us/street-unit.d.ts +43 -0
  1650. package/out/us/street-unit.d.ts.map +1 -0
  1651. package/out/us/street-unit.js +56 -0
  1652. package/out/us/street-unit.js.map +1 -0
  1653. package/out/us/tools/nad-skeletons.d.ts +120 -0
  1654. package/out/us/tools/nad-skeletons.d.ts.map +1 -0
  1655. package/out/us/tools/nad-skeletons.js +262 -0
  1656. package/out/us/tools/nad-skeletons.js.map +1 -0
  1657. package/out/utils/align.d.ts +15 -0
  1658. package/out/utils/align.d.ts.map +1 -1
  1659. package/out/utils/align.js +58 -28
  1660. package/out/utils/align.js.map +1 -1
  1661. package/out/utils/retention.d.ts +74 -0
  1662. package/out/utils/retention.d.ts.map +1 -0
  1663. package/out/utils/retention.js +39 -0
  1664. package/out/utils/retention.js.map +1 -0
  1665. package/out/utils/shape-supply.d.ts +30 -0
  1666. package/out/utils/shape-supply.d.ts.map +1 -0
  1667. package/out/utils/shape-supply.js +74 -0
  1668. package/out/utils/shape-supply.js.map +1 -0
  1669. package/out/utils/split.d.ts +159 -7
  1670. package/out/utils/split.d.ts.map +1 -1
  1671. package/out/utils/split.js +683 -130
  1672. package/out/utils/split.js.map +1 -1
  1673. package/out/utils/wof-json.d.ts +112 -17
  1674. package/out/utils/wof-json.d.ts.map +1 -1
  1675. package/out/utils/wof-json.js +179 -41
  1676. package/out/utils/wof-json.js.map +1 -1
  1677. package/out/uy/adapters/ide/adapter.d.ts +64 -0
  1678. package/out/uy/adapters/ide/adapter.d.ts.map +1 -0
  1679. package/out/uy/adapters/ide/adapter.js +200 -0
  1680. package/out/uy/adapters/ide/adapter.js.map +1 -0
  1681. package/out/ve/recipes/reviewed-postcode-tail.d.ts +6 -2
  1682. package/out/ve/recipes/reviewed-postcode-tail.d.ts.map +1 -1
  1683. package/out/ve/recipes/reviewed-postcode-tail.js +16 -6
  1684. package/out/ve/recipes/reviewed-postcode-tail.js.map +1 -1
  1685. package/package.json +25 -19
  1686. package/lib/recipes/unit/sources.ts +0 -44
  1687. package/lib/tools/fetch/ppd.ts +0 -121
  1688. package/lib/tools/overlay/split-slice.ts +0 -136
  1689. package/out/adapters/street-line.d.ts.map +0 -1
  1690. package/out/adapters/street-line.js.map +0 -1
  1691. package/out/recipes/house-venue.d.ts.map +0 -1
  1692. package/out/recipes/house-venue.js.map +0 -1
  1693. package/out/recipes/unit/sources.d.ts +0 -28
  1694. package/out/recipes/unit/sources.d.ts.map +0 -1
  1695. package/out/recipes/unit/sources.js +0 -30
  1696. package/out/recipes/unit/sources.js.map +0 -1
  1697. package/out/tools/fetch/ppd.d.ts +0 -15
  1698. package/out/tools/fetch/ppd.d.ts.map +0 -1
  1699. package/out/tools/fetch/ppd.js +0 -86
  1700. package/out/tools/fetch/ppd.js.map +0 -1
  1701. package/out/tools/fetch/wikidata-subvenue.d.ts.map +0 -1
  1702. package/out/tools/fetch/wikidata-subvenue.js.map +0 -1
  1703. package/out/tools/overlay/split-slice.d.ts.map +0 -1
  1704. package/out/tools/overlay/split-slice.js +0 -71
  1705. package/out/tools/overlay/split-slice.js.map +0 -1
  1706. package/out/tools/postcode-triples.d.ts.map +0 -1
  1707. package/out/tools/postcode-triples.js.map +0 -1
  1708. /package/lib/adapters/{street-line.ts → street/line.ts} +0 -0
@@ -0,0 +1,70 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * The inventory: the ranked entities that are places, with their country codes, and the counts by country
7
+ * and by class that size the training source.
8
+ */
9
+ import type { PathBuilderLike } from "path-ts";
10
+ import { type ClassRoots } from "#tools/fetch/wikidata/vital-places/classify";
11
+ import { type VitalEntity, type VitalEntityRecord } from "#tools/fetch/wikidata/vital-places/entities";
12
+ /**
13
+ * One line of the places file: a kept entity with the codes of its countries.
14
+ */
15
+ export interface VitalPlace extends VitalEntity {
16
+ /**
17
+ * The ISO 3166-1 alpha-2 codes of the `P17` countries that state one, in claim order.
18
+ */
19
+ countryCodes: string[];
20
+ }
21
+ /**
22
+ * Why a ranked record is not in the places file.
23
+ */
24
+ export declare const EXCLUSION_REASONS: {
25
+ readonly missing: "missing";
26
+ readonly noCoordinate: "no-coordinate";
27
+ readonly excluded: "excluded";
28
+ readonly unclassified: "unclassified";
29
+ };
30
+ export type ExclusionReason = (typeof EXCLUSION_REASONS)[keyof typeof EXCLUSION_REASONS];
31
+ /**
32
+ * The counts written beside the places file.
33
+ */
34
+ export interface VitalPlaceCounts {
35
+ records: number;
36
+ places: number;
37
+ excluded: Record<ExclusionReason, number>;
38
+ /**
39
+ * Places per country code; `??` counts a place whose countries state no code or that has no country.
40
+ */
41
+ byCountry: Record<string, number>;
42
+ /**
43
+ * Places per `P31` class id, a place with several classes counted under each.
44
+ */
45
+ byClass: Record<string, number>;
46
+ }
47
+ /**
48
+ * The code every place without one is counted under.
49
+ */
50
+ export declare const UNKNOWN_COUNTRY = "??";
51
+ /**
52
+ * The inventory built from the records, the class roots and the country codes.
53
+ */
54
+ export interface VitalInventory {
55
+ places: VitalPlace[];
56
+ counts: VitalPlaceCounts;
57
+ }
58
+ /**
59
+ * Sort the kept places and count them.
60
+ *
61
+ * A record is a place when it has a coordinate on Earth and {@linkcode placeVerdict}
62
+ * answers `place` for its classes.
63
+ * The counts record every other record under its reason, so the file's totals reconcile with the list.
64
+ */
65
+ export declare function buildInventory(records: readonly VitalEntityRecord[], roots: Readonly<ClassRoots>, countryCodes: Readonly<Record<string, string | null>>): VitalInventory;
66
+ /**
67
+ * Write the places as JSONL and the counts as JSON.
68
+ */
69
+ export declare function writeInventory(inventory: VitalInventory, placesPath: PathBuilderLike, countsPath: PathBuilderLike): Promise<void>;
70
+ //# sourceMappingURL=inventory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inventory.d.ts","sourceRoot":"","sources":["../../../../../lib/tools/fetch/wikidata/vital-places/inventory.ts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,CAsDhB;AAMD;;GAEG;AACH,wBAAsB,cAAc,CACnC,SAAS,EAAE,cAAc,EACzB,UAAU,EAAE,eAAe,EAC3B,UAAU,EAAE,eAAe,GACzB,OAAO,CAAC,IAAI,CAAC,CAGf"}
@@ -0,0 +1,84 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * The inventory: the ranked entities that are places, with their country codes, and the counts by country
7
+ * and by class that size the training source.
8
+ */
9
+ import { writeLocalJSONFile, writeLocalJSONLFile } from "@mailwoman/core/fs/writers";
10
+ import { PLACE_VERDICTS, placeVerdict, } from "#tools/fetch/wikidata/vital-places/classify";
11
+ import { isVitalEntity } from "#tools/fetch/wikidata/vital-places/entities";
12
+ /**
13
+ * Why a ranked record is not in the places file.
14
+ */
15
+ export const EXCLUSION_REASONS = {
16
+ missing: "missing",
17
+ noCoordinate: "no-coordinate",
18
+ excluded: PLACE_VERDICTS.excluded,
19
+ unclassified: PLACE_VERDICTS.unclassified,
20
+ };
21
+ /**
22
+ * The code every place without one is counted under.
23
+ */
24
+ export const UNKNOWN_COUNTRY = "??";
25
+ /**
26
+ * Sort the kept places and count them.
27
+ *
28
+ * A record is a place when it has a coordinate on Earth and {@linkcode placeVerdict}
29
+ * answers `place` for its classes.
30
+ * The counts record every other record under its reason, so the file's totals reconcile with the list.
31
+ */
32
+ export function buildInventory(records, roots, countryCodes) {
33
+ const places = [];
34
+ const excluded = { missing: 0, "no-coordinate": 0, excluded: 0, unclassified: 0 };
35
+ const byCountry = {};
36
+ const byClass = {};
37
+ for (const record of records) {
38
+ if (!isVitalEntity(record)) {
39
+ excluded.missing++;
40
+ continue;
41
+ }
42
+ if (!record.coordinate) {
43
+ excluded["no-coordinate"]++;
44
+ continue;
45
+ }
46
+ const verdict = placeVerdict(record.classes, roots);
47
+ if (verdict !== PLACE_VERDICTS.place) {
48
+ excluded[verdict]++;
49
+ continue;
50
+ }
51
+ const codes = record.countries
52
+ .map((id) => countryCodes[id] ?? null)
53
+ .filter((code) => typeof code === "string");
54
+ places.push({ ...record, countryCodes: codes });
55
+ for (const code of codes.length ? codes : [UNKNOWN_COUNTRY]) {
56
+ byCountry[code] = (byCountry[code] ?? 0) + 1;
57
+ }
58
+ for (const cls of record.classes) {
59
+ byClass[cls] = (byClass[cls] ?? 0) + 1;
60
+ }
61
+ }
62
+ places.sort((left, right) => right.qrank - left.qrank);
63
+ return {
64
+ places,
65
+ counts: {
66
+ records: records.length,
67
+ places: places.length,
68
+ excluded,
69
+ byCountry: sortedByCount(byCountry),
70
+ byClass: sortedByCount(byClass),
71
+ },
72
+ };
73
+ }
74
+ function sortedByCount(counts) {
75
+ return Object.fromEntries(Object.entries(counts).toSorted((left, right) => right[1] - left[1]));
76
+ }
77
+ /**
78
+ * Write the places as JSONL and the counts as JSON.
79
+ */
80
+ export async function writeInventory(inventory, placesPath, countsPath) {
81
+ await writeLocalJSONLFile(inventory.places, placesPath);
82
+ await writeLocalJSONFile(inventory.counts, countsPath);
83
+ }
84
+ //# sourceMappingURL=inventory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inventory.js","sourceRoot":"","sources":["../../../../../lib/tools/fetch/wikidata/vital-places/inventory.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAGpF,OAAO,EAEN,cAAc,EAEd,YAAY,GACZ,MAAM,6CAA6C,CAAA;AACpD,OAAO,EAAE,aAAa,EAA4C,MAAM,6CAA6C,CAAA;AAYrH;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,eAAe;IAC7B,QAAQ,EAAE,cAAc,CAAC,QAAQ;IACjC,YAAY,EAAE,cAAc,CAAC,YAAY;CAChC,CAAA;AAqBV;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,C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GPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * What the vital-places phases share: the progress line sink, the elapsed-time format and request batching.
7
+ */
8
+ /**
9
+ * A line sink for progress.
10
+ *
11
+ * The command passes `reportToStderr`; a test passes a collector.
12
+ */
13
+ export type ProgressReporter = (line: string) => void;
14
+ /**
15
+ * The seconds elapsed since a `performance.now()` mark, to one decimal.
16
+ */
17
+ export declare function formatElapsed(startedAt: number, now?: number): string;
18
+ /**
19
+ * The item id a Wikidata entity URI names, or the value itself when it is already an id.
20
+ */
21
+ export declare function entityQID(uri: string): string;
22
+ /**
23
+ * The items in consecutive batches of at most `size`, the last one shorter.
24
+ */
25
+ export declare function chunked<T>(items: readonly T[], size: number): T[][];
26
+ //# sourceMappingURL=progress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../../../lib/tools/fetch/wikidata/vital-places/progress.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;AAErD;;GAEG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,SAAoB,GAAG,MAAM,CAEhF;AAID;;GAEG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,CAUnE"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * What the vital-places phases share: the progress line sink, the elapsed-time format and request batching.
7
+ */
8
+ /**
9
+ * The seconds elapsed since a `performance.now()` mark, to one decimal.
10
+ */
11
+ export function formatElapsed(startedAt, now = performance.now()) {
12
+ return `${((now - startedAt) / 1000).toFixed(1)} s`;
13
+ }
14
+ const ENTITY_PREFIX = "http://www.wikidata.org/entity/";
15
+ /**
16
+ * The item id a Wikidata entity URI names, or the value itself when it is already an id.
17
+ */
18
+ export function entityQID(uri) {
19
+ return uri.startsWith(ENTITY_PREFIX) ? uri.slice(ENTITY_PREFIX.length) : uri;
20
+ }
21
+ /**
22
+ * The items in consecutive batches of at most `size`, the last one shorter.
23
+ */
24
+ export function chunked(items, size) {
25
+ if (!Number.isInteger(size) || size < 1)
26
+ throw new RangeError(`a batch size is a positive integer, not ${size}`);
27
+ const batches = [];
28
+ for (let index = 0; index < items.length; index += size) {
29
+ batches.push(items.slice(index, index + size));
30
+ }
31
+ return batches;
32
+ }
33
+ //# sourceMappingURL=progress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress.js","sourceRoot":"","sources":["../../../../../lib/tools/fetch/wikidata/vital-places/progress.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AASH;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,SAAiB,EAAE,GAAG,GAAG,WAAW,CAAC,GAAG,EAAE;IACvE,OAAO,GAAG,CAAC,CAAC,GAAG,GAAG,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAA;AACpD,CAAC;AAED,MAAM,aAAa,GAAG,iCAAiC,CAAA;AAEvD;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,GAAW;IACpC,OAAO,GAAG,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAA;AAC7E,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,OAAO,CAAI,KAAmB,EAAE,IAAY;IAC3D,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,IAAI,GAAG,CAAC;QAAE,MAAM,IAAI,UAAU,CAAC,2CAA2C,IAAI,EAAE,CAAC,CAAA;IAEhH,MAAM,OAAO,GAAU,EAAE,CAAA;IAEzB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,IAAI,EAAE,CAAC;QACzD,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC,CAAC,CAAA;IAC/C,CAAC;IAED,OAAO,OAAO,CAAA;AACf,CAAC"}
@@ -0,0 +1,116 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * The QRank candidate list: every Wikidata item ranked by its Wikimedia pageviews over the past 52 weeks.
7
+ *
8
+ * QRank is published at `https://qrank.toolforge.org/` by Sascha Brawer. Its homepage states "The QRank data
9
+ * is dedicated to the Public Domain via Creative Commons Zero 1.0", and its `datapackage.json` lists the
10
+ * license as `CC0-1.0`, so the list adds no share-alike term to the selection.
11
+ *
12
+ * The file is one gzip-compressed CSV with the columns `Entity,QRank`, sorted by decreasing rank, about
13
+ * 126 MB compressed (measured 2026-11-04: 126,008,420 bytes for the 2026-11-01 build). The host answers range
14
+ * requests with 206, so {@linkcode downloadQRank} resumes an interrupted transfer, and `datapackage.json`
15
+ * names the current build's version and sha256. The re-run check compares both before downloading again.
16
+ */
17
+ import type { APIClient } from "@mailwoman/core/api";
18
+ import { type PathBuilderLike } from "path-ts";
19
+ import { type ProgressReporter } from "#tools/fetch/wikidata/vital-places/progress";
20
+ /**
21
+ * The current QRank build, under its undated name.
22
+ */
23
+ export declare const QRANK_DOWNLOAD_URL = "https://qrank.toolforge.org/download/qrank.csv.gz";
24
+ /**
25
+ * The Data Package descriptor naming the current build, its byte count and its sha256.
26
+ */
27
+ export declare const QRANK_DATAPACKAGE_URL = "https://qrank.toolforge.org/download/datapackage.json";
28
+ /**
29
+ * The license QRank's homepage and `datapackage.json` state for the data.
30
+ */
31
+ export declare const QRANK_LICENSE = "CC0-1.0";
32
+ /**
33
+ * The file name the list is kept under.
34
+ */
35
+ export declare const QRANK_FILENAME = "qrank.csv.gz";
36
+ /**
37
+ * The receipt written beside the list, so a rerun can tell whether the host has a newer build.
38
+ */
39
+ export declare const QRANK_RECEIPT_FILENAME = "qrank.json";
40
+ /**
41
+ * What `datapackage.json` states about the current build, reduced to the fields the re-run check reads.
42
+ */
43
+ export interface QRankDatapackage {
44
+ /**
45
+ * The build date, such as `2026-11-01`.
46
+ */
47
+ version: string;
48
+ /**
49
+ * The dated file name, such as `qrank-20261101.csv.gz`.
50
+ */
51
+ path: string;
52
+ bytes: number;
53
+ /**
54
+ * The hex sha256 of the compressed file.
55
+ */
56
+ sha256: string;
57
+ /**
58
+ * The license name the descriptor states, such as `CC0-1.0`.
59
+ */
60
+ license: string;
61
+ }
62
+ /**
63
+ * The receipt {@linkcode downloadQRank} writes beside the list.
64
+ */
65
+ export interface QRankReceipt extends QRankDatapackage {
66
+ source_url: string;
67
+ downloaded_at: string;
68
+ filename: string;
69
+ }
70
+ /**
71
+ * One row of the list.
72
+ */
73
+ export interface QRankRow {
74
+ qid: string;
75
+ qrank: number;
76
+ }
77
+ /**
78
+ * Read the current build's descriptor.
79
+ *
80
+ * A descriptor missing one of the fields the re-run check compares is refused by name
81
+ * rather than read as a build that never matches.
82
+ */
83
+ export declare function readQRankDatapackage(client: Pick<APIClient, "fetch">): Promise<QRankDatapackage>;
84
+ /**
85
+ * Whether the list on disk is the build the descriptor names.
86
+ *
87
+ * The receipt's version and byte count decide, then the file's own length.
88
+ * The digest was checked when the file arrived.
89
+ */
90
+ export declare function isQRankCurrent(recorded: QRankReceipt | null, current: QRankDatapackage, path: PathBuilderLike): Promise<boolean>;
91
+ export interface DownloadQRankOptions {
92
+ /**
93
+ * The directory the list and its receipt are written under.
94
+ */
95
+ destDir: PathBuilderLike;
96
+ retryDelayMs?: number;
97
+ report?: ProgressReporter;
98
+ }
99
+ /**
100
+ * Download the current build unless the list on disk is already that build, and answer its receipt.
101
+ *
102
+ * A list whose receipt matches the descriptor costs one small request.
103
+ * A downloaded file whose sha256 differs from the descriptor's is refused rather than read.
104
+ *
105
+ * A descriptor stating a license other than {@linkcode QRANK_LICENSE} is refused too,
106
+ * because the election covers CC0 and no other license.
107
+ */
108
+ export declare function downloadQRank(client: Pick<APIClient, "fetch">, options: DownloadQRankOptions): Promise<QRankReceipt>;
109
+ /**
110
+ * The first `limit` rows of the list, in the file's own descending-rank order.
111
+ *
112
+ * The gzip stream is read as far as the limit and no further.
113
+ * A row without both columns is refused by line rather than skipped.
114
+ */
115
+ export declare function readTopQRank(path: PathBuilderLike, limit: number): AsyncGenerator<QRankRow>;
116
+ //# sourceMappingURL=qrank.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"qrank.d.ts","sourceRoot":"","sources":["../../../../../lib/tools/fetch/wikidata/vital-places/qrank.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAQpD,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;AAI3D,OAAO,EAAiB,KAAK,gBAAgB,EAAE,MAAM,6CAA6C,CAAA;AAElG;;GAEG;AACH,eAAO,MAAM,kBAAkB,sDAAsD,CAAA;AAErF;;GAEG;AACH,eAAO,MAAM,qBAAqB,0DAA0D,CAAA;AAE5F;;GAEG;AACH,eAAO,MAAM,aAAa,YAAY,CAAA;AAEtC;;GAEG;AACH,eAAO,MAAM,cAAc,iBAAiB,CAAA;AAE5C;;GAEG;AACH,eAAO,MAAM,sBAAsB,eAAe,CAAA;AAOlD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,gBAAgB;IACrD,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACb;AAQD;;;;;GAKG;AACH,wBAAsB,oBAAoB,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAyBtG;AAED;;;;;GAKG;AACH,wBAAsB,cAAc,CACnC,QAAQ,EAAE,YAAY,GAAG,IAAI,EAC7B,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,eAAe,GACnB,OAAO,CAAC,OAAO,CAAC,CAMlB;AAED,MAAM,WAAW,oBAAoB;IACpC;;OAEG;IACH,OAAO,EAAE,eAAe,CAAA;IACxB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,EAAE,gBAAgB,CAAA;CACzB;AAED;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CAClC,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,EAChC,OAAO,EAAE,oBAAoB,GAC3B,OAAO,CAAC,YAAY,CAAC,CAkDvB;AAUD;;;;;GAKG;AACH,wBAAuB,YAAY,CAAC,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,GAAG,cAAc,CAAC,QAAQ,CAAC,CAsBlG"}
@@ -0,0 +1,167 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * The QRank candidate list: every Wikidata item ranked by its Wikimedia pageviews over the past 52 weeks.
7
+ *
8
+ * QRank is published at `https://qrank.toolforge.org/` by Sascha Brawer. Its homepage states "The QRank data
9
+ * is dedicated to the Public Domain via Creative Commons Zero 1.0", and its `datapackage.json` lists the
10
+ * license as `CC0-1.0`, so the list adds no share-alike term to the selection.
11
+ *
12
+ * The file is one gzip-compressed CSV with the columns `Entity,QRank`, sorted by decreasing rank, about
13
+ * 126 MB compressed (measured 2026-11-04: 126,008,420 bytes for the 2026-11-01 build). The host answers range
14
+ * requests with 206, so {@linkcode downloadQRank} resumes an interrupted transfer, and `datapackage.json`
15
+ * names the current build's version and sha256. The re-run check compares both before downloading again.
16
+ */
17
+ import { gunzipChunks } from "@mailwoman/core/fs/compression";
18
+ import { readLocalJSONFile } from "@mailwoman/core/fs/readers";
19
+ import { pathExists } from "@mailwoman/core/fs/readers/stat";
20
+ import { openReadStream } from "@mailwoman/core/fs/streams";
21
+ import { writeLocalJSONFile } from "@mailwoman/core/fs/writers";
22
+ import { sha256File } from "@mailwoman/core/hash";
23
+ import { formatQuantity } from "@mailwoman/core/resources/locale";
24
+ import { PathBuilder } from "path-ts";
25
+ import { CSVSpliterator } from "spliterator";
26
+ import { resumableDownload } from "#tools/fetch/download";
27
+ import { formatElapsed } from "#tools/fetch/wikidata/vital-places/progress";
28
+ /**
29
+ * The current QRank build, under its undated name.
30
+ */
31
+ export const QRANK_DOWNLOAD_URL = "https://qrank.toolforge.org/download/qrank.csv.gz";
32
+ /**
33
+ * The Data Package descriptor naming the current build, its byte count and its sha256.
34
+ */
35
+ export const QRANK_DATAPACKAGE_URL = "https://qrank.toolforge.org/download/datapackage.json";
36
+ /**
37
+ * The license QRank's homepage and `datapackage.json` state for the data.
38
+ */
39
+ export const QRANK_LICENSE = "CC0-1.0";
40
+ /**
41
+ * The file name the list is kept under.
42
+ */
43
+ export const QRANK_FILENAME = "qrank.csv.gz";
44
+ /**
45
+ * The receipt written beside the list, so a rerun can tell whether the host has a newer build.
46
+ */
47
+ export const QRANK_RECEIPT_FILENAME = "qrank.json";
48
+ /**
49
+ * How far the download advances between progress lines.
50
+ */
51
+ const QRANK_PROGRESS_EVERY_BYTES = 16 * 1024 * 1024;
52
+ /**
53
+ * Read the current build's descriptor.
54
+ *
55
+ * A descriptor missing one of the fields the re-run check compares is refused by name
56
+ * rather than read as a build that never matches.
57
+ */
58
+ export async function readQRankDatapackage(client) {
59
+ const response = await client.fetch({ url: QRANK_DATAPACKAGE_URL });
60
+ const body = response.data;
61
+ const resource = body.resources?.[0];
62
+ const hash = typeof resource?.hash === "string" ? resource.hash : null;
63
+ const license = body.licenses?.[0]?.name;
64
+ if (typeof body.version !== "string")
65
+ throw new Error(`${QRANK_DATAPACKAGE_URL}: version is not a string`);
66
+ if (typeof resource?.path !== "string")
67
+ throw new Error(`${QRANK_DATAPACKAGE_URL}: resources[0].path is not a string`);
68
+ if (typeof resource.bytes !== "number")
69
+ throw new Error(`${QRANK_DATAPACKAGE_URL}: resources[0].bytes is not a number`);
70
+ if (!hash?.startsWith("sha256:"))
71
+ throw new Error(`${QRANK_DATAPACKAGE_URL}: resources[0].hash is not a sha256`);
72
+ if (typeof license !== "string")
73
+ throw new Error(`${QRANK_DATAPACKAGE_URL}: licenses[0].name is not a string`);
74
+ return {
75
+ version: body.version,
76
+ path: resource.path,
77
+ bytes: resource.bytes,
78
+ sha256: hash.slice("sha256:".length),
79
+ license,
80
+ };
81
+ }
82
+ /**
83
+ * Whether the list on disk is the build the descriptor names.
84
+ *
85
+ * The receipt's version and byte count decide, then the file's own length.
86
+ * The digest was checked when the file arrived.
87
+ */
88
+ export async function isQRankCurrent(recorded, current, path) {
89
+ if (!recorded)
90
+ return false;
91
+ if (recorded.version !== current.version || recorded.sha256 !== current.sha256)
92
+ return false;
93
+ return pathExists(path);
94
+ }
95
+ /**
96
+ * Download the current build unless the list on disk is already that build, and answer its receipt.
97
+ *
98
+ * A list whose receipt matches the descriptor costs one small request.
99
+ * A downloaded file whose sha256 differs from the descriptor's is refused rather than read.
100
+ *
101
+ * A descriptor stating a license other than {@linkcode QRANK_LICENSE} is refused too,
102
+ * because the election covers CC0 and no other license.
103
+ */
104
+ export async function downloadQRank(client, options) {
105
+ const { report } = options;
106
+ const destDir = PathBuilder.from(options.destDir);
107
+ const path = destDir(QRANK_FILENAME);
108
+ const receiptPath = destDir(QRANK_RECEIPT_FILENAME);
109
+ const current = await readQRankDatapackage(client);
110
+ if (current.license !== QRANK_LICENSE) {
111
+ throw new Error(`${QRANK_DATAPACKAGE_URL} states license ${current.license}; the election covers ${QRANK_LICENSE}`);
112
+ }
113
+ const recorded = (await pathExists(receiptPath)) ? await readLocalJSONFile(receiptPath) : null;
114
+ if (await isQRankCurrent(recorded, current, path)) {
115
+ report?.(` qrank: build ${current.version} already on disk (${formatQuantity(current.bytes)} bytes), no download`);
116
+ return recorded;
117
+ }
118
+ report?.(` qrank: downloading build ${current.version} (${formatQuantity(current.bytes)} bytes)`);
119
+ const startedAt = performance.now();
120
+ const bytes = await resumableDownload({
121
+ url: QRANK_DOWNLOAD_URL,
122
+ dest: path,
123
+ headers: { accept: "application/gzip, */*" },
124
+ retryDelayMs: options.retryDelayMs,
125
+ progressEveryBytes: QRANK_PROGRESS_EVERY_BYTES,
126
+ report,
127
+ });
128
+ const sha256 = await sha256File(path);
129
+ if (sha256 !== current.sha256) {
130
+ throw new Error(`${QRANK_FILENAME}: sha256 ${sha256} differs from the descriptor's ${current.sha256}`);
131
+ }
132
+ const receipt = {
133
+ ...current,
134
+ source_url: QRANK_DOWNLOAD_URL,
135
+ downloaded_at: new Date().toISOString(),
136
+ filename: QRANK_FILENAME,
137
+ };
138
+ await writeLocalJSONFile(receipt, receiptPath);
139
+ report?.(` qrank: ${formatQuantity(bytes)} bytes in ${formatElapsed(startedAt)}, sha256 verified`);
140
+ return receipt;
141
+ }
142
+ /**
143
+ * The first `limit` rows of the list, in the file's own descending-rank order.
144
+ *
145
+ * The gzip stream is read as far as the limit and no further.
146
+ * A row without both columns is refused by line rather than skipped.
147
+ */
148
+ export async function* readTopQRank(path, limit) {
149
+ if (limit <= 0)
150
+ return;
151
+ const bytes = gunzipChunks(openReadStream(path));
152
+ let line = 1;
153
+ let read = 0;
154
+ // The publisher's spelling is indexed as is: the default key normalization rewrites `QRank` to `q_rank`.
155
+ for await (const row of CSVSpliterator.fromAsync(bytes, { normalizeKeys: false })) {
156
+ line++;
157
+ const qid = row.Entity;
158
+ const qrank = Number(row.QRank);
159
+ if (!qid || !/^Q[1-9]\d*$/u.test(qid) || !Number.isInteger(qrank) || qrank < 1) {
160
+ throw new Error(`${PathBuilder.from(path).toString()}:${line}: not an Entity,QRank row`);
161
+ }
162
+ yield { qid, qrank };
163
+ if (++read >= limit)
164
+ return;
165
+ }
166
+ }
167
+ //# sourceMappingURL=qrank.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"qrank.js","sourceRoot":"","sources":["../../../../../lib/tools/fetch/wikidata/vital-places/qrank.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAA;AACjE,OAAO,EAAE,WAAW,EAAwB,MAAM,SAAS,CAAA;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,EAAE,aAAa,EAAyB,MAAM,6CAA6C,CAAA;AAElG;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,mDAAmD,CAAA;AAErF;;GA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, et al.
5
+ *
6
+ * Reads the ranked items' records from the Wikidata Query Service instead of `wbgetentities`.
7
+ *
8
+ * A `wbgetentities` answer holds every statement and every sitelink of an item, so a batch takes longer than a
9
+ * second to serve and the Robot policy then asks for a five-second wait before the next request. One query per batch
10
+ * asks only for the fields a record keeps: the sitelink count, the `P31` classes, the `P17` countries, the Earth
11
+ * coordinate, the population, and the labels and aliases in the configured languages. The truthy `wdt:` statements are
12
+ * the best-ranked ones. A record keeps that rank.
13
+ */
14
+ import type { LatLon } from "@mailwoman/spatial/position";
15
+ import type { PathBuilderLike } from "path-ts";
16
+ import type { WikidataClient } from "#tools/fetch/wikidata/subvenue";
17
+ import { type FetchVitalEntitiesResult, type VitalEntityRecord } from "#tools/fetch/wikidata/vital-places/entities";
18
+ import { type ProgressReporter } from "#tools/fetch/wikidata/vital-places/progress";
19
+ import type { QRankRow } from "#tools/fetch/wikidata/vital-places/qrank";
20
+ /**
21
+ * The ids one query asks for.
22
+ *
23
+ * The query is a GET, and 200 ids keep its URL well under the service's limit.
24
+ */
25
+ export declare const QUERY_ENTITY_BATCH = 200;
26
+ /**
27
+ * The queries in flight at once.
28
+ *
29
+ * The query service admits five parallel queries from one client.
30
+ */
31
+ export declare const QUERY_ENTITY_CONCURRENCY = 3;
32
+ /**
33
+ * The query for one batch: one row per field value, tagged with the field it belongs to.
34
+ */
35
+ export declare function buildEntityFieldsQuery(qids: readonly string[], languages: readonly string[]): string;
36
+ /**
37
+ * An Earth coordinate from a `wdt:P625` literal.
38
+ *
39
+ * Another body's coordinate writes its globe's IRI before the point.
40
+ */
41
+ export declare function readPointLiteral(literal: string): LatLon | null;
42
+ /**
43
+ * The records of one batch, built from the query's field rows.
44
+ * An id with no row is recorded as missing.
45
+ */
46
+ export declare function recordsFromFieldRows(batch: readonly QRankRow[], bindings: ReadonlyArray<Record<string, {
47
+ value: string;
48
+ "xml:lang"?: string;
49
+ } | undefined>>): VitalEntityRecord[];
50
+ export interface FetchVitalEntitiesFromQueriesOptions {
51
+ entitiesPath: PathBuilderLike;
52
+ languages?: readonly string[];
53
+ batchSize?: number;
54
+ concurrency?: number;
55
+ reportEvery?: number;
56
+ report?: ProgressReporter;
57
+ }
58
+ /**
59
+ * Append a record for every ranked id the entities file lacks, one query per batch,
60
+ * with a few queries in flight.
61
+ *
62
+ * An id already on disk is not asked for again, and a failed query is reported and left for a rerun.
63
+ */
64
+ export declare function fetchVitalEntitiesFromQueries(client: Pick<WikidataClient, "query">, rows: readonly QRankRow[], options: FetchVitalEntitiesFromQueriesOptions): Promise<FetchVitalEntitiesResult>;
65
+ //# sourceMappingURL=query-entities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-entities.d.ts","sourceRoot":"","sources":["../../../../../lib/tools/fetch/wikidata/vital-places/query-entities.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,EAGN,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,MAAM,6CAA6C,CAAA;AACpD,OAAO,EAAqC,KAAK,gBAAgB,EAAE,MAAM,6CAA6C,CAAA;AACtH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAA;AAExE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,MAAM,CAAA;AAErC;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,IAAI,CAAA;AAOzC;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAcpG;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAI/D;AAED;;;G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