@mailwoman/registry 9.4.0 → 10.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/README.md +10 -10
  2. package/lib/address-key.ts +14 -10
  3. package/lib/geocode-handler.ts +6 -4
  4. package/lib/geojson.ts +13 -17
  5. package/lib/ingest.ts +57 -83
  6. package/lib/learned-scorer.ts +38 -44
  7. package/lib/map-html.ts +24 -70
  8. package/lib/models/crosssource-gbt-en-us.ts +9 -7
  9. package/lib/models/dedup-gbt-en-us.ts +9 -8
  10. package/lib/models/org-crosssource-gbt-en-us.ts +10 -8
  11. package/lib/reconcile.ts +45 -55
  12. package/lib/resolve.ts +180 -124
  13. package/lib/types.ts +18 -12
  14. package/out/address-key.d.ts +14 -10
  15. package/out/address-key.d.ts.map +1 -1
  16. package/out/address-key.js +14 -10
  17. package/out/address-key.js.map +1 -1
  18. package/out/geocode-handler.d.ts +6 -4
  19. package/out/geocode-handler.d.ts.map +1 -1
  20. package/out/geocode-handler.js +6 -4
  21. package/out/geocode-handler.js.map +1 -1
  22. package/out/geojson.d.ts +9 -5
  23. package/out/geojson.d.ts.map +1 -1
  24. package/out/geojson.js +13 -15
  25. package/out/geojson.js.map +1 -1
  26. package/out/ingest.d.ts +46 -75
  27. package/out/ingest.d.ts.map +1 -1
  28. package/out/ingest.js +27 -54
  29. package/out/ingest.js.map +1 -1
  30. package/out/learned-scorer.d.ts +29 -26
  31. package/out/learned-scorer.d.ts.map +1 -1
  32. package/out/learned-scorer.js +31 -39
  33. package/out/learned-scorer.js.map +1 -1
  34. package/out/map-html.d.ts +13 -32
  35. package/out/map-html.d.ts.map +1 -1
  36. package/out/map-html.js +9 -62
  37. package/out/map-html.js.map +1 -1
  38. package/out/models/crosssource-gbt-en-us.d.ts +9 -7
  39. package/out/models/crosssource-gbt-en-us.d.ts.map +1 -1
  40. package/out/models/crosssource-gbt-en-us.js +9 -7
  41. package/out/models/crosssource-gbt-en-us.js.map +1 -1
  42. package/out/models/dedup-gbt-en-us.d.ts +9 -8
  43. package/out/models/dedup-gbt-en-us.d.ts.map +1 -1
  44. package/out/models/dedup-gbt-en-us.js +9 -8
  45. package/out/models/dedup-gbt-en-us.js.map +1 -1
  46. package/out/models/org-crosssource-gbt-en-us.d.ts +10 -8
  47. package/out/models/org-crosssource-gbt-en-us.d.ts.map +1 -1
  48. package/out/models/org-crosssource-gbt-en-us.js +10 -8
  49. package/out/models/org-crosssource-gbt-en-us.js.map +1 -1
  50. package/out/reconcile.d.ts +35 -50
  51. package/out/reconcile.d.ts.map +1 -1
  52. package/out/reconcile.js +19 -43
  53. package/out/reconcile.js.map +1 -1
  54. package/out/resolve.d.ts +150 -90
  55. package/out/resolve.d.ts.map +1 -1
  56. package/out/resolve.js +62 -63
  57. package/out/resolve.js.map +1 -1
  58. package/out/tools/coverage-reconciliation.d.ts +23 -23
  59. package/out/tools/coverage-reconciliation.d.ts.map +1 -1
  60. package/out/tools/coverage-reconciliation.js +15 -26
  61. package/out/tools/coverage-reconciliation.js.map +1 -1
  62. package/out/tools/cross/dataset-correlation.d.ts +58 -0
  63. package/out/tools/cross/dataset-correlation.d.ts.map +1 -0
  64. package/out/tools/{cross-dataset-correlation.js → cross/dataset-correlation.js} +10 -62
  65. package/out/tools/cross/dataset-correlation.js.map +1 -0
  66. package/out/tools/cross/source-threshold-sweep.d.ts +60 -0
  67. package/out/tools/cross/source-threshold-sweep.d.ts.map +1 -0
  68. package/out/tools/{cross-source-threshold-sweep.js → cross/source-threshold-sweep.js} +15 -41
  69. package/out/tools/cross/source-threshold-sweep.js.map +1 -0
  70. package/out/tools/dedup-ceiling.d.ts +23 -26
  71. package/out/tools/dedup-ceiling.d.ts.map +1 -1
  72. package/out/tools/dedup-ceiling.js +22 -41
  73. package/out/tools/dedup-ceiling.js.map +1 -1
  74. package/out/tools/eval-geocoder.d.ts +22 -15
  75. package/out/tools/eval-geocoder.d.ts.map +1 -1
  76. package/out/tools/eval-geocoder.js +5 -6
  77. package/out/tools/eval-geocoder.js.map +1 -1
  78. package/out/tools/geocoder/namesake-probe.d.ts +33 -0
  79. package/out/tools/geocoder/namesake-probe.d.ts.map +1 -0
  80. package/out/tools/{geocoder-namesake-probe.js → geocoder/namesake-probe.js} +7 -8
  81. package/out/tools/geocoder/namesake-probe.js.map +1 -0
  82. package/out/tools/geocoder/vs-provided-coords.d.ts +53 -0
  83. package/out/tools/geocoder/vs-provided-coords.d.ts.map +1 -0
  84. package/out/tools/{geocoder-vs-provided-coords.js → geocoder/vs-provided-coords.js} +31 -28
  85. package/out/tools/geocoder/vs-provided-coords.js.map +1 -0
  86. package/out/tools/gold-set-sample.d.ts +27 -18
  87. package/out/tools/gold-set-sample.d.ts.map +1 -1
  88. package/out/tools/gold-set-sample.js +18 -22
  89. package/out/tools/gold-set-sample.js.map +1 -1
  90. package/out/tools/learned/scorer/clustering-eval.d.ts +77 -0
  91. package/out/tools/learned/scorer/clustering-eval.d.ts.map +1 -0
  92. package/out/tools/{learned-scorer-clustering-eval.js → learned/scorer/clustering-eval.js} +29 -39
  93. package/out/tools/learned/scorer/clustering-eval.js.map +1 -0
  94. package/out/tools/learned/scorer/crossstate-eval.d.ts +65 -0
  95. package/out/tools/learned/scorer/crossstate-eval.d.ts.map +1 -0
  96. package/out/tools/{learned-scorer-crossstate-eval.js → learned/scorer/crossstate-eval.js} +20 -26
  97. package/out/tools/learned/scorer/crossstate-eval.js.map +1 -0
  98. package/out/tools/learned/scorer/eval.d.ts +60 -0
  99. package/out/tools/learned/scorer/eval.d.ts.map +1 -0
  100. package/out/tools/{learned-scorer-eval.js → learned/scorer/eval.js} +12 -72
  101. package/out/tools/learned/scorer/eval.js.map +1 -0
  102. package/out/tools/matcher-scale.d.ts +12 -17
  103. package/out/tools/matcher-scale.d.ts.map +1 -1
  104. package/out/tools/matcher-scale.js +11 -29
  105. package/out/tools/matcher-scale.js.map +1 -1
  106. package/out/tools/nppes/dedup-benchmark.d.ts +81 -0
  107. package/out/tools/nppes/dedup-benchmark.d.ts.map +1 -0
  108. package/out/tools/{nppes-dedup-benchmark.js → nppes/dedup-benchmark.js} +21 -67
  109. package/out/tools/nppes/dedup-benchmark.js.map +1 -0
  110. package/out/tools/nppes/org-name.d.ts +5 -4
  111. package/out/tools/nppes/org-name.d.ts.map +1 -1
  112. package/out/tools/nppes/org-name.js +2 -2
  113. package/out/tools/nppes/org-name.js.map +1 -1
  114. package/out/tools/nppes/overmerge-packet.d.ts +15 -11
  115. package/out/tools/nppes/overmerge-packet.d.ts.map +1 -1
  116. package/out/tools/nppes/overmerge-packet.js +7 -8
  117. package/out/tools/nppes/overmerge-packet.js.map +1 -1
  118. package/out/tools/nppes/report.d.ts +17 -13
  119. package/out/tools/nppes/report.d.ts.map +1 -1
  120. package/out/tools/nppes/report.js +6 -14
  121. package/out/tools/nppes/report.js.map +1 -1
  122. package/out/tools/nppes/sample.d.ts +28 -17
  123. package/out/tools/nppes/sample.d.ts.map +1 -1
  124. package/out/tools/nppes/sample.js +23 -26
  125. package/out/tools/nppes/sample.js.map +1 -1
  126. package/out/tools/nppes/scoring.d.ts +7 -6
  127. package/out/tools/nppes/scoring.d.ts.map +1 -1
  128. package/out/tools/nppes/scoring.js +6 -5
  129. package/out/tools/nppes/scoring.js.map +1 -1
  130. package/out/tools/nppes/settings.d.ts +10 -7
  131. package/out/tools/nppes/settings.d.ts.map +1 -1
  132. package/out/tools/nppes/settings.js +16 -16
  133. package/out/tools/nppes/settings.js.map +1 -1
  134. package/out/tools/nppes/truth-grains.d.ts +36 -23
  135. package/out/tools/nppes/truth-grains.d.ts.map +1 -1
  136. package/out/tools/nppes/truth-grains.js +36 -20
  137. package/out/tools/nppes/truth-grains.js.map +1 -1
  138. package/out/tools/shared.d.ts +63 -59
  139. package/out/tools/shared.d.ts.map +1 -1
  140. package/out/tools/shared.js +49 -66
  141. package/out/tools/shared.js.map +1 -1
  142. package/out/tools/train/cross-gbt.d.ts +88 -0
  143. package/out/tools/train/cross-gbt.d.ts.map +1 -0
  144. package/out/tools/{train-cross-gbt.js → train/cross-gbt.js} +15 -26
  145. package/out/tools/train/cross-gbt.js.map +1 -0
  146. package/out/tools/train/gbt.d.ts +85 -0
  147. package/out/tools/train/gbt.d.ts.map +1 -0
  148. package/out/tools/{train-gbt.js → train/gbt.js} +28 -32
  149. package/out/tools/train/gbt.js.map +1 -0
  150. package/out/tools/train/org-cross-gbt.d.ts +84 -0
  151. package/out/tools/train/org-cross-gbt.d.ts.map +1 -0
  152. package/out/tools/{train-org-cross-gbt.js → train/org-cross-gbt.js} +19 -23
  153. package/out/tools/train/org-cross-gbt.js.map +1 -0
  154. package/out/tools/txhhsc-to-oarow.d.ts +14 -9
  155. package/out/tools/txhhsc-to-oarow.d.ts.map +1 -1
  156. package/out/tools/txhhsc-to-oarow.js +16 -15
  157. package/out/tools/txhhsc-to-oarow.js.map +1 -1
  158. package/out/tools/viz/browser.d.ts +6 -5
  159. package/out/tools/viz/browser.d.ts.map +1 -1
  160. package/out/tools/viz/browser.js +6 -5
  161. package/out/tools/viz/browser.js.map +1 -1
  162. package/out/tools/viz/cross-dataset-map.d.ts +7 -4
  163. package/out/tools/viz/cross-dataset-map.d.ts.map +1 -1
  164. package/out/tools/viz/cross-dataset-map.js +9 -6
  165. package/out/tools/viz/cross-dataset-map.js.map +1 -1
  166. package/out/tools/viz/geocode-first-surface.d.ts +10 -5
  167. package/out/tools/viz/geocode-first-surface.d.ts.map +1 -1
  168. package/out/tools/viz/geocode-first-surface.js +16 -11
  169. package/out/tools/viz/geocode-first-surface.js.map +1 -1
  170. package/out/tools/viz/{render-map.d.ts → render/map.d.ts} +6 -6
  171. package/out/tools/viz/render/map.d.ts.map +1 -0
  172. package/out/tools/viz/{render-map.js → render/map.js} +7 -6
  173. package/out/tools/viz/render/map.js.map +1 -0
  174. package/out/tools/viz/render.d.ts +12 -8
  175. package/out/tools/viz/render.d.ts.map +1 -1
  176. package/out/tools/viz/render.js +8 -7
  177. package/out/tools/viz/render.js.map +1 -1
  178. package/out/tools/viz/source-provenance-map.d.ts +19 -7
  179. package/out/tools/viz/source-provenance-map.d.ts.map +1 -1
  180. package/out/tools/viz/source-provenance-map.js +11 -8
  181. package/out/tools/viz/source-provenance-map.js.map +1 -1
  182. package/out/tools/viz/yardstick-figure.d.ts +2 -21
  183. package/out/tools/viz/yardstick-figure.d.ts.map +1 -1
  184. package/out/tools/viz/yardstick-figure.js +3 -39
  185. package/out/tools/viz/yardstick-figure.js.map +1 -1
  186. package/out/types.d.ts +17 -11
  187. package/out/types.d.ts.map +1 -1
  188. package/out/types.js +2 -2
  189. package/out/types.js.map +1 -1
  190. package/package.json +41 -184
  191. package/{lib/tools → tools}/coverage-reconciliation.ts +27 -30
  192. package/{lib/tools/cross-dataset-correlation.ts → tools/cross/dataset-correlation.ts} +31 -72
  193. package/{lib/tools/cross-source-threshold-sweep.ts → tools/cross/source-threshold-sweep.ts} +29 -46
  194. package/{lib/tools → tools}/dedup-ceiling.ts +34 -45
  195. package/tools/eval-geocoder.ts +74 -0
  196. package/{lib/tools/geocoder-namesake-probe.ts → tools/geocoder/namesake-probe.ts} +9 -8
  197. package/{lib/tools/geocoder-vs-provided-coords.ts → tools/geocoder/vs-provided-coords.ts} +39 -30
  198. package/{lib/tools → tools}/gold-set-sample.ts +35 -29
  199. package/{lib/tools/learned-scorer-clustering-eval.ts → tools/learned/scorer/clustering-eval.ts} +49 -45
  200. package/{lib/tools/learned-scorer-crossstate-eval.ts → tools/learned/scorer/crossstate-eval.ts} +34 -30
  201. package/{lib/tools/learned-scorer-eval.ts → tools/learned/scorer/eval.ts} +35 -78
  202. package/{lib/tools → tools}/matcher-scale.ts +21 -33
  203. package/{lib/tools/nppes-dedup-benchmark.ts → tools/nppes/dedup-benchmark.ts} +37 -82
  204. package/{lib/tools → tools}/nppes/org-name.ts +5 -4
  205. package/{lib/tools → tools}/nppes/overmerge-packet.ts +17 -13
  206. package/{lib/tools → tools}/nppes/report.ts +32 -25
  207. package/{lib/tools → tools}/nppes/sample.ts +41 -36
  208. package/{lib/tools → tools}/nppes/scoring.ts +7 -6
  209. package/{lib/tools → tools}/nppes/settings.ts +16 -16
  210. package/{lib/tools → tools}/nppes/truth-grains.ts +46 -26
  211. package/{lib/tools → tools}/shared.ts +73 -83
  212. package/{lib/tools/train-cross-gbt.ts → tools/train/cross-gbt.ts} +38 -34
  213. package/{lib/tools/train-gbt.ts → tools/train/gbt.ts} +55 -41
  214. package/{lib/tools/train-org-cross-gbt.ts → tools/train/org-cross-gbt.ts} +39 -30
  215. package/{lib/tools → tools}/txhhsc-to-oarow.ts +24 -18
  216. package/{lib/tools → tools}/viz/browser.ts +6 -5
  217. package/{lib/tools → tools}/viz/cross-dataset-map.ts +15 -9
  218. package/{lib/tools → tools}/viz/geocode-first-surface.ts +28 -17
  219. package/{lib/tools/viz/render-map.ts → tools/viz/render/map.ts} +7 -6
  220. package/{lib/tools → tools}/viz/render.ts +16 -11
  221. package/{lib/tools → tools}/viz/source-provenance-map.ts +30 -15
  222. package/{lib/tools → tools}/viz/yardstick-figure.ts +6 -43
  223. package/lib/tools/eval-geocoder.ts +0 -67
  224. package/lib/tools/index.ts +0 -31
  225. package/out/tools/cross-dataset-correlation.d.ts +0 -65
  226. package/out/tools/cross-dataset-correlation.d.ts.map +0 -1
  227. package/out/tools/cross-dataset-correlation.js.map +0 -1
  228. package/out/tools/cross-source-threshold-sweep.d.ts +0 -66
  229. package/out/tools/cross-source-threshold-sweep.d.ts.map +0 -1
  230. package/out/tools/cross-source-threshold-sweep.js.map +0 -1
  231. package/out/tools/geocoder-namesake-probe.d.ts +0 -32
  232. package/out/tools/geocoder-namesake-probe.d.ts.map +0 -1
  233. package/out/tools/geocoder-namesake-probe.js.map +0 -1
  234. package/out/tools/geocoder-vs-provided-coords.d.ts +0 -50
  235. package/out/tools/geocoder-vs-provided-coords.d.ts.map +0 -1
  236. package/out/tools/geocoder-vs-provided-coords.js.map +0 -1
  237. package/out/tools/index.d.ts +0 -31
  238. package/out/tools/index.d.ts.map +0 -1
  239. package/out/tools/index.js +0 -31
  240. package/out/tools/index.js.map +0 -1
  241. package/out/tools/learned-scorer-clustering-eval.d.ts +0 -74
  242. package/out/tools/learned-scorer-clustering-eval.d.ts.map +0 -1
  243. package/out/tools/learned-scorer-clustering-eval.js.map +0 -1
  244. package/out/tools/learned-scorer-crossstate-eval.d.ts +0 -59
  245. package/out/tools/learned-scorer-crossstate-eval.d.ts.map +0 -1
  246. package/out/tools/learned-scorer-crossstate-eval.js.map +0 -1
  247. package/out/tools/learned-scorer-eval.d.ts +0 -77
  248. package/out/tools/learned-scorer-eval.d.ts.map +0 -1
  249. package/out/tools/learned-scorer-eval.js.map +0 -1
  250. package/out/tools/nppes-dedup-benchmark.d.ts +0 -101
  251. package/out/tools/nppes-dedup-benchmark.d.ts.map +0 -1
  252. package/out/tools/nppes-dedup-benchmark.js.map +0 -1
  253. package/out/tools/train-cross-gbt.d.ts +0 -78
  254. package/out/tools/train-cross-gbt.d.ts.map +0 -1
  255. package/out/tools/train-cross-gbt.js.map +0 -1
  256. package/out/tools/train-gbt.d.ts +0 -69
  257. package/out/tools/train-gbt.d.ts.map +0 -1
  258. package/out/tools/train-gbt.js.map +0 -1
  259. package/out/tools/train-org-cross-gbt.d.ts +0 -71
  260. package/out/tools/train-org-cross-gbt.d.ts.map +0 -1
  261. package/out/tools/train-org-cross-gbt.js.map +0 -1
  262. package/out/tools/viz/render-map.d.ts.map +0 -1
  263. package/out/tools/viz/render-map.js.map +0 -1
