@mailwoman/corpus 11.1.0 → 11.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (474) hide show
  1. package/README.md +20 -14
  2. package/data/address-source-register.json +618 -13
  3. package/data/builds/v0.8.19-overlay/OVERLAY_PLAN.json +4778 -0
  4. package/data/builds/v0.8.19-rebuild/inputs.json +128 -0
  5. package/data/builds/v0.8.20-overlay/OVERLAY_PLAN.json +3595 -0
  6. package/data/builds/v0.8.20-rebuild/inputs.json +131 -0
  7. package/data/builds/v0.8.21-overlay/OVERLAY_PLAN.json +72 -0
  8. package/data/corpus-source-inputs.json +104 -2
  9. package/data/holdout/evaluation-groups.v0.8.18.json +90511 -0
  10. package/data/holdout/evaluation-groups.v0.8.19.json +100537 -0
  11. package/data/holdout/evaluation-groups.v0.8.20.json +129215 -0
  12. package/data/holdout/evaluation-groups.v0.8.21.json +173286 -0
  13. package/data/holdout/probe-text-collisions.v0.8.20.json +1478 -0
  14. package/data/license-decisions.json +393 -3
  15. package/data/licenses/PROVENANCE.md +15 -9
  16. package/data/licenses/au-acnc-cc-by-3.0-au.md +37 -0
  17. package/data/licenses/es-sanidad-aviso-legal.md +26 -0
  18. package/data/licenses/it-miur-iodl-2.0.md +41 -0
  19. package/data/licenses/nz-charities-cc-by-3.0-nz.md +36 -0
  20. package/data/region-slot-second-level.json +966 -0
  21. package/data/source-additions.json +126 -6
  22. package/data/source-resolutions.json +97 -0
  23. package/data/training-configs/v8.7.0-base-c6-90k-usgs-structures-s42.yaml +801 -0
  24. package/data/training-configs/v8.7.0-base-c6-90k-usgs-structures-s43.yaml +726 -0
  25. package/data/training-configs/v8.8.0-base-c6-90k-v0820-county-s42.yaml +944 -0
  26. package/data/training-configs/v8.9.0-base-c6-90k-v0821-s42.yaml +848 -0
  27. package/data/training-manifests/v0.8.19-retention-overlay.json +4553 -0
  28. package/data/training-manifests/v0.8.20-retention-overlay.json +4579 -0
  29. package/data/training-manifests/v0.8.21-retention-overlay.effective.json +2521 -0
  30. package/data/training-manifests/v0.8.21-retention-overlay.json +4579 -0
  31. package/lib/adapters/cordis/adapter.ts +10 -2
  32. package/lib/adapters/gleif/adapter.ts +23 -5
  33. package/lib/adapters/osm/adapter.ts +2 -2
  34. package/lib/adapters/street/repetition.ts +87 -0
  35. package/lib/adapters/street/unit.ts +14 -0
  36. package/lib/adapters/wof/admin/json/adapter.ts +34 -21
  37. package/lib/adapters/wof/admin/json/dual-role.ts +274 -0
  38. package/lib/adapters/wof/admin/json/explore.ts +4 -4
  39. package/lib/adapters/wof/admin/json/region-codes.ts +74 -3
  40. package/lib/adapters/wof/json-rows.ts +36 -21
  41. package/lib/adapters/wof/postalcode-json/adapter.ts +10 -28
  42. package/lib/adapters/wof/sample.ts +15 -3
  43. package/lib/adapters/wof/stored-records.ts +162 -0
  44. package/lib/adapters.ts +18 -6
  45. package/lib/au/adapters/acnc-register/adapter.ts +40 -0
  46. package/lib/au/evaluation/acnc-register.ts +144 -0
  47. package/lib/build/align/range.ts +9 -0
  48. package/lib/build/align/totals.ts +23 -0
  49. package/lib/build/align.ts +74 -4
  50. package/lib/build/budget.ts +11 -45
  51. package/lib/build/checkpoint.ts +11 -0
  52. package/lib/build/component-check.ts +99 -3
  53. package/lib/build/manifest.ts +4 -0
  54. package/lib/build/parallel.ts +8 -34
  55. package/lib/build/region-names.ts +609 -0
  56. package/lib/build/source-record.ts +7 -0
  57. package/lib/build/types.ts +20 -0
  58. package/lib/build/worker.ts +3 -1
  59. package/lib/build.ts +3 -6
  60. package/lib/de/recipes/locale.ts +3 -2
  61. package/lib/env.ts +0 -6
  62. package/lib/es/adapters/sanidad-centros-ap/adapter.ts +40 -0
  63. package/lib/es/evaluation/sanidad-centros-ap.ts +164 -0
  64. package/lib/evaluation/corpus-adapter.ts +153 -0
  65. package/lib/evaluation/source.ts +209 -0
  66. package/lib/evaluation/sources.ts +25 -0
  67. package/lib/fr/adapters/laposte-poincont/adapter.ts +381 -0
  68. package/lib/fr/recipes/unit-line-guideline.ts +9 -4
  69. package/lib/fr/structures/laposte.ts +139 -0
  70. package/lib/fr/tools/fetch/laposte-poincont.ts +234 -0
  71. package/lib/it/adapters/miur-scuole/adapter.ts +39 -0
  72. package/lib/it/evaluation/miur-scuole.ts +125 -0
  73. package/lib/jp/adapters/wof-admin/adapter.ts +4 -4
  74. package/lib/nc/adapters/opt-nc/adapter.ts +237 -0
  75. package/lib/nc/structures/opt-nc.ts +101 -0
  76. package/lib/nc/tools/fetch/opt-nc.ts +249 -0
  77. package/lib/nz/adapters/charities-register/adapter.ts +40 -0
  78. package/lib/nz/evaluation/charities-register.ts +149 -0
  79. package/lib/recipes/bare/postcode.ts +14 -11
  80. package/lib/recipes/deepseek/batches.ts +8 -8
  81. package/lib/recipes/po/box/cedex/recipe.ts +12 -1
  82. package/lib/recipes/po/box/cedex/us.ts +43 -2
  83. package/lib/recipes/scaffold.ts +1 -1
  84. package/lib/recipes/sources.ts +16 -0
  85. package/lib/recipes.ts +2 -0
  86. package/lib/registers.ts +28 -2
  87. package/lib/{post-offices → structures}/source.ts +49 -16
  88. package/lib/structures/sources.ts +26 -0
  89. package/lib/synthesizers/house-venue.ts +11 -6
  90. package/lib/synthesizers/tail.ts +27 -3
  91. package/lib/tools/audit.ts +1 -1
  92. package/lib/tools/fetch/storage.ts +18 -4
  93. package/lib/tools/fetch.ts +10 -2
  94. package/lib/tools/overlay/kryptonite.ts +6 -2
  95. package/lib/tools/overlay/split/attribute.ts +14 -2
  96. package/lib/tools/overlay/split/overlay.ts +36 -7
  97. package/lib/tools/postcode/triples.ts +3 -3
  98. package/lib/tools/region-slot-census.run.ts +184 -0
  99. package/lib/training/config/load.ts +19 -0
  100. package/lib/training/config/schema.ts +6 -0
  101. package/lib/tw/registers.ts +15 -4
  102. package/lib/tw/structures/chunghwa-post.ts +191 -0
  103. package/lib/tw/tools/fetch/chunghwa-post.ts +174 -0
  104. package/lib/us/adapters/state/ny-notaries/adapter.ts +7 -2
  105. package/lib/us/adapters/state/tx-notaries/adapter.ts +126 -21
  106. package/lib/us/adapters/usgov/nad/adapter.ts +111 -31
  107. package/lib/us/adapters/usgov/nppes/adapter.ts +8 -11
  108. package/lib/us/adapters/usgov/{usgs-post-offices → usgs-structures}/adapter.ts +65 -35
  109. package/lib/us/recipes/county.ts +474 -0
  110. package/lib/us/street-unit.ts +15 -5
  111. package/lib/us/structures/usgs/layers.ts +171 -0
  112. package/lib/us/structures/usgs/national-map.ts +95 -0
  113. package/lib/us/tools/fetch/usgs/gnis.ts +288 -0
  114. package/lib/us/tools/fetch/usgs/structures.ts +362 -0
  115. package/lib/utils/align.ts +2 -2
  116. package/lib/utils/evaluation-groups.ts +172 -0
  117. package/lib/utils/split.ts +40 -4
  118. package/lib/utils/tokenize.ts +7 -7
  119. package/lib/utils/validation-groups.ts +292 -0
  120. package/lib/utils/wof-json.ts +96 -134
  121. package/out/adapters/cordis/adapter.d.ts +3 -1
  122. package/out/adapters/cordis/adapter.d.ts.map +1 -1
  123. package/out/adapters/cordis/adapter.js +8 -2
  124. package/out/adapters/cordis/adapter.js.map +1 -1
  125. package/out/adapters/gleif/adapter.d.ts.map +1 -1
  126. package/out/adapters/gleif/adapter.js +19 -5
  127. package/out/adapters/gleif/adapter.js.map +1 -1
  128. package/out/adapters/osm/adapter.js +2 -2
  129. package/out/adapters/osm/adapter.js.map +1 -1
  130. package/out/adapters/street/repetition.d.ts +19 -0
  131. package/out/adapters/street/repetition.d.ts.map +1 -0
  132. package/out/adapters/street/repetition.js +71 -0
  133. package/out/adapters/street/repetition.js.map +1 -0
  134. package/out/adapters/street/unit.d.ts +10 -0
  135. package/out/adapters/street/unit.d.ts.map +1 -1
  136. package/out/adapters/street/unit.js +6 -0
  137. package/out/adapters/street/unit.js.map +1 -1
  138. package/out/adapters/wof/admin/json/adapter.d.ts +8 -0
  139. package/out/adapters/wof/admin/json/adapter.d.ts.map +1 -1
  140. package/out/adapters/wof/admin/json/adapter.js +26 -22
  141. package/out/adapters/wof/admin/json/adapter.js.map +1 -1
  142. package/out/adapters/wof/admin/json/dual-role.d.ts +83 -0
  143. package/out/adapters/wof/admin/json/dual-role.d.ts.map +1 -0
  144. package/out/adapters/wof/admin/json/dual-role.js +183 -0
  145. package/out/adapters/wof/admin/json/dual-role.js.map +1 -0
  146. package/out/adapters/wof/admin/json/explore.d.ts.map +1 -1
  147. package/out/adapters/wof/admin/json/explore.js +4 -4
  148. package/out/adapters/wof/admin/json/explore.js.map +1 -1
  149. package/out/adapters/wof/admin/json/region-codes.d.ts +16 -0
  150. package/out/adapters/wof/admin/json/region-codes.d.ts.map +1 -1
  151. package/out/adapters/wof/admin/json/region-codes.js +62 -3
  152. package/out/adapters/wof/admin/json/region-codes.js.map +1 -1
  153. package/out/adapters/wof/json-rows.d.ts +28 -6
  154. package/out/adapters/wof/json-rows.d.ts.map +1 -1
  155. package/out/adapters/wof/json-rows.js +9 -15
  156. package/out/adapters/wof/json-rows.js.map +1 -1
  157. package/out/adapters/wof/postalcode-json/adapter.d.ts +1 -1
  158. package/out/adapters/wof/postalcode-json/adapter.d.ts.map +1 -1
  159. package/out/adapters/wof/postalcode-json/adapter.js +9 -26
  160. package/out/adapters/wof/postalcode-json/adapter.js.map +1 -1
  161. package/out/adapters/wof/sample.d.ts +8 -1
  162. package/out/adapters/wof/sample.d.ts.map +1 -1
  163. package/out/adapters/wof/sample.js +12 -4
  164. package/out/adapters/wof/sample.js.map +1 -1
  165. package/out/adapters/wof/stored-records.d.ts +62 -0
  166. package/out/adapters/wof/stored-records.d.ts.map +1 -0
  167. package/out/adapters/wof/stored-records.js +91 -0
  168. package/out/adapters/wof/stored-records.js.map +1 -0
  169. package/out/adapters.d.ts +1 -1
  170. package/out/adapters.d.ts.map +1 -1
  171. package/out/adapters.js +15 -3
  172. package/out/adapters.js.map +1 -1
  173. package/out/au/adapters/acnc-register/adapter.d.ts +9 -0
  174. package/out/au/adapters/acnc-register/adapter.d.ts.map +1 -0
  175. package/out/au/adapters/acnc-register/adapter.js +37 -0
  176. package/out/au/adapters/acnc-register/adapter.js.map +1 -0
  177. package/out/au/evaluation/acnc-register.d.ts +56 -0
  178. package/out/au/evaluation/acnc-register.d.ts.map +1 -0
  179. package/out/au/evaluation/acnc-register.js +84 -0
  180. package/out/au/evaluation/acnc-register.js.map +1 -0
  181. package/out/build/align/range.d.ts.map +1 -1
  182. package/out/build/align/range.js +9 -0
  183. package/out/build/align/range.js.map +1 -1
  184. package/out/build/align/totals.d.ts +5 -0
  185. package/out/build/align/totals.d.ts.map +1 -1
  186. package/out/build/align/totals.js +15 -0
  187. package/out/build/align/totals.js.map +1 -1
  188. package/out/build/align.d.ts +26 -0
  189. package/out/build/align.d.ts.map +1 -1
  190. package/out/build/align.js +35 -2
  191. package/out/build/align.js.map +1 -1
  192. package/out/build/budget.d.ts +9 -26
  193. package/out/build/budget.d.ts.map +1 -1
  194. package/out/build/budget.js +10 -31
  195. package/out/build/budget.js.map +1 -1
  196. package/out/build/checkpoint.d.ts +11 -0
  197. package/out/build/checkpoint.d.ts.map +1 -1
  198. package/out/build/checkpoint.js.map +1 -1
  199. package/out/build/component-check.d.ts +55 -1
  200. package/out/build/component-check.d.ts.map +1 -1
  201. package/out/build/component-check.js +65 -3
  202. package/out/build/component-check.js.map +1 -1
  203. package/out/build/manifest.d.ts.map +1 -1
  204. package/out/build/manifest.js +4 -0
  205. package/out/build/manifest.js.map +1 -1
  206. package/out/build/parallel.d.ts.map +1 -1
  207. package/out/build/parallel.js +8 -24
  208. package/out/build/parallel.js.map +1 -1
  209. package/out/build/region-names.d.ts +120 -0
  210. package/out/build/region-names.d.ts.map +1 -0
  211. package/out/build/region-names.js +430 -0
  212. package/out/build/region-names.js.map +1 -0
  213. package/out/build/source-record.d.ts.map +1 -1
  214. package/out/build/source-record.js +4 -0
  215. package/out/build/source-record.js.map +1 -1
  216. package/out/build/types.d.ts +20 -0
  217. package/out/build/types.d.ts.map +1 -1
  218. package/out/build/worker.js +3 -1
  219. package/out/build/worker.js.map +1 -1
  220. package/out/build.d.ts +0 -1
  221. package/out/build.d.ts.map +1 -1
  222. package/out/build.js +3 -5
  223. package/out/build.js.map +1 -1
  224. package/out/de/recipes/locale.d.ts.map +1 -1
  225. package/out/de/recipes/locale.js +3 -2
  226. package/out/de/recipes/locale.js.map +1 -1
  227. package/out/env.d.ts +0 -2
  228. package/out/env.d.ts.map +1 -1
  229. package/out/env.js +0 -5
  230. package/out/env.js.map +1 -1
  231. package/out/es/adapters/sanidad-centros-ap/adapter.d.ts +9 -0
  232. package/out/es/adapters/sanidad-centros-ap/adapter.d.ts.map +1 -0
  233. package/out/es/adapters/sanidad-centros-ap/adapter.js +36 -0
  234. package/out/es/adapters/sanidad-centros-ap/adapter.js.map +1 -0
  235. package/out/es/evaluation/sanidad-centros-ap.d.ts +34 -0
  236. package/out/es/evaluation/sanidad-centros-ap.d.ts.map +1 -0
  237. package/out/es/evaluation/sanidad-centros-ap.js +128 -0
  238. package/out/es/evaluation/sanidad-centros-ap.js.map +1 -0
  239. package/out/evaluation/corpus-adapter.d.ts +60 -0
  240. package/out/evaluation/corpus-adapter.d.ts.map +1 -0
  241. package/out/evaluation/corpus-adapter.js +100 -0
  242. package/out/evaluation/corpus-adapter.js.map +1 -0
  243. package/out/evaluation/source.d.ts +134 -0
  244. package/out/evaluation/source.d.ts.map +1 -0
  245. package/out/evaluation/source.js +80 -0
  246. package/out/evaluation/source.js.map +1 -0
  247. package/out/evaluation/sources.d.ts +6 -0
  248. package/out/evaluation/sources.d.ts.map +1 -0
  249. package/out/evaluation/sources.js +22 -0
  250. package/out/evaluation/sources.js.map +1 -0
  251. package/out/fr/adapters/laposte-poincont/adapter.d.ts +110 -0
  252. package/out/fr/adapters/laposte-poincont/adapter.d.ts.map +1 -0
  253. package/out/fr/adapters/laposte-poincont/adapter.js +315 -0
  254. package/out/fr/adapters/laposte-poincont/adapter.js.map +1 -0
  255. package/out/fr/recipes/unit-line-guideline.d.ts.map +1 -1
  256. package/out/fr/recipes/unit-line-guideline.js +8 -4
  257. package/out/fr/recipes/unit-line-guideline.js.map +1 -1
  258. package/out/fr/structures/laposte.d.ts +27 -0
  259. package/out/fr/structures/laposte.d.ts.map +1 -0
  260. package/out/fr/structures/laposte.js +96 -0
  261. package/out/fr/structures/laposte.js.map +1 -0
  262. package/out/fr/tools/fetch/laposte-poincont.d.ts +95 -0
  263. package/out/fr/tools/fetch/laposte-poincont.d.ts.map +1 -0
  264. package/out/fr/tools/fetch/laposte-poincont.js +135 -0
  265. package/out/fr/tools/fetch/laposte-poincont.js.map +1 -0
  266. package/out/it/adapters/miur-scuole/adapter.d.ts +9 -0
  267. package/out/it/adapters/miur-scuole/adapter.d.ts.map +1 -0
  268. package/out/it/adapters/miur-scuole/adapter.js +35 -0
  269. package/out/it/adapters/miur-scuole/adapter.js.map +1 -0
  270. package/out/it/evaluation/miur-scuole.d.ts +53 -0
  271. package/out/it/evaluation/miur-scuole.d.ts.map +1 -0
  272. package/out/it/evaluation/miur-scuole.js +68 -0
  273. package/out/it/evaluation/miur-scuole.js.map +1 -0
  274. package/out/jp/adapters/wof-admin/adapter.js +4 -4
  275. package/out/nc/adapters/opt-nc/adapter.d.ts +84 -0
  276. package/out/nc/adapters/opt-nc/adapter.d.ts.map +1 -0
  277. package/out/nc/adapters/opt-nc/adapter.js +173 -0
  278. package/out/nc/adapters/opt-nc/adapter.js.map +1 -0
  279. package/out/nc/structures/opt-nc.d.ts +12 -0
  280. package/out/nc/structures/opt-nc.d.ts.map +1 -0
  281. package/out/nc/structures/opt-nc.js +64 -0
  282. package/out/nc/structures/opt-nc.js.map +1 -0
  283. package/out/nc/tools/fetch/opt-nc.d.ts +81 -0
  284. package/out/nc/tools/fetch/opt-nc.d.ts.map +1 -0
  285. package/out/nc/tools/fetch/opt-nc.js +162 -0
  286. package/out/nc/tools/fetch/opt-nc.js.map +1 -0
  287. package/out/nz/adapters/charities-register/adapter.d.ts +9 -0
  288. package/out/nz/adapters/charities-register/adapter.d.ts.map +1 -0
  289. package/out/nz/adapters/charities-register/adapter.js +36 -0
  290. package/out/nz/adapters/charities-register/adapter.js.map +1 -0
  291. package/out/nz/evaluation/charities-register.d.ts +60 -0
  292. package/out/nz/evaluation/charities-register.d.ts.map +1 -0
  293. package/out/nz/evaluation/charities-register.js +84 -0
  294. package/out/nz/evaluation/charities-register.js.map +1 -0
  295. package/out/recipes/bare/postcode.d.ts +2 -1
  296. package/out/recipes/bare/postcode.d.ts.map +1 -1
  297. package/out/recipes/bare/postcode.js +14 -11
  298. package/out/recipes/bare/postcode.js.map +1 -1
  299. package/out/recipes/deepseek/batches.d.ts +11 -1
  300. package/out/recipes/deepseek/batches.d.ts.map +1 -1
  301. package/out/recipes/deepseek/batches.js +8 -7
  302. package/out/recipes/deepseek/batches.js.map +1 -1
  303. package/out/recipes/po/box/cedex/recipe.d.ts.map +1 -1
  304. package/out/recipes/po/box/cedex/recipe.js +12 -1
  305. package/out/recipes/po/box/cedex/recipe.js.map +1 -1
  306. package/out/recipes/po/box/cedex/us.d.ts +12 -0
  307. package/out/recipes/po/box/cedex/us.d.ts.map +1 -1
  308. package/out/recipes/po/box/cedex/us.js +36 -2
  309. package/out/recipes/po/box/cedex/us.js.map +1 -1
  310. package/out/recipes/scaffold.d.ts +1 -1
  311. package/out/recipes/sources.d.ts.map +1 -1
  312. package/out/recipes/sources.js +16 -0
  313. package/out/recipes/sources.js.map +1 -1
  314. package/out/recipes.d.ts.map +1 -1
  315. package/out/recipes.js +2 -0
  316. package/out/recipes.js.map +1 -1
  317. package/out/registers.d.ts +28 -2
  318. package/out/registers.d.ts.map +1 -1
  319. package/out/registers.js +28 -2
  320. package/out/registers.js.map +1 -1
  321. package/out/{post-offices → structures}/source.d.ts +34 -16
  322. package/out/structures/source.d.ts.map +1 -0
  323. package/out/structures/source.js +39 -0
  324. package/out/structures/source.js.map +1 -0
  325. package/out/structures/sources.d.ts +6 -0
  326. package/out/structures/sources.d.ts.map +1 -0
  327. package/out/structures/sources.js +23 -0
  328. package/out/structures/sources.js.map +1 -0
  329. package/out/synthesizers/house-venue.d.ts.map +1 -1
  330. package/out/synthesizers/house-venue.js +2 -1
  331. package/out/synthesizers/house-venue.js.map +1 -1
  332. package/out/synthesizers/tail.d.ts +15 -1
  333. package/out/synthesizers/tail.d.ts.map +1 -1
  334. package/out/synthesizers/tail.js +8 -3
  335. package/out/synthesizers/tail.js.map +1 -1
  336. package/out/tools/audit.js +1 -1
  337. package/out/tools/audit.js.map +1 -1
  338. package/out/tools/fetch/storage.d.ts +10 -2
  339. package/out/tools/fetch/storage.d.ts.map +1 -1
  340. package/out/tools/fetch/storage.js +18 -4
  341. package/out/tools/fetch/storage.js.map +1 -1
  342. package/out/tools/fetch.d.ts +10 -2
  343. package/out/tools/fetch.d.ts.map +1 -1
  344. package/out/tools/fetch.js +10 -2
  345. package/out/tools/fetch.js.map +1 -1
  346. package/out/tools/overlay/kryptonite.d.ts.map +1 -1
  347. package/out/tools/overlay/kryptonite.js +5 -2
  348. package/out/tools/overlay/kryptonite.js.map +1 -1
  349. package/out/tools/overlay/split/attribute.d.ts +7 -1
  350. package/out/tools/overlay/split/attribute.d.ts.map +1 -1
  351. package/out/tools/overlay/split/attribute.js +4 -1
  352. package/out/tools/overlay/split/attribute.js.map +1 -1
  353. package/out/tools/overlay/split/overlay.d.ts +10 -0
  354. package/out/tools/overlay/split/overlay.d.ts.map +1 -1
  355. package/out/tools/overlay/split/overlay.js +17 -4
  356. package/out/tools/overlay/split/overlay.js.map +1 -1
  357. package/out/tools/postcode/triples.js +3 -3
  358. package/out/tools/postcode/triples.js.map +1 -1
  359. package/out/tools/region-slot-census.run.d.ts +2 -0
  360. package/out/tools/region-slot-census.run.d.ts.map +1 -0
  361. package/out/tools/region-slot-census.run.js +134 -0
  362. package/out/tools/region-slot-census.run.js.map +1 -0
  363. package/out/training/config/load.d.ts.map +1 -1
  364. package/out/training/config/load.js +10 -0
  365. package/out/training/config/load.js.map +1 -1
  366. package/out/training/config/schema.d.ts +13 -0
  367. package/out/training/config/schema.d.ts.map +1 -1
  368. package/out/training/config/schema.js +6 -0
  369. package/out/training/config/schema.js.map +1 -1
  370. package/out/tw/registers.d.ts +9 -0
  371. package/out/tw/registers.d.ts.map +1 -1
  372. package/out/tw/registers.js +11 -4
  373. package/out/tw/registers.js.map +1 -1
  374. package/out/tw/structures/chunghwa-post.d.ts +39 -0
  375. package/out/tw/structures/chunghwa-post.d.ts.map +1 -0
  376. package/out/tw/structures/chunghwa-post.js +150 -0
  377. package/out/tw/structures/chunghwa-post.js.map +1 -0
  378. package/out/tw/tools/fetch/chunghwa-post.d.ts +55 -0
  379. package/out/tw/tools/fetch/chunghwa-post.d.ts.map +1 -0
  380. package/out/tw/tools/fetch/chunghwa-post.js +110 -0
  381. package/out/tw/tools/fetch/chunghwa-post.js.map +1 -0
  382. package/out/us/adapters/state/ny-notaries/adapter.d.ts.map +1 -1
  383. package/out/us/adapters/state/ny-notaries/adapter.js +7 -2
  384. package/out/us/adapters/state/ny-notaries/adapter.js.map +1 -1
  385. package/out/us/adapters/state/tx-notaries/adapter.d.ts +42 -0
  386. package/out/us/adapters/state/tx-notaries/adapter.d.ts.map +1 -1
  387. package/out/us/adapters/state/tx-notaries/adapter.js +92 -19
  388. package/out/us/adapters/state/tx-notaries/adapter.js.map +1 -1
  389. package/out/us/adapters/usgov/nad/adapter.d.ts +35 -2
  390. package/out/us/adapters/usgov/nad/adapter.d.ts.map +1 -1
  391. package/out/us/adapters/usgov/nad/adapter.js +90 -27
  392. package/out/us/adapters/usgov/nad/adapter.js.map +1 -1
  393. package/out/us/adapters/usgov/nppes/adapter.d.ts.map +1 -1
  394. package/out/us/adapters/usgov/nppes/adapter.js +8 -11
  395. package/out/us/adapters/usgov/nppes/adapter.js.map +1 -1
  396. package/out/us/adapters/usgov/usgs-structures/adapter.d.ts +87 -0
  397. package/out/us/adapters/usgov/usgs-structures/adapter.d.ts.map +1 -0
  398. package/out/us/adapters/usgov/{usgs-post-offices → usgs-structures}/adapter.js +36 -27
  399. package/out/us/adapters/usgov/usgs-structures/adapter.js.map +1 -0
  400. package/out/us/recipes/county.d.ts +124 -0
  401. package/out/us/recipes/county.d.ts.map +1 -0
  402. package/out/us/recipes/county.js +295 -0
  403. package/out/us/recipes/county.js.map +1 -0
  404. package/out/us/street-unit.d.ts +10 -3
  405. package/out/us/street-unit.d.ts.map +1 -1
  406. package/out/us/street-unit.js +14 -6
  407. package/out/us/street-unit.js.map +1 -1
  408. package/out/us/structures/usgs/layers.d.ts +57 -0
  409. package/out/us/structures/usgs/layers.d.ts.map +1 -0
  410. package/out/us/structures/usgs/layers.js +121 -0
  411. package/out/us/structures/usgs/layers.js.map +1 -0
  412. package/out/us/structures/usgs/national-map.d.ts +14 -0
  413. package/out/us/structures/usgs/national-map.d.ts.map +1 -0
  414. package/out/us/{post-offices/usgs-national-map.js → structures/usgs/national-map.js} +16 -14
  415. package/out/us/structures/usgs/national-map.js.map +1 -0
  416. package/out/us/tools/fetch/usgs/gnis.d.ts +118 -0
  417. package/out/us/tools/fetch/usgs/gnis.d.ts.map +1 -0
  418. package/out/us/tools/fetch/usgs/gnis.js +177 -0
  419. package/out/us/tools/fetch/usgs/gnis.js.map +1 -0
  420. package/out/us/tools/fetch/usgs/structures.d.ts +99 -0
  421. package/out/us/tools/fetch/usgs/structures.d.ts.map +1 -0
  422. package/out/us/tools/fetch/usgs/structures.js +233 -0
  423. package/out/us/tools/fetch/usgs/structures.js.map +1 -0
  424. package/out/utils/align.js.map +1 -1
  425. package/out/utils/evaluation-groups.d.ts +98 -0
  426. package/out/utils/evaluation-groups.d.ts.map +1 -0
  427. package/out/utils/evaluation-groups.js +92 -0
  428. package/out/utils/evaluation-groups.js.map +1 -0
  429. package/out/utils/split.d.ts +26 -1
  430. package/out/utils/split.d.ts.map +1 -1
  431. package/out/utils/split.js +28 -3
  432. package/out/utils/split.js.map +1 -1
  433. package/out/utils/tokenize.d.ts +3 -3
  434. package/out/utils/tokenize.d.ts.map +1 -1
  435. package/out/utils/tokenize.js.map +1 -1
  436. package/out/utils/validation-groups.d.ts +168 -0
  437. package/out/utils/validation-groups.d.ts.map +1 -0
  438. package/out/utils/validation-groups.js +135 -0
  439. package/out/utils/validation-groups.js.map +1 -0
  440. package/out/utils/wof-json.d.ts +31 -57
  441. package/out/utils/wof-json.d.ts.map +1 -1
  442. package/out/utils/wof-json.js +81 -98
  443. package/out/utils/wof-json.js.map +1 -1
  444. package/package.json +18 -18
  445. package/lib/adapters/wof/record-cache.ts +0 -118
  446. package/lib/build/heap.ts +0 -60
  447. package/lib/post-offices/sources.ts +0 -18
  448. package/lib/us/post-offices/usgs-national-map.ts +0 -89
  449. package/lib/us/tools/fetch/usgs-post-offices.ts +0 -362
  450. package/out/adapters/wof/record-cache.d.ts +0 -22
  451. package/out/adapters/wof/record-cache.d.ts.map +0 -1
  452. package/out/adapters/wof/record-cache.js +0 -89
  453. package/out/adapters/wof/record-cache.js.map +0 -1
  454. package/out/build/heap.d.ts +0 -26
  455. package/out/build/heap.d.ts.map +0 -1
  456. package/out/build/heap.js +0 -52
  457. package/out/build/heap.js.map +0 -1
  458. package/out/post-offices/source.d.ts.map +0 -1
  459. package/out/post-offices/source.js +0 -21
  460. package/out/post-offices/source.js.map +0 -1
  461. package/out/post-offices/sources.d.ts +0 -13
  462. package/out/post-offices/sources.d.ts.map +0 -1
  463. package/out/post-offices/sources.js +0 -8
  464. package/out/post-offices/sources.js.map +0 -1
  465. package/out/us/adapters/usgov/usgs-post-offices/adapter.d.ts +0 -66
  466. package/out/us/adapters/usgov/usgs-post-offices/adapter.d.ts.map +0 -1
  467. package/out/us/adapters/usgov/usgs-post-offices/adapter.js.map +0 -1
  468. package/out/us/post-offices/usgs-national-map.d.ts +0 -14
  469. package/out/us/post-offices/usgs-national-map.d.ts.map +0 -1
  470. package/out/us/post-offices/usgs-national-map.js.map +0 -1
  471. package/out/us/tools/fetch/usgs-post-offices.d.ts +0 -99
  472. package/out/us/tools/fetch/usgs-post-offices.d.ts.map +0 -1
  473. package/out/us/tools/fetch/usgs-post-offices.js +0 -246
  474. package/out/us/tools/fetch/usgs-post-offices.js.map +0 -1
