@mailwoman/phrase-grouper 4.16.1 → 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/group.d.ts CHANGED
@@ -16,17 +16,17 @@ import type { GroupPhrasesOpts, LocaleHint, NormalizedInputLite, PhraseProposal,
16
16
  /**
17
17
  * Synchronous, pure rule-based implementation. The async wrapper matches the pipeline contract.
18
18
  *
19
- * Emits overlapping proposals freely — the consumer (Stage 5 reconcile) picks the best
20
- * non-overlapping subset under semantic+hierarchical constraints. Confidence is a [0,1] score per
21
- * proposal; relative ordering is what matters more than absolute calibration at v0.5.0.
19
+ * Emits overlapping proposals freely — the consumer (Stage 5 reconcile) picks the best non-overlapping subset under
20
+ * semantic+hierarchical constraints. Confidence is a [0,1] score per proposal; relative ordering is what matters more
21
+ * than absolute calibration at v0.5.0.
22
22
  *
23
- * The `_locale` parameter is reserved for future locale-aware rule packs (Japanese
24
- * postcode/honorific patterns, French preposition-bound localities) — currently unused.
23
+ * The `_locale` parameter is reserved for future locale-aware rule packs (Japanese postcode/honorific patterns, French
24
+ * preposition-bound localities) — currently unused.
25
25
  */
26
26
  export declare function groupPhrasesSync(input: NormalizedInputLite, shape: QueryShapeLike, _locale?: LocaleHint, _opts?: GroupPhrasesOpts): PhraseProposal[];
27
27
  /**
28
- * Async variant matching `RuntimePipelineStages.groupPhrases`. Wraps the sync impl so the pipeline
29
- * coordinator can use it as-is.
28
+ * Async variant matching `RuntimePipelineStages.groupPhrases`. Wraps the sync impl so the pipeline coordinator can use
29
+ * it as-is.
30
30
  */
31
31
  export declare function groupPhrases(input: NormalizedInputLite, shape: QueryShapeLike, locale?: LocaleHint, opts?: GroupPhrasesOpts): Promise<PhraseProposal[]>;
32
32
  //# sourceMappingURL=group.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../group.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAaH,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,mBAAmB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AA0BnH;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC/B,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,cAAc,EACrB,OAAO,CAAC,EAAE,UAAU,EACpB,KAAK,GAAE,gBAAqB,GAC1B,cAAc,EAAE,CA4BlB;AAED;;;GAGG;AACH,wBAAsB,YAAY,CACjC,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,cAAc,EACrB,MAAM,CAAC,EAAE,UAAU,EACnB,IAAI,CAAC,EAAE,gBAAgB,GACrB,OAAO,CAAC,cAAc,EAAE,CAAC,CAE3B"}
1
+ {"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../group.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAaH,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,mBAAmB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AA6BnH;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC/B,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,cAAc,EACrB,OAAO,CAAC,EAAE,UAAU,EACpB,KAAK,GAAE,gBAAqB,GAC1B,cAAc,EAAE,CA8BlB;AAED;;;GAGG;AACH,wBAAsB,YAAY,CACjC,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,cAAc,EACrB,MAAM,CAAC,EAAE,UAAU,EACnB,IAAI,CAAC,EAAE,gBAAgB,GACrB,OAAO,CAAC,cAAc,EAAE,CAAC,CAE3B"}
package/out/group.js CHANGED
@@ -14,9 +14,9 @@
14
14
  */
15
15
  import { scoreHyphenatedCompound, scoreLocalityPhrase, scoreNumeric, scorePostcode, scoreRegionAbbreviation, scoreStreetPhrase, scoreVenuePhrase, tokenizeSegment, } from "./rules.js";
16
16
  /**
17
- * Walk every QueryShape segment and emit one `tokens-by-segment` list. Falls back to treating the
18
- * whole input as a single segment when QueryShape didn't supply segmentation (e.g. callers wiring
19
- * the grouper into a path that bypasses QueryShape).
17
+ * Walk every QueryShape segment and emit one `tokens-by-segment` list. Falls back to treating the whole input as a
18
+ * single segment when QueryShape didn't supply segmentation (e.g. callers wiring the grouper into a path that bypasses
19
+ * QueryShape).
20
20
  */
21
21
  function tokensPerSegment(text, shape) {
22
22
  const segs = shape.segments;
@@ -36,12 +36,12 @@ function tokensPerSegment(text, shape) {
36
36
  /**
37
37
  * Synchronous, pure rule-based implementation. The async wrapper matches the pipeline contract.
38
38
  *
39
- * Emits overlapping proposals freely — the consumer (Stage 5 reconcile) picks the best
40
- * non-overlapping subset under semantic+hierarchical constraints. Confidence is a [0,1] score per
41
- * proposal; relative ordering is what matters more than absolute calibration at v0.5.0.
39
+ * Emits overlapping proposals freely — the consumer (Stage 5 reconcile) picks the best non-overlapping subset under
40
+ * semantic+hierarchical constraints. Confidence is a [0,1] score per proposal; relative ordering is what matters more
41
+ * than absolute calibration at v0.5.0.
42
42
  *
43
- * The `_locale` parameter is reserved for future locale-aware rule packs (Japanese
44
- * postcode/honorific patterns, French preposition-bound localities) — currently unused.
43
+ * The `_locale` parameter is reserved for future locale-aware rule packs (Japanese postcode/honorific patterns, French
44
+ * preposition-bound localities) — currently unused.
45
45
  */
46
46
  export function groupPhrasesSync(input, shape, _locale, _opts = {}) {
47
47
  const text = input.normalized;
@@ -71,8 +71,8 @@ export function groupPhrasesSync(input, shape, _locale, _opts = {}) {
71
71
  return proposals;
72
72
  }
73
73
  /**
74
- * Async variant matching `RuntimePipelineStages.groupPhrases`. Wraps the sync impl so the pipeline
75
- * coordinator can use it as-is.
74
+ * Async variant matching `RuntimePipelineStages.groupPhrases`. Wraps the sync impl so the pipeline coordinator can use
75
+ * it as-is.
76
76
  */
77
77
  export async function groupPhrases(input, shape, locale, opts) {
78
78
  return groupPhrasesSync(input, shape, locale, opts);
package/out/group.js.map CHANGED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AC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QACvB,IAAI,CAAC,CAAC,UAAU,KAAK,CAAC,CAAC,UAAU;YAAE,OAAO,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,UAAU,CAAA;QAErE,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAA;IACnC,CAAC,CAAC,CAAA;IAEF,OAAO,SAAS,CAAA;AACjB,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CACjC,KAA0B,EAC1B,KAAqB,EACrB,MAAmB,EACnB,IAAuB;IAEvB,OAAO,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;AACpD,CAAC"}
package/out/rules.d.ts CHANGED
@@ -17,8 +17,8 @@
17
17
  */
18
18
  import type { PhraseProposal, QueryShapeLike } from "./types.js";
19
19
  /**
20
- * One token within a segment — absolute offsets into the normalized input. Built by
21
- * `tokenizeSegment` from a (segment-text, segment-start) pair.
20
+ * One token within a segment — absolute offsets into the normalized input. Built by `tokenizeSegment` from a
21
+ * (segment-text, segment-start) pair.
22
22
  */
23
23
  export interface SegmentToken {
24
24
  body: string;
@@ -26,73 +26,70 @@ export interface SegmentToken {
26
26
  end: number;
27
27
  }
28
28
  /**
29
- * Split a segment body into whitespace-separated tokens. Offsets are absolute into the original
30
- * input (caller supplies the segment's `start` offset).
29
+ * Split a segment body into whitespace-separated tokens. Offsets are absolute into the original input (caller supplies
30
+ * the segment's `start` offset).
31
31
  */
32
32
  export declare function tokenizeSegment(segmentBody: string, segmentStart: number): SegmentToken[];
33
33
  /**
34
- * `NUMERIC` rule: emit one proposal per all-digit token. House numbers, postcodes (when no format
35
- * hit), unit numbers all surface here as a base hypothesis.
34
+ * `NUMERIC` rule: emit one proposal per all-digit token. House numbers, postcodes (when no format hit), unit numbers
35
+ * all surface here as a base hypothesis.
36
36
  *
37
- * Confidence drops for very long runs (5+ digits) where POSTCODE will typically win; the reconciler
38
- * does the final pick.
37
+ * Confidence drops for very long runs (5+ digits) where POSTCODE will typically win; the reconciler does the final
38
+ * pick.
39
39
  */
40
40
  export declare function scoreNumeric(tokens: ReadonlyArray<SegmentToken>, text: string): PhraseProposal[];
41
41
  /**
42
- * `POSTCODE` rule: lift each `QueryShape.knownFormats` postcode hit directly. The QueryShape stage
43
- * already did the format-shape recognition — Stage 2.7's job is just to publish the spans as phrase
44
- * proposals so the reconciler can use them.
42
+ * `POSTCODE` rule: lift each `QueryShape.knownFormats` postcode hit directly. The QueryShape stage already did the
43
+ * format-shape recognition — Stage 2.7's job is just to publish the spans as phrase proposals so the reconciler can use
44
+ * them.
45
45
  */
46
46
  export declare function scorePostcode(shape: QueryShapeLike, text: string): PhraseProposal[];
47
47
  /**
48
- * `REGION_ABBREVIATION` rule: 2-3 uppercase Latin letters. Tail-of-segment position boosts
49
- * confidence because that's the canonical "City, ST ZIP" shape.
48
+ * `REGION_ABBREVIATION` rule: 2-3 uppercase Latin letters. Tail-of-segment position boosts confidence because that's
49
+ * the canonical "City, ST ZIP" shape.
50
50
  */
51
51
  export declare function scoreRegionAbbreviation(tokens: ReadonlyArray<SegmentToken>, text: string, segmentIsLast: boolean): PhraseProposal[];
52
52
  /**
53
- * `HYPHENATED_COMPOUND` rule: tokens containing an internal hyphen. Captures `NY-NY` (venue
54
- * disambiguation case), `Saint-Denis` (French locality compound), `10118-1234` (ZIP+4 written as a
55
- * single token).
53
+ * `HYPHENATED_COMPOUND` rule: tokens containing an internal hyphen. Captures `NY-NY` (venue disambiguation case),
54
+ * `Saint-Denis` (French locality compound), `10118-1234` (ZIP+4 written as a single token).
56
55
  *
57
- * Internal hyphen is the cue; the rule doesn't pre-judge what the compound MEANS — that's typing
58
- * (classifier) or reconcile work. A high confidence here just says "this is one unit, not two".
56
+ * Internal hyphen is the cue; the rule doesn't pre-judge what the compound MEANS — that's typing (classifier) or
57
+ * reconcile work. A high confidence here just says "this is one unit, not two".
59
58
  */
60
59
  export declare function scoreHyphenatedCompound(tokens: ReadonlyArray<SegmentToken>, text: string): PhraseProposal[];
61
60
  /**
62
- * `STREET_PHRASE` rule: a token run that contains a street-type suffix. The span covers a leading
63
- * numeric (house number) when present, through the suffix token.
61
+ * `STREET_PHRASE` rule: a token run that contains a street-type suffix. The span covers a leading numeric (house
62
+ * number) when present, through the suffix token.
64
63
  *
65
- * Confidence reflects how canonical the run looks: NUMERIC + 1-3 capitalized words + SUFFIX scores
66
- * highest; suffix-only or non-leading-numeric variants score lower but still emit.
64
+ * Confidence reflects how canonical the run looks: NUMERIC + 1-3 capitalized words + SUFFIX scores highest; suffix-only
65
+ * or non-leading-numeric variants score lower but still emit.
67
66
  */
68
67
  export declare function scoreStreetPhrase(tokens: ReadonlyArray<SegmentToken>, text: string): PhraseProposal[];
69
68
  /**
70
- * `LOCALITY_PHRASE` rule: runs of contiguous place-name tokens (1-6 long). Emits multiple
71
- * overlapping proposals so the reconciler can choose between e.g. `Saint Petersburg` as one phrase
72
- * vs `Saint` + `Petersburg` as two.
69
+ * `LOCALITY_PHRASE` rule: runs of contiguous place-name tokens (1-6 long). Emits multiple overlapping proposals so the
70
+ * reconciler can choose between e.g. `Saint Petersburg` as one phrase vs `Saint` + `Petersburg` as two.
73
71
  *
74
- * The run bridges lowercase place-name PARTICLES (`de`, `in`, `aan den`, `am`, …) and
75
- * apostrophe-fused names (`nell'Emilia`) when they sit between capitalized content — without that,
76
- * the walk used to stop dead at the first lowercase token, so it never proposed "Reggio
77
- * nell'Emilia", "Las Palmas de Gran Canaria", or "San Pietro in Casale" as single spans. Those gaps
78
- * are exactly the native-order multi-word localities the joint-decode A/B fragmented (Route A Phase
79
- * I, #425).
72
+ * The run bridges lowercase place-name PARTICLES (`de`, `in`, `aan den`, `am`, …) and apostrophe-fused names
73
+ * (`nell'Emilia`) when they sit between capitalized content — without that, the walk used to stop dead at the first
74
+ * lowercase token, so it never proposed "Reggio nell'Emilia", "Las Palmas de Gran Canaria", or "San Pietro in Casale"
75
+ * as single spans. Those gaps are exactly the native-order multi-word localities the joint-decode A/B fragmented (Route
76
+ * A Phase I, #425).
80
77
  *
81
- * Confidence scales with: run length (2-5 are good place-name lengths), tail-of-segment position,
82
- * and whether the span sits at a segment boundary.
78
+ * Confidence scales with: run length (2-5 are good place-name lengths), tail-of-segment position, and whether the span
79
+ * sits at a segment boundary.
83
80
  */
84
81
  export declare function scoreLocalityPhrase(tokens: ReadonlyArray<SegmentToken>, text: string, segmentIsLast: boolean): PhraseProposal[];
85
82
  /**
86
- * `VENUE_PHRASE` rule: capitalized run containing a venue-marker noun (Steakhouse, Hotel, etc.) OR
87
- * containing a hyphenated compound + ≥1 capitalized word.
83
+ * `VENUE_PHRASE` rule: capitalized run containing a venue-marker noun (Steakhouse, Hotel, etc.) OR containing a
84
+ * hyphenated compound + ≥1 capitalized word.
88
85
  *
89
- * The shape "NY-NY Steakhouse" — the kryptonite case the reconciler eventually needs to lift the NY
90
- * tokens off REGION — surfaces here as a `VENUE_PHRASE` proposal at moderate-high confidence.
86
+ * The shape "NY-NY Steakhouse" — the kryptonite case the reconciler eventually needs to lift the NY tokens off REGION —
87
+ * surfaces here as a `VENUE_PHRASE` proposal at moderate-high confidence.
91
88
  *
92
- * Also includes a venue-by-exclusion positional prior: multi-word capitalized run in the first
93
- * segment with no street suffix, no house number, and no unit marker → weak VENUE_PHRASE at
94
- * 0.50-0.55. The idea: if we can't identify what something IS, but it's in the venue slot (first
95
- * segment) and doesn't look like any other component, it might be a venue name.
89
+ * Also includes a venue-by-exclusion positional prior: multi-word capitalized run in the first segment with no street
90
+ * suffix, no house number, and no unit marker → weak VENUE_PHRASE at 0.50-0.55. The idea: if we can't identify what
91
+ * something IS, but it's in the venue slot (first segment) and doesn't look like any other component, it might be a
92
+ * venue name.
96
93
  */
97
94
  export declare function scoreVenuePhrase(tokens: ReadonlyArray<SegmentToken>, text: string, segmentIsFirst?: boolean): PhrasePropos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AM,GAAG,cAAc,EAAE,CAgFrG;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAClC,MAAM,EAAE,aAAa,CAAC,YAAY,CAAC,EACnC,IAAI,EAAE,MAAM,EACZ,aAAa,EAAE,OAAO,GACpB,cAAc,EAAE,CAwFlB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAC/B,MAAM,EAAE,aAAa,CAAC,YAAY,CAAC,EACnC,IAAI,EAAE,MAAM,EACZ,cAAc,CAAC,EAAE,OAAO,GACtB,cAAc,EAAE,CA+ClB"}
package/out/rules.js CHANGED
@@ -19,9 +19,9 @@ import { Span } from "@mailwoman/core/tokenization";
19
19
  const WHITESPACE = /\s+/;
20
20
  /**
21
21
  * Neutral baseline confidence for phrase proposals when no structural cue (position, length, known
22
- * suffix/prefix/marker, format-hit) lifts or penalizes the score. Each rule adds bonuses on top of
23
- * this base (e.g. +0.15 for 2-token locality runs, +0.1 for tail-of-last-segment) and subtracts
24
- * penalties (e.g. −0.2 for a known US region name that isn't at segment-tail).
22
+ * suffix/prefix/marker, format-hit) lifts or penalizes the score. Each rule adds bonuses on top of this base (e.g.
23
+ * +0.15 for 2-token locality runs, +0.1 for tail-of-last-segment) and subtracts penalties (e.g. −0.2 for a known US
24
+ * region name that isn't at segment-tail).
25
25
  */
26
26
  const NEUTRAL_PROPOSAL_CONFIDENCE = 0.55;
27
27
  const US_REGION_NAMES = new Set([
@@ -67,8 +67,8 @@ const US_REGION_NAMES = new Set([
67
67
  "wyoming",
68
68
  ]);
69
69
  /**
70
- * Split a segment body into whitespace-separated tokens. Offsets are absolute into the original
71
- * input (caller supplies the segment's `start` offset).
70
+ * Split a segment body into whitespace-separated tokens. Offsets are absolute into the original input (caller supplies
71
+ * the segment's `start` offset).
72
72
  */
73
73
  export function tokenizeSegment(segmentBody, segmentStart) {
74
74
  const tokens = [];
@@ -102,18 +102,17 @@ function isRegionAbbreviation(s) {
102
102
  return /^[A-Z]{2,3}$/.test(s);
103
103
  }
104
104
  /**
105
- * True when token starts with an uppercase letter — the common Western proper-noun shape.
106
- * Unicode-aware (`\p{Lu}`) so accented Latin capitals (`Évellys`, `Étagnac`, `Ñuñoa`, `Ávila`)
107
- * count as proper nouns too; an ASCII-only `[A-Z]` silently dropped those localities from the
108
- * grouper (#425 residual).
105
+ * True when token starts with an uppercase letter — the common Western proper-noun shape. Unicode-aware (`\p{Lu}`) so
106
+ * accented Latin capitals (`Évellys`, `Étagnac`, `Ñuñoa`, `Ávila`) count as proper nouns too; an ASCII-only `[A-Z]`
107
+ * silently dropped those localities from the grouper (#425 residual).
109
108
  */
110
109
  function startsCapitalized(s) {
111
110
  return /^\p{Lu}/u.test(s);
112
111
  }
113
112
  /**
114
- * Common street-type suffixes (en-US + en-GB + abbreviated forms). Match case-insensitively against
115
- * the raw token body. The set is intentionally short — coverage extension belongs in a future
116
- * per-locale rule pack, not as a 500-entry dictionary in this rule.
113
+ * Common street-type suffixes (en-US + en-GB + abbreviated forms). Match case-insensitively against the raw token body.
114
+ * The set is intentionally short — coverage extension belongs in a future per-locale rule pack, not as a 500-entry
115
+ * dictionary in this rule.
117
116
  */
118
117
  const STREET_SUFFIXES = new Set([
119
118
  "st",
@@ -158,16 +157,14 @@ function isStreetSuffix(token) {
158
157
  return STREET_SUFFIXES.has(token.toLowerCase());
159
158
  }
160
159
  /**
161
- * Romance/Latin street-TYPE words that LEAD the street ("Via Trento", "Calle Mayor", "Corso
162
- * Italia"). English puts the type last (a suffix — see STREET_SUFFIXES); Romance languages put it
163
- * first. Without this, a leading "Via"/"Calle" is capitalized first-segment text the locality rule
164
- * happily proposes, and on OOD intl input the model can't type it either so the grouper-audit
165
- * promotes it to a spurious `locality`, burying the real city (#425 re-gate).
160
+ * Romance/Latin street-TYPE words that LEAD the street ("Via Trento", "Calle Mayor", "Corso Italia"). English puts the
161
+ * type last (a suffix — see STREET_SUFFIXES); Romance languages put it first. Without this, a leading "Via"/"Calle" is
162
+ * capitalized first-segment text the locality rule happily proposes, and on OOD intl input the model can't type it
163
+ * either so the grouper-audit promotes it to a spurious `locality`, burying the real city (#425 re-gate).
166
164
  *
167
- * Street-TYPES only — deliberately NOT the ambiguous area/development words ("Polígono",
168
- * "Urbanización", "Lugar", "Partida", "Borgo") that legitimately serve AS localities. This stays a
169
- * bounded linguistic category; per-locale breadth belongs in a future rule pack, not an exception
170
- * pile.
165
+ * Street-TYPES only — deliberately NOT the ambiguous area/development words ("Polígono", "Urbanización", "Lugar",
166
+ * "Partida", "Borgo") that legitimately serve AS localities. This stays a bounded linguistic category; per-locale
167
+ * breadth belongs in a future rule pack, not an exception pile.
171
168
  */
172
169
  const STREET_PREFIXES = new Set([
173
170
  // Italian
@@ -212,15 +209,13 @@ function isStreetPrefix(token) {
212
209
  return STREET_PREFIXES.has(token.toLowerCase());
213
210
  }
214
211
  /**
215
- * Lowercase connective particles that live INSIDE multi-word place names — the Romance/Germanic
216
- * glue that bridges two capitalized content words: "Las Palmas **de** Gran Canaria", "San Pietro
217
- * **in** Casale", "Alphen **aan den** Rijn", "Frankfurt **am** Main", "Rothenburg **ob der**
218
- * Tauber". This is a BOUNDED linguistic category (place-name connectives), not a gazetteer or a
219
- * stopword dump and it only ever fires when bracketed by capitalized content on BOTH sides (see
220
- * `scoreLocalityPhrase`), so a stray "and"/"the" in a street phrase can't smuggle a particle
221
- * through. Keep coverage to the connectives that actually bridge place-name tokens; growing it into
222
- * a per-locale stopword list is the wrong move — that pressure belongs on the gazetteer/reconciler,
223
- * not here.
212
+ * Lowercase connective particles that live INSIDE multi-word place names — the Romance/Germanic glue that bridges two
213
+ * capitalized content words: "Las Palmas **de** Gran Canaria", "San Pietro **in** Casale", "Alphen **aan den** Rijn",
214
+ * "Frankfurt **am** Main", "Rothenburg **ob der** Tauber". This is a BOUNDED linguistic category (place-name
215
+ * connectives), not a gazetteer or a stopword dump and it only ever fires when bracketed by capitalized content on
216
+ * BOTH sides (see `scoreLocalityPhrase`), so a stray "and"/"the" in a street phrase can't smuggle a particle through.
217
+ * Keep coverage to the connectives that actually bridge place-name tokens; growing it into a per-locale stopword list
218
+ * is the wrong move that pressure belongs on the gazetteer/reconciler, not here.
224
219
  */
225
220
  const PLACE_NAME_PARTICLES = new Set([
226
221
  // Spanish / Catalan / Portuguese
@@ -267,17 +262,15 @@ const PLACE_NAME_PARTICLES = new Set([
267
262
  "der",
268
263
  ]);
269
264
  /**
270
- * A short lowercase particle fused via apostrophe to a capitalized name — the Italian/French
271
- * elision that the tokenizer keeps as ONE token: `nell'Emilia`, `dell'Adda`, `l'Aquila`. Treated as
272
- * place-name CONTENT (it carries the proper noun), so it can both start and continue a locality
273
- * run.
265
+ * A short lowercase particle fused via apostrophe to a capitalized name — the Italian/French elision that the tokenizer
266
+ * keeps as ONE token: `nell'Emilia`, `dell'Adda`, `l'Aquila`. Treated as place-name CONTENT (it carries the proper
267
+ * noun), so it can both start and continue a locality run.
274
268
  */
275
269
  function isFusedParticleName(s) {
276
270
  return /^\p{Ll}{1,6}['’]\p{Lu}/u.test(s);
277
271
  }
278
272
  /**
279
- * Place-name content token: a capitalized word OR an apostrophe-fused particle name
280
- * (`nell'Emilia`).
273
+ * Place-name content token: a capitalized word OR an apostrophe-fused particle name (`nell'Emilia`).
281
274
  */
282
275
  function isPlaceNameContent(s) {
283
276
  return startsCapitalized(s) || isFusedParticleName(s);
@@ -287,8 +280,8 @@ function isPlaceNameParticle(s) {
287
280
  return PLACE_NAME_PARTICLES.has(s.toLowerCase());
288
281
  }
289
282
  /**
290
- * Venue-marker nouns with per-term confidence weights. Same caveat as STREET_SUFFIXES — universal
291
- * structural markers, not a places dictionary. Higher weight = stronger venue signal.
283
+ * Venue-marker nouns with per-term confidence weights. Same caveat as STREET_SUFFIXES — universal structural markers,
284
+ * not a places dictionary. Higher weight = stronger venue signal.
292
285
  */
293
286
  const VENUE_MARKERS = new Map([
294
287
  // Dining (0.90 — unambiguous venue markers)
@@ -354,8 +347,8 @@ const VENUE_MARKERS = new Map([
354
347
  ["farm", 0.65],
355
348
  ]);
356
349
  /**
357
- * Unit-designator tokens that gate the venue-by-exclusion heuristic. When any token in a segment
358
- * matches one of these, the segment is likely a unit/suite line, not a venue name.
350
+ * Unit-designator tokens that gate the venue-by-exclusion heuristic. When any token in a segment matches one of these,
351
+ * the segment is likely a unit/suite line, not a venue name.
359
352
  */
360
353
  const UNIT_MARKERS = new Set([
361
354
  "apt",
@@ -392,11 +385,11 @@ function hasUnitMarker(tokens) {
392
385
  return tokens.some((t) => UNIT_MARKERS.has(t.body.toLowerCase()));
393
386
  }
394
387
  /**
395
- * `NUMERIC` rule: emit one proposal per all-digit token. House numbers, postcodes (when no format
396
- * hit), unit numbers all surface here as a base hypothesis.
388
+ * `NUMERIC` rule: emit one proposal per all-digit token. House numbers, postcodes (when no format hit), unit numbers
389
+ * all surface here as a base hypothesis.
397
390
  *
398
- * Confidence drops for very long runs (5+ digits) where POSTCODE will typically win; the reconciler
399
- * does the final pick.
391
+ * Confidence drops for very long runs (5+ digits) where POSTCODE will typically win; the reconciler does the final
392
+ * pick.
400
393
  */
401
394
  export function scoreNumeric(tokens, text) {
402
395
  const out = [];
@@ -416,9 +409,9 @@ export function scoreNumeric(tokens, text) {
416
409
  return out;
417
410
  }
418
411
  /**
419
- * `POSTCODE` rule: lift each `QueryShape.knownFormats` postcode hit directly. The QueryShape stage
420
- * already did the format-shape recognition — Stage 2.7's job is just to publish the spans as phrase
421
- * proposals so the reconciler can use them.
412
+ * `POSTCODE` rule: lift each `QueryShape.knownFormats` postcode hit directly. The QueryShape stage already did the
413
+ * format-shape recognition — Stage 2.7's job is just to publish the spans as phrase proposals so the reconciler can use
414
+ * them.
422
415
  */
423
416
  export function scorePostcode(shape, text) {
424
417
  const out = [];
@@ -437,8 +430,8 @@ export function scorePostcode(shape, text) {
437
430
  return out;
438
431
  }
439
432
  /**
440
- * `REGION_ABBREVIATION` rule: 2-3 uppercase Latin letters. Tail-of-segment position boosts
441
- * confidence because that's the canonical "City, ST ZIP" shape.
433
+ * `REGION_ABBREVIATION` rule: 2-3 uppercase Latin letters. Tail-of-segment position boosts confidence because that's
434
+ * the canonical "City, ST ZIP" shape.
442
435
  */
443
436
  export function scoreRegionAbbreviation(tokens, text, segmentIsLast) {
444
437
  const out = [];
@@ -470,12 +463,11 @@ export function scoreRegionAbbreviation(tokens, text, segmentIsLast) {
470
463
  return out;
471
464
  }
472
465
  /**
473
- * `HYPHENATED_COMPOUND` rule: tokens containing an internal hyphen. Captures `NY-NY` (venue
474
- * disambiguation case), `Saint-Denis` (French locality compound), `10118-1234` (ZIP+4 written as a
475
- * single token).
466
+ * `HYPHENATED_COMPOUND` rule: tokens containing an internal hyphen. Captures `NY-NY` (venue disambiguation case),
467
+ * `Saint-Denis` (French locality compound), `10118-1234` (ZIP+4 written as a single token).
476
468
  *
477
- * Internal hyphen is the cue; the rule doesn't pre-judge what the compound MEANS — that's typing
478
- * (classifier) or reconcile work. A high confidence here just says "this is one unit, not two".
469
+ * Internal hyphen is the cue; the rule doesn't pre-judge what the compound MEANS — that's typing (classifier) or
470
+ * reconcile work. A high confidence here just says "this is one unit, not two".
479
471
  */
480
472
  export function scoreHyphenatedCompound(tokens, text) {
481
473
  const out = [];
@@ -495,11 +487,11 @@ export function scoreHyphenatedCompound(tokens, text) {
495
487
  return out;
496
488
  }
497
489
  /**
498
- * `STREET_PHRASE` rule: a token run that contains a street-type suffix. The span covers a leading
499
- * numeric (house number) when present, through the suffix token.
490
+ * `STREET_PHRASE` rule: a token run that contains a street-type suffix. The span covers a leading numeric (house
491
+ * number) when present, through the suffix token.
500
492
  *
501
- * Confidence reflects how canonical the run looks: NUMERIC + 1-3 capitalized words + SUFFIX scores
502
- * highest; suffix-only or non-leading-numeric variants score lower but still emit.
493
+ * Confidence reflects how canonical the run looks: NUMERIC + 1-3 capitalized words + SUFFIX scores highest; suffix-only
494
+ * or non-leading-numeric variants score lower but still emit.
503
495
  */
504
496
  export function scoreStreetPhrase(tokens, text) {
505
497
  const out = [];
@@ -579,19 +571,17 @@ export function scoreStreetPhrase(tokens, text) {
579
571
  return out;
580
572
  }
581
573
  /**
582
- * `LOCALITY_PHRASE` rule: runs of contiguous place-name tokens (1-6 long). Emits multiple
583
- * overlapping proposals so the reconciler can choose between e.g. `Saint Petersburg` as one phrase
584
- * vs `Saint` + `Petersburg` as two.
574
+ * `LOCALITY_PHRASE` rule: runs of contiguous place-name tokens (1-6 long). Emits multiple overlapping proposals so the
575
+ * reconciler can choose between e.g. `Saint Petersburg` as one phrase vs `Saint` + `Petersburg` as two.
585
576
  *
586
- * The run bridges lowercase place-name PARTICLES (`de`, `in`, `aan den`, `am`, …) and
587
- * apostrophe-fused names (`nell'Emilia`) when they sit between capitalized content — without that,
588
- * the walk used to stop dead at the first lowercase token, so it never proposed "Reggio
589
- * nell'Emilia", "Las Palmas de Gran Canaria", or "San Pietro in Casale" as single spans. Those gaps
590
- * are exactly the native-order multi-word localities the joint-decode A/B fragmented (Route A Phase
591
- * I, #425).
577
+ * The run bridges lowercase place-name PARTICLES (`de`, `in`, `aan den`, `am`, …) and apostrophe-fused names
578
+ * (`nell'Emilia`) when they sit between capitalized content — without that, the walk used to stop dead at the first
579
+ * lowercase token, so it never proposed "Reggio nell'Emilia", "Las Palmas de Gran Canaria", or "San Pietro in Casale"
580
+ * as single spans. Those gaps are exactly the native-order multi-word localities the joint-decode A/B fragmented (Route
581
+ * A Phase I, #425).
592
582
  *
593
- * Confidence scales with: run length (2-5 are good place-name lengths), tail-of-segment position,
594
- * and whether the span sits at a segment boundary.
583
+ * Confidence scales with: run length (2-5 are good place-name lengths), tail-of-segment position, and whether the span
584
+ * sits at a segment boundary.
595
585
  */
596
586
  export function scoreLocalityPhrase(tokens, text, segmentIsLast) {
597
587
  const out = [];
@@ -676,16 +666,16 @@ export function scoreLocalityPhrase(tokens, text, segmentIsLast) {
676
666
  return out;
677
667
  }
678
668
  /**
679
- * `VENUE_PHRASE` rule: capitalized run containing a venue-marker noun (Steakhouse, Hotel, etc.) OR
680
- * containing a hyphenated compound + ≥1 capitalized word.
669
+ * `VENUE_PHRASE` rule: capitalized run containing a venue-marker noun (Steakhouse, Hotel, etc.) OR containing a
670
+ * hyphenated compound + ≥1 capitalized word.
681
671
  *
682
- * The shape "NY-NY Steakhouse" — the kryptonite case the reconciler eventually needs to lift the NY
683
- * tokens off REGION — surfaces here as a `VENUE_PHRASE` proposal at moderate-high confidence.
672
+ * The shape "NY-NY Steakhouse" — the kryptonite case the reconciler eventually needs to lift the NY tokens off REGION —
673
+ * surfaces here as a `VENUE_PHRASE` proposal at moderate-high confidence.
684
674
  *
685
- * Also includes a venue-by-exclusion positional prior: multi-word capitalized run in the first
686
- * segment with no street suffix, no house number, and no unit marker → weak VENUE_PHRASE at
687
- * 0.50-0.55. The idea: if we can't identify what something IS, but it's in the venue slot (first
688
- * segment) and doesn't look like any other component, it might be a venue name.
675
+ * Also includes a venue-by-exclusion positional prior: multi-word capitalized run in the first segment with no street
676
+ * suffix, no house number, and no unit marker → weak VENUE_PHRASE at 0.50-0.55. The idea: if we can't identify what
677
+ * something IS, but it's in the venue slot (first segment) and doesn't look like any other component, it might be a
678
+ * venue name.
689
679
  */
690
680
  export function scoreVenuePhrase(tokens, text, segmentIsFirst) {
691
681
  const out = [];
package/out/rules.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"rules.js","sourceRoot":"","sources":["../rules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAA;AAanD,MAAM,UAAU,GAAG,KAAK,CAAA;AAExB;;;;;GAKG;AACH,MAAM,2BAA2B,GAAG,IAAI,CAAA;AAExC,MAAM,eAAe,GAAwB,IAAI,GAAG,CAAC;IACpD,SAAS;IACT,QAAQ;IACR,SAAS;IACT,UAAU;IACV,YAAY;IACZ,UAAU;IACV,aAAa;IACb,UAAU;IACV,SAAS;IACT,SAAS;IACT,QAAQ;IACR,OAAO;IACP,UAAU;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AAC,CAAA;IACV,CAAC;IAED,OAAO,GAAG,CAAA;AACX,CAAC"}
package/out/types.d.ts CHANGED
@@ -8,8 +8,7 @@ export type { LocaleHint, PhraseGrouper, PhraseKind, PhraseProposal } from "@mai
8
8
  /** Re-export of the canonical `Section` type from `@mailwoman/core/types`. `Section = Span`. */
9
9
  export type { Section } from "@mailwoman/core/types";
10
10
  /**
11
- * Minimal `NormalizedInput` shape consumed by `groupPhrases`. Compatible with
12
- * `@mailwoman/normalize`'s output.
11
+ * Minimal `NormalizedInput` shape consumed by `groupPhrases`. Compatible with `@mailwoman/normalize`'s output.
13
12
  */
14
13
  export interface NormalizedInputLite {
15
14
  raw: string;
@@ -17,8 +16,7 @@ export interface NormalizedInputLite {
17
16
  appliedLocale?: string;
18
17
  }
19
18
  /**
20
- * Minimal `QueryShape` shape consumed by `groupPhrases`. Compatible with `@mailwoman/query-shape`'s
21
- * output.
19
+ * Minimal `QueryShape` shape consumed by `groupPhrases`. Compatible with `@mailwoman/query-shape`'s output.
22
20
  */
23
21
  export interface QueryShapeLike {
24
22
  knownFormats: ReadonlyArray<{
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,yEAAyE;AACzE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAErG,gGAAgG;AAChG,YAAY,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAEpD;;;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;YA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G,EAAE,MAAM,CAAA;SAAE,CAAA;QACpC,UAAU,EAAE,MAAM,CAAA;KAClB,CAAC,CAAA;IACF,QAAQ,CAAC,EAAE,aAAa,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC,CAAA;IAChG,YAAY,CAAC,EAAE,aAAa,CAAC;QAC5B,IAAI,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAA;QAClD,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;KACd,CAAC,CAAA;IACF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,gBAAgB;IAChC,gGAAgG;IAChG,eAAe,CAAC,EAAE,MAAM,CAAA;CACxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailwoman/phrase-grouper",
3
- "version": "4.16.1",
3
+ "version": "5.0.0",
4
4
  "description": "Stage 2.7 of the runtime pipeline — propose coherent input units (boundary discovery) with a structural kind hypothesis + confidence. Rule-based v1 (port of v1 section/sub-section logic); learned 1-2M-param span proposer reserved for v0.5.1.",
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": "phrase-grouper"
10
10
  },
11
- "type": "module",
12
- "exports": {
13
- "./package.json": "./package.json",
14
- ".": "./out/index.js"
15
- },
16
- "dependencies": {
17
- "@mailwoman/core": "4.16.1"
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
  }