@mailwoman/match 5.9.0 → 5.10.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.
package/out/distance.d.ts CHANGED
@@ -17,8 +17,8 @@
17
17
  * shared interpolated centroid is softer than a shared rooftop point) is the documented
18
18
  * refinement.
19
19
  */
20
- import type { LatLon } from "./blocking.js";
21
- import type { Comparison, ComparisonLevel } from "./fellegi-sunter.js";
20
+ import type { LatLon } from "./blocking.ts";
21
+ import type { Comparison, ComparisonLevel } from "./fellegi-sunter.ts";
22
22
  /**
23
23
  * Great-circle (haversine) distance in km between two coordinates. The formula's one true home is `@mailwoman/spatial`;
24
24
  * this is a thin domain-typed adapter from `match`'s `LatLon` ({ latitude, longitude }) onto the canonical scalar
package/out/em.d.ts CHANGED
@@ -21,7 +21,7 @@
21
21
  * true match rate is very low — seed from sensible `m`/`u` (the model's existing levels do this)
22
22
  * and sanity- check that the recovered `m` exceeds `u` on the top agreement level.
23
23
  */
24
- import type { Comparison, FellegiSunterModel } from "./fellegi-sunter.js";
24
+ import type { Comparison, FellegiSunterModel } from "./fellegi-sunter.ts";
25
25
  /** Reduce a record pair to its agreement pattern — the per-comparison level index (`-1` = missing). */
26
26
  export declare function agreementPattern<R>(comparisons: Comparison<R>[], a: R, b: R): number[];
27
27
  /** Options for {@link estimateParameters}. */
package/out/index.d.ts CHANGED
@@ -15,12 +15,12 @@
15
15
  * up-weighted by {@link withTermFrequency term frequency}.
16
16
  * 3. {@link cluster Cluster} — resolve the non-transitive pairwise link graph into canonical entities.
17
17
  */
18
- export * from "./blocking.js";
19
- export * from "./clustering.js";
20
- export * from "./comparators.js";
21
- export * from "./distance.js";
22
- export * from "./em.js";
23
- export * from "./fellegi-sunter.js";
24
- export * from "./gbt.js";
25
- export * from "./tf.js";
18
+ export * from "./blocking.ts";
19
+ export * from "./clustering.ts";
20
+ export * from "./comparators.ts";
21
+ export * from "./distance.ts";
22
+ export * from "./em.ts";
23
+ export * from "./fellegi-sunter.ts";
24
+ export * from "./gbt.ts";
25
+ export * from "./tf.ts";
26
26
  //# sourceMappingURL=index.d.ts.map
package/out/tf.d.ts CHANGED
@@ -17,7 +17,7 @@
17
17
  * (the Splink approach) — no external Census table required. Build a {@link TermFrequencyTable}
18
18
  * from the values you're matching, then attach it to a comparison with {@link withTermFrequency}.
19
19
  */
20
- import type { Comparison } from "./fellegi-sunter.js";
20
+ import type { Comparison } from "./fellegi-sunter.ts";
21
21
  /** A lookup of how common each value is, in (0, 1], built from a column of observed values. */
22
22
  export interface TermFrequencyTable {
23
23
  /** Relative frequency of a value (its normalized form), or 0 if never seen. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailwoman/match",
3
- "version": "5.9.0",
3
+ "version": "5.10.0",
4
4
  "description": "The geocode-first record matcher: block → score → cluster. This first cut ships the string comparators (Jaro / Jaro-Winkler + an edit-distance fallback for compound surnames) that the Fellegi-Sunter scorer is built on.",
5
5
  "license": "AGPL-3.0-only OR LicenseRef-Commercial",
6
6
  "repository": {
@@ -17,20 +17,79 @@
17
17
  "type": "module",
18
18
  "exports": {
19
19
  "./package.json": "./package.json",
20
- ".": "./out/index.js",
21
- "./blocking": "./out/blocking.js",
22
- "./clustering": "./out/clustering.js",
23
- "./comparators": "./out/comparators.js",
24
- "./distance": "./out/distance.js",
25
- "./fellegi-sunter": "./out/fellegi-sunter.js",
26
- "./em": "./out/em.js",
27
- "./tf": "./out/tf.js"
20
+ ".": {
21
+ "types": "./out/index.d.ts",
22
+ "default": "./out/index.js"
23
+ },
24
+ "./blocking": {
25
+ "types": "./out/blocking.d.ts",
26
+ "default": "./out/blocking.js"
27
+ },
28
+ "./clustering": {
29
+ "types": "./out/clustering.d.ts",
30
+ "default": "./out/clustering.js"
31
+ },
32
+ "./comparators": {
33
+ "types": "./out/comparators.d.ts",
34
+ "default": "./out/comparators.js"
35
+ },
36
+ "./distance": {
37
+ "types": "./out/distance.d.ts",
38
+ "default": "./out/distance.js"
39
+ },
40
+ "./fellegi-sunter": {
41
+ "types": "./out/fellegi-sunter.d.ts",
42
+ "default": "./out/fellegi-sunter.js"
43
+ },
44
+ "./em": {
45
+ "types": "./out/em.d.ts",
46
+ "default": "./out/em.js"
47
+ },
48
+ "./tf": {
49
+ "types": "./out/tf.d.ts",
50
+ "default": "./out/tf.js"
51
+ }
28
52
  },
29
53
  "publishConfig": {
54
+ "exports": {
55
+ "./package.json": "./package.json",
56
+ ".": {
57
+ "types": "./out/index.d.ts",
58
+ "default": "./out/index.js"
59
+ },
60
+ "./blocking": {
61
+ "types": "./out/blocking.d.ts",
62
+ "default": "./out/blocking.js"
63
+ },
64
+ "./clustering": {
65
+ "types": "./out/clustering.d.ts",
66
+ "default": "./out/clustering.js"
67
+ },
68
+ "./comparators": {
69
+ "types": "./out/comparators.d.ts",
70
+ "default": "./out/comparators.js"
71
+ },
72
+ "./distance": {
73
+ "types": "./out/distance.d.ts",
74
+ "default": "./out/distance.js"
75
+ },
76
+ "./fellegi-sunter": {
77
+ "types": "./out/fellegi-sunter.d.ts",
78
+ "default": "./out/fellegi-sunter.js"
79
+ },
80
+ "./em": {
81
+ "types": "./out/em.d.ts",
82
+ "default": "./out/em.js"
83
+ },
84
+ "./tf": {
85
+ "types": "./out/tf.d.ts",
86
+ "default": "./out/tf.js"
87
+ }
88
+ },
30
89
  "access": "public"
31
90
  },
32
91
  "dependencies": {
33
- "@mailwoman/spatial": "5.9.0",
92
+ "@mailwoman/spatial": "5.10.0",
34
93
  "fastest-levenshtein": "^1.0.16"
35
94
  },
36
95
  "devDependencies": {