package/out/reconcile.js CHANGED
@@ -1,37 +1,10 @@
1
- /**
2
- * @copyright Sister Software
3
- * @license AGPL-3.0
4
- * @author Teffen Ellis, et al.
5
- *
6
- * Coverage reconciliation (#621) — the library home for what `registry/tools/
7
- * coverage-reconciliation.ts` does inline, so the CLI (`registry --reconcile`) and any consumer
8
- * can reuse it.
9
- *
10
- * Given entities already resolved ACROSS sources (#618), classify each by which KIND of source its
11
- * records come from. You tag each source label as either an **eligibility** source (it denotes
12
- * membership in some base set — e.g. registered providers/facilities) or a **funding/enrollment**
13
- * source (it denotes participation in a program). Three buckets fall out per entity:
14
- *
15
- * - **enrolled** — resolves to BOTH an eligibility and a funding record.
16
- * - **eligible, not enrolled** — an eligibility record with NO funding record resolving to it (the
17
- * ANTI-JOIN).
18
- * - **funded, not in the eligibility set** — a funding record with no eligibility record resolving to
19
- * it.
20
- *
21
- * This is strictly a **set-membership reconciliation, never a determination.** We produce the
22
- * reconciled join and surface the candidate set; what a gap MEANS — and whether it is real, a
23
- * sampling artifact, or actionable — is entirely the data consumer's call. Nothing here is an
24
- * allegation. {@link reconciliationReport} bakes that caveat in by construction.
25
- *
26
- * Pairs with {@link toMapHTML}: {@link reconciliationGeoJSON} tags each feature with its `bucket`,
27
- * which the map auto-detects and colors categorically.
28
- */
29
- import { isPresent } from "@mailwoman/core/objects";
1
+ import { formatPersonName } from "@mailwoman/record/name";
30
2
  import { toFeature } from "#geojson";
