@mailwoman/locale-gate 4.16.2 → 5.0.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/detect.d.ts CHANGED
@@ -14,8 +14,8 @@ import type { DetectLocaleOpts, LocaleHint, NormalizedInputLite, QueryShapeLike
14
14
  /** Synchronous, pure rule-based implementation. The async wrapper matches the pipeline contract. */
15
15
  export declare function detectLocaleSync(_input: NormalizedInputLite, shape: QueryShapeLike, opts?: DetectLocaleOpts): LocaleHint;
16
16
  /**
17
- * Async variant matching `RuntimePipelineStages.detectLocale`. Wraps the sync impl so the pipeline
18
- * coordinator can use it as-is.
17
+ * Async variant matching `RuntimePipelineStages.detectLocale`. Wraps the sync impl so the pipeline coordinator can use
18
+ * it as-is.
19
19
  */
20
20
  export declare function detectLocale(input: NormalizedInputLite, shape: QueryShapeLike, opts?: DetectLocaleOpts): Promise<LocaleHint>;
21
21
  //# sourceMappingURL=detect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"detect.d.ts","sourceRoot":"","sources":["../detect.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAEnG,oGAAoG;AACpG,wBAAgB,gBAAgB,CAC/B,MAAM,EAAE,mBAAmB,EAC3B,KAAK,EAAE,cAAc,EACrB,IAAI,GAAE,gBAAqB,GACzB,UAAU,CAqCZ;AAED;;;GAGG;AACH,wBAAsB,YAAY,CACjC,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,cAAc,EACrB,IAAI,CAAC,EAAE,gBAAgB,GACrB,OAAO,CAAC,UAAU,CAAC,CAErB"}
1
+ {"version":3,"file":"detect.d.ts","sourceRoot":"","sources":["../detect.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAEnG,oGAAoG;AACpG,wBAAgB,gBAAgB,CAC/B,MAAM,EAAE,mBAAmB,EAC3B,KAAK,EAAE,cAAc,EACrB,IAAI,GAAE,gBAAqB,GACzB,UAAU,CAyCZ;AAED;;;GAGG;AACH,wBAAsB,YAAY,CACjC,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,cAAc,EACrB,IAAI,CAAC,EAAE,gBAAgB,GACrB,OAAO,CAAC,UAAU,CAAC,CAErB"}
package/out/detect.js CHANGED
@@ -50,8 +50,8 @@ export function detectLocaleSync(_input, shape, opts = {}) {
50
50
  };
51
51
  }
52
52
  /**
53
- * Async variant matching `RuntimePipelineStages.detectLocale`. Wraps the sync impl so the pipeline
54
- * coordinator can use it as-is.
53
+ * Async variant matching `RuntimePipelineStages.detectLocale`. Wraps the sync impl so the pipeline coordinator can use
54
+ * it as-is.
55
55
  */
56
56
  export async function detectLocale(input, shape, opts) {
57
57
  return detectLocaleSync(input, shape, opts);
package/out/detect.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"detect.js","sourceRoot":"","sources":["../detect.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAwB,MAAM,YAAY,CAAA;AAGhG,oGAAoG;AACpG,MAAM,UAAU,gBAAgB,CAC/B,MAA2B,EAC3B,KAAqB,EACrB,OAAyB,EAAE;IAE3B,MAAM,MAAM,GAAsB,EAAE,CAAA;IACpC,MAAM,MAAM,GAAG,aAAa,CAAC,KAAK,CAAC,CAAA;IACnC,IAAI,MAAM;QAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAC/B,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,CAAC,CAAA;IACvC,IAAI,QAAQ;QAAE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;IACnC,MAAM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,MAAM,CAAC,CAAA;QAElB,OAAO,IAAI,CAAA;IACZ,CAAC,CAAC,CAAA;IAEF,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;QACf,gEAAgE;QAChE,OAAO;YACN,MAAM,EAAE,IAAI,CAAC,IAAI;YACjB,UAAU,EAAE,GAAG;YACf,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC;YAClF,MAAM,EAAE,QAAQ;SAChB,CAAA;IACF,CAAC;IAED,MAAM,GAAG,GAAG,OAAO,CAAC,CAAC,CAAE,CAAA;IAEvB,OAAO;QACN,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,UAAU,EAAE,GAAG,CAAC,UAAU;QAC1B,YAAY,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC;QAC3F,MAAM,EAAE,UAAU;KAClB,CAAA;AACF,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CACjC,KAA0B,EAC1B,KAAqB,EACrB,IAAuB;IAEvB,OAAO,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;AAC5C,CAAC"}
package/out/rules.d.ts CHANGED
@@ -27,14 +27,14 @@ export declare function scoreByScript(shape: QueryShapeLike): LocaleCandidate |
27
27
  /**
28
28
  * Postcode-format scorer: maps a high-confidence postcode format hit to the country it implies.
29
29
  *
30
- * Ambiguous 5-digit hits (`us_zip`/`fr_postcode`/`de_postcode` all matching at confidence 0.6) are
31
- * treated as low-confidence US (the most common 5-digit reading globally) — the caller can override
32
- * with `--locale fr-FR`/`--locale de-DE` when the disambiguating context isn't in the string.
30
+ * Ambiguous 5-digit hits (`us_zip`/`fr_postcode`/`de_postcode` all matching at confidence 0.6) are treated as
31
+ * low-confidence US (the most common 5-digit reading globally) — the caller can override with `--locale
32
+ * fr-FR`/`--locale de-DE` when the disambiguating context isn't in the string.
33
33
  */
34
34
  export declare function scoreByPostcode(shape: QueryShapeLike): LocaleCandidate | null;
35
35
  /**
36
- * Whole-input fallback: when nothing else fires, return en-US at low confidence. Keeps the gate
37
- * always-decisive (no `null` to the caller, ever).
36
+ * Whole-input fallback: when nothing else fires, return en-US at low confidence. Keeps the gate always-decisive (no
37
+ * `null` to the caller, ever).
38
38
  */
39
39
  export declare function scoreFallback(_shape: QueryShapeLike): LocaleCandidate;
40
40
  //# sourceMappingURL=rules.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../rules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAEhD,MAAM,WAAW,eAAe;IAC/B,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,cAAc,GAAG,eAAe,GAAG,IAAI,CAW3E;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,cAAc,GAAG,eAAe,GAAG,IAAI,CA2B7E;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,cAAc,GAAG,eAAe,CAErE"}
1
+ {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../rules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAEhD,MAAM,WAAW,eAAe;IAC/B,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,cAAc,GAAG,eAAe,GAAG,IAAI,CAW3E;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,cAAc,GAAG,eAAe,GAAG,IAAI,CA+B7E;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,cAAc,GAAG,eAAe,CAErE"}
package/out/rules.js CHANGED
@@ -32,9 +32,9 @@ export function scoreByScript(shape) {
32
32
  /**
33
33
  * Postcode-format scorer: maps a high-confidence postcode format hit to the country it implies.
34
34
  *
35
- * Ambiguous 5-digit hits (`us_zip`/`fr_postcode`/`de_postcode` all matching at confidence 0.6) are
36
- * treated as low-confidence US (the most common 5-digit reading globally) — the caller can override
37
- * with `--locale fr-FR`/`--locale de-DE` when the disambiguating context isn't in the string.
35
+ * Ambiguous 5-digit hits (`us_zip`/`fr_postcode`/`de_postcode` all matching at confidence 0.6) are treated as
36
+ * low-confidence US (the most common 5-digit reading globally) — the caller can override with `--locale
37
+ * fr-FR`/`--locale de-DE` when the disambiguating context isn't in the string.
38
38
  */
39
39
  export function scoreByPostcode(shape) {
40
40
  // Prefer unambiguous (confidence ≥ 0.9) hits over ambiguous (0.6) — among them, pick the one
@@ -65,8 +65,8 @@ export function scoreByPostcode(shape) {
65
65
  return null;
66
66
  }
67
67
  /**
68
- * Whole-input fallback: when nothing else fires, return en-US at low confidence. Keeps the gate
69
- * always-decisive (no `null` to the caller, ever).
68
+ * Whole-input fallback: when nothing else fires, return en-US at low confidence. Keeps the gate always-decisive (no
69
+ * `null` to the caller, ever).
70
70
  */
71
71
  export function scoreFallback(_shape) {
72
72
  return { locale: "en-US", confidence: 0.3, reason: "fallback" };
package/out/rules.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"rules.js","sourceRoot":"","sources":["../rules.ts"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YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,QAAQ,IAAI,CAAC,CAAC,MAAM,KAAK,aAAa,CAAC,CAAA;IAErG,IAAI,SAAS,EAAE,CAAC;QACf,4FAA4F;QAC5F,gGAAgG;QAChG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,2BAA2B,EAAE,CAAA;IACjF,CAAC;IAED,OAAO,IAAI,CAAA;AACZ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,MAAsB;IACnD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,CAAA;AAChE,CAAC"}
package/out/types.d.ts CHANGED
@@ -6,8 +6,7 @@
6
6
  /** Re-exports of the canonical types from `@mailwoman/core/pipeline`. */
7
7
  export type { LocaleHint, LocaleTag } from "@mailwoman/core/pipeline";
8
8
  /**
9
- * Minimal `NormalizedInput` shape consumed by `detectLocale`. Compatible with
10
- * `@mailwoman/normalize`'s output.
9
+ * Minimal `NormalizedInput` shape consumed by `detectLocale`. Compatible with `@mailwoman/normalize`'s output.
11
10
  */
12
11
  export interface NormalizedInputLite {
13
12
  raw: string;
@@ -15,8 +14,7 @@ export interface NormalizedInputLite {
15
14
  appliedLocale?: string;
16
15
  }
17
16
  /**
18
- * Minimal `QueryShape` shape consumed by `detectLocale`. Compatible with `@mailwoman/query-shape`'s
19
- * output.
17
+ * Minimal `QueryShape` shape consumed by `detectLocale`. Compatible with `@mailwoman/query-shape`'s output.
20
18
  */
21
19
  export interface QueryShapeLike {
22
20
  knownFormats: ReadonlyArray<{
@@ -34,8 +32,7 @@ export interface DetectLocaleOpts {
34
32
  /** Caller's locale hint. When set, returned at confidence 1.0 with source="caller". */
35
33
  hint?: string;
36
34
  /**
37
- * Below this confidence, the detector returns the top candidate but also surfaces alternatives.
38
- * Default 0.7.
35
+ * Below this confidence, the detector returns the top candidate but also surfaces alternatives. Default 0.7.
39
36
  */
40
37
  confidenceFloor?: number;
41
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,yEAAyE;AACzE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAErE;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IACnC,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC9B,YAAY,EAAE,aAAa,CAAC;QAC3B,MAAM,EAAE,MAAM,CAAA;QACd,IAAI,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAE,CAAA;QACpC,UAAU,EAAE,MAAM,CAAA;KAClB,CAAC,CAAA;IACF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,gBAAgB;IAChC,uFAAuF;IACvF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;CACxB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,yEAAyE;AACzE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAErE;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,YAAY,EAAE,aAAa,CAAC;QAC3B,MAAM,EAAE,MAAM,CAAA;QACd,IAAI,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAE,CAAA;QACpC,UAAU,EAAE,MAAM,CAAA;KAClB,CAAC,CAAA;IACF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,gBAAgB;IAChC,uFAAuF;IACvF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;CACxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailwoman/locale-gate",
3
- "version": "4.16.2",
3
+ "version": "5.0.0",
4
4
  "description": "Stage 2 of the runtime pipeline — derive a LocaleHint from QueryShape (script + known-format hits). Rule-based v1; trained classifier deferred to v0.6.0.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
@@ -8,21 +8,21 @@
8
8
  "url": "https://github.com/sister-software/mailwoman.git",
9
9
  "directory": "locale-gate"
10
10
  },
11
- "type": "module",
12
- "exports": {
13
- "./package.json": "./package.json",
14
- ".": "./out/index.js"
15
- },
16
- "dependencies": {
17
- "@mailwoman/core": "4.16.2"
18
- },
19
11
  "files": [
20
12
  "out/**/*.js",
21
13
  "out/**/*.js.map",
22
14
  "out/**/*.d.ts",
23
15
  "out/**/*.d.ts.map"
24
16
  ],
17
+ "type": "module",
18
+ "exports": {
19
+ "./package.json": "./package.json",
20
+ ".": "./out/index.js"
21
+ },
25
22
  "publishConfig": {
26
23
  "access": "public"
24
+ },
25
+ "dependencies": {
26
+ "@mailwoman/core": "5.0.0"
27
27
  }
28
28
  }