@mailwoman/core 9.1.0 → 9.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) hide show
  1. package/README.md +1 -1
  2. package/api/responses.ts +12 -0
  3. package/coarse-placer/featurize.ts +0 -2
  4. package/coarse-placer/tools/build-dataset.ts +1 -1
  5. package/coarse-placer/tools/build-outlier-exposure.ts +1 -1
  6. package/coarse-placer/tools/build-outlier-latin.ts +13 -7
  7. package/coarse-placer/tools/build-outlier-oa.ts +11 -5
  8. package/coarse-placer/tools/eval-latin-offmap.ts +3 -2
  9. package/coarse-placer/tools/eval-openset.ts +3 -2
  10. package/coarse-placer/tools/eval-quant-compare.ts +3 -2
  11. package/coarse-placer/tools/eval.ts +3 -2
  12. package/coarse-placer/tools/fnv-hash.ts +1 -6
  13. package/coarse-placer/tools/index.ts +1 -1
  14. package/coarse-placer/tools/probe-frontier.ts +3 -2
  15. package/coarse-placer/tools/quantize.ts +2 -2
  16. package/coarse-placer/tools/train.ts +2 -1
  17. package/crypto/node.ts +3 -1
  18. package/data/internal/dictionaries/languages.csv +184 -184
  19. package/data/libpostal/README.md +8 -2
  20. package/db/schema.ts +12 -3
  21. package/decoder/containment.ts +5 -1
  22. package/decoder/index.ts +1 -0
  23. package/decoder/parse-diff.ts +347 -0
  24. package/decoder/proposals-to-tree.ts +1 -1
  25. package/decoder/serialize-json.ts +51 -7
  26. package/decoder/serialize-tuples.ts +7 -1
  27. package/decoder/serialize-xml.ts +1 -1
  28. package/decoder/tree-shape.ts +144 -0
  29. package/decoder/types.ts +8 -0
  30. package/decoder/validate-tree.ts +15 -3
  31. package/env/index.ts +3 -1
  32. package/env/paths.ts +21 -33
  33. package/env/schema.ts +26 -3
  34. package/fs/utils/formatters.ts +107 -0
  35. package/fs/utils/index.ts +7 -0
  36. package/fs/zip.ts +1 -1
  37. package/layers/manifest.ts +56 -15
  38. package/layers/schema.ts +54 -2
  39. package/locale/locale.ts +1 -1
  40. package/locale/registry.ts +1 -1
  41. package/objects.ts +20 -8
  42. package/out/api/responses.d.ts +9 -0
  43. package/out/api/responses.d.ts.map +1 -1
  44. package/out/api/responses.js +11 -0
  45. package/out/api/responses.js.map +1 -1
  46. package/out/coarse-placer/featurize.d.ts +0 -1
  47. package/out/coarse-placer/featurize.d.ts.map +1 -1
  48. package/out/coarse-placer/featurize.js.map +1 -1
  49. package/out/coarse-placer/tools/build-dataset.js +1 -1
  50. package/out/coarse-placer/tools/build-dataset.js.map +1 -1
  51. package/out/coarse-placer/tools/build-outlier-exposure.js +1 -1
  52. package/out/coarse-placer/tools/build-outlier-exposure.js.map +1 -1
  53. package/out/coarse-placer/tools/build-outlier-latin.d.ts.map +1 -1
  54. package/out/coarse-placer/tools/build-outlier-latin.js +12 -7
  55. package/out/coarse-placer/tools/build-outlier-latin.js.map +1 -1
  56. package/out/coarse-placer/tools/build-outlier-oa.d.ts.map +1 -1
  57. package/out/coarse-placer/tools/build-outlier-oa.js +10 -5
  58. package/out/coarse-placer/tools/build-outlier-oa.js.map +1 -1
  59. package/out/coarse-placer/tools/eval-latin-offmap.d.ts.map +1 -1
  60. package/out/coarse-placer/tools/eval-latin-offmap.js +2 -2
  61. package/out/coarse-placer/tools/eval-latin-offmap.js.map +1 -1
  62. package/out/coarse-placer/tools/eval-openset.d.ts.map +1 -1
  63. package/out/coarse-placer/tools/eval-openset.js +2 -2
  64. package/out/coarse-placer/tools/eval-openset.js.map +1 -1
  65. package/out/coarse-placer/tools/eval-quant-compare.d.ts.map +1 -1
  66. package/out/coarse-placer/tools/eval-quant-compare.js +2 -2
  67. package/out/coarse-placer/tools/eval-quant-compare.js.map +1 -1
  68. package/out/coarse-placer/tools/eval.d.ts.map +1 -1
  69. package/out/coarse-placer/tools/eval.js +2 -2
  70. package/out/coarse-placer/tools/eval.js.map +1 -1
  71. package/out/coarse-placer/tools/fnv-hash.d.ts +1 -6
  72. package/out/coarse-placer/tools/fnv-hash.d.ts.map +1 -1
  73. package/out/coarse-placer/tools/fnv-hash.js +1 -6
  74. package/out/coarse-placer/tools/fnv-hash.js.map +1 -1
  75. package/out/coarse-placer/tools/index.d.ts +1 -1
  76. package/out/coarse-placer/tools/index.js +1 -1
  77. package/out/coarse-placer/tools/probe-frontier.d.ts.map +1 -1
  78. package/out/coarse-placer/tools/probe-frontier.js +2 -2
  79. package/out/coarse-placer/tools/probe-frontier.js.map +1 -1
  80. package/out/coarse-placer/tools/quantize.js +2 -2
  81. package/out/coarse-placer/tools/quantize.js.map +1 -1
  82. package/out/coarse-placer/tools/train.d.ts.map +1 -1
  83. package/out/coarse-placer/tools/train.js +1 -1
  84. package/out/coarse-placer/tools/train.js.map +1 -1
  85. package/out/crypto/node.d.ts.map +1 -1
  86. package/out/crypto/node.js +2 -1
  87. package/out/crypto/node.js.map +1 -1
  88. package/out/db/schema.d.ts +12 -3
  89. package/out/db/schema.d.ts.map +1 -1
  90. package/out/db/schema.js +6 -0
  91. package/out/db/schema.js.map +1 -1
  92. package/out/decoder/containment.d.ts.map +1 -1
  93. package/out/decoder/containment.js +5 -1
  94. package/out/decoder/containment.js.map +1 -1
  95. package/out/decoder/index.d.ts +1 -0
  96. package/out/decoder/index.d.ts.map +1 -1
  97. package/out/decoder/index.js +1 -0
  98. package/out/decoder/index.js.map +1 -1
  99. package/out/decoder/parse-diff.d.ts +125 -0
  100. package/out/decoder/parse-diff.d.ts.map +1 -0
  101. package/out/decoder/parse-diff.js +219 -0
  102. package/out/decoder/parse-diff.js.map +1 -0
  103. package/out/decoder/proposals-to-tree.js.map +1 -1
  104. package/out/decoder/serialize-json.d.ts +29 -0
  105. package/out/decoder/serialize-json.d.ts.map +1 -1
  106. package/out/decoder/serialize-json.js +20 -4
  107. package/out/decoder/serialize-json.js.map +1 -1
  108. package/out/decoder/serialize-tuples.d.ts +8 -1
  109. package/out/decoder/serialize-tuples.d.ts.map +1 -1
  110. package/out/decoder/serialize-tuples.js +7 -1
  111. package/out/decoder/serialize-tuples.js.map +1 -1
  112. package/out/decoder/serialize-xml.js +1 -1
  113. package/out/decoder/serialize-xml.js.map +1 -1
  114. package/out/decoder/tree-shape.d.ts +84 -0
  115. package/out/decoder/tree-shape.d.ts.map +1 -0
  116. package/out/decoder/tree-shape.js +98 -0
  117. package/out/decoder/tree-shape.js.map +1 -0
  118. package/out/decoder/types.d.ts +11 -0
  119. package/out/decoder/types.d.ts.map +1 -1
  120. package/out/decoder/validate-tree.d.ts +8 -0
  121. package/out/decoder/validate-tree.d.ts.map +1 -1
  122. package/out/decoder/validate-tree.js +4 -3
  123. package/out/decoder/validate-tree.js.map +1 -1
  124. package/out/env/index.d.ts +10 -1
  125. package/out/env/index.d.ts.map +1 -1
  126. package/out/env/index.js +2 -1
  127. package/out/env/index.js.map +1 -1
  128. package/out/env/paths.d.ts +15 -8
  129. package/out/env/paths.d.ts.map +1 -1
  130. package/out/env/paths.js +19 -29
  131. package/out/env/paths.js.map +1 -1
  132. package/out/env/schema.d.ts +9 -1
  133. package/out/env/schema.d.ts.map +1 -1
  134. package/out/env/schema.js +25 -3
  135. package/out/env/schema.js.map +1 -1
  136. package/out/fs/utils/formatters.d.ts +57 -0
  137. package/out/fs/utils/formatters.d.ts.map +1 -0
  138. package/out/fs/utils/formatters.js +79 -0
  139. package/out/fs/utils/formatters.js.map +1 -0
  140. package/out/fs/utils/index.d.ts +7 -0
  141. package/out/fs/utils/index.d.ts.map +1 -0
  142. package/out/fs/utils/index.js +7 -0
  143. package/out/fs/utils/index.js.map +1 -0
  144. package/out/fs/zip.js +1 -1
  145. package/out/fs/zip.js.map +1 -1
  146. package/out/layers/manifest.d.ts +32 -7
  147. package/out/layers/manifest.d.ts.map +1 -1
  148. package/out/layers/manifest.js +31 -6
  149. package/out/layers/manifest.js.map +1 -1
  150. package/out/layers/schema.d.ts +48 -2
  151. package/out/layers/schema.d.ts.map +1 -1
  152. package/out/layers/schema.js +32 -0
  153. package/out/layers/schema.js.map +1 -1
  154. package/out/locale/locale.d.ts +1 -1
  155. package/out/locale/locale.d.ts.map +1 -1
  156. package/out/locale/registry.js +1 -1
  157. package/out/locale/registry.js.map +1 -1
  158. package/out/objects.d.ts +12 -6
  159. package/out/objects.d.ts.map +1 -1
  160. package/out/objects.js +4 -1
  161. package/out/objects.js.map +1 -1
  162. package/out/pipeline/index.d.ts +2 -6
  163. package/out/pipeline/index.d.ts.map +1 -1
  164. package/out/pipeline/index.js +1 -3
  165. package/out/pipeline/index.js.map +1 -1
  166. package/out/pipeline/runtime-pipeline.d.ts +51 -9
  167. package/out/pipeline/runtime-pipeline.d.ts.map +1 -1
  168. package/out/pipeline/runtime-pipeline.js +29 -132
  169. package/out/pipeline/runtime-pipeline.js.map +1 -1
  170. package/out/pipeline/span-proposer.js +1 -1
  171. package/out/pipeline/span-proposer.js.map +1 -1
  172. package/out/pipeline/types.d.ts +22 -14
  173. package/out/pipeline/types.d.ts.map +1 -1
  174. package/out/pipeline/types.js.map +1 -1
  175. package/out/policy/defaults.d.ts +1 -1
  176. package/out/policy/defaults.d.ts.map +1 -1
  177. package/out/policy/defaults.js +1 -1
  178. package/out/policy/defaults.js.map +1 -1
  179. package/out/policy/policy.d.ts +1 -1
  180. package/out/policy/policy.d.ts.map +1 -1
  181. package/out/policy/registry.d.ts +1 -1
  182. package/out/policy/registry.d.ts.map +1 -1
  183. package/out/resolver/coverage-facts.d.ts +89 -0
  184. package/out/resolver/coverage-facts.d.ts.map +1 -0
  185. package/out/resolver/coverage-facts.js +22 -0
  186. package/out/resolver/coverage-facts.js.map +1 -0
  187. package/out/resolver/index.d.ts +2 -1
  188. package/out/resolver/index.d.ts.map +1 -1
  189. package/out/resolver/index.js +1 -0
  190. package/out/resolver/index.js.map +1 -1
  191. package/out/resolver/lookup-types.d.ts +178 -0
  192. package/out/resolver/lookup-types.d.ts.map +1 -0
  193. package/out/resolver/lookup-types.js +11 -0
  194. package/out/resolver/lookup-types.js.map +1 -0
  195. package/out/resolver/placetype-map.d.ts +71 -0
  196. package/out/resolver/placetype-map.d.ts.map +1 -0
  197. package/out/resolver/placetype-map.js +98 -0
  198. package/out/resolver/placetype-map.js.map +1 -0
  199. package/out/resolver/postcode-format.d.ts +38 -0
  200. package/out/resolver/postcode-format.d.ts.map +1 -0
  201. package/out/resolver/postcode-format.js +83 -0
  202. package/out/resolver/postcode-format.js.map +1 -0
  203. package/out/resolver/types.d.ts +271 -297
  204. package/out/resolver/types.d.ts.map +1 -1
  205. package/out/resolver/types.js +4 -97
  206. package/out/resolver/types.js.map +1 -1
  207. package/out/resources/git.d.ts +8 -1
  208. package/out/resources/git.d.ts.map +1 -1
  209. package/out/resources/git.js +4 -3
  210. package/out/resources/git.js.map +1 -1
  211. package/out/resources/languages/types.gen.d.ts +1 -1
  212. package/out/resources/languages/types.gen.d.ts.map +1 -1
  213. package/out/resources/languages/types.gen.js +40 -0
  214. package/out/resources/languages/types.gen.js.map +1 -1
  215. package/out/resources/libpostal.d.ts +2 -2
  216. package/out/resources/libpostal.d.ts.map +1 -1
  217. package/out/resources/libpostal.js +2 -2
  218. package/out/resources/libpostal.js.map +1 -1
  219. package/out/resources/whosonfirst/DataSourceCache.d.ts.map +1 -1
  220. package/out/resources/whosonfirst/DataSourceCache.js.map +1 -1
  221. package/out/resources/whosonfirst/PlacetypeDataSource.d.ts +2 -2
  222. package/out/resources/whosonfirst/PlacetypeDataSource.d.ts.map +1 -1
  223. package/out/resources/whosonfirst/PlacetypeDataSource.js +28 -3
  224. package/out/resources/whosonfirst/PlacetypeDataSource.js.map +1 -1
  225. package/out/resources/whosonfirst/loader.d.ts +2 -2
  226. package/out/resources/whosonfirst/loader.d.ts.map +1 -1
  227. package/out/resources/whosonfirst/loader.js.map +1 -1
  228. package/out/resources/whosonfirst/placetypes/Placetype.d.ts.map +1 -1
  229. package/out/resources/whosonfirst/placetypes/Placetype.js +2 -2
  230. package/out/resources/whosonfirst/placetypes/Placetype.js.map +1 -1
  231. package/out/resources/whosonfirst/placetypes/admin.d.ts +9 -1
  232. package/out/resources/whosonfirst/placetypes/admin.d.ts.map +1 -1
  233. package/out/resources/whosonfirst/placetypes/admin.js +1 -1
  234. package/out/resources/whosonfirst/placetypes/admin.js.map +1 -1
  235. package/out/resources/whosonfirst/placetypes/definition.d.ts.map +1 -1
  236. package/out/resources/whosonfirst/placetypes/definition.js +1 -1
  237. package/out/resources/whosonfirst/placetypes/definition.js.map +1 -1
  238. package/out/resources/whosonfirst/placetypes/index.d.ts +1 -0
  239. package/out/resources/whosonfirst/placetypes/index.d.ts.map +1 -1
  240. package/out/resources/whosonfirst/placetypes/index.js +1 -0
  241. package/out/resources/whosonfirst/placetypes/index.js.map +1 -1
  242. package/out/resources/whosonfirst/placetypes/specificity.d.ts +65 -0
  243. package/out/resources/whosonfirst/placetypes/specificity.d.ts.map +1 -0
  244. package/out/resources/whosonfirst/placetypes/specificity.js +101 -0
  245. package/out/resources/whosonfirst/placetypes/specificity.js.map +1 -0
  246. package/out/resources/whosonfirst/sharded-repo.d.ts +28 -0
  247. package/out/resources/whosonfirst/sharded-repo.d.ts.map +1 -1
  248. package/out/resources/whosonfirst/sharded-repo.js +46 -2
  249. package/out/resources/whosonfirst/sharded-repo.js.map +1 -1
  250. package/out/scripting/arguments.d.ts +27 -0
  251. package/out/scripting/arguments.d.ts.map +1 -0
  252. package/out/scripting/arguments.js +32 -0
  253. package/out/scripting/arguments.js.map +1 -0
  254. package/out/scripting/command.d.ts +28 -0
  255. package/out/scripting/command.d.ts.map +1 -0
  256. package/out/scripting/command.js +47 -0
  257. package/out/scripting/command.js.map +1 -0
  258. package/out/scripting/index.js +3 -3
  259. package/out/scripting/index.js.map +1 -1
  260. package/out/scripting/utils/index.d.ts +1 -12
  261. package/out/scripting/utils/index.d.ts.map +1 -1
  262. package/out/scripting/utils/index.js +4 -21
  263. package/out/scripting/utils/index.js.map +1 -1
  264. package/out/tools/download-libpostal-resources.d.ts.map +1 -1
  265. package/out/tools/download-libpostal-resources.js +4 -7
  266. package/out/tools/download-libpostal-resources.js.map +1 -1
  267. package/out/tools/download-ssl-address.d.ts +3 -3
  268. package/out/tools/download-ssl-address.d.ts.map +1 -1
  269. package/out/tools/download-ssl-address.js +26 -13
  270. package/out/tools/download-ssl-address.js.map +1 -1
  271. package/out/tools/generate-language-types.d.ts +16 -1
  272. package/out/tools/generate-language-types.d.ts.map +1 -1
  273. package/out/tools/generate-language-types.js +38 -5
  274. package/out/tools/generate-language-types.js.map +1 -1
  275. package/out/tools/index.d.ts +1 -2
  276. package/out/tools/index.d.ts.map +1 -1
  277. package/out/tools/index.js +1 -2
  278. package/out/tools/index.js.map +1 -1
  279. package/out/utils/data-root.d.ts +27 -7
  280. package/out/utils/data-root.d.ts.map +1 -1
  281. package/out/utils/data-root.js +36 -13
  282. package/out/utils/data-root.js.map +1 -1
  283. package/out/utils/hash.d.ts +2 -3
  284. package/out/utils/hash.d.ts.map +1 -1
  285. package/out/utils/hash.js +3 -3
  286. package/out/utils/hash.js.map +1 -1
  287. package/out/utils/index.d.ts +1 -0
  288. package/out/utils/index.d.ts.map +1 -1
  289. package/out/utils/index.js +1 -0
  290. package/out/utils/index.js.map +1 -1
  291. package/out/utils/jsonl.js +1 -1
  292. package/out/utils/jsonl.js.map +1 -1
  293. package/out/utils/repo.d.ts +8 -0
  294. package/out/utils/repo.d.ts.map +1 -1
  295. package/out/utils/repo.js +10 -1
  296. package/out/utils/repo.js.map +1 -1
  297. package/out/utils/sealed-db.d.ts +11 -0
  298. package/out/utils/sealed-db.d.ts.map +1 -1
  299. package/out/utils/sealed-db.js +28 -1
  300. package/out/utils/sealed-db.js.map +1 -1
  301. package/out/utils/sqlite-rows.d.ts +34 -0
  302. package/out/utils/sqlite-rows.d.ts.map +1 -0
  303. package/out/utils/sqlite-rows.js +37 -0
  304. package/out/utils/sqlite-rows.js.map +1 -0
  305. package/out/utils/stats.d.ts +1 -6
  306. package/out/utils/stats.d.ts.map +1 -1
  307. package/out/utils/stats.js +1 -6
  308. package/out/utils/stats.js.map +1 -1
  309. package/package.json +476 -7
  310. package/pipeline/index.ts +12 -14
  311. package/pipeline/runtime-pipeline.ts +29 -183
  312. package/pipeline/span-proposer.ts +1 -1
  313. package/pipeline/types.ts +26 -15
  314. package/policy/defaults.ts +1 -1
  315. package/policy/policy.ts +1 -1
  316. package/policy/registry.ts +1 -1
  317. package/resolver/coverage-facts.ts +102 -0
  318. package/resolver/index.ts +5 -0
  319. package/resolver/lookup-types.ts +174 -0
  320. package/resolver/placetype-map.ts +122 -0
  321. package/resolver/postcode-format.ts +89 -0
  322. package/resolver/types.ts +293 -351
  323. package/resources/git.ts +18 -4
  324. package/resources/languages/types.gen.ts +60 -0
  325. package/resources/libpostal.ts +4 -3
  326. package/resources/whosonfirst/DataSourceCache.ts +2 -1
  327. package/resources/whosonfirst/PlacetypeDataSource.ts +36 -11
  328. package/resources/whosonfirst/loader.ts +3 -2
  329. package/resources/whosonfirst/placetypes/Placetype.ts +3 -2
  330. package/resources/whosonfirst/placetypes/admin.ts +11 -2
  331. package/resources/whosonfirst/placetypes/definition.ts +4 -3
  332. package/resources/whosonfirst/placetypes/index.ts +1 -0
  333. package/resources/whosonfirst/placetypes/specificity.ts +114 -0
  334. package/resources/whosonfirst/sharded-repo.ts +55 -2
  335. package/scripting/arguments.ts +38 -0
  336. package/scripting/command.ts +55 -0
  337. package/scripting/index.ts +3 -3
  338. package/scripting/utils/index.ts +6 -23
  339. package/tools/download-libpostal-resources.ts +4 -7
  340. package/tools/download-ssl-address.ts +28 -12
  341. package/tools/generate-language-types.ts +39 -5
  342. package/tools/index.ts +1 -2
  343. package/utils/data-root.ts +40 -14
  344. package/utils/hash.ts +5 -4
  345. package/utils/index.ts +1 -0
  346. package/utils/jsonl.ts +1 -1
  347. package/utils/repo.ts +12 -1
  348. package/utils/sealed-db.ts +30 -1
  349. package/utils/sqlite-rows.ts +40 -0
  350. package/utils/stats.ts +1 -6
  351. package/data/libpostal/dictionaries/all/chains.txt +0 -504
  352. package/kysley/adapter.ts +0 -29
  353. package/out/kysley/adapter.d.ts +0 -13
  354. package/out/kysley/adapter.d.ts.map +0 -1
  355. package/out/kysley/adapter.js +0 -25
  356. package/out/kysley/adapter.js.map +0 -1
  357. package/out/pipeline/reconcile-lookups.d.ts +0 -39
  358. package/out/pipeline/reconcile-lookups.d.ts.map +0 -1
  359. package/out/pipeline/reconcile-lookups.js +0 -88
  360. package/out/pipeline/reconcile-lookups.js.map +0 -1
  361. package/out/pipeline/reconcile.d.ts +0 -153
  362. package/out/pipeline/reconcile.d.ts.map +0 -1
  363. package/out/pipeline/reconcile.js +0 -388
  364. package/out/pipeline/reconcile.js.map +0 -1
  365. package/out/pipeline/span-logit-aggregation.d.ts +0 -58
  366. package/out/pipeline/span-logit-aggregation.d.ts.map +0 -1
  367. package/out/pipeline/span-logit-aggregation.js +0 -117
  368. package/out/pipeline/span-logit-aggregation.js.map +0 -1
  369. package/pipeline/reconcile-lookups.ts +0 -111
  370. package/pipeline/reconcile.ts +0 -583
  371. package/pipeline/span-logit-aggregation.ts +0 -156
