@mailwoman/kind-classifier 11.2.0 → 11.4.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.
@@ -8,10 +8,10 @@
8
8
  * It is the only place the classifier turns a fired rule into something a caller reads.
9
9
  *
10
10
  * Three of the four intent kinds can raise their marker here from the string by itself.
11
- * The fourth, Stage 2.5 cannot raise `bare_toponym`'s `declared_ambiguity` from the string by itself.
11
+ * The fourth, Stage 2.5, cannot raise `bare_toponym`'s `declared_ambiguity` from the string by itself.
12
12
  *
13
13
  * Its trigger is the dominance margin of the resolved candidate list.
14
- * `mailwoman/query-intent.ts` raises it after the resolve against `DECISIVE_MARGIN_LOG10`.
14
+ * `mailwoman/geocode/intent/markers.ts` raises it after the resolve against `DECISIVE_MARGIN_LOG10`.
15
15
  *
16
16
  * This module therefore never emits `declared_ambiguity`, since a marker asserting
17
17
  * ambiguity from the string by itself would declare every bare city name ambiguous.
@@ -31,8 +31,8 @@ export interface IntentMarkerContext {
31
31
  /**
32
32
  * The subject match the classifier's one lexicon scan of `input` produced, when a POI lexicon was wired.
33
33
  *
34
- * `null` or absent means no `poi_category` marker can be built, consistent
35
- * with the kind not firing without a lexicon.
34
+ * `null` or an absent value means that the kind cannot build a `poi_category` marker
35
+ * because it requires a lexicon.
36
36
  */
37
37
  poiSubject?: POISubjectMatch | null
38
38
  locale?: string
@@ -232,7 +232,7 @@ function bareNameWords(input: NormalizedInputLite, shape: QueryShapeLike): strin
232
232
  /**
233
233
  * `bare_toponym` rule: a single coherent place-name carrying no address grammar, feeding the
234
234
  * declared-ambiguity path without asserting which place — that's the resolver's question,
235
- * decided by the answer's dominance margin in `mailwoman/query-intent.ts`.
235
+ * decided by the answer's dominance margin in `mailwoman/geocode/intent/markers.ts`.
236
236
  */
237
237
  export function scoreBareToponym(input: NormalizedInputLite, shape: QueryShapeLike): number {
238
238
  return bareNameWords(input, shape) ? BARE_TOPONYM_CONFIDENCE : 0
@@ -5,10 +5,10 @@
5
5
  * It is the only place the classifier turns a fired rule into something a caller reads.
6
6
  *
7
7
  * Three of the four intent kinds can raise their marker here from the string by itself.
8
- * The fourth, Stage 2.5 cannot raise `bare_toponym`'s `declared_ambiguity` from the string by itself.
8
+ * The fourth, Stage 2.5, cannot raise `bare_toponym`'s `declared_ambiguity` from the string by itself.
9
9
  *
10
10
  * Its trigger is the dominance margin of the resolved candidate list.
11
- * `mailwoman/query-intent.ts` raises it after the resolve against `DECISIVE_MARGIN_LOG10`.
11
+ * `mailwoman/geocode/intent/markers.ts` raises it after the resolve against `DECISIVE_MARGIN_LOG10`.
12
12
  *
13
13
  * This module therefore never emits `declared_ambiguity`, since a marker asserting
14
14
  * ambiguity from the string by itself would declare every bare city name ambiguous.
@@ -24,8 +24,8 @@ export interface IntentMarkerContext {
24
24
  /**
25
25
  * The subject match the classifier's one lexicon scan of `input` produced, when a POI lexicon was wired.
26
26
  *
27
- * `null` or absent means no `poi_category` marker can be built, consistent
28
- * with the kind not firing without a lexicon.
27
+ * `null` or an absent value means that the kind cannot build a `poi_category` marker
28
+ * because it requires a lexicon.
29
29
  */
30
30
  poiSubject?: POISubjectMatch | null;
31
31
  locale?: string;
@@ -17,7 +17,7 @@ import type { NormalizedInputLite, QueryShapeSegmentsView as QueryShapeLike } fr
17
17
  /**
18
18
  * `bare_toponym` rule: a single coherent place-name carrying no address grammar, feeding the
19
19
  * declared-ambiguity path without asserting which place — that's the resolver's question,
20
- * decided by the answer's dominance margin in `mailwoman/query-intent.ts`.
20
+ * decided by the answer's dominance margin in `mailwoman/geocode/intent/markers.ts`.
21
21
  */
22
22
  export declare function scoreBareToponym(input: NormalizedInputLite, shape: QueryShapeLike): number;
23
23
  /**
@@ -198,7 +198,7 @@ function bareNameWords(input, shape) {
198
198
  /**
199
199
  * `bare_toponym` rule: a single coherent place-name carrying no address grammar, feeding the
200
200
  * declared-ambiguity path without asserting which place — that's the resolver's question,
201
- * decided by the answer's dominance margin in `mailwoman/query-intent.ts`.
201
+ * decided by the answer's dominance margin in `mailwoman/geocode/intent/markers.ts`.
202
202
  */
203
203
  export function scoreBareToponym(input, shape) {
204
204
  return bareNameWords(input, shape) ? BARE_TOPONYM_CONFIDENCE : 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailwoman/kind-classifier",
3
- "version": "11.2.0",
3
+ "version": "11.4.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": {
@@ -64,8 +64,8 @@
64
64
  }
65
65
  },
66
66
  "dependencies": {
67
- "@mailwoman/codex": "11.2.0",
68
- "@mailwoman/core": "11.2.0",
69
- "@mailwoman/postcode": "11.2.0"
67
+ "@mailwoman/codex": "11.4.0",
68
+ "@mailwoman/core": "11.4.0",
69
+ "@mailwoman/postcode": "11.4.0"
70
70
  }
71
71
  }