@@ -0,0 +1,315 @@
1
+ // SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
2
+ // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
3
+ /**
4
+ * `fr-laposte-poincont`: La Poste's list of its points of contact, the dataset `laposte-poincont2`
5
+ * (« Liste des bureaux de poste, agences postales et relais poste ») on `data.laposte.fr`.
6
+ *
7
+ * `mailwoman corpus fetch fr-laposte-poincont` writes one row per line with the fields in
8
+ * {@linkcode LAPOSTE_POINCONT_FIELDS}: the site's identifier, La Poste's label for it,
9
+ * its type, a street line, a complement, a lieu-dit, the postcode, the locality,
10
+ * the INSEE commune code, the country and a point.
11
+ *
12
+ * ## Which rows are read
13
+ *
14
+ * The 2026-11-08 file holds 19,858 sites in seven types: `Agence postale communale`,
15
+ * `Bureau de Poste`, `Relais poste`, `Point partenaire`, `Agence postale intercommunale`,
16
+ * `Agence postale ou Relais poste` and `Agence postale`.
17
+ * Every type trains, because each row is a public counter's label beside its address.
18
+ * {@linkcode isLaPostePostOffice} decides which of them the structures layer files as post offices.
19
+ *
20
+ * The jurisdiction is read from the INSEE commune code through `countryOfInseeCode`, so a site
21
+ * in an overseas department is stamped with that department's code (`RE`, `GP`, `MQ`, …).
22
+ * The seven Andorran sites (`pays` `ANDORRE`, postcodes `AD100`–`AD600`) are refused under
23
+ * {@linkcode LaPosteRefusal.NotFrance}: Andorra's codex layout and street shapes are not French.
24
+ *
25
+ * ## The venue
26
+ *
27
+ * The label is La Poste's name for the site followed by a code for its type
28
+ * (`AMBERIEU EN DOMBES BP`, `ANGLEFORT THE LIXIR RP`, `BEAUREGARD MAIRIE AP`, `NANTERRE E.LECLERC LPP`).
29
+ * No address writer prints the trailing code. {@linkcode laPosteSiteName} drops it
30
+ * and keeps the rest as the publisher wrote it.
31
+ *
32
+ * `venue` is inserted first so alignment claims its span before `locality` searches for its own.
33
+ *
34
+ * ## The address
35
+ *
36
+ * `adresse` is read by `readAnnuaireLine`, the French line reader the Annuaire de
37
+ * l'éducation adapter uses: a house number, a street-type word and a name, or a place.
38
+ * `lieu_dit` is the former commune or hamlet inside a merged commune
39
+ * (`CHAVANNES SUR SURAN` in `NIVIGNE ET SURAN`) and becomes `dependent_locality`
40
+ * when it differs from the locality.
41
+ *
42
+ * `complement_d_adresse` mixes a host shop's trading name (`TABAC GUDIN MIREILLE`), a building
43
+ * (`MAIRIE`, `CITE ADMINISTRATIVE`) and a district (`ZAC DE MOUSQUETTE`), and a few name a person.
44
+ * No reading tells these apart, so the line is left out of every row
45
+ * and counted under {@linkcode LaPosteTrim.Complement}.
46
+ *
47
+ * ## People in the labels
48
+ *
49
+ * A relais poste or partner point is a shop, and its label can be the shop's trading name.
50
+ * For a sole trader that name can be the keeper's surname
51
+ * (`BRENOD GUDIN BURALISTE`, complement `TABAC GUDIN MIREILLE`).
52
+ *
53
+ * The label is the name the shop trades under, so it is read as a venue.
54
+ *
55
+ * A complement that opens with an honorific (`MME CHAMBARD`) identifies the keeper rather than the
56
+ * shop. 20 relais rows of the 2026-11-08 file do, and the label `MANZIAT CHAMBARD BURALISTE RP`
57
+ * holds that surname. {@linkcode laPosteNamesKeeper} finds them, and each is refused under
58
+ * {@linkcode LaPosteRefusal.KeeperNamed} and filed in the structures layer without its label.
59
+ * A keeper's surname in a label whose complement holds no honorific passes.
60
+ * This passing surname is the residual exposure.
61
+ *
62
+ * ## License
63
+ *
64
+ * The publisher's dataset record states `license` `Licence Ouverte / Open Licence`
65
+ * (`https://www.etalab.gouv.fr/licence-ouverte-open-licence`), owner `La poste`,
66
+ * origin `La Poste - Branche Réseau`.
67
+ * Licence Ouverte 2.0 lets the reuser « l'adapter, la modifier, l'extraire et la transformer », subject
68
+ * to naming the source and the date of its last update. {@linkcode FR_LAPOSTE_POINCONT_ATTRIBUTION}
69
+ * states the source, and the fetch manifest records the update date.
70
+ */
71
+ import { formatAddressRow } from "@mailwoman/codex/address/format";
72
+ import { JSONSpliterator } from "spliterator";
73
+ import { UnsupportedCountryError } from "#adapters/errors";
74
+ import { readAnnuaireLine } from "#fr/adapters/annuaire-education/adapter";
75
+ import { isSamePlace } from "#fr/adapters/finess/postal-lines";
76
+ import { countryOfInseeCode, INSEE_COUNTRIES } from "#fr/insee-country";
77
+ import { SourceRegister } from "#registers";
78
+ import { AddressRole, countDropped, SurfaceOrigin, } from "#types";
79
+ /**
80
+ * Registry id for this adapter, and the source directory its fetcher writes.
81
+ */
82
+ export const FR_LAPOSTE_POINCONT_ADAPTER_ID = "fr-laposte-poincont";
83
+ /**
84
+ * The license the publisher's dataset record states.
85
+ */
86
+ export const FR_LAPOSTE_POINCONT_LICENSE = "Licence Ouverte 2.0";
87
+ /**
88
+ * The credit Licence Ouverte 2.0 requires: the licensor's name, beside the date of the data's last update.
89
+ */
90
+ export const FR_LAPOSTE_POINCONT_ATTRIBUTION = "La Poste - Branche Réseau, Liste des bureaux de poste, agences postales et relais poste (laposte-poincont2), via data.laposte.fr";
91
+ /**
92
+ * The file the fetcher writes and the adapter reads, one row per line.
93
+ */
94
+ export const LAPOSTE_POINCONT_FILENAME = "laposte-poincont2.jsonl";
95
+ /**
96
+ * The dataset fields the fetcher keeps, in the publisher's spelling.
97
+ */
98
+ export const LAPOSTE_POINCONT_FIELDS = [
99
+ "identifiant_a",
100
+ "libelle_du_site",
101
+ "caracteristique_du_site",
102
+ "adresse",
103
+ "complement_d_adresse",
104
+ "lieu_dit",
105
+ "code_postal",
106
+ "localite",
107
+ "code_insee",
108
+ "pays",
109
+ "latitude",
110
+ "longitude",
111
+ "precision_du_geocodage",
112
+ ];
113
+ /**
114
+ * Why a row yielded no corpus row.
115
+ */
116
+ export const LaPosteRefusal = {
117
+ /**
118
+ * The site is outside France (`pays` isn't `FRANCE`).
119
+ */
120
+ NotFrance: "row:not-france",
121
+ /**
122
+ * The row has no identifier.
123
+ */
124
+ IdentifierAbsent: "row:identifier-absent",
125
+ /**
126
+ * The label is empty once its type code is dropped.
127
+ */
128
+ NameAbsent: "row:name-absent",
129
+ /**
130
+ * `code_postal` isn't five digits.
131
+ */
132
+ PostcodeAbsent: "row:postcode-absent",
133
+ LocalityAbsent: "row:locality-absent",
134
+ /**
135
+ * `adresse` is empty.
136
+ */
137
+ StreetLineAbsent: "row:street-line-absent",
138
+ /**
139
+ * `adresse` holds a digit the line reader cannot place, or a street-type word with no name.
140
+ */
141
+ StreetLineUnread: "row:street-line-unread",
142
+ /**
143
+ * The complement identifies the site's keeper by an honorific (`MME CHAMBARD`).
144
+ */
145
+ KeeperNamed: "row:keeper-named",
146
+ /**
147
+ * The jurisdiction's layout doesn't print every component the row holds.
148
+ */
149
+ Unrenderable: "row:unrenderable",
150
+ };
151
+ /**
152
+ * Why an admitted row left out a field the record holds.
153
+ */
154
+ export const LaPosteTrim = {
155
+ /**
156
+ * `complement_d_adresse` was left out.
157
+ */
158
+ Complement: "component:complement:unread",
159
+ };
160
+ /**
161
+ * The type codes La Poste appends to a site's label: bureau de poste, agence postale,
162
+ * relais poste, La Poste Partenaire (and its `LPPS` variant), and the express parcel points.
163
+ */
164
+ const LABEL_TYPE_CODE = /\s+(?:BP|AP|RP|LPPS?|EXP)$/u;
165
+ /**
166
+ * The site types a post office is: every type but `Point partenaire`, a shop that hands over parcels.
167
+ */
168
+ const POST_OFFICE_TYPE = /^(?:bureau de poste|agence postale|relais poste)/iu;
169
+ function text(value) {
170
+ return value == null ? "" : String(value).replaceAll(/\s+/gu, " ").trim();
171
+ }
172
+ /**
173
+ * The site's name: its label without the trailing type code, or `null` when the label held only the code.
174
+ */
175
+ export function laPosteSiteName(record) {
176
+ return text(record.libelle_du_site).replace(LABEL_TYPE_CODE, "").trim() || null;
177
+ }
178
+ /**
179
+ * A complement opening with an honorific: `MME CHAMBARD`, `M. DUPONT`, `MONSIEUR …`.
180
+ */
181
+ const HONORIFIC = /^(?:MME|MLLE|MR|M\.?|MONSIEUR|MADAME|MADEMOISELLE)\s+\S/iu;
182
+ /**
183
+ * Whether the row's complement identifies the site's keeper by an honorific.
184
+ */
185
+ export function laPosteNamesKeeper(record) {
186
+ return HONORIFIC.test(text(record.complement_d_adresse));
187
+ }
188
+ /**
189
+ * Whether the site is a post office rather than a parcel partner.
190
+ */
191
+ export function isLaPostePostOffice(record) {
192
+ return POST_OFFICE_TYPE.test(text(record.caracteristique_du_site));
193
+ }
194
+ /**
195
+ * One row's address as labeled components with its jurisdiction, or the reason it has none.
196
+ */
197
+ export function readLaPosteAddress(record) {
198
+ if (text(record.pays).toUpperCase() !== "FRANCE")
199
+ return { refused: LaPosteRefusal.NotFrance };
200
+ const postcode = text(record.code_postal);
201
+ const locality = text(record.localite);
202
+ const line = text(record.adresse);
203
+ if (!/^\d{5}$/u.test(postcode))
204
+ return { refused: LaPosteRefusal.PostcodeAbsent };
205
+ if (!locality)
206
+ return { refused: LaPosteRefusal.LocalityAbsent };
207
+ if (!line)
208
+ return { refused: LaPosteRefusal.StreetLineAbsent };
209
+ const reading = readAnnuaireLine(line);
210
+ const components = {};
211
+ const places = [];
212
+ switch (reading.kind) {
213
+ case "street":
214
+ if (reading.house_number) {
215
+ components.house_number = reading.house_number;
216
+ }
217
+ if (reading.street_prefix) {
218
+ components.street_prefix = reading.street_prefix;
219
+ }
220
+ components.street = reading.street;
221
+ break;
222
+ case "place":
223
+ places.push(reading.place);
224
+ break;
225
+ default:
226
+ return { refused: LaPosteRefusal.StreetLineUnread };
227
+ }
228
+ const lieuDit = text(record.lieu_dit);
229
+ if (lieuDit) {
230
+ places.push(lieuDit);
231
+ }
232
+ // The first place that isn't the locality is the district.
233
+ // A row with no street keeps its place line as the street.
234
+ const place = places.find((candidate) => !isSamePlace(candidate, locality));
235
+ if (place) {
236
+ components.dependent_locality = place;
237
+ }
238
+ else if (!components.street) {
239
+ components.street = places[0];
240
+ }
241
+ components.postcode = postcode;
242
+ components.locality = locality;
243
+ return { country: countryOfInseeCode(text(record.code_insee)), components };
244
+ }
245
+ /**
246
+ * Read one row into a corpus row, or report why it yielded none.
247
+ */
248
+ export function readLaPosteRecord(record) {
249
+ const id = text(record.identifiant_a);
250
+ if (!id)
251
+ return { refused: LaPosteRefusal.IdentifierAbsent };
252
+ if (laPosteNamesKeeper(record))
253
+ return { refused: LaPosteRefusal.KeeperNamed };
254
+ const address = readLaPosteAddress(record);
255
+ if ("refused" in address)
256
+ return address;
257
+ const name = laPosteSiteName(record);
258
+ if (!name)
259
+ return { refused: LaPosteRefusal.NameAbsent };
260
+ // `venue` first, so alignment claims its span before `locality` searches for its own.
261
+ const rendered = formatAddressRow({ venue: name, ...address.components }, address.country, { singleLine: true });
262
+ if (!rendered || rendered.unplaced.length)
263
+ return { refused: LaPosteRefusal.Unrenderable };
264
+ return {
265
+ admitted: {
266
+ raw: rendered.raw,
267
+ components: rendered.components,
268
+ country: address.country,
269
+ locale: `fr-${address.country}`,
270
+ source: FR_LAPOSTE_POINCONT_ADAPTER_ID,
271
+ source_id: `${FR_LAPOSTE_POINCONT_ADAPTER_ID}-${id}`,
272
+ license: FR_LAPOSTE_POINCONT_LICENSE,
273
+ },
274
+ trimmed: Boolean(text(record.complement_d_adresse)),
275
+ };
276
+ }
277
+ export function createLaPostePoincontAdapter() {
278
+ return {
279
+ id: FR_LAPOSTE_POINCONT_ADAPTER_ID,
280
+ defaultLicense: FR_LAPOSTE_POINCONT_LICENSE,
281
+ addressRole: AddressRole.Facility,
282
+ register: SourceRegister.LaPostePoincont,
283
+ surface: SurfaceOrigin.Rendered,
284
+ description: "La Poste's points of contact (Licence Ouverte 2.0): post offices, communal postal agencies, relais poste and partner points beside their addresses, in France and its overseas departments.",
285
+ async *rows(opts) {
286
+ if (opts.country && !INSEE_COUNTRIES.includes(opts.country)) {
287
+ throw new UnsupportedCountryError(FR_LAPOSTE_POINCONT_ADAPTER_ID, INSEE_COUNTRIES, opts.country);
288
+ }
289
+ let emitted = 0;
290
+ for await (const record of JSONSpliterator.fromAsync(opts.inputPath)) {
291
+ if (opts.signal?.aborted)
292
+ break;
293
+ if (typeof opts.limit === "number" && emitted >= opts.limit)
294
+ break;
295
+ const reading = readLaPosteRecord(record);
296
+ if ("refused" in reading) {
297
+ countDropped(opts, reading.refused);
298
+ continue;
299
+ }
300
+ if (opts.country && reading.admitted.country !== opts.country)
301
+ continue;
302
+ if (reading.trimmed) {
303
+ countDropped(opts, LaPosteTrim.Complement);
304
+ }
305
+ yield reading.admitted;
306
+ emitted++;
307
+ }
308
+ },
309
+ };
310
+ }
311
+ /**
312
+ * The configured adapter instance registered with the corpus builder.
313
+ */
314
+ export const laPostePoincontAdapter = createLaPostePoincontAdapter();
315
+ //# sourceMappingURL=adapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../../lib/fr/adapters/laposte-poincont/adapter.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAA;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,EACN,WAAW,EAGX,YAAY,EAEZ,aAAa,GACb,MAAM,QAAQ,CAAA;AAEf;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,qBAAqB,CAAA;AAEnE;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG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AI,OAAO,CAAC,OAAO,EAAE,CAAC;oBACrB,YAAY,CAAC,IAAI,EAAE,WAAW,CAAC,UAAU,CAAC,CAAA;gBAC3C,CAAC;gBAED,MAAM,OAAO,CAAC,QAAQ,CAAA;gBAEtB,OAAO,EAAE,CAAA;YACV,CAAC;QACF,CAAC;KACD,CAAA;AACF,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,4BAA4B,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"unit-line-guideline.d.ts","sourceRoot":"","sources":["../../../lib/fr/recipes/unit-line-guideline.ts"],"names":[],"mappings":"AAuBA,OAAO,EAMN,KAAK,kBAAkB,EACvB,MAAM,+BAA+B,CAAA;AAyBtC;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,kBAoDxC,CAAA"}
1
+ {"version":3,"file":"unit-line-guideline.d.ts","sourceRoot":"","sources":["../../../lib/fr/recipes/unit-line-guideline.ts"],"names":[],"mappings":"AAwBA,OAAO,EAMN,KAAK,kBAAkB,EACvB,MAAM,+BAA+B,CAAA;AA2BtC;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,kBAsDxC,CAAA"}
@@ -10,8 +10,9 @@
10
10
  * writes `Escalier 4` and `Entrée C`.