package/README.md CHANGED
@@ -81,7 +81,7 @@ The dictionaries are ~9 MB total and are loaded lazily.
81
81
  - [`mailwoman`](../mailwoman) — the user-facing CLI + `AddressParser`
82
82
  - [`@mailwoman/normalize`](../normalize) — Stage 1 of the pipeline
83
83
  - [`@mailwoman/neural`](../neural) — neural classifier (ONNX runtime)
84
- - [What Mailwoman Is](https://mailwoman.sister.software/docs/developers/get-started/what-mailwoman-is)
84
+ - [What Mailwoman Is](https://mailwoman.ai/docs/developers/get-started/what-mailwoman-is)
85
85
  - [Staged Pipeline Contract](https://github.com/sister-software/mailwoman/blob/main/docs/engineering/reference/STAGES.mdx)
86
86
 
87
87
  ## License
package/api/responses.ts CHANGED
@@ -12,6 +12,18 @@ import type { StatusCodes } from "http-status-codes"
12
12
  import { ResourceError } from "../errors/schema.ts"
13
13
  import { isRetryableStatus } from "./retry.ts"
14
14
 
15
+ /**
16
+ * Whether an HTTP status is a 2xx success.
17
+ *
18
+ * Exists so a caller that opts out of throwing — `validateStatus: () => true`, for a graceful non-2xx path — can still
19
+ * ask the question by name. Written against axios's own `HttpStatusCode` because this package already owns that
20
+ * dependency; a consumer package spelling `>= 200 && < 300` inline would either name two bare thresholds or take an
21
+ * undeclared dependency to avoid it.
22
+ */
23
+ export function isSuccessStatus(status: number): boolean {
24
+ return status >= HttpStatusCode.Ok && status < HttpStatusCode.MultipleChoices
25
+ }
26
+
15
27
  /**
16
28
  * A response container, wrapping the actual response body.
17
29
  */
@@ -65,8 +65,6 @@ export const COARSE_CLASSES = [
65
65
  "OTHER",
66
66
  ] as const
67
67
 
68
- export type CoarseClass = (typeof COARSE_CLASSES)[number]
69
-
70
68
  /**
71
69
  * Hashed-feature dimensionality (2^16). Keeps the weight matrix small (28×65536 ≈ 1.8 MB int8) while collisions stay
72
70
  * tolerable for a linear bag-of-features model; the discriminative n-grams are few.
@@ -21,7 +21,7 @@
21
21
  import { mkdirSync, writeFileSync } from "node:fs"
22
22
  import * as path from "node:path"
23
23
 
24
- import { dataRootPath, repoRootPath } from "@mailwoman/core/utils"
24
+ import { dataRootPath, repoRootPath } from "#utils"
25
25
 
26
26
  import { hashFNV1a } from "./fnv-hash.ts"
27
27
 
@@ -20,7 +20,7 @@ import { appendFileSync } from "node:fs"
20
20
  import * as path from "node:path"
21
21
  import { DatabaseSync } from "node:sqlite"
22
22
 
23
- import { dataRootPath, repoRootPath } from "@mailwoman/core/utils"
23
+ import { dataRootPath, repoRootPath } from "#utils"
24
24
 
25
25
  import { hashFNV1a } from "./fnv-hash.ts"
26
26
 
@@ -26,7 +26,7 @@
26
26
  import { appendFileSync, writeFileSync } from "node:fs"
27
27
  import * as path from "node:path"
28
28
 
29
- import { dataRootPath, repoRootPath } from "@mailwoman/core/utils"
29
+ import { dataRootPath, repoRootPath } from "#utils"
30
30
 
31
31
  import { hashFNV1a } from "./fnv-hash.ts"
32
32
 
@@ -85,7 +85,7 @@ const HELDOUT_COUNTRIES = ["CA", "LI"]
85
85
  * Address_levels arrives as a list (node-api) or its string repr; pull the value strings out.
86
86
  */
87
87
  function levelValues(al: unknown): string[] {
88
- if (Array.isArray(al)) return al.map((x) => (x && x.value ? String(x.value) : "")).filter(Boolean)
88
+ if (Array.isArray(al)) return al.flatMap((x) => (x && x.value ? [String(x.value)] : []))
89
89
  const s = String(al ?? "")
90
90
  const out: string[] = []
91
91
 
@@ -102,6 +102,12 @@ function levelValues(al: unknown): string[] {
102
102
  return out
103
103
  }
104
104
 
105
+ /**
106
+ * Address parts are joined positionally; an absent field arrives as the empty string and must not become a stray
107
+ * separator.
108
+ */
109
+ const nonEmpty = (part: string): boolean => part.length > 0
110
+
105
111
  /**
106
112
  * Assemble a plausible address string from an Overture address row. Deterministic variant by hash.
107
113
  */
@@ -113,17 +119,17 @@ function assemble(r: Record<string, unknown>): string | null {
113
119
  const locality = (r.postal_city ? String(r.postal_city) : "") || levels.at(-1) || levels[0] || ""
114
120
 
115
121
  if (!street && !locality) return null // nothing distinctive
116
- const head = [num, street].filter(Boolean).join(" ")
117
- const tail = [pc, locality].filter(Boolean).join(" ")
122
+ const head = [num, street].filter(nonEmpty).join(" ")
123
+ const tail = [pc, locality].filter(nonEmpty).join(" ")
118
124
  const h = hashFNV1a(`${num}|${street}|${pc}|${locality}`)
119
125
 
120
126
  switch (h % 3) {
121
127
  case 0:
122
- return [head, tail].filter(Boolean).join(", ")
128
+ return [head, tail].filter(nonEmpty).join(", ")
123
129
  case 1:
124
- return [head, locality, pc].filter(Boolean).join(", ").trim()
130
+ return [head, locality, pc].filter(nonEmpty).join(", ").trim()
125
131
  default:
126
- return [head, [locality, pc].filter(Boolean).join(" ")].filter(Boolean).join(", ")
132
+ return [head, [locality, pc].filter(nonEmpty).join(" ")].filter(nonEmpty).join(", ")
127
133
  }
128
134
  }
129
135
 
@@ -32,7 +32,7 @@
32
32
  import { appendFileSync, writeFileSync } from "node:fs"
33
33
  import * as path from "node:path"
34
34
 
35
- import { dataRootPath, repoRootPath } from "@mailwoman/core/utils"
35
+ import { dataRootPath, repoRootPath } from "#utils"
36
36
 
37
37
  import { hashFNV1a } from "./fnv-hash.ts"
38
38
 
@@ -109,6 +109,12 @@ const FAMILIES: Record<string, string[]> = {
109
109
  */
110
110
  const HELDOUT_FAMILIES = new Set(["baltic", "oceania", "middle_east"])
111
111
 
112
+ /**
113
+ * Address parts are joined positionally; an absent field arrives as the empty string and must not become a stray
114
+ * separator.
115
+ */
116
+ const nonEmpty = (part: string): boolean => part.length > 0
117
+
112
118
  /**
113
119
  * Assemble a plausible address string from an OA row — SAME shape variants as build-outlier-latin.
114
120
  */
@@ -123,16 +129,16 @@ function assemble(r: Record<string, unknown>): string | null {
123
129
  // nothing distinctive
124
130
  // Drop raw-coord-only / PO-box-ish noise (DeepSeek gotcha): need a real street or locality token.
125
131
  if (!street && !/[a-z]/i.test(locality)) return null
126
- const head = [num, street].filter(Boolean).join(" ")
132
+ const head = [num, street].filter(nonEmpty).join(" ")
127
133
  const h = hashFNV1a(`${num}|${street}|${pc}|${locality}`)
128
134
 
129
135
  switch (h % 3) {
130
136
  case 0:
131
- return [head, [pc, locality].filter(Boolean).join(" ")].filter(Boolean).join(", ")
137
+ return [head, [pc, locality].filter(nonEmpty).join(" ")].filter(nonEmpty).join(", ")
132
138
  case 1:
133
- return [head, locality, pc].filter(Boolean).join(", ").trim()
139
+ return [head, locality, pc].filter(nonEmpty).join(", ").trim()
134
140
  default:
135
- return [head, [locality, pc].filter(Boolean).join(" ")].filter(Boolean).join(", ")
141
+ return [head, [locality, pc].filter(nonEmpty).join(" ")].filter(nonEmpty).join(", ")
136
142
  }
137
143
  }
138
144
 
@@ -16,10 +16,11 @@
16
16
  import { readFileSync } from "node:fs"
17
17
  import * as path from "node:path"
18
18
 
19
- import { parseJSONStrict } from "@mailwoman/core/objects"
20
- import { dataRootPath, repoRootPath, formatPercent } from "@mailwoman/core/utils"
21
19
  import { JSONSpliterator } from "spliterator"
22
20
 
21
+ import { parseJSONStrict } from "#objects"
22
+ import { dataRootPath, repoRootPath, formatPercent } from "#utils"
23
+
23
24
  import { CoarsePlacer, type CoarsePlacerMeta, type CoarsePrediction } from "../coarse-placer.ts"
24
25
 
25
26
  /**
@@ -36,10 +36,11 @@
36
36
  import { readFileSync, writeFileSync } from "node:fs"
37
37
  import * as path from "node:path"
38
38
 
39
- import { parseJSONStrict } from "@mailwoman/core/objects"
40
- import { dataRootPath, repoRootPath } from "@mailwoman/core/utils"
41
39
  import { JSONSpliterator } from "spliterator"
42
40
 
41
+ import { parseJSONStrict } from "#objects"
42
+ import { dataRootPath, repoRootPath } from "#utils"
43
+
43
44
  import type { CoarsePlacerMeta } from "../coarse-placer.ts"
44
45
  import { COARSE_CLASSES, featurize } from "../featurize.ts"
45
46
 
@@ -14,10 +14,11 @@
14
14
  import { readFileSync } from "node:fs"
15
15
  import * as path from "node:path"
16
16
 
17
- import { parseJSONStrict } from "@mailwoman/core/objects"
18
- import { dataRootPath, repoRootPath } from "@mailwoman/core/utils"
19
17
  import { JSONSpliterator } from "spliterator"
20
18
 
19
+ import { parseJSONStrict } from "#objects"
20
+ import { dataRootPath, repoRootPath } from "#utils"
21
+
21
22
  import { CoarsePlacer, type CoarsePlacerMeta } from "../coarse-placer.ts"
22
23
 
23
24
  interface TestRow {
@@ -14,10 +14,11 @@
14
14
  import { readFileSync } from "node:fs"
15
15
  import * as path from "node:path"
16
16
 
17
- import { parseJSONStrict } from "@mailwoman/core/objects"
18
- import { dataRootPath, repoRootPath } from "@mailwoman/core/utils"
19
17
  import { JSONSpliterator } from "spliterator"
20
18
 
19
+ import { parseJSONStrict } from "#objects"
20
+ import { dataRootPath, repoRootPath } from "#utils"
21
+
21
22
  import { CoarsePlacer, type CoarsePlacerMeta, type CoarsePrediction } from "../coarse-placer.ts"
22
23
 
23
24
  /**
@@ -3,12 +3,7 @@
3
3
  * @license AGPL-3.0
4
4
  * @author Teffen Ellis, et al.
5
5
  *
6
- * The coarse-placer tools' shared FNV-1a hash — the one home for the four byte-identical copies
7
- * the 2026-07-09 dedupe survey found (`build-dataset` / `build-outlier-{oa,latin,exposure}`).
8
- * Deterministic ordering + variant choice depends on this exact stream — datasets rebuilt with a
9
- * different hash won't reproduce. Internal to the tools; deliberately NOT exported from
10
- * `@mailwoman/core` (featurize.ts carries its own FNV, bucketed mod FEATURE_DIM — different
11
- * contract, do not merge).
6
+ * FNV-1a hashing for deterministic coarse-placer dataset ordering and variant selection.
12
7
  */
13
8
 
14
9
  /**
@@ -4,7 +4,7 @@
4
4
  * @author Teffen Ellis, et al.
5
5
  *
6
6
  * Coarse-placer (#244) operator tools — the `run()`-style modules behind `mailwoman placer …`
7
- * commands (see the 2026-07-09 scripts→Pastel spec). No argv, no `process.exit`: commands own
7
+ * commands. No argv, no `process.exit`: commands own
8
8
  * parsing, rendering, and exit codes. Heavy deps that are core devDependencies
9
9
  * (`@duckdb/node-api`, `@mailwoman/codex`) are lazy-imported inside their entry fns. `fnv-hash.ts`
10
10
  * is deliberately NOT re-exported — it's internal to the dataset builders.
@@ -21,11 +21,12 @@
21
21
 
22
22
  import { readFileSync, writeFileSync } from "node:fs"
23
23
 
24
- import { parseJSONStrict } from "@mailwoman/core/objects"
25
- import { dataRootPath, corePackagePath, median } from "@mailwoman/core/utils"
26
24
  import { join } from "path-ts"
27
25
  import { TSVSpliterator } from "spliterator"
28
26
 
27
+ import { parseJSONStrict } from "#objects"
28
+ import { dataRootPath, corePackagePath, median } from "#utils"
29
+
29
30
  import { CoarsePlacer, type CoarsePlacerMeta } from "../coarse-placer.ts"
30
31
 
31
32
  /**
@@ -19,8 +19,8 @@
19
19
  import { mkdirSync, readFileSync, writeFileSync } from "node:fs"
20
20
  import * as path from "node:path"
21
21
 
22
- import { parseJSONStrict } from "@mailwoman/core/objects"
23
- import { dataRootPath } from "@mailwoman/core/utils"
22
+ import { parseJSONStrict } from "#objects"
23
+ import { dataRootPath } from "#utils"
24
24
 
25
25
  import type { CoarsePlacerMeta } from "../coarse-placer.ts"
26
26
 
@@ -15,9 +15,10 @@
15
15
  import { mkdirSync, writeFileSync } from "node:fs"
16
16
  import * as path from "node:path"
17
17
 
18
- import { dataRootPath, repoRootPath } from "@mailwoman/core/utils"
19
18
  import { JSONSpliterator } from "spliterator"
20
19
 
20
+ import { dataRootPath, repoRootPath } from "#utils"
21
+
21
22
  import { COARSE_CLASSES, FEATURE_DIM, featurize } from "../featurize.ts"
22
23
 
23
24
  /**
package/crypto/node.ts CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  import { createHash } from "node:crypto"
8
8
 
9
+ import { isPresent } from "../objects.ts"
10
+
9
11
  /**
10
12
  * A value that can be used as input to {@link simpleSHA3}.
11
13
  *
@@ -36,7 +38,7 @@ export type SHA3Input = Record<string | number, SHA3Seed> | SHA3Seed[]
36
38
  export function normalizeSHASeeds(input: SHA3Input): string[] {
37
39
  const seeds = Array.isArray(input) ? input : Object.values(input)
38
40
 
39
- const normalizedSeeds = seeds.map((seed) => seed?.toString().trim()).filter(Boolean) as string[]
41
+ const normalizedSeeds = seeds.map((seed) => seed?.toString().trim()).filter(isPresent)
40
42
 
41
43
  if (!normalizedSeeds.length) {
42
44
  throw new Error("Cannot generate a SHA3 hash without input.")
@@ -1,184 +1,184 @@
1
- alpha3-b,alpha2,English
2
- aar,aa,Afar
3
- abk,ab,Abkhazian
4
- afr,af,Afrikaans
5
- aka,ak,Akan
6
- alb,sq,Albanian
7
- amh,am,Amharic
8
- ara,ar,Arabic
9
- arg,an,Aragonese
10
- arm,hy,Armenian
11
- asm,as,Assamese
12
- ava,av,Avaric
13
- ave,ae,Avestan
14
- aym,ay,Aymara
15
- aze,az,Azerbaijani
16
- bak,ba,Bashkir
17
- bam,bm,Bambara
18
- baq,eu,Basque
19
- bel,be,Belarusian
20
- ben,bn,Bengali
21
- bis,bi,Bislama
22
- bos,bs,Bosnian
23
- bre,br,Breton
24
- bul,bg,Bulgarian
25
- bur,my,Burmese
26
- cat,ca,Catalan; Valencian
27
- cha,ch,Chamorro
28
- che,ce,Chechen
29
- chi,zh,Chinese
30
- chu,cu,Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic
31
- chv,cv,Chuvash
32
- cor,kw,Cornish
33
- cos,co,Corsican
34
- cre,cr,Cree
35
- cze,cs,Czech
36
- dan,da,Danish
37
- div,dv,Divehi; Dhivehi; Maldivian
38
- dut,nl,Dutch; Flemish
39
- dzo,dz,Dzongkha
40
- eng,en,English
41
- epo,eo,Esperanto
42
- est,et,Estonian
43
- ewe,ee,Ewe
44
- fao,fo,Faroese
45
- fij,fj,Fijian
46
- fin,fi,Finnish
47
- fre,fr,French
48
- fry,fy,Western Frisian
49
- ful,ff,Fulah
50
- geo,ka,Georgian
51
- ger,de,German
52
- gla,gd,Gaelic; Scottish Gaelic
53
- gle,ga,Irish
54
- glg,gl,Galician
55
- glv,gv,Manx
56
- gre,el,"Greek, Modern (1453-)"
57
- grn,gn,Guarani
58
- guj,gu,Gujarati
59
- hat,ht,Haitian; Haitian Creole
60
- hau,ha,Hausa
61
- heb,he,Hebrew
62
- her,hz,Herero
63
- hin,hi,Hindi
64
- hmo,ho,Hiri Motu
65
- hrv,hr,Croatian
66
- hun,hu,Hungarian
67
- ibo,ig,Igbo
68
- ice,is,Icelandic
69
- ido,io,Ido
70
- iii,ii,Sichuan Yi; Nuosu
71
- iku,iu,Inuktitut
72
- ile,ie,Interlingue; Occidental
73
- ina,ia,Interlingua (International Auxiliary Language Association)
74
- ind,id,Indonesian
75
- ipk,ik,Inupiaq
76
- ita,it,Italian
77
- jav,jv,Javanese
78
- jpn,ja,Japanese
79
- kal,kl,Kalaallisut; Greenlandic
80
- kan,kn,Kannada
81
- kas,ks,Kashmiri
82
- kau,kr,Kanuri
83
- kaz,kk,Kazakh
84
- khm,km,Central Khmer
85
- kik,ki,Kikuyu; Gikuyu
86
- kin,rw,Kinyarwanda
87
- kir,ky,Kirghiz; Kyrgyz
88
- kom,kv,Komi
89
- kon,kg,Kongo
90
- kor,ko,Korean
91
- kua,kj,Kuanyama; Kwanyama
92
- kur,ku,Kurdish
93
- lao,lo,Lao
94
- lat,la,Latin
95
- lav,lv,Latvian
96
- lim,li,Limburgan; Limburger; Limburgish
97
- lin,ln,Lingala
98
- lit,lt,Lithuanian
99
- ltz,lb,Luxembourgish; Letzeburgesch
100
- lub,lu,Luba-Katanga
101
- lug,lg,Ganda
102
- mac,mk,Macedonian
103
- mah,mh,Marshallese
104
- mal,ml,Malayalam
105
- mao,mi,Maori
106
- mar,mr,Marathi
107
- may,ms,Malay
108
- mlg,mg,Malagasy
109
- mlt,mt,Maltese
110
- mon,mn,Mongolian
111
- nau,na,Nauru
112
- nav,nv,Navajo; Navaho
113
- nbl,nr,"Ndebele, South; South Ndebele"
114
- nde,nd,"Ndebele, North; North Ndebele"
115
- ndo,ng,Ndonga
116
- nep,ne,Nepali
117
- nno,nn,"Norwegian Nynorsk; Nynorsk, Norwegian"
118
- nob,nb,"Bokmål, Norwegian; Norwegian Bokmål"
119
- nor,no,Norwegian
120
- nya,ny,Chichewa; Chewa; Nyanja
121
- oci,oc,Occitan (post 1500)
122
- oji,oj,Ojibwa
123
- ori,or,Oriya
124
- orm,om,Oromo
125
- oss,os,Ossetian; Ossetic
126
- pan,pa,Panjabi; Punjabi
127
- per,fa,Persian
128
- pli,pi,Pali
129
- pol,pl,Polish
130
- por,pt,Portuguese
131
- pus,ps,Pushto; Pashto
132
- que,qu,Quechua
133
- roh,rm,Romansh
134
- rum,ro,Romanian; Moldavian; Moldovan
135
- run,rn,Rundi
136
- rus,ru,Russian
137
- sag,sg,Sango
138
- san,sa,Sanskrit
139
- sin,si,Sinhala; Sinhalese
140
- slo,sk,Slovak
141
- slv,sl,Slovenian
142
- sme,se,Northern Sami
143
- smo,sm,Samoan
144
- sna,sn,Shona
145
- snd,sd,Sindhi
146
- som,so,Somali
147
- sot,st,"Sotho, Southern"
148
- spa,es,Spanish; Castilian
149
- srd,sc,Sardinian
150
- srp,sr,Serbian
151
- ssw,ss,Swati
152
- sun,su,Sundanese
153
- swa,sw,Swahili
154
- swe,sv,Swedish
155
- tah,ty,Tahitian
156
- tam,ta,Tamil
157
- tat,tt,Tatar
158
- tel,te,Telugu
159
- tgk,tg,Tajik
160
- tgl,tl,Tagalog
161
- tha,th,Thai
162
- tib,bo,Tibetan
163
- tir,ti,Tigrinya
164
- ton,to,Tonga (Tonga Islands)
165
- tsn,tn,Tswana
166
- tso,ts,Tsonga
167
- tuk,tk,Turkmen
168
- tur,tr,Turkish
169
- twi,tw,Twi
170
- uig,ug,Uighur; Uyghur
171
- ukr,uk,Ukrainian
172
- urd,ur,Urdu
173
- uzb,uz,Uzbek
174
- ven,ve,Venda
175
- vie,vi,Vietnamese
176
- vol,vo,Volapük
177
- wel,cy,Welsh
178
- wln,wa,Walloon
179
- wol,wo,Wolof
180
- xho,xh,Xhosa
181
- yid,yi,Yiddish
182
- yor,yo,Yoruba
183
- zha,za,Zhuang; Chuang
184
- zul,zu,Zulu
1
+ alpha3-b,alpha2,English,alpha3-t
2
+ aar,aa,Afar,
3
+ abk,ab,Abkhazian,
4
+ afr,af,Afrikaans,
5
+ aka,ak,Akan,
6
+ alb,sq,Albanian,sqi
7
+ amh,am,Amharic,
8
+ ara,ar,Arabic,
9
+ arg,an,Aragonese,
10
+ arm,hy,Armenian,hye
11
+ asm,as,Assamese,
12
+ ava,av,Avaric,
13
+ ave,ae,Avestan,
14
+ aym,ay,Aymara,
15
+ aze,az,Azerbaijani,
16
+ bak,ba,Bashkir,
17
+ bam,bm,Bambara,
18
+ baq,eu,Basque,eus
19
+ bel,be,Belarusian,
20
+ ben,bn,Bengali,
21
+ bis,bi,Bislama,
22
+ bos,bs,Bosnian,
23
+ bre,br,Breton,
24
+ bul,bg,Bulgarian,
25
+ bur,my,Burmese,mya
26
+ cat,ca,Catalan; Valencian,
27
+ cha,ch,Chamorro,
28
+ che,ce,Chechen,
29
+ chi,zh,Chinese,zho
30
+ chu,cu,Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic,
31
+ chv,cv,Chuvash,
32
+ cor,kw,Cornish,
33
+ cos,co,Corsican,
34
+ cre,cr,Cree,
35
+ cze,cs,Czech,ces
36
+ dan,da,Danish,
37
+ div,dv,Divehi; Dhivehi; Maldivian,
38
+ dut,nl,Dutch; Flemish,nld
39
+ dzo,dz,Dzongkha,
40
+ eng,en,English,
41
+ epo,eo,Esperanto,
42
+ est,et,Estonian,
43
+ ewe,ee,Ewe,
44
+ fao,fo,Faroese,
45
+ fij,fj,Fijian,
46
+ fin,fi,Finnish,
47
+ fre,fr,French,fra
48
+ fry,fy,Western Frisian,
49
+ ful,ff,Fulah,
50
+ geo,ka,Georgian,kat
51
+ ger,de,German,deu
52
+ gla,gd,Gaelic; Scottish Gaelic,
53
+ gle,ga,Irish,
54
+ glg,gl,Galician,
55
+ glv,gv,Manx,
56
+ gre,el,"Greek, Modern (1453-)",ell
57
+ grn,gn,Guarani,
58
+ guj,gu,Gujarati,
59
+ hat,ht,Haitian; Haitian Creole,
60
+ hau,ha,Hausa,
61
+ heb,he,Hebrew,
62
+ her,hz,Herero,
63
+ hin,hi,Hindi,
64
+ hmo,ho,Hiri Motu,
65
+ hrv,hr,Croatian,
66
+ hun,hu,Hungarian,
67
+ ibo,ig,Igbo,
68
+ ice,is,Icelandic,isl
69
+ ido,io,Ido,
70
+ iii,ii,Sichuan Yi; Nuosu,
71
+ iku,iu,Inuktitut,
72
+ ile,ie,Interlingue; Occidental,
73
+ ina,ia,Interlingua (International Auxiliary Language Association),
74
+ ind,id,Indonesian,
75
+ ipk,ik,Inupiaq,
76
+ ita,it,Italian,
77
+ jav,jv,Javanese,
78
+ jpn,ja,Japanese,
79
+ kal,kl,Kalaallisut; Greenlandic,
80
+ kan,kn,Kannada,
81
+ kas,ks,Kashmiri,
82
+ kau,kr,Kanuri,
83
+ kaz,kk,Kazakh,
84
+ khm,km,Central Khmer,
85
+ kik,ki,Kikuyu; Gikuyu,
86
+ kin,rw,Kinyarwanda,
87
+ kir,ky,Kirghiz; Kyrgyz,
88
+ kom,kv,Komi,
89
+ kon,kg,Kongo,
90
+ kor,ko,Korean,
91
+ kua,kj,Kuanyama; Kwanyama,
92
+ kur,ku,Kurdish,
93
+ lao,lo,Lao,
94
+ lat,la,Latin,
95
+ lav,lv,Latvian,
96
+ lim,li,Limburgan; Limburger; Limburgish,
97
+ lin,ln,Lingala,
98
+ lit,lt,Lithuanian,
99
+ ltz,lb,Luxembourgish; Letzeburgesch,
100
+ lub,lu,Luba-Katanga,
101
+ lug,lg,Ganda,
102
+ mac,mk,Macedonian,mkd
103
+ mah,mh,Marshallese,
104
+ mal,ml,Malayalam,
105
+ mao,mi,Maori,mri
106
+ mar,mr,Marathi,
107
+ may,ms,Malay,msa
108
+ mlg,mg,Malagasy,
109
+ mlt,mt,Maltese,
110
+ mon,mn,Mongolian,
111
+ nau,na,Nauru,
112
+ nav,nv,Navajo; Navaho,
113
+ nbl,nr,"Ndebele, South; South Ndebele",
114
+ nde,nd,"Ndebele, North; North Ndebele",
115
+ ndo,ng,Ndonga,
116
+ nep,ne,Nepali,
117
+ nno,nn,"Norwegian Nynorsk; Nynorsk, Norwegian",
118
+ nob,nb,"Bokmål, Norwegian; Norwegian Bokmål",
119
+ nor,no,Norwegian,
120
+ nya,ny,Chichewa; Chewa; Nyanja,
121
+ oci,oc,Occitan (post 1500),
122
+ oji,oj,Ojibwa,
123
+ ori,or,Oriya,
124
+ orm,om,Oromo,
125
+ oss,os,Ossetian; Ossetic,
126
+ pan,pa,Panjabi; Punjabi,
127
+ per,fa,Persian,fas
128
+ pli,pi,Pali,
129
+ pol,pl,Polish,
130
+ por,pt,Portuguese,
131
+ pus,ps,Pushto; Pashto,
132
+ que,qu,Quechua,
133
+ roh,rm,Romansh,
134
+ rum,ro,Romanian; Moldavian; Moldovan,ron
135
+ run,rn,Rundi,
136
+ rus,ru,Russian,
137
+ sag,sg,Sango,
138
+ san,sa,Sanskrit,
139
+ sin,si,Sinhala; Sinhalese,
140
+ slo,sk,Slovak,slk
141
+ slv,sl,Slovenian,
142
+ sme,se,Northern Sami,
143
+ smo,sm,Samoan,
144
+ sna,sn,Shona,
145
+ snd,sd,Sindhi,
146
+ som,so,Somali,
147
+ sot,st,"Sotho, Southern",
148
+ spa,es,Spanish; Castilian,
149
+ srd,sc,Sardinian,
150
+ srp,sr,Serbian,
151
+ ssw,ss,Swati,
152
+ sun,su,Sundanese,
153
+ swa,sw,Swahili,
154
+ swe,sv,Swedish,
155
+ tah,ty,Tahitian,
156
+ tam,ta,Tamil,
157
+ tat,tt,Tatar,
158
+ tel,te,Telugu,
159
+ tgk,tg,Tajik,
160
+ tgl,tl,Tagalog,
161
+ tha,th,Thai,
162
+ tib,bo,Tibetan,bod
163
+ tir,ti,Tigrinya,
164
+ ton,to,Tonga (Tonga Islands),
165
+ tsn,tn,Tswana,
166
+ tso,ts,Tsonga,
167
+ tuk,tk,Turkmen,
168
+ tur,tr,Turkish,
169
+ twi,tw,Twi,
170
+ uig,ug,Uighur; Uyghur,
171
+ ukr,uk,Ukrainian,
172
+ urd,ur,Urdu,
173
+ uzb,uz,Uzbek,
174
+ ven,ve,Venda,
175
+ vie,vi,Vietnamese,
176
+ vol,vo,Volapük,
177
+ wel,cy,Welsh,cym
178
+ wln,wa,Walloon,
179
+ wol,wo,Wolof,
180
+ xho,xh,Xhosa,
181
+ yid,yi,Yiddish,
182
+ yor,yo,Yoruba,
183
+ zha,za,Zhuang; Chuang,
184
+ zul,zu,Zulu,