@shankarkharel/profanity-lang-ne-rom 1.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.
@@ -0,0 +1,5 @@
1
+ import { LanguagePack } from '@shankarkharel/profanity-core';
2
+
3
+ declare const neRom: LanguagePack;
4
+
5
+ export { neRom as default, neRom };
@@ -0,0 +1,5 @@
1
+ import { LanguagePack } from '@shankarkharel/profanity-core';
2
+
3
+ declare const neRom: LanguagePack;
4
+
5
+ export { neRom as default, neRom };
package/dist/index.js ADDED
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ default: () => index_default,
24
+ neRom: () => neRom
25
+ });
26
+ module.exports = __toCommonJS(index_exports);
27
+
28
+ // src/ne.ts
29
+ var NE_RO_WORDS = [
30
+ "sale",
31
+ "pakhe",
32
+ "harami",
33
+ "chhoro",
34
+ "gandu",
35
+ "loda",
36
+ "bhainsko",
37
+ "kutta",
38
+ "madarchod",
39
+ "bhenchod",
40
+ "saala",
41
+ "saali",
42
+ "chutiya",
43
+ "jutho",
44
+ "tharki",
45
+ "nangaa",
46
+ "fokatko",
47
+ "dhor",
48
+ "bhokali",
49
+ "jhandi",
50
+ "kharab",
51
+ "nashila",
52
+ "nasha",
53
+ "sala"
54
+ ];
55
+
56
+ // src/index.ts
57
+ var OVERRIDES = {
58
+ // Example:
59
+ // "madarchod": { severity: 5, category: ["sexual", "insult"] },
60
+ };
61
+ function normalizeTerm(s) {
62
+ return s.trim().toLowerCase();
63
+ }
64
+ function uniq(arr) {
65
+ return Array.from(new Set(arr));
66
+ }
67
+ function toTermEntries(words) {
68
+ const normalized = uniq(words.map(normalizeTerm)).filter(Boolean);
69
+ return normalized.map((w) => {
70
+ const base = {
71
+ term: w,
72
+ severity: 3,
73
+ category: ["general"],
74
+ match: w.includes(" ") ? "phrase" : "word"
75
+ };
76
+ return OVERRIDES[w] ? { ...base, ...OVERRIDES[w] } : base;
77
+ });
78
+ }
79
+ var neRom = {
80
+ code: "ne-rom",
81
+ version: "0.1.0",
82
+ allowlist: ["assistant", "class"],
83
+ terms: toTermEntries(NE_RO_WORDS)
84
+ };
85
+ var index_default = neRom;
86
+ // Annotate the CommonJS export names for ESM import in node:
87
+ 0 && (module.exports = {
88
+ neRom
89
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,62 @@
1
+ // src/ne.ts
2
+ var NE_RO_WORDS = [
3
+ "sale",
4
+ "pakhe",
5
+ "harami",
6
+ "chhoro",
7
+ "gandu",
8
+ "loda",
9
+ "bhainsko",
10
+ "kutta",
11
+ "madarchod",
12
+ "bhenchod",
13
+ "saala",
14
+ "saali",
15
+ "chutiya",
16
+ "jutho",
17
+ "tharki",
18
+ "nangaa",
19
+ "fokatko",
20
+ "dhor",
21
+ "bhokali",
22
+ "jhandi",
23
+ "kharab",
24
+ "nashila",
25
+ "nasha",
26
+ "sala"
27
+ ];
28
+
29
+ // src/index.ts
30
+ var OVERRIDES = {
31
+ // Example:
32
+ // "madarchod": { severity: 5, category: ["sexual", "insult"] },
33
+ };
34
+ function normalizeTerm(s) {
35
+ return s.trim().toLowerCase();
36
+ }
37
+ function uniq(arr) {
38
+ return Array.from(new Set(arr));
39
+ }
40
+ function toTermEntries(words) {
41
+ const normalized = uniq(words.map(normalizeTerm)).filter(Boolean);
42
+ return normalized.map((w) => {
43
+ const base = {
44
+ term: w,
45
+ severity: 3,
46
+ category: ["general"],
47
+ match: w.includes(" ") ? "phrase" : "word"
48
+ };
49
+ return OVERRIDES[w] ? { ...base, ...OVERRIDES[w] } : base;
50
+ });
51
+ }
52
+ var neRom = {
53
+ code: "ne-rom",
54
+ version: "0.1.0",
55
+ allowlist: ["assistant", "class"],
56
+ terms: toTermEntries(NE_RO_WORDS)
57
+ };
58
+ var index_default = neRom;
59
+ export {
60
+ index_default as default,
61
+ neRom
62
+ };
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@shankarkharel/profanity-lang-ne-rom",
3
+ "version": "1.0.0",
4
+ "main": "dist/index.cjs",
5
+ "module": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.mjs",
11
+ "require": "./dist/index.cjs"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist",
16
+ "README.md",
17
+ "LICENSE"
18
+ ],
19
+ "scripts": {
20
+ "build": "tsup src/index.ts --format cjs,esm --dts --clean",
21
+ "test": "echo \"no tests\"",
22
+ "lint": "echo \"(add eslint later)\""
23
+ },
24
+ "dependencies": {
25
+ "@shankarkharel/profanity-core": "1.0.0"
26
+ },
27
+ "publishConfig": {
28
+ "access": "public"
29
+ },
30
+ "license": "MIT"
31
+ }