@mailwoman/phrase-grouper 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/group.d.ts +1 -1
- package/out/index.d.ts +4 -4
- package/out/rules.d.ts +1 -1
- package/package.json +13 -3
package/out/group.d.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* See `docs/articles/concepts/the-knowledge-ladder.md` § Phrase grouper for the design rationale,
|
|
13
13
|
* and `phrase-grouper/rules.ts` for per-rule documentation.
|
|
14
14
|
*/
|
|
15
|
-
import type { GroupPhrasesOpts, LocaleHint, NormalizedInputLite, PhraseProposal, QueryShapeLike } from "./types.
|
|
15
|
+
import type { GroupPhrasesOpts, LocaleHint, NormalizedInputLite, PhraseProposal, QueryShapeLike } from "./types.ts";
|
|
16
16
|
/**
|
|
17
17
|
* Synchronous, pure rule-based implementation. The async wrapper matches the pipeline contract.
|
|
18
18
|
*
|
package/out/index.d.ts
CHANGED
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
* See `docs/articles/concepts/the-knowledge-ladder.md` § Phrase grouper for the design rationale
|
|
19
19
|
* and `docs/articles/plan/phases/PHASE_8_v0_5_0_fresh_slate.md` § E for the v0.5.0 thread.
|
|
20
20
|
*/
|
|
21
|
-
export { groupPhrases, groupPhrasesSync } from "./group.
|
|
22
|
-
export { scoreHyphenatedCompound, scoreLocalityPhrase, scoreNumeric, scorePostcode, scoreRegionAbbreviation, scoreStreetPhrase, scoreVenuePhrase, tokenizeSegment, } from "./rules.
|
|
23
|
-
export type { SegmentToken } from "./rules.
|
|
24
|
-
export type { GroupPhrasesOpts, LocaleHint, NormalizedInputLite, PhraseGrouper, PhraseKind, PhraseProposal, QueryShapeLike, Section, } from "./types.
|
|
21
|
+
export { groupPhrases, groupPhrasesSync } from "./group.ts";
|
|
22
|
+
export { scoreHyphenatedCompound, scoreLocalityPhrase, scoreNumeric, scorePostcode, scoreRegionAbbreviation, scoreStreetPhrase, scoreVenuePhrase, tokenizeSegment, } from "./rules.ts";
|
|
23
|
+
export type { SegmentToken } from "./rules.ts";
|
|
24
|
+
export type { GroupPhrasesOpts, LocaleHint, NormalizedInputLite, PhraseGrouper, PhraseKind, PhraseProposal, QueryShapeLike, Section, } from "./types.ts";
|
|
25
25
|
//# sourceMappingURL=index.d.ts.map
|
package/out/rules.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* Per "possibilities not constraints", rules emit overlapping proposals freely. The reconciler
|
|
16
16
|
* (Stage 5) picks the best non-overlapping subset.
|
|
17
17
|
*/
|
|
18
|
-
import type { PhraseProposal, QueryShapeLike } from "./types.
|
|
18
|
+
import type { PhraseProposal, QueryShapeLike } from "./types.ts";
|
|
19
19
|
/**
|
|
20
20
|
* One token within a segment — absolute offsets into the normalized input. Built by `tokenizeSegment` from a
|
|
21
21
|
* (segment-text, segment-start) pair.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailwoman/phrase-grouper",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.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 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
|
}
|