@mailwoman/kind-classifier 5.8.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/classify.d.ts +1 -1
- package/out/index.d.ts +3 -3
- package/out/rules.d.ts +1 -1
- package/package.json +13 -3
package/out/classify.d.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* surfaces in `alternatives` — the caller decides whether to act on the top kind only or consider
|
|
13
13
|
* runner-ups.
|
|
14
14
|
*/
|
|
15
|
-
import type { LocaleHint, NormalizedInputLite, QueryKindResult, QueryShapeLike } from "./types.
|
|
15
|
+
import type { LocaleHint, NormalizedInputLite, QueryKindResult, QueryShapeLike } from "./types.ts";
|
|
16
16
|
/**
|
|
17
17
|
* Classify the query shape into a `QueryKind`. Synchronous + pure — produces the same result for the same `(input,
|
|
18
18
|
* shape)` pair.
|
package/out/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* See `docs/articles/plan/reference/STAGES.md` § Stage 2.5 for the contract.
|
|
14
14
|
*/
|
|
15
|
-
export { classifyKind, classifyKindSync } from "./classify.
|
|
16
|
-
export { scoreIntersection, scoreLandmark, scoreLocalityOnly, scorePoBox, scorePostcodeOnly, scoreStructuredAddress, scoreVague, } from "./rules.
|
|
17
|
-
export type { LocaleHint, NormalizedInputLite, QueryKind, QueryKindResult, QueryShapeLike } from "./types.
|
|
15
|
+
export { classifyKind, classifyKindSync } from "./classify.ts";
|
|
16
|
+
export { scoreIntersection, scoreLandmark, scoreLocalityOnly, scorePoBox, scorePostcodeOnly, scoreStructuredAddress, scoreVague, } from "./rules.ts";
|
|
17
|
+
export type { LocaleHint, NormalizedInputLite, QueryKind, QueryKindResult, QueryShapeLike } from "./types.ts";
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
package/out/rules.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Bitter-lesson-safe: only universal structural patterns — no place-name dictionaries. ~1 small
|
|
10
10
|
* regex set per new locale, not 50K dictionary entries.
|
|
11
11
|
*/
|
|
12
|
-
import type { NormalizedInputLite, QueryShapeLike } from "./types.
|
|
12
|
+
import type { NormalizedInputLite, QueryShapeLike } from "./types.ts";
|
|
13
13
|
/**
|
|
14
14
|
* `po_box` rule: high-confidence iff QueryShape detected a po_box format hit. Confidence comes directly from the hit;
|
|
15
15
|
* covers all locale variants (US "PO Box 123", FR "BP 42", etc.).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailwoman/kind-classifier",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.0",
|
|
4
4
|
"description": "Stage 2.5 of the runtime pipeline — categorize inputs by query shape (postcode_only / locality_only / structured_address / intersection / po_box / landmark / vague). Rule-based for v1.",
|
|
5
5
|
"license": "AGPL-3.0-only OR LicenseRef-Commercial",
|
|
6
6
|
"repository": {
|
|
@@ -17,12 +17,22 @@
|
|
|
17
17
|
"type": "module",
|
|
18
18
|
"exports": {
|
|
19
19
|
"./package.json": "./package.json",
|
|
20
|
-
".":
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./out/index.d.ts",
|
|
22
|
+
"default": "./out/index.js"
|
|
23
|
+
}
|
|
21
24
|
},
|
|
22
25
|
"publishConfig": {
|
|
26
|
+
"exports": {
|
|
27
|
+
"./package.json": "./package.json",
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./out/index.d.ts",
|
|
30
|
+
"default": "./out/index.js"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
23
33
|
"access": "public"
|
|
24
34
|
},
|
|
25
35
|
"dependencies": {
|
|
26
|
-
"@mailwoman/core": "5.
|
|
36
|
+
"@mailwoman/core": "5.10.0"
|
|
27
37
|
}
|
|
28
38
|
}
|