31
3
  /**
32
- * Bucket an entity from the source labels its records span. Returns `null` when the entity carries NO eligibility- or
33
- * funding-tagged source (it is outside this reconciliation — e.g. a source the caller didn't assign a role) so callers
34
- * can exclude it rather than silently miscount it.
4
+ * Places an entity in a reconciliation bucket by whether its source labels include
5
+ * eligibility sources, funding sources, or both.
6
+ *
7
+ * @returns `null` when the entity has neither kind of source.
35
8
  */
36
9
  export function bucketOf(sources, config) {
37
10
  const elig = new Set(config.eligibilitySources);
@@ -55,8 +28,9 @@ export function bucketOf(sources, config) {
55
28
  return null;
56
29
  }
57
30
  /**
58
- * Classify resolved entities into reconciliation buckets. Entities with no eligibility- or funding-tagged source are
59
- * excluded (see {@link bucketOf}).
31
+ * Buckets resolved entities by their sources with {@link bucketOf}.
32
+ *
33
+ * Entities without an eligibility or funding source are dropped.
60
34
  */
61
35
  export function reconcileCoverage(entities, config) {
62
36
  const reconciled = [];
@@ -76,17 +50,17 @@ export function reconcileCoverage(entities, config) {
76
50
  return { reconciled, counts };
77
51
  }
78
52
  /**
79
- * A display name for a reconciled entity's representative record — the organization's canonical form, else the person
80
- * name, else the record id.
53
+ * Returns a display name for an entity's representative record.
54
+ *
55
+ * It prefers the organization's canonical name, then the person's name, then the record ID.
81
56
  */
82
57
  export function repName(entity) {
83
58
  const rep = entity.representative;
84
- const person = [rep.name?.given, rep.name?.family].filter(isPresent).join(" ");
59
+ const person = formatPersonName(rep.name, "short");
85
60
  return rep.organization?.canonical ?? (person || rep.id);
86
61
  }
87
62
  /**
88
- * GeoJSON of every located reconciled entity, each feature tagged with its `bucket` + `sources` — the shape
89
- * {@link toMapHTML} colors categorically by bucket. Entities without a coordinate are skipped.
63
+ * Converts the reconciled entities that have coordinates to point features tagged with their bucket.
90
64
  */
91
65
  export function reconciliationGeoJSON(result) {
92
66
  return {
@@ -97,8 +71,10 @@ export function reconciliationGeoJSON(result) {
97
71
  };
98
72
  }
99
73
  /**
100
- * A markdown reconciliation report: the bucket counts, the enrolled-rate floor, an anti-join spot-check, and — always,
101
- * by construction — the neutral caveat. The deliverable is the anti-join SET, not a rate, and never an allegation.
74
+ * Renders a Markdown reconciliation report with the bucket counts, the enrolled rate,
75
+ * a spot-check of `eligible-not-enrolled` entities and a fixed caveat.
76
+ *
77
+ * The report presents the enrolled rate as a floor because incomplete resolution can only miss links.
102
78
  */
103
79
  export function reconciliationReport(result, options = {}) {
104
80
  const { counts, reconciled } = result;
@@ -120,8 +96,8 @@ export function reconciliationReport(result, options = {}) {
120
96
  lines.push(`| bucket | entities | meaning |`);
121
97
  lines.push(`|---|---:|---|`);
122
98
  lines.push(`| **enrolled** | ${counts.enrolled} | resolves to an eligibility record AND a funding record |`);
123
- lines.push(`| **eligible, not enrolled** | ${counts["eligible-not-enrolled"]} | eligibility record, no funding record resolved (the **anti-join**) |`);
124
- lines.push(`| **funded, not in eligibility set** | ${counts["funded-not-eligible"]} | funding record, no eligibility record resolved |`);
99
+ lines.push(`| **eligible, not enrolled** | ${counts["eligible-not-enrolled"]} | eligibility record without a resolved funding record (the **anti-join**) |`);
100
+ lines.push(`| **funded, not in eligibility set** | ${counts["funded-not-eligible"]} | funding record without a resolved eligibility record |`);
125
101
  lines.push("");
126
102
  lines.push(`Of the ${eligibleTotal} entities with an eligibility record, ${enrolledRate.toFixed(1)}% also resolve to a ` +
127
103
  `funding record — a **floor**, not a coverage rate (imperfect resolution + any sampling only ever miss ` +
@@ -1 +1 @@
1
- {"version":3,"file":"reconcile.js","sourceRoot":"","sources":["../lib/reconcile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAGnD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAqCpC;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,OAAyB,EAAE,MAAuB;IAC1E,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAA;IAC/C,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,CAAA;IAC3C,IAAI,cAAc,GAAG,KAAK,CAAA;IAC1B,IAAI,UAAU,GAAG,KAAK,CAAA;IAEtB,KAAK,MAAM,CAAC,IAAI,OAAO,EAAE,CAAC;QACzB,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;YACjB,cAAc,GAAG,IAAI,CAAA;QACtB,CAAC;QAED,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;YACjB,UAAU,GAAG,IAAI,CAAA;QAClB,CAAC;IACF,CAAC;IAED,IAAI,cAAc,IAAI,UAAU;QAAE,OAAO,UAAU,CAAA;IAEnD,IAAI,cAAc;QAAE,OAAO,uBAAuB,CAAA;IAElD,IAAI,UAAU;QAAE,OAAO,qBAAqB,CAAA;IAE5C,OAAO,IAAI,CAAA;AACZ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,QAAmC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IAAI,CAAC,CAAA;AACxB,CAAC"}
package/out/resolve.d.ts CHANGED
@@ -3,87 +3,105 @@
3
3
  * @license AGPL-3.0
4
4
  * @author Teffen Ellis, et al.
5
5
  *
6
- * The resolve pipeline — the whole matcher, wired over concrete contact/organization records: block
7
- * (geo-first) → score (Fellegi-Sunter) → cluster → canonical entities.
6
+ * The resolve pipeline wires the matching modules over concrete contact and organization records.
8
7
  *
9
- * `resolveEntities` ships sensible geocode-first defaults — block on location / canonical key /
10
- * phone / email; score on name, organization, address key, and great-circle distance — and can
11
- * fit the scorer's `m`/`u` to the data with EM (`trainEM`), so it runs with no labels and no
12
- * per-dataset tuning. Everything is overridable: pass your own model, blocking keys, or
13
- * threshold.
14
- *
15
- * Geocoding is assumed already done upstream (each `address` carries its coordinate + canonical
16
- * key). Wiring mailwoman's parser + geocoder to turn raw rows into `SourceRecord`s is the ingest
17
- * layer that sits in front of this.
8
+ * The upstream pipeline geocodes each `address` and supplies its coordinate and canonical key.
18
9
  */
19
10
  import { type BlockingKey, type FellegiSunterModel, type GBT, type TermFrequencyTable } from "@mailwoman/match";
20
11
  import type { ResolvedEntity, SourceRecord } from "#types";
21
12
  /**
22
- * Cheap, parse-free normalization for the address-frequency key — uppercase, collapse whitespace, drop punctuation.
23
- * Used to count how many distinct entities share an address across the WHOLE corpus (computable over millions of rows
24
- * without geocoding) and to look that frequency up at match time. It's the inverse-frequency signal: a crowded
25
- * clinic/billing address is weak evidence of identity; a lonely address is strong. (See
26
- * docs/articles/evals/matcher-dedup/2026-06-15-nppes-dedup-benchmark.md.)
13
+ * Cheap, parse-free normalization for the address-frequency key: uppercase,
14
+ * collapse whitespace, drop punctuation.
15
+ *
16
+ * The count covers distinct entities that share an address.
17
+ * It is computable over millions of rows without geocoding.
18
+ *
19
+ * A crowded clinic or billing address is weak identity evidence.
20
+ * A lonely address is strong.
27
21
  */
28
22
  export declare function addressFrequencyKey(raw: string): string;
29
23
  /**
30
- * Last-10-digits normalization for phone agreement (drops country code, punctuation, extensions). A shorter digit
31
- * string is kept as-is — partial agreement still carries weight in the comparison model; `null` means no digits at
32
- * all.
24
+ * Last-10-digit normalization for phone agreement, dropping country code, punctuation and extensions.
25
+ *
26
+ * A shorter digit string is kept as-is, since partial agreement still contributes
27
+ * weight in the comparison model.
28
+ * `null` means no digits at all.
33
29
  */
34
30
  export declare function normalizePhone(raw: string | null | undefined): string | null;
35
31
  /**
36
- * {@link normalizePhone} under the probes' stricter contract: only a FULL line counts — the last 10 digits when the
37
- * input carries at least 10, `""` otherwise (never a partial digit string). Callers guard on truthiness, so `""` reads
38
- * as "no comparable phone" rather than a weaker key.
32
+ * {@link normalizePhone} under the probes' stricter interface, where only a full line counts.
33
+ *
34
+ * Returns the last 10 digits when the input contains at least 10.
35
+ * Returns `""` for shorter input, so callers never receive a partial digit string.
36
+ *
37
+ * Callers guard on truthiness, so `""` reads as no comparable phone rather than a weaker key.
39
38
  */
40
39
  export declare function normalizePhoneStrict(raw: string | null | undefined): string;
41
40
  /**
42
- * Options for {@link buildDefaultModel}. Each change is default-off, so the base model is byte-stable.
41
+ * Options for {@link buildDefaultModel}.
42
+ *
43
+ * Each change is default-off, so the base model is byte-stable.
43
44
  */
44
45
  export interface DefaultModelOptions {
45
46
  /**
46
- * Corpus-wide address-frequency table (over {@link addressFrequencyKey}) — makes the address- agreement weight
47
- * **inverse to how shared the address is** (a building with 50 providers makes "same address" near-worthless
48
- * evidence). The table's `value` is the record's raw address string.
47
+ * Corpus-wide address-frequency table over {@link addressFrequencyKey}, which makes
48
+ * the address agreement weight inverse to how shared the address is.
49
+ *
50
+ * A building with 50 providers makes a same-address match near-worthless evidence.
51
+ *
52
+ * The table's `value` is the record's raw address string.
49
53
  */
50
54
  addressFrequency?: TermFrequencyTable;
51
55
  /**
52
- * **A1 (#625):** collapse the redundant address-key + great-circle-distance comparisons into ONE
53
- * {@link spatialComparison spatial-agreement} signal — an exact-key tier (where `addressFrequency`, if set, rides)
54
- * over distance buckets. Removes the double-count that over-merges co-located providers (an exact key match already
55
- * implies distance ≈ 0).
56
+ * Collapse the redundant address-key and great-circle-distance comparisons into one
57
+ * {@link spatialComparison spatial-agreement} signal, an exact-key tier over distance buckets.
58
+ *
59
+ * Removes the double-count that over-merges co-located providers, since an
60
+ * exact key match already implies distance ≈ 0.
56
61
  */
57
62
  collapseSpatial?: boolean;
58
63
  /**
59
- * **A3 (#625):** add a normalized-phone exact-match comparison — a shared line is strong evidence and the secondary
60
- * corroborator that lets a true same-entity link survive name drift under A2.
64
+ * Add a normalized-phone exact-match comparison.
65
+ *
66
+ * A shared line is strong evidence and the secondary corroborator that lets a
67
+ * true same-entity link survive name drift.
61
68
  */
62
69
  usePhone?: boolean;
63
70
  /**
64
- * Extra secondary-identifier comparisons drawn from {@link SourceRecord.attributes} (e.g. `["authorizedOfficial"]`).
65
- * Each becomes an `attr:<key>` comparison AND counts toward A2 corroboration — a more reliable discriminator than
66
- * phone where the data has one (#625).
71
+ * Extra secondary-identifier comparisons drawn from {@link SourceRecord.attributes},
72
+ * such as `["authorizedOfficial"]`.
73
+ *
74
+ * Each becomes an `attr:<key>` comparison and counts toward corroboration.
75
+ * It is a more reliable discriminator than phone where the data has one.
67
76
  */
68
77
  discriminators?: string[];
69
78
  /**
70
- * Closed-vocabulary CODE-SET discriminators drawn from {@link SourceRecord.attributes} (#625 taxonomy change). The
71
- * attribute value is a whitespace-joined set of codes (NPPES taxonomy codes, license numbers, …); agreement = ANY
72
- * shared code (set overlap, not string similarity — `207R00000X` vs `207Q00000X` are DIFFERENT specialties despite
73
- * near-identical text, exactly the case string similarity mis-scores). The over-merge separator: two co-located
74
- * records of ONE entity nearly always share a code, two distinct co-located providers usually don't.
79
+ * Closed-vocabulary code-set discriminators drawn from {@link SourceRecord.attributes},
80
+ * such as NPPES taxonomy codes or license numbers.
81
+ *
82
+ * The attribute value is a whitespace-joined set of codes.
83
+ * Any shared code counts as agreement.
84
+ *
85
+ * This is set overlap rather than string similarity, since `207R00000X`
86
+ * and `207Q00000X` are different specialties despite near-identical text.
87
+ *
88
+ * Similarity scores mis-rank that case because the codes identify different specialties.
89
+ * The over-merge separator: two co-located records of one entity nearly always share
90
+ * a code, while two distinct co-located providers usually do not.
75
91
  */
76
92
  exactDiscriminators?: string[];
77
93
  }
78
94
  /**
79
- * The default geocode-first scoring model: name + organization + a spatial signal. The spatial signal is either two
80
- * comparisons (address-key similarity + great-circle distance — the legacy default, which double-counts) or, with
81
- * {@link DefaultModelOptions.collapseSpatial}, one collapsed {@link spatialComparison}. `addressFrequency` down-weights
82
- * agreement on a crowded address either way.
95
+ * The default geocode-first scoring model: name, organization and a spatial signal.
96
+ *
97
+ * The spatial signal is either two comparisons (address-key similarity and great-circle distance)
98
+ * or, with {@link DefaultModelOptions.collapseSpatial}, one collapsed {@link spatialComparison}.
99
+ * `addressFrequency` down-weights agreement on a crowded address either way.
83
100
  */
84
101
  export declare function buildDefaultModel(opts?: DefaultModelOptions): FellegiSunterModel<SourceRecord>;
85
102
  /**
86
- * The default blocking keys: a union of location, canonical address, phone, and email.
103
+ * The default blocking keys include location and canonical address.
104
+ * They also include phone and email.
87
105
  */
88
106
  export declare function defaultBlockingKeys(): BlockingKey<SourceRecord>[];
89
107
  /**
@@ -91,15 +109,21 @@ export declare function defaultBlockingKeys(): BlockingKey<SourceRecord>[];
91
109
  */
92
110
  export interface ResolveConfig {
93
111
  /**
94
- * Scoring model. Default {@link buildDefaultModel}.
112
+ * The model used to score candidate pairs.
113
+ *
114
+ * Default {@link buildDefaultModel}.
95
115
  */
96
116
  model?: FellegiSunterModel<SourceRecord>;
97
117
  /**
98
- * Blocking keys (their union). Default {@link defaultBlockingKeys}.
118
+ * The blocking keys whose union forms the candidate set.
119
+ *
120
+ * Default {@link defaultBlockingKeys}.
99
121
  */
100
122
  blockingKeys?: BlockingKey<SourceRecord>[];
101
123
  /**
102
- * Link two records into the same entity at or above this match weight (bits). Default 0.
124
+ * Link two records into the same entity at or above this match weight (bits).
125
+ *
126
+ * Default 0.
103
127
  */
104
128
  threshold?: number;
105
129
  /**
@@ -107,74 +131,108 @@ export interface ResolveConfig {
107
131
  */
108
132
  maxBlockSize?: number;
109
133
  /**
110
- * Fit the model's `m`/`u` to the candidate pairs with EM before scoring (label-free). Default false.
134
+ * Fit the model's `m`/`u` to the candidate pairs with EM before scoring (label-free).
135
+ *
136
+ * Default false.
111
137
  */
112
138
  trainEM?: boolean;
113
139
  /**
114
- * Address-frequency table (over {@link addressFrequencyKey}) — down-weights address agreement by how shared the
115
- * address is (a crowded clinic/billing address is weak identity evidence). **Default-on (#625):** when omitted,
116
- * `resolveEntities` AUTO-COMPUTES the table over the INPUT records' addresses (the right scope for a single dataset —
117
- * a crowded address within the data is down-weighted). Pass your own {@link TermFrequencyTable} (e.g. a corpus-wide
118
- * one) to override, or `false` to disable (the legacy bare baseline). Ignored if `model` is supplied.
140
+ * Address-frequency table over {@link addressFrequencyKey}, which down-weights address
141
+ * agreement by how shared the address is. **Default-on:** when omitted, `resolveEntities`
142
+ * computes the table over the input records' addresses, the right scope for a single dataset.
143
+ *
144
+ * Pass your own {@link TermFrequencyTable} (for example a corpus-wide one) to override,
145
+ * or `false` to disable (the legacy bare baseline).
146
+ * Ignored if `model` is supplied.
119
147
  */
120
148
  addressFrequency?: TermFrequencyTable | false;
121
149
  /**
122
- * A1 (#625): collapse the redundant address-key + distance pair into one {@link spatialComparison}. **Default-on
123
- * (true)** — the cleaner, less-over-merging spatial model. Set `false` for the legacy two-signal baseline. Ignored if
124
- * `model` is supplied.
150
+ * Collapse the redundant address-key and distance pair into one {@link spatialComparison}.
151
+ * **Default-on (true)** is the cleaner, less-over-merging spatial model.
152
+ *
153
+ * Set `false` for the legacy two-signal baseline.
154
+ * Ignored if `model` is supplied.
125
155
  */
126
156
  collapseSpatial?: boolean;
127
157
  /**
128
- * A2 (#625): require positive name OR org corroboration ({@link CORROBORATING_FIELDS}) for a link — a shared address
129
- * alone cannot merge two records. Suppresses the spatial-only links that fuse distinct co-located providers. Default
130
- * false.
158
+ * Require positive name or organization corroboration ({@link CORROBORATING_FIELDS}) for
159
+ * a link, so a shared address cannot merge two records without that corroboration.
160
+ *
161
+ * Suppresses the spatial-only links that fuse distinct co-located providers.
162
+ * Default false.
131
163
  */
132
164
  requireCorroboration?: boolean;
133
165
  /**
134
- * A3 (#625): add a normalized-phone comparison to the default model — strong evidence and the secondary corroborator
135
- * that keeps A2 from killing name-drift recall. Ignored if `model` is supplied.
166
+ * Add a normalized-phone comparison to the default model.
167
+ *
168
+ * Phone agreement provides strong secondary evidence when entity names have drifted.
169
+ *
170
+ * Ignored if `model` is supplied.
136
171
  */
137
172
  usePhone?: boolean;
138
173
  /**
139
- * A4 (#625): clustering linkage. `"single"` (default) = connected components; `"average"` = average-linkage
140
- * refinement that splits a component whose sub-clusters are joined only by a weak bridge — the principled over-merge
141
- * fix.
174
+ * The linkage method used for clustering.
175
+ *
176
+ * `"single"` (default) is connected components, while `"average"` is an average-linkage
177
+ * refinement that splits a component whose sub-clusters are joined only by a weak bridge.
142
178
  */
143
179
  linkage?: "single" | "average";
144
180
  /**
145
- * Extra secondary-identifier keys (from {@link SourceRecord.attributes}) to add as comparisons + corroborators — e.g.
146
- * `["authorizedOfficial"]`. Ignored if `model` is supplied.
181
+ * Extra secondary-identifier keys from {@link SourceRecord.attributes} to add as
182
+ * comparisons and corroborators, for example `["authorizedOfficial"]`.
183
+ *
184
+ * Ignored if `model` is supplied.
147
185
  */
148
186
  discriminators?: string[];
149
187
  /**
150
- * Closed-vocabulary code-SET discriminator keys ({@link DefaultModelOptions.exactDiscriminators} — set-overlap
151
- * agreement, e.g. `["taxonomy"]`). Also corroborators. Ignored if `model` is supplied.
188
+ * Closed-vocabulary code-set discriminator keys ({@link DefaultModelOptions.exactDiscriminators}),
189
+ * which use set-overlap agreement.
190
+ * An example is `["taxonomy"]`.
191
+ *
192
+ * Also corroborators.
193
+ * Ignored if `model` is supplied.
152
194
  */
153
195
  exactDiscriminators?: string[];
154
196
  /**
155
- * Override the Fellegi-Sunter link weight with a LEARNED score (#603). When set, a candidate pair's match weight is
156
- * this function's return value (same threshold-comparable units as the FS weight) instead of {@link scorePair}'s.
157
- * Default undefined (pure FS). The blocking + clustering are unchanged, so a trained scorer can be A/B'd against the
158
- * FS baseline on the identical pipeline. The function is responsible for its own feature computation (e.g. the
159
- * agreement pattern, which is EM-independent, plus any corpus statistics it captured).
197
+ * Override the Fellegi-Sunter link weight with a learned score.
160
198
  *
161
- * INTERACTION with {@link requireCorroboration}: the two are independent and compose, but the corroboration check is
162
- * still evaluated on the Fellegi-Sunter `contributions` (NOT the learned score) — so a learned-high pair with no
163
- * positive FS name/org/phone agreement is still held out. A learned scorer is normally trained to subsume
164
- * corroboration, so use ONE or the other; combining them lets the FS check veto the learned score, which is rarely
165
- * what you want.
199
+ * When set, a candidate pair's match weight is this function's return value instead of
200
+ * {@link scorePair}'s, in the same threshold-comparable units as the FS weight.
201
+ * Default is undefined (pure FS).
202
+ *
203
+ * The blocking and clustering are unchanged, so a trained scorer can be A/B tested
204
+ * against the FS baseline on the identical pipeline.
205
+ * The function is responsible for its own feature computation, such as the
206
+ * agreement pattern plus any corpus statistics it captured.
207
+ *
208
+ * The corroboration check is independent of the learned score and is still evaluated on
209
+ * the Fellegi-Sunter `contributions`, so a learned-high pair with no positive FS name,
210
+ * organization or phone agreement is still held out.
211
+ *
212
+ * A learned scorer is normally trained to subsume corroboration, so use one or the other.
213
+ * The independent FS check can veto the learned score when both checks run.
166
214
  */
167
215
  scorer?: (a: SourceRecord, b: SourceRecord) => number;
168
216
  /**
169
- * **#603: the LEARNED gradient-boosted-tree scorer — DEFAULT-ON.** Omitted or `true` uses the bundled
170
- * {@link DEDUP_GBT_MODEL} (trained on the NPPES NPI-truth set; beats the Fellegi-Sunter baseline ~+5pp dedup F1
171
- * held-out within a state and ~+22pp on states it never trained on, reducing the co-located over-merge). `false` opts
172
- * out to the pure FS baseline; pass your own {@link GBT} for a custom model. The scorer is built over the SAME
173
- * collapsed-spatial + address-frequency feature model as training (via the resolved {@link addressFrequency}),
174
- * independent of this call's comparison config. An explicit {@link scorer} takes precedence. When the bundled model
175
- * is active and you don't set {@link threshold}, its CALIBRATED link threshold
176
- * ({@link DEDUP_GBT_META}.recommendedThreshold) is used — the GBT logit isn't in FS-weight units, so 0 would
177
- * over-merge. The model is NPPES/US-trained; for a very different domain, A/B it or pass `false`.
217
+ * The learned gradient-boosted-tree scorer, default-on.
218
+ *
219
+ * Omitted or `true` uses the bundled {@link DEDUP_GBT_MODEL}, which was trained on
220
+ * the NPPES NPI-truth set and beats the Fellegi-Sunter baseline by roughly +5pp dedup
221
+ * F1 held-out within a state and +22pp on states it never trained on.
222
+ *
223
+ * `false` opts out to the pure FS baseline.
224
+ * Pass your own {@link GBT} for a custom model.
225
+ *
226
+ * The scorer is built over the same collapsed-spatial and address-frequency feature
227
+ * model as training, independent of this call's comparison config.
228
+ * An explicit {@link scorer} takes precedence.
229
+ *
230
+ * When the bundled model is active and no {@link threshold} is set,
231
+ * its calibrated link threshold ({@link DEDUP_GBT_META}.recommendedThreshold) is used,
232
+ * because the GBT logit is not in FS-weight units and 0 would over-merge.
233
+ *
234
+ * The model is NPPES/US-trained.
235
+ * For a very different domain, A/B it or pass `false`.
178
236
  */
179
237
  learnedScorer?: boolean | GBT;
180
238
  }
@@ -196,8 +254,10 @@ export interface ResolveResult {
196
254
  }>;
197
255
  }
198
256
  /**
199
- * Resolve source records into canonical entities: block → score → cluster. Every record lands in exactly one entity (a
200
- * record with no confident link is its own singleton entity).
257
+ * Resolve source records into canonical entities: block, score, cluster.
258
+ *
259
+ * Every record belongs to exactly one entity.
260
+ * A record without a confident link forms a singleton entity.
201
261
  */
202
262
  export declare function resolveEntities(records: readonly SourceRecord[], config?: ResolveConfig): ResolveResult;
203
263
  //# sourceMappingURL=resolve.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../lib/resolve.ts"],"names":[],"mappings":"AAAA;;;;;;;;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