11
11
  * The flat is written as the example's `Appartement` or as line 2's `APP`.
12
12
  *
13
- * A residence or housing estate takes another held-out place's name as its identifier.
14
- * Every other designator takes a number or a letter.
13
+ * A residence or housing estate takes another held-out place's name as its identifier,
14
+ * and is labeled `venue`, the schema's place with a proper name.
15
+ * Every other designator takes a number or a letter and is labeled `unit`.
15
16
  *
16
17
  * The street is the example's `RUE DE` and another held-out place's name.
17
18
  */
@@ -26,6 +27,8 @@ const TRAINING_DESIGNATORS = new Set(["ESCALIER", "ENTREE"]);
26
27
  const RULES = FR_UNIT_LINE_RULES.filter((rule) => !TRAINING_DESIGNATORS.has(rule.designator));
27
28
  /**
28
29
  * The designators whose identifier is a place name rather than a number or letter.
30
+ *
31
+ * A line that gives a complex's proper name is a `venue`, not a `unit`.
29
32
  */
30
33
  const NAMED_DESIGNATORS = new Set(["RESIDENCE", "LOTISSEMENT"]);
31
34
  /**
@@ -60,7 +63,8 @@ export const FR_UNIT_LINE_GUIDELINE_LEG = {
60
63
  const streetName = (drawOtherPlaceName(random, place, pool) ?? "l’eglise").toUpperCase();
61
64
  // A residence with the street's name would leave the aligner two equal spans.
62
65
  const residenceName = (drawOtherPlaceName(random, place, pool) ?? "jonquille").toUpperCase();
63
- const identifier = NAMED_DESIGNATORS.has(rule.designator)
66
+ const named = NAMED_DESIGNATORS.has(rule.designator);
67
+ const identifier = named
64
68
  ? residenceName === streetName
65
69
  ? "JONQUILLE"
66
70
  : residenceName
@@ -73,7 +77,7 @@ export const FR_UNIT_LINE_GUIDELINE_LEG = {
73
77
  template: arrangement.template,
74
78
  ruleID: rule.id,
75
79
  ...joinGuidelineLines([
76
- [["unit", `${form} ${identifier}`]],
80
+ [[named ? "venue" : "unit", `${form} ${identifier}`]],
77
81
  [
78
82
  ["house_number", houseNumber],
79
83
  ["street", `RUE DE ${streetName}`],
@@ -1 +1 @@
1
- {"version":3,"file":"unit-line-guideline.js","sourceRoot":"","sources":["../../../lib/fr/recipes/unit-line-guideline.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAE/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAA;AAC3E,OAAO,EACN,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,GAElB,MAAM,+BAA+B,CAAA;AAEtC;;GAEG;AACH,MAAM,oBAAoB,GAAwB,IAAI,GAAG,CAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAA;AACjF,MAAM,KA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WAAW,CAAC,SAAS,CACrB;SACD,CAAA;IACF,CAAC;CACD,CAAA"}
@@ -0,0 +1,27 @@
1
+ import { type LaPostePoincontRecord } from "#fr/adapters/laposte-poincont/adapter";
2
+ import { type StructureRecord, type StructureSource } from "#structures/source";
3
+ /**
4
+ * One fetched row as a structure record, or `null` when it has no identifier or is a parcel partner.
5
+ *
6
+ * The address is read as the `fr-laposte-poincont` adapter reads it.
7
+ */
8
+ export declare function laPosteStructureRecord(record: LaPostePoincontRecord, category: string): StructureRecord | null;
9
+ /**
10
+ * La Poste's points of contact in one jurisdiction.
11
+ *
12
+ * A source states one country for every row it contributes, and the file covers metropolitan France
13
+ * and the overseas departments, so each jurisdiction is its own source over the same file.
14
+ */
15
+ export declare function laPostePoincontStructures(country: string): StructureSource;
16
+ /**
17
+ * The jurisdictions La Poste's file holds sites in: metropolitan France and the overseas
18
+ * departments and collectivities whose INSEE codes appear in it.
19
+ *
20
+ * French Polynesia, New Caledonia and Wallis and Futuna have their own postal operators and hold no row.
21
+ */
22
+ export declare const LAPOSTE_POINCONT_COUNTRIES: readonly string[];
23
+ /**
24
+ * One structure source per jurisdiction in {@linkcode LAPOSTE_POINCONT_COUNTRIES}.
25
+ */
26
+ export declare const LAPOSTE_POINCONT_STRUCTURE_SOURCES: readonly StructureSource[];
27
+ //# sourceMappingURL=laposte.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"laposte.d.ts","sourceRoot":"","sources":["../../../lib/fr/structures/laposte.ts"],"names":[],"mappings":"AAkBA,OAAO,EAMN,KAAK,qBAAqB,EAE1B,MAAM,uCAAuC,CAAA;AAG9C,OAAO,EAGN,KAAK,eAAe,EACpB,KAAK,eAAe,EAEpB,MAAM,oBAAoB,CAAA;AAG3B;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAiB9G;AAqBD;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,CAyB1E;AAED;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,EAAE,SAAS,MAAM,EAYvD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,kCAAkC,EAAE,SAAS,eAAe,EACf,CAAA"}
@@ -0,0 +1,96 @@
1
+ // SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
2
+ // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
3
+ import { JSONSpliterator } from "spliterator";
4
+ import { FR_LAPOSTE_POINCONT_ADAPTER_ID, isLaPostePostOffice, LAPOSTE_POINCONT_FILENAME, laPosteNamesKeeper, laPosteSiteName, readLaPosteAddress, } from "#fr/adapters/laposte-poincont/adapter";
5
+ import { countryOfInseeCode } from "#fr/insee-country";
6
+ import { postOfficeCategoryID, StructureProvenance, } from "#structures/source";
7
+ import { readManifest } from "#tools/fetch/download";
8
+ /**
9
+ * One fetched row as a structure record, or `null` when it has no identifier or is a parcel partner.
10
+ *
11
+ * The address is read as the `fr-laposte-poincont` adapter reads it.
12
+ */
13
+ export function laPosteStructureRecord(record, category) {
14
+ const id = record.identifiant_a == null ? "" : String(record.identifiant_a).trim();
15
+ if (!id || !isLaPostePostOffice(record))
16
+ return null;
17
+ const latitude = typeof record.latitude === "number" ? record.latitude : null;
18
+ const longitude = typeof record.longitude === "number" ? record.longitude : null;
19
+ const address = readLaPosteAddress(record);
20
+ return {
21
+ id,
22
+ // A label beside a complement identifying the keeper may hold the keeper's surname.
23
+ name: laPosteNamesKeeper(record) ? null : laPosteSiteName(record),
24
+ category,
25
+ point: latitude != null && longitude != null ? { latitude, longitude } : null,
26
+ address: "components" in address ? address.components : null,
27
+ };
28
+ }
29
+ /**
30
+ * The records of one jurisdiction, read from its INSEE commune code.
31
+ */
32
+ async function* records(path, country) {
33
+ const category = postOfficeCategoryID();
34
+ for await (const row of JSONSpliterator.fromAsync(path.toString())) {
35
+ if (countryOfInseeCode(row.code_insee == null ? "" : String(row.code_insee)) !== country)
36
+ continue;
37
+ const record = laPosteStructureRecord(row, category);
38
+ if (record) {
39
+ yield record;
40
+ }
41
+ }
42
+ }
43
+ const FETCH_COMMAND = "mailwoman corpus fetch fr-laposte-poincont";
44
+ /**
45
+ * La Poste's points of contact in one jurisdiction.
46
+ *
47
+ * A source states one country for every row it contributes, and the file covers metropolitan France
48
+ * and the overseas departments, so each jurisdiction is its own source over the same file.
49
+ */
50
+ export function laPostePoincontStructures(country) {
51
+ return {
52
+ id: country === "FR" ? "laposte-poincont" : `laposte-poincont-${country.toLowerCase()}`,
53
+ country,
54
+ publisher: "La Poste",
55
+ attribution: "La Poste - Branche Réseau, Liste des bureaux de poste, agences postales et relais poste",
56
+ license: "etalab-2.0",
57
+ registerSource: "fr-postal-1",
58
+ provenance: StructureProvenance.PostalOperator,
59
+ fetchCommand: FETCH_COMMAND,
60
+ async read(sourcesRoot) {
61
+ const directory = sourcesRoot(FR_LAPOSTE_POINCONT_ADAPTER_ID);
62
+ const manifest = await readManifest(directory("MANIFEST.json"));
63
+ if (!manifest?.downloaded_at) {
64
+ throw new Error(`${directory} holds no MANIFEST.json with a fetch date. Run \`${FETCH_COMMAND}\` first.`);
65
+ }
66
+ return {
67
+ vintage: (manifest.publisher_version ?? manifest.downloaded_at).slice(0, 10),
68
+ records: records(directory(LAPOSTE_POINCONT_FILENAME), country),
69
+ };
70
+ },
71
+ };
72
+ }
73
+ /**
74
+ * The jurisdictions La Poste's file holds sites in: metropolitan France and the overseas
75
+ * departments and collectivities whose INSEE codes appear in it.
76
+ *
77
+ * French Polynesia, New Caledonia and Wallis and Futuna have their own postal operators and hold no row.
78
+ */
79
+ export const LAPOSTE_POINCONT_COUNTRIES = [
80
+ // country-branch: the jurisdictions La Poste's own file serves.
81
+ // The file's INSEE commune codes are the source.
82
+ "FR",
83
+ "GP",
84
+ "MQ",
85
+ "GF",
86
+ "RE",
87
+ "PM",
88
+ "YT",
89
+ "BL",
90
+ "MF",
91
+ ];
92
+ /**
93
+ * One structure source per jurisdiction in {@linkcode LAPOSTE_POINCONT_COUNTRIES}.
94
+ */
95
+ export const LAPOSTE_POINCONT_STRUCTURE_SOURCES = LAPOSTE_POINCONT_COUNTRIES.map(laPostePoincontStructures);
96
+ //# sourceMappingURL=laposte.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"laposte.js","sourceRoot":"","sources":["../../../lib/fr/structures/laposte.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAelE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C,OAAO,EACN,8BAA8B,EAC9B,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,eAAe,EAEf,kBAAkB,GAClB,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAEtD,OAAO,EACN,oBAAoB,EACpB,mBAAmB,GAInB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CAAC,MAA6B,EAAE,QAAgB;IACrF,MAAM,EAAE,GAAG,MAAM,CAAC,aAAa,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,IAAI,EAAE,CAAA;IAElF,IAAI,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC;QAAE,OAAO,IAAI,CAAA;IAEpD,MAAM,QAAQ,GAAG,OAAO,MAAM,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAA;IAC7E,MAAM,SAAS,GAAG,OAAO,MAAM,CAAC,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAA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,WAAW,EAAE,EAAE;QACvF,OAAO;QACP,SAAS,EAAE,UAAU;QACrB,WAAW,EAAE,yFAAyF;QACtG,OAAO,EAAE,YAAY;QACrB,cAAc,EAAE,aAAa;QAC7B,UAAU,EAAE,mBAAmB,CAAC,cAAc;QAC9C,YAAY,EAAE,aAAa;QAE3B,KAAK,CAAC,IAAI,CAAC,WAAW;YACrB,MAAM,SAAS,GAAG,WAAW,CAAC,8BAA8B,CAAC,CAAA;YAC7D,MAAM,QAAQ,GAAG,MAAM,YAAY,CAA0B,SAAS,CAAC,eAAe,CAAC,CAAC,CAAA;YAExF,IAAI,CAAC,QAAQ,EAAE,aAAa,EAAE,CAAC;gBAC9B,MAAM,IAAI,KAAK,CAAC,GAAG,SAAS,oDAAoD,aAAa,WAAW,CAAC,CAAA;YAC1G,CAAC;YAED,OAAO;gBACN,OAAO,EAAE,CAAC,QAAQ,CAAC,iBAAiB,IAAI,QAAQ,CAAC,aAAa,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;gBAC5E,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,yBAAyB,CAAC,EAAE,OAAO,CAAC;aAC/D,CAAA;QACF,CAAC;KACD,CAAA;AACF,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAsB;IAC5D,gEAAgE;IAChE,iDAAiD;IACjD,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;CACJ,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAC9C,0BAA0B,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAA"}
@@ -0,0 +1,95 @@
1
+ /**
2
+ * Fetches La Poste's list of its points of contact, the dataset `laposte-poincont2`
3
+ * (« Liste des bureaux de poste, agences postales et relais poste ») on `data.laposte.fr`,
4
+ * the source of the `fr-laposte-poincont` adapter and the French post offices of the structures layer.
5
+ *
6
+ * The portal is a data-fair instance.
7
+ * The dataset record at `/data-fair/api/v1/datasets/laposte-poincont2` states the
8
+ * license (`Licence Ouverte / Open Licence`), the record count and `dataUpdatedAt`.
9
+ *
10
+ * The rows are paged from `/lines` at 10,000 per request, following each answer's `next` link.
11
+ *
12
+ * The record is saved beside the rows as `dataset.json`, because it holds the publisher's
13
+ * license statement and the update date Licence Ouverte asks a reuser to cite.
14
+ * A pull whose row count differs from the record's `count` is refused, and the previous file stays.
15
+ *
16
+ * Invoke via `mailwoman corpus fetch fr-laposte-poincont`.
17
+ */
18
+ import { APIClient } from "@mailwoman/core/api";
19
+ import { type PathBuilderLike } from "path-ts";
20
+ import type { BaseFetchOptions, FetchSummary, SourceManifest } from "#tools/fetch/download";
21
+ /**
22
+ * The dataset's data-fair API root.
23
+ */
24
+ export declare const LAPOSTE_POINCONT_API_URL = "https://data.laposte.fr/data-fair/api/v1/datasets/laposte-poincont2";
25
+ /**
26
+ * The dataset's page.
27
+ * It states the license.
28
+ */
29
+ export declare const LAPOSTE_POINCONT_PAGE_URL = "https://data.laposte.fr/datasets/laposte-poincont2";
30
+ /**
31
+ * The most rows one `/lines` request answers.
32
+ */
33
+ export declare const LAPOSTE_POINCONT_PAGE_SIZE = 10000;
34
+ /**
35
+ * The file the dataset record is saved to, beside the rows.
36
+ */
37
+ export declare const LAPOSTE_POINCONT_DATASET_FILENAME = "dataset.json";
38
+ /**
39
+ * The parts of the data-fair dataset record a fetch reads.
40
+ */
41
+ export interface DataFairDatasetRecord {
42
+ title?: string;
43
+ count?: number;
44
+ dataUpdatedAt?: string;
45
+ updatedAt?: string;
46
+ origin?: string;
47
+ license?: {
48
+ title?: string;
49
+ href?: string;
50
+ };
51
+ }
52
+ /**
53
+ * What one run recorded.
54
+ *
55
+ * `publisher_version` is the record's `dataUpdatedAt`, the date Licence Ouverte asks a reuser to cite.
56
+ */
57
+ export interface LaPostePoincontManifest extends SourceManifest {
58
+ dataset_url: string;
59
+ records: number;
60
+ license_title: string | null;
61
+ license_url: string | null;
62
+ }
63
+ /**
64
+ * The first `/lines` URL, selecting the fields the adapter reads.
65
+ */
66
+ export declare function laPostePoincontLinesURL(): string;
67
+ /**
68
+ * One `/lines` row with only the fields the adapter reads, in their declared order,
69
+ * a field the row lacks written as `null`.
70
+ */
71
+ export declare function selectLaPosteFields(row: Readonly<Record<string, unknown>>): Record<string, unknown>;
72
+ export interface DownloadLaPostePoincontOptions {
73
+ outputDir: PathBuilderLike;
74
+ signal?: AbortSignal;
75
+ report?: (line: string) => void;
76
+ }
77
+ /**
78
+ * Pages every row into `<outputDir>/laposte-poincont2.jsonl` and writes the manifest.
79
+ *
80
+ * @throws When the record states no count, a page answers no `results`,
81
+ * or the rows written differ from the record's count.
82
+ */
83
+ export declare function downloadLaPostePoincont(client: Pick<APIClient, "fetch">, options: DownloadLaPostePoincontOptions): Promise<FetchSummary>;
84
+ /**
85
+ * The path `#fr/adapters/laposte-poincont/adapter` reads, given the root a fetch wrote under.
86
+ */
87
+ export declare function laPostePoincontInputPath(outRoot: BaseFetchOptions["outRoot"]): PathBuilderLike;
88
+ export interface FetchLaPostePoincontOptions extends BaseFetchOptions {
89
+ signal?: AbortSignal;
90
+ }
91
+ /**
92
+ * The registry entry.
93
+ */
94
+ export declare function fetchLaPostePoincont(options: FetchLaPostePoincontOptions, report?: (line: string) => void): Promise<FetchSummary>;
95
+ //# sourceMappingURL=laposte-poincont.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"laposte-poincont.d.ts","sourceRoot":"","sources":["../../../../lib/fr/tools/fetch/laposte-poincont.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAa/C,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;AAO3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AA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