@mailwoman/record 11.0.0 → 11.1.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/lib/address.ts +3 -6
- package/lib/index.ts +8 -8
- package/lib/name.ts +21 -21
- package/lib/organization.ts +10 -7
- package/out/address.d.ts +1 -6
- package/out/address.d.ts.map +1 -1
- package/out/address.js +2 -5
- package/out/address.js.map +1 -1
- package/out/index.d.ts +5 -8
- package/out/index.d.ts.map +1 -1
- package/out/index.js +7 -8
- package/out/index.js.map +1 -1
- package/out/name.d.ts +17 -20
- package/out/name.d.ts.map +1 -1
- package/out/name.js +3 -1
- package/out/name.js.map +1 -1
- package/out/organization.d.ts +0 -9
- package/out/organization.d.ts.map +1 -1
- package/out/organization.js +9 -7
- package/out/organization.js.map +1 -1
- package/package.json +4 -4
package/lib/address.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*/
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
6
3
|
|
|
7
4
|
import type { ResolutionTier } from "@mailwoman/annotations/geo"
|
|
8
5
|
import { type FormatAddressOptions, formatAddress } from "@mailwoman/codex/address/format"
|
|
@@ -40,7 +37,7 @@ export interface AddressGeocode {
|
|
|
40
37
|
|
|
41
38
|
/**
|
|
42
39
|
* Marks a delivery point, such as a PO box, rather than a building,
|
|
43
|
-
* so the coordinate
|
|
40
|
+
* so the coordinate doesn't locate the addressee.
|
|
44
41
|
*/
|
|
45
42
|
poBox: boolean | null
|
|
46
43
|
|
package/lib/index.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
5
|
* `@mailwoman/record` — the canonicalize layer for the geocode-first matcher.
|
|
7
6
|
*
|
|
8
|
-
* Address-first: {@linkcode PostalAddress} is the canonical record.
|
|
9
|
-
* ({@linkcode parsePersonName}, {@linkcode canonicalizeOrganizationName})
|
|
10
|
-
* plain-data pattern.
|
|
11
|
-
*
|
|
7
|
+
* Address-first: {@linkcode PostalAddress} is the canonical record.
|
|
8
|
+
* The per-field normalizers ({@linkcode parsePersonName}, {@linkcode canonicalizeOrganizationName})
|
|
9
|
+
* build on the same plain-data pattern.
|
|
10
|
+
*
|
|
11
|
+
* Contact records and the comparator/Fellegi-Sunter layer land in the matcher.
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
export * from "#address"
|
package/lib/name.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
import { TextSpliterator } from "spliterator"
|
|
2
5
|
|
|
3
6
|
/**
|
|
4
|
-
*
|
|
5
|
-
* @license AGPL-3.0
|
|
6
|
-
* @author Teffen Ellis, et al.
|
|
7
|
-
*
|
|
8
|
-
* Person-name parsing — split a full name into components for the matcher to canonicalize and
|
|
9
|
-
* compare.
|
|
7
|
+
* Person-name parsing — split a full name into components for the matcher to canonicalize and compare.
|
|
10
8
|
*
|
|
11
|
-
* A rule-based positional parser, the portable recipe from `python-nameparser`:
|
|
12
|
-
* detect `Last, First` inversion, then classify tokens by
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
9
|
+
* A rule-based positional parser, the portable recipe from `python-nameparser`:
|
|
10
|
+
* split on a comma to detect `Last, First` inversion, then classify tokens by
|
|
11
|
+
* position against configurable title / suffix / particle lists.
|
|
12
|
+
* We deliberately store the surname **particle** (`van`, `de la`, `von`) separately from
|
|
13
|
+
* the bare surname (the `theiconic/name-parser` pattern) so the matcher can compare
|
|
14
|
+
* `Vega` independent of `de la` — sources that drop or vary the particle still match.
|
|
16
15
|
*
|
|
17
16
|
* Scope + honesty (per the name-canonicalization research pass):
|
|
18
17
|
*
|
|
19
|
-
* - Western / romanized names only.
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
18
|
+
* - Western / romanized names only.
|
|
19
|
+
* Cultural given-family order variation (East-Asian family-first) and transliteration
|
|
20
|
+
* are not handled here — a documented follow-up.
|
|
21
|
+
* - Nickname → canonical-root mapping is intentionally not done at parse time:
|
|
22
|
+
* it is lossy and gendered (Bobbie → Robert _or_ Roberta), so equivalence belongs in
|
|
23
|
+
* the matcher as a fuzzy agreement level rather than a destructive rewrite.
|
|
24
|
+
* We only _extract_ a parenthetical/quoted nickname.
|
|
25
|
+
* - A CRF parser (probablepeople) is the gold-standard reference but too
|
|
26
|
+
* heavy to port. this positional parser covers the documented hard cases
|
|
27
|
+
* (inversion, particles, generational + professional suffixes) without a model.
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
30
|
/**
|
|
@@ -350,7 +350,7 @@ export function parsePersonName(input: string | null): PersonName | null {
|
|
|
350
350
|
* The order a person name prints in.
|
|
351
351
|
*
|
|
352
352
|
* Western / romanized only, the same scope {@linkcode parsePersonName} declares.
|
|
353
|
-
* A family-first system
|
|
353
|
+
* A family-first system doesn't use this order in reverse.
|
|
354
354
|
* An invented order here would be worse than having none.
|
|
355
355
|
*/
|
|
356
356
|
const NAME_ORDER: readonly (keyof PersonName)[] = ["prefix", "given", "middle", "familyParticle", "family", "suffix"]
|
package/lib/organization.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
+
* Canonicalizes organization names by removing legal designations.
|
|
6
|
+
*
|
|
7
|
+
* It normalizes DBA clauses plus punctuation and accents.
|
|
8
|
+
* It also folds connectives and leading articles.
|
|
5
9
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* ambiguous terms that could otherwise be stripped.
|
|
10
|
+
* Jurisdiction adds local legal forms.
|
|
11
|
+
* Domain rules preserve ambiguous terms that could otherwise be stripped.
|
|
9
12
|
*/
|
|
10
13
|
|
|
11
14
|
import { foldForKey } from "@mailwoman/codex/address/key"
|
|
@@ -127,7 +130,7 @@ const BASE_DESIGNATIONS = new Set([
|
|
|
127
130
|
|
|
128
131
|
/**
|
|
129
132
|
* Jurisdiction-conditional legal forms (ISO 3166-1 alpha-2 → forms) added only when the jurisdiction
|
|
130
|
-
* is known, holding the collision-prone tokens (`pt`, `sca`, `scs`) that the base
|
|
133
|
+
* is known, holding the collision-prone tokens (`pt`, `sca`, `scs`) that the base mustn't strip.
|
|
131
134
|
*/
|
|
132
135
|
const JURISDICTION_DESIGNATIONS: Record<string, readonly string[]> = {
|
|
133
136
|
ID: ["pt", "tbk", "ud"], // Perseroan Terbatas / Terbuka (listed) / Usaha Dagang
|
package/out/address.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*/
|
|
6
1
|
import type { ResolutionTier } from "@mailwoman/annotations/geo";
|
|
7
2
|
import { type FormatAddressOptions } from "@mailwoman/codex/address/format";
|
|
8
3
|
import type { ComponentDict } from "@mailwoman/codex/address/render";
|
|
@@ -33,7 +28,7 @@ export interface AddressGeocode {
|
|
|
33
28
|
hierarchy: HierarchyNode[] | null;
|
|
34
29
|
/**
|
|
35
30
|
* Marks a delivery point, such as a PO box, rather than a building,
|
|
36
|
-
* so the coordinate
|
|
31
|
+
* so the coordinate doesn't locate the addressee.
|
|
37
32
|
*/
|
|
38
33
|
poBox: boolean | null;
|
|
39
34
|
/**
|
package/out/address.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../lib/address.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../lib/address.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,EAAE,KAAK,oBAAoB,EAAiB,MAAM,iCAAiC,CAAA;AAE1F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAEvD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,UAAU,EAAE,aAAa,CAAA;IACzB,IAAI,EAAE,cAAc,CAAA;IAEpB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;IAEhC;;OAEG;IACH,SAAS,EAAE,aAAa,EAAE,GAAG,IAAI,CAAA;IAEjC;;;OAGG;IACH,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;IAErB;;;OAGG;IACH,SAAS,EAAE,OAAO,GAAG,IAAI,CAAA;CACzB;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC7B;;OAEG;IACH,UAAU,EAAE,aAAa,CAAA;IAEzB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IAExB,OAAO,EAAE,cAAc,GAAG,IAAI,CAAA;IAE9B;;OAEG;IACH,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACtC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEvB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAEnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAA;CACpC;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,aAAa,EAAE,IAAI,GAAE,sBAA2B,GAAG,aAAa,CAa3G;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,cAAc,GAAG,aAAa,CAEzF"}
|
package/out/address.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*/
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
6
3
|
import { formatAddress } from "@mailwoman/codex/address/format";
|
|
7
4
|
import { canonicalKey } from "@mailwoman/codex/address/key";
|
|
8
5
|
/**
|
package/out/address.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.js","sourceRoot":"","sources":["../lib/address.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"address.js","sourceRoot":"","sources":["../lib/address.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAGlE,OAAO,EAA6B,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAC1F,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAwG3D;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,UAAyB,EAAE,IAAI,GAA2B,EAAE;IAC3F,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,UAAU,CAAC,OAAO,IAAI,EAAE,CAAA;IAExD,MAAM,SAAS,GACd,IAAI,CAAC,MAAM,KAAK,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,aAAa,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;IAE7G,OAAO;QACN,UAAU;QACV,YAAY,EAAE,YAAY,CAAC,UAAU,CAAC;QACtC,SAAS,EAAE,SAAS,IAAI,IAAI;QAC5B,OAAO,EAAE,IAAI;QACb,GAAG,EAAE,IAAI,CAAC,GAAG,IAAI,IAAI;KACrB,CAAA;AACF,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,MAAqB,EAAE,OAAuB;IACzE,OAAO,EAAE,GAAG,MAAM,EAAE,OAAO,EAAE,CAAA;AAC9B,CAAC"}
|
package/out/index.d.ts
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
2
|
* `@mailwoman/record` — the canonicalize layer for the geocode-first matcher.
|
|
7
3
|
*
|
|
8
|
-
* Address-first: {@linkcode PostalAddress} is the canonical record.
|
|
9
|
-
* ({@linkcode parsePersonName}, {@linkcode canonicalizeOrganizationName})
|
|
10
|
-
* plain-data pattern.
|
|
11
|
-
*
|
|
4
|
+
* Address-first: {@linkcode PostalAddress} is the canonical record.
|
|
5
|
+
* The per-field normalizers ({@linkcode parsePersonName}, {@linkcode canonicalizeOrganizationName})
|
|
6
|
+
* build on the same plain-data pattern.
|
|
7
|
+
*
|
|
8
|
+
* Contact records and the comparator/Fellegi-Sunter layer land in the matcher.
|
|
12
9
|
*/
|
|
13
10
|
export * from "#address";
|
|
14
11
|
export * from "#name";
|
package/out/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AAEH,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA;AACrB,cAAc,eAAe,CAAA"}
|
package/out/index.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
/**
|
|
2
|
-
* @copyright Sister Software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
4
|
* `@mailwoman/record` — the canonicalize layer for the geocode-first matcher.
|
|
7
5
|
*
|
|
8
|
-
* Address-first: {@linkcode PostalAddress} is the canonical record.
|
|
9
|
-
* ({@linkcode parsePersonName}, {@linkcode canonicalizeOrganizationName})
|
|
10
|
-
* plain-data pattern.
|
|
11
|
-
*
|
|
6
|
+
* Address-first: {@linkcode PostalAddress} is the canonical record.
|
|
7
|
+
* The per-field normalizers ({@linkcode parsePersonName}, {@linkcode canonicalizeOrganizationName})
|
|
8
|
+
* build on the same plain-data pattern.
|
|
9
|
+
*
|
|
10
|
+
* Contact records and the comparator/Fellegi-Sunter layer land in the matcher.
|
|
12
11
|
*/
|
|
13
12
|
export * from "#address";
|
|
14
13
|
export * from "#name";
|
package/out/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;;;;GAQG;AAEH,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA;AACrB,cAAc,eAAe,CAAA"}
|
package/out/name.d.ts
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
2
|
+
* Person-name parsing — split a full name into components for the matcher to canonicalize and compare.
|
|
5
3
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* separately from the bare surname (the `theiconic/name-parser` pattern) so the matcher can
|
|
13
|
-
* compare `Vega` independent of `de la` — sources that drop or vary the particle still match.
|
|
4
|
+
* A rule-based positional parser, the portable recipe from `python-nameparser`:
|
|
5
|
+
* split on a comma to detect `Last, First` inversion, then classify tokens by
|
|
6
|
+
* position against configurable title / suffix / particle lists.
|
|
7
|
+
* We deliberately store the surname **particle** (`van`, `de la`, `von`) separately from
|
|
8
|
+
* the bare surname (the `theiconic/name-parser` pattern) so the matcher can compare
|
|
9
|
+
* `Vega` independent of `de la` — sources that drop or vary the particle still match.
|
|
14
10
|
*
|
|
15
11
|
* Scope + honesty (per the name-canonicalization research pass):
|
|
16
12
|
*
|
|
17
|
-
* - Western / romanized names only.
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
13
|
+
* - Western / romanized names only.
|
|
14
|
+
* Cultural given-family order variation (East-Asian family-first) and transliteration
|
|
15
|
+
* are not handled here — a documented follow-up.
|
|
16
|
+
* - Nickname → canonical-root mapping is intentionally not done at parse time:
|
|
17
|
+
* it is lossy and gendered (Bobbie → Robert _or_ Roberta), so equivalence belongs in
|
|
18
|
+
* the matcher as a fuzzy agreement level rather than a destructive rewrite.
|
|
19
|
+
* We only _extract_ a parenthetical/quoted nickname.
|
|
20
|
+
* - A CRF parser (probablepeople) is the gold-standard reference but too
|
|
21
|
+
* heavy to port. this positional parser covers the documented hard cases
|
|
22
|
+
* (inversion, particles, generational + professional suffixes) without a model.
|
|
26
23
|
*/
|
|
27
24
|
/**
|
|
28
25
|
* A parsed person name.
|
package/out/name.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"name.d.ts","sourceRoot":"","sources":["../lib/name.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"name.d.ts","sourceRoot":"","sources":["../lib/name.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IAC1B;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;CACvB;AAsJD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,UAAU,GAAG,IAAI,CA8HvE;AAkBD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,CAAA;AAE9C;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,KAAK,GAAE,eAAwB,GAAG,MAAM,CAe1G"}
|
package/out/name.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
import { TextSpliterator } from "spliterator";
|
|
2
4
|
/**
|
|
3
5
|
* Titles / salutations that lead a name.
|
|
@@ -254,7 +256,7 @@ export function parsePersonName(input) {
|
|
|
254
256
|
* The order a person name prints in.
|
|
255
257
|
*
|
|
256
258
|
* Western / romanized only, the same scope {@linkcode parsePersonName} declares.
|
|
257
|
-
* A family-first system
|
|
259
|
+
* A family-first system doesn't use this order in reverse.
|
|
258
260
|
* An invented order here would be worse than having none.
|
|
259
261
|
*/
|
|
260
262
|
const NAME_ORDER = ["prefix", "given", "middle", "familyParticle", "family", "suffix"];
|
package/out/name.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"name.js","sourceRoot":"","sources":["../lib/name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"name.js","sourceRoot":"","sources":["../lib/name.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AA+D7C;;;;GAIG;AACH,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC;IACtB,QAAQ;IACR,IAAI;IACJ,MAAM;IACN,WAAW;IACX,MAAM;IACN,SAAS;IACT,MAAM;IACN,KAAK;IACL,SAAS;IACT,WAAW;IACX,cAAc;IACd,KAAK;IACL,KAAK;IACL,KAAK;IACL,QAA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software
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
5
|
-
*
|
|
6
|
-
* Canonicalizes organization names by removing legal designations. It normalizes DBA clauses plus punctuation and accents.
|
|
7
|
-
* It also folds connectives and leading articles. Jurisdiction adds local legal forms. Domain rules preserve
|
|
8
|
-
* ambiguous terms that could otherwise be stripped.
|
|
9
|
-
*/
|
|
10
1
|
/**
|
|
11
2
|
* A canonicalized organization name.
|
|
12
3
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../lib/organization.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../lib/organization.ts"],"names":[],"mappings":"AAeA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB;;OAEG;IACH,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CAClB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,YAAY,CAAA;AAExD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,iBAAiB,CAAA;CAC1B;AAqJD;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAC3C,KAAK,EAAE,MAAM,GAAG,IAAI,EACpB,OAAO,CAAC,EAAE,mBAAmB,GAC3B,gBAAgB,GAAG,IAAI,CAYzB"}
|
package/out/organization.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @license AGPL-3.0
|
|
4
|
-
* @author Teffen Ellis, et al.
|
|
4
|
+
* Canonicalizes organization names by removing legal designations.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
* It also folds connectives and leading articles.
|
|
8
|
-
*
|
|
6
|
+
* It normalizes DBA clauses plus punctuation and accents.
|
|
7
|
+
* It also folds connectives and leading articles.
|
|
8
|
+
*
|
|
9
|
+
* Jurisdiction adds local legal forms.
|
|
10
|
+
* Domain rules preserve ambiguous terms that could otherwise be stripped.
|
|
9
11
|
*/
|
|
10
12
|
import { foldForKey } from "@mailwoman/codex/address/key";
|
|
11
13
|
/**
|
|
@@ -71,7 +73,7 @@ const BASE_DESIGNATIONS = new Set([
|
|
|
71
73
|
]);
|
|
72
74
|
/**
|
|
73
75
|
* Jurisdiction-conditional legal forms (ISO 3166-1 alpha-2 → forms) added only when the jurisdiction
|
|
74
|
-
* is known, holding the collision-prone tokens (`pt`, `sca`, `scs`) that the base
|
|
76
|
+
* is known, holding the collision-prone tokens (`pt`, `sca`, `scs`) that the base mustn't strip.
|
|
75
77
|
*/
|
|
76
78
|
const JURISDICTION_DESIGNATIONS = {
|
|
77
79
|
ID: ["pt", "tbk", "ud"], // Perseroan Terbatas / Terbuka (listed) / Usaha Dagang
|
package/out/organization.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../lib/organization.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAuDzD;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC;IACjC,KAAK;IACL,cAAc;IACd,MAAM;IACN,aAAa;IACb,IAAI;IACJ,SAAS;IACT,KAAK;IACL,MAAM;IACN,KAAK;IACL,MAAM;IACN,IAAI;IACJ,KAAK;IACL,SAA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ean, plain-TypeScript record schema + per-field normalizers for the geocode-first matcher. Address-first: the canonical PostalAddress record composes parser components, the formatter's match key, and a resolved geocode; organization + contact records build on the same canonical record.",
|
|
5
5
|
"license": "AGPL-3.0-only OR LicenseRef-Commercial",
|
|
6
6
|
"repository": {
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@mailwoman/annotations": "11.
|
|
68
|
-
"@mailwoman/codex": "11.
|
|
69
|
-
"@mailwoman/spatial": "11.
|
|
67
|
+
"@mailwoman/annotations": "11.1.0",
|
|
68
|
+
"@mailwoman/codex": "11.1.0",
|
|
69
|
+
"@mailwoman/spatial": "11.1.0",
|
|
70
70
|
"spliterator": "^10.1.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|