@stll/anonymize 1.4.0 → 1.4.1
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/dist/address-street-types.mjs +20 -1
- package/dist/allow-list.mjs +12 -0
- package/dist/amount-words.mjs +472 -36
- package/dist/generic-roles.mjs +1 -0
- package/dist/index.d.mts +11 -1
- package/dist/index.mjs +712 -102
- package/dist/index.mjs.map +1 -1
- package/dist/rolldown-runtime.mjs +13 -0
- package/dist/structural-single-cap-prefixes.mjs +99 -0
- package/dist/structural-single-cap-prefixes.mjs.map +1 -0
- package/dist/triggers.en.mjs +16 -1
- package/package.json +2 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll as t };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
//#region src/data/structural-single-cap-prefixes.json
|
|
2
|
+
var _comment = "Structural document-unit words that can precede a single-letter or letter-number marker before a legal form word, e.g. 'Schedule A LLC Members' or 'Exhibit A-1 LLC Agreement'. Lowercased; matched case-insensitively. Organised per-language; runtime unions all languages because match spans do not carry a language tag.";
|
|
3
|
+
var en = [
|
|
4
|
+
"annex",
|
|
5
|
+
"appendix",
|
|
6
|
+
"article",
|
|
7
|
+
"attachment",
|
|
8
|
+
"clause",
|
|
9
|
+
"exhibit",
|
|
10
|
+
"paragraph",
|
|
11
|
+
"part",
|
|
12
|
+
"schedule",
|
|
13
|
+
"section"
|
|
14
|
+
];
|
|
15
|
+
var cs = [
|
|
16
|
+
"bod",
|
|
17
|
+
"paragraf",
|
|
18
|
+
"podbod",
|
|
19
|
+
"ustanovení",
|
|
20
|
+
"článek"
|
|
21
|
+
];
|
|
22
|
+
var sk = [
|
|
23
|
+
"bod",
|
|
24
|
+
"hlava",
|
|
25
|
+
"oddiel",
|
|
26
|
+
"odsek",
|
|
27
|
+
"pododdiel",
|
|
28
|
+
"sekcia",
|
|
29
|
+
"časť",
|
|
30
|
+
"článok"
|
|
31
|
+
];
|
|
32
|
+
var de = [
|
|
33
|
+
"absatz",
|
|
34
|
+
"abschnitt",
|
|
35
|
+
"abteilung",
|
|
36
|
+
"anlage",
|
|
37
|
+
"anhang",
|
|
38
|
+
"artikel",
|
|
39
|
+
"kapitel",
|
|
40
|
+
"klausel",
|
|
41
|
+
"punkt",
|
|
42
|
+
"sektion",
|
|
43
|
+
"unterabschnitt",
|
|
44
|
+
"unterpunkt"
|
|
45
|
+
];
|
|
46
|
+
var es = [
|
|
47
|
+
"anexo",
|
|
48
|
+
"apartado",
|
|
49
|
+
"artículo",
|
|
50
|
+
"cláusula",
|
|
51
|
+
"sección"
|
|
52
|
+
];
|
|
53
|
+
var fr = [
|
|
54
|
+
"annexe",
|
|
55
|
+
"article",
|
|
56
|
+
"clause",
|
|
57
|
+
"paragraphe",
|
|
58
|
+
"partie",
|
|
59
|
+
"section"
|
|
60
|
+
];
|
|
61
|
+
var it = [
|
|
62
|
+
"allegato",
|
|
63
|
+
"appendice",
|
|
64
|
+
"articolo",
|
|
65
|
+
"clausola",
|
|
66
|
+
"paragrafo",
|
|
67
|
+
"sezione"
|
|
68
|
+
];
|
|
69
|
+
var pl = [
|
|
70
|
+
"aneksem",
|
|
71
|
+
"artykuł",
|
|
72
|
+
"paragraf",
|
|
73
|
+
"punkt",
|
|
74
|
+
"sekcja",
|
|
75
|
+
"załącznik"
|
|
76
|
+
];
|
|
77
|
+
var pt_br = [
|
|
78
|
+
"anexo",
|
|
79
|
+
"artigo",
|
|
80
|
+
"cláusula",
|
|
81
|
+
"parágrafo",
|
|
82
|
+
"seção"
|
|
83
|
+
];
|
|
84
|
+
var structural_single_cap_prefixes_default = {
|
|
85
|
+
_comment,
|
|
86
|
+
en,
|
|
87
|
+
cs,
|
|
88
|
+
sk,
|
|
89
|
+
de,
|
|
90
|
+
es,
|
|
91
|
+
fr,
|
|
92
|
+
it,
|
|
93
|
+
pl,
|
|
94
|
+
"pt-br": pt_br
|
|
95
|
+
};
|
|
96
|
+
//#endregion
|
|
97
|
+
export { _comment, cs, de, structural_single_cap_prefixes_default as default, en, es, fr, it, pl, pt_br as "pt-br", sk };
|
|
98
|
+
|
|
99
|
+
//# sourceMappingURL=structural-single-cap-prefixes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"structural-single-cap-prefixes.mjs","names":[],"sources":["../src/data/structural-single-cap-prefixes.json"],"sourcesContent":[""],"mappings":""}
|
package/dist/triggers.en.mjs
CHANGED
|
@@ -33,7 +33,22 @@ var triggers_en_default = [
|
|
|
33
33
|
{
|
|
34
34
|
"id": "en-jurisdiction",
|
|
35
35
|
"label": "address",
|
|
36
|
-
"strategy": {
|
|
36
|
+
"strategy": {
|
|
37
|
+
"type": "to-next-comma",
|
|
38
|
+
"maxLength": 30,
|
|
39
|
+
"stopWords": [
|
|
40
|
+
"or",
|
|
41
|
+
"and",
|
|
42
|
+
"in",
|
|
43
|
+
"sitting",
|
|
44
|
+
"shall",
|
|
45
|
+
"that",
|
|
46
|
+
"which",
|
|
47
|
+
"without",
|
|
48
|
+
"for",
|
|
49
|
+
"to"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
37
52
|
"triggers": [
|
|
38
53
|
"State of",
|
|
39
54
|
"Commonwealth of",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/anonymize",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Multi-layer PII detection and anonymization pipeline with regex, NER, deny lists, and coreference resolution",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"prepublishOnly": "bun run build",
|
|
33
33
|
"typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.test.json && tsc --noEmit -p tsconfig.wasm.json",
|
|
34
34
|
"test": "bun test --preload ./src/__test__/setup.ts",
|
|
35
|
+
"test:fast": "bun test --preload ./src/__test__/setup.ts src/__test__/*.test.ts",
|
|
35
36
|
"lint": "prettier --check . --ignore-path ../../.prettierignore",
|
|
36
37
|
"format": "prettier --write . --ignore-path ../../.prettierignore"
|
|
37
38
|
},
|