#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
TypeScript dockerhacktoberfestjavapdfpdf-converterpdf-editorpdf-manipulationpdf-mergerpdf-ocrpdf-toolspdf-web-appspdfmergerself-hosted
Multilingual classification packs (#8027)
Anthony Stirling3af4bae1e764
diff --git a/frontend/editor/src/proprietary/components/policies/classificationLocalPass.ts b/frontend/editor/src/proprietary/components/policies/classificationLocalPass.tsindex 11a7ebc3e3..127e758662 100644--- a/frontend/editor/src/proprietary/components/policies/classificationLocalPass.ts+++ b/frontend/editor/src/proprietary/components/policies/classificationLocalPass.ts@@ -126,14 +126,13 @@ async function classifyStub(const result = await classifyFileHeuristically(file, { explain: debug });const { labels } = result;const ms = Math.round(performance.now() - startedAt);- const verdict =- labels.length > 0- ? labels.join(", ")- : result.isEnglish- ? "no label"- : "no label (not English)";+ const scoredAgainst =+ result.packs.length > 0+ ? result.packs.join("+")+ : `core only, ${result.language ?? "language unknown"}`;+ const verdict = labels.length > 0 ? labels.join(", ") : "no label";console.debug(- `[Classify] ${fileName} -> ${verdict} (${result.confidence}, score ${result.score}, ${ms}ms)` ++ `[Classify] ${fileName} -> ${verdict} (${result.confidence}, score ${result.score}, ${scoredAgainst}, ${ms}ms)` +(alreadyMetered ? " [heal: not re-metered]" : ""),);if (debug && result.explain) logExplanation(fileName, result);@@ -177,7 +176,7 @@ function logExplanation(const ex = result.explain;if (!ex) return;console.groupCollapsed(- `[Classify] ${fileName} scoring (english=${ex.isEnglish}, lowText=${ex.lowText})`,+ `[Classify] ${fileName} scoring (language=${ex.language ?? "?"}${ex.assumed ? " assumed" : ""}, script=${ex.script ?? "?"}, packs=[${ex.packs.join(", ")}], lowText=${ex.lowText})`,);if (ex.candidates.length === 0) {console.log("no label scored above zero");diff --git a/frontend/editor/src/proprietary/components/policies/usePolicyAutoRun.batch.test.tsx b/frontend/editor/src/proprietary/components/policies/usePolicyAutoRun.batch.test.tsxindex 572afff8ac..a6744a7dd5 100644--- a/frontend/editor/src/proprietary/components/policies/usePolicyAutoRun.batch.test.tsx+++ b/frontend/editor/src/proprietary/components/policies/usePolicyAutoRun.batch.test.tsx@@ -207,7 +207,8 @@ beforeEach(() => {mocks.classify.mockResolvedValue({labels: ["Invoice"],confidence: "high",- isEnglish: true,+ language: "en",+ packs: ["en"],score: 5,});// Apply stub updates to the shared workspace, as the real reducer does.diff --git a/frontend/editor/src/proprietary/components/policies/usePolicyLocalPasses.test.tsx b/frontend/editor/src/proprietary/components/policies/usePolicyLocalPasses.test.tsxindex 59c402eb8f..be91cc90bb 100644--- a/frontend/editor/src/proprietary/components/policies/usePolicyLocalPasses.test.tsx+++ b/frontend/editor/src/proprietary/components/policies/usePolicyLocalPasses.test.tsx@@ -81,7 +81,11 @@ vi.mock("@app/services/fileStorage", () => ({},}));vi.mock("@app/services/heuristic/heuristicClassification", () => ({- classifyFileHeuristically: (file: File) => mocks.classify(file),+ classifyFileHeuristically: async (file: File) => ({+ language: "en",+ packs: ["en"],+ ...(await mocks.classify(file)),+ }),}));vi.mock("@app/services/automationMeter", () => ({meterAutomationRun: (payload: unknown) => mocks.meter(payload),diff --git a/frontend/editor/src/proprietary/services/heuristic/fixtures/lowConfidenceFixture.test.ts b/frontend/editor/src/proprietary/services/heuristic/fixtures/lowConfidenceFixture.test.tsindex 69b07979f1..7a4e4b1387 100644--- a/frontend/editor/src/proprietary/services/heuristic/fixtures/lowConfidenceFixture.test.ts+++ b/frontend/editor/src/proprietary/services/heuristic/fixtures/lowConfidenceFixture.test.ts@@ -36,20 +36,22 @@ describe("low-confidence-classification.pdf fixture", () => {allZone: EXTRACTED,};- it("is English, so it is not rejected before scoring", () => {- expect(classifyHeuristic(doc).isEnglish).toBe(true);+ it("is read as English, so the English pack scores it", async () => {+ const r = await classifyHeuristic(doc);+ expect(r.language).toBe("en");+ expect(r.packs).toEqual(["en"]);});- it("emits labels but is not trusted, so it must escalate", () => {- const r = classifyHeuristic(doc);+ it("emits labels but is not trusted, so it must escalate", async () => {+ const r = await classifyHeuristic(doc);expect(r.labels.length).toBeGreaterThan(0);expect(r.confidence).not.toBe("high");});- it("stays unsure because two document types score within the medium margin", () => {+ it("stays unsure because two document types score within the medium margin", async () => {// The margin is what holds this document at "low": "medium" needs >= 8 and "high" >= 15,// so a near-tie can't be promoted however high the raw scores go.- const r = classifyHeuristic(doc, { explain: true });+ const r = await classifyHeuristic(doc, { explain: true });const [first, second] = r.explain?.candidates ?? [];expect(first).toBeDefined();expect(second).toBeDefined();diff --git a/frontend/editor/src/proprietary/services/heuristic/heuristicClassification.ts b/frontend/editor/src/proprietary/services/heuristic/heuristicClassification.tsindex 180d7ea409..4502335955 100644--- a/frontend/editor/src/proprietary/services/heuristic/heuristicClassification.ts+++ b/frontend/editor/src/proprietary/services/heuristic/heuristicClassification.ts@@ -1,9 +1,7 @@-// Client-side classification entry point: load rules, extract the PDF, classify.+// Client-side classification entry point: extract the PDF, then classify it.-import {- ensureRulesLoaded,- classifyHeuristic,-} from "@app/services/heuristic/heuristicEngine";+import i18n from "i18next";+import { classifyHeuristic } from "@app/services/heuristic/heuristicEngine";import { extractHeuristicDoc } from "@app/services/heuristic/heuristicExtractor";import type { HeuristicResult } from "@app/services/heuristic/types";@@ -12,7 +10,9 @@ export async function classifyFileHeuristically(file: File,opts?: { explain?: boolean },): Promise<HeuristicResult> {- await ensureRulesLoaded();const doc = await extractHeuristicDoc(file, file.name);- return classifyHeuristic(doc, opts);+ return classifyHeuristic(doc, {+ ...opts,+ localeHint: i18n.language ?? undefined,+ });}diff --git a/frontend/editor/src/proprietary/services/heuristic/heuristicEngine.corpus.test.ts b/frontend/editor/src/proprietary/services/heuristic/heuristicEngine.corpus.test.tsindex db63823212..ec55d598cd 100644--- a/frontend/editor/src/proprietary/services/heuristic/heuristicEngine.corpus.test.ts+++ b/frontend/editor/src/proprietary/services/heuristic/heuristicEngine.corpus.test.ts@@ -25,7 +25,7 @@ interface Case {body: string[];}-const run = (c: Case) => {+const run = async (c: Case) => {let body = c.body.join("\n");let title = c.title;if (c.nbsp) {@@ -1146,7 +1146,7 @@ const CASES: Case[] = [],},{- expect: "",+ expect: "lease-agreement",file: "contrato.pdf",title: "CONTRATO DE ARRENDAMIENTO",body: [@@ -2391,7 +2391,7 @@ const CASES: Case[] = [],},{- expect: "",+ expect: "quote",file: "angebot_gartenpflege.pdf",title: "Angebot Gartenpflege",body: [@@ -2410,8 +2410,8 @@ const CASES: Case[] = [describe("heuristic engine broad corpus", () => {it.each(CASES.map((c) => [c.expect || `nothing (${c.file})`, c] as const))("labels a %s correctly",- (_label, c) => {- const r = run(c);+ async (_label, c) => {+ const r = await run(c);const detail = `expected ${c.expect || "no label"}, got [${r.labels.join(", ")}] (confidence ${r.confidence}, score ${r.score})`;if (c.expect === "") {expect(r.labels, detail).toEqual([]);diff --git a/frontend/editor/src/proprietary/services/heuristic/heuristicEngine.docs.test.ts b/frontend/editor/src/proprietary/services/heuristic/heuristicEngine.docs.test.tsindex 25d226035d..f0e66b9698 100644--- a/frontend/editor/src/proprietary/services/heuristic/heuristicEngine.docs.test.ts+++ b/frontend/editor/src/proprietary/services/heuristic/heuristicEngine.docs.test.ts@@ -11,7 +11,7 @@ beforeAll(async () => {await ensureRulesLoaded();});-function classify(+async function classify(title: string,body: string,fileName = "doc.pdf",@@ -38,8 +38,8 @@ describe("scoring explanations", () => {allZone: "Invoice Number: INV-9 Invoice Total: 950.00",};- it("returns candidates with per-rule signals when requested", () => {- const r = classifyHeuristic(doc, { explain: true });+ it("returns candidates with per-rule signals when requested", async () => {+ const r = await classifyHeuristic(doc, { explain: true });expect(r.labels[0]).toBe("invoice");const top = r.explain?.candidates[0];expect(top?.id).toBe("invoice");@@ -50,13 +50,13 @@ describe("scoring explanations", () => {expect(top?.signals.some((s) => s.includes("filename"))).toBe(true);});- it("omits the explanation by default", () => {- expect(classifyHeuristic(doc).explain).toBeUndefined();+ it("omits the explanation by default", async () => {+ expect((await classifyHeuristic(doc)).explain).toBeUndefined();});});describe("documents observed lost on upload (engine must label them)", () => {- it("labels a resume", () => {+ it("labels a resume", async () => {const body = ["CURRICULUM VITAE","Jane Doe [email protected] +44 7700 900123 London, United Kingdom",@@ -72,11 +72,11 @@ describe("documents observed lost on upload (engine must label them)", () => {"Education: BSc Computer Science, University of Manchester.","References available upon request.",].join("\n");- const r = classify("CURRICULUM VITAE", body, "resume_jane_doe.pdf");+ const r = await classify("CURRICULUM VITAE", body, "resume_jane_doe.pdf");expect(r.labels[0]).toBe("resume");});- it("labels a purchase order", () => {+ it("labels a purchase order", async () => {const body = ["PURCHASE ORDER","Purchase Order Number: PO-55231 Requisition Number: REQ-9910 Date: 2 April 2024",@@ -89,11 +89,11 @@ describe("documents observed lost on upload (engine must label them)", () => {"requisition number on the delivery note and on your invoice.","Authorised by: Procurement Department, Northwind Ltd.",].join("\n");- const r = classify("PURCHASE ORDER", body, "purchase_order.pdf");+ const r = await classify("PURCHASE ORDER", body, "purchase_order.pdf");expect(r.labels[0]).toBe("purchase-order");});- it("labels a master services agreement", () => {+ it("labels a master services agreement", async () => {const body = ["MASTER SERVICES AGREEMENT","This Master Services Agreement is made between the Client and the Service Provider and sets",@@ -108,7 +108,7 @@ describe("documents observed lost on upload (engine must label them)", () => {"other party that it receives under this agreement.","We are pleased to act for you and look forward to a productive working relationship.",].join("\n");- const r = classify(+ const r = await classify("MASTER SERVICES AGREEMENT",body,"service_agreement.pdf",diff --git a/frontend/editor/src/proprietary/services/heuristic/heuristicEngine.test.ts b/frontend/editor/src/proprietary/services/heuristic/heuristicEngine.test.tsindex dbbe78c441..cd71b0281d 100644--- a/frontend/editor/src/proprietary/services/heuristic/heuristicEngine.test.ts+++ b/frontend/editor/src/proprietary/services/heuristic/heuristicEngine.test.ts@@ -3,7 +3,7 @@import { beforeAll, describe, expect, it } from "vitest";import {classifyHeuristic,- detectEnglish,+ detectLanguage,ensureRulesLoaded,} from "@app/services/heuristic/heuristicEngine";import type { HeuristicDoc } from "@app/services/heuristic/types";@@ -12,7 +12,7 @@ beforeAll(async () => {await ensureRulesLoaded();});-function classify(title: string, body: string) {+async function classify(title: string, body: string) {const doc: HeuristicDoc = {fileName: "doc.pdf",pageCount: 1,@@ -25,7 +25,7 @@ function classify(title: string, body: string) {}describe("heuristic engine port fidelity", () => {- it("classifies an invoice as invoice", () => {+ it("classifies an invoice as invoice", async () => {const body = ["INVOICE","Acme Web Services Ltd",@@ -41,12 +41,12 @@ describe("heuristic engine port fidelity", () => {"Total Due: 1,116.00","Payment Terms: Net 30. Please quote the invoice number with payment.",].join("\n");- const r = classify("INVOICE", body);+ const r = await classify("INVOICE", body);expect(r.labels.length).toBeGreaterThan(0);expect(r.labels[0]).toBe("invoice");});- it("classifies a curriculum vitae as resume", () => {+ it("classifies a curriculum vitae as resume", async () => {const body = ["CURRICULUM VITAE","Jordan Ellis",@@ -61,12 +61,12 @@ describe("heuristic engine port fidelity", () => {"TypeScript, Java, React, cloud architecture, mentoring","References available on request.",].join("\n");- const r = classify("CURRICULUM VITAE", body);+ const r = await classify("CURRICULUM VITAE", body);expect(r.labels.length).toBeGreaterThan(0);expect(r.labels[0]).toBe("resume");});- it("classifies a boarding pass as ticket", () => {+ it("classifies a boarding pass as ticket", async () => {const body = ["BOARDING PASS","British Airways",@@ -79,12 +79,12 @@ describe("heuristic engine port fidelity", () => {"Booking Reference: XK9PLQ","Please be at the gate 45 minutes before departure.",].join("\n");- const r = classify("BOARDING PASS", body);+ const r = await classify("BOARDING PASS", body);expect(r.labels.length).toBeGreaterThan(0);expect(r.labels[0]).toBe("ticket");});- it("classifies an NDA as nda", () => {+ it("classifies an NDA as nda", async () => {const body = ["NON-DISCLOSURE AGREEMENT","This Mutual Non-Disclosure Agreement (the Agreement) is entered into",@@ -96,12 +96,12 @@ describe("heuristic engine port fidelity", () => {"4. Governing Law: This Agreement is governed by the laws of England and Wales.","Accepted and agreed by the authorised representatives of the parties.",].join("\n");- const r = classify("NON-DISCLOSURE AGREEMENT", body);+ const r = await classify("NON-DISCLOSURE AGREEMENT", body);expect(r.labels.length).toBeGreaterThan(0);expect(r.labels[0]).toBe("nda");});- it("does not classify a non-English (Spanish) document", () => {+ it("classifies a Spanish document with the Spanish pack", async () => {const body = ["CONTRATO DE ARRENDAMIENTO DE VIVIENDA","Este contrato de arrendamiento se celebra entre el arrendador y el",@@ -110,16 +110,18 @@ describe("heuristic engine port fidelity", () => {"condiciones que las partes acuerdan por el plazo de doce meses.","Ambas partes firman este documento segun la ley aplicable.",].join("\n");- const r = classify("CONTRATO DE ARRENDAMIENTO", body);- expect(r.isEnglish).toBe(false);- expect(r.labels).toHaveLength(0);+ const r = await classify("CONTRATO DE ARRENDAMIENTO", body);+ expect(r.language).toBe("es");+ expect(r.packs).toEqual(["es"]);+ expect(r.labels[0]).toBe("lease-agreement");+ expect(r.confidence).toBe("high");});- it("detects English prose", () => {+ it("detects English prose", async () => {const english ="This agreement is made between the parties and shall be governed by the laws" +" of England. The tenant agrees to pay the rent that is due under this" +" contract for the property.";- expect(detectEnglish(english).isEnglish).toBe(true);+ expect(detectLanguage(english).language).toBe("en");});});diff --git a/frontend/editor/src/proprietary/services/heuristic/heuristicEngine.ts b/frontend/editor/src/proprietary/services/heuristic/heuristicEngine.tsindex 8d2f795636..610f0f313c 100644--- a/frontend/editor/src/proprietary/services/heuristic/heuristicEngine.ts+++ b/frontend/editor/src/proprietary/services/heuristic/heuristicEngine.ts@@ -1,11 +1,18 @@// Heuristic (non-AI) document classifier: string/regex/structural scoring over-// extracted text, filename and metadata. Rules lazy-load as a separate chunk.+// extracted text, filename and metadata. Rules lazy-load per detected language.+import LANGUAGE_DATA from "@app/services/heuristic/rules/languages.json";+import {+ LANGUAGE_PACKS,+ loadCoreRules,+} from "@app/services/heuristic/rules/index";import type {HeuristicConfidence,HeuristicDoc,HeuristicExplanation,HeuristicResult,+ LanguageCandidate,+ LanguageDetection,} from "@app/services/heuristic/types";export type {@@ -13,6 +20,7 @@ export type {HeuristicDoc,HeuristicExplanation,HeuristicResult,+ LanguageDetection,};// --- scoring constants ---@@ -28,285 +36,104 @@ const SEC_FRAC = 0.5;const SEC_SIGNALS = 2;const SEC_MAX = 4;-const STOPWORDS = new Set<string>([- "the",- "and",- "of",- "to",- "in",- "is",- "that",- "for",- "on",- "with",- "as",- "are",- "this",- "be",- "by",- "at",- "from",- "or",- "an",- "not",- "your",- "you",- "we",- "has",- "have",- "will",- "was",- "were",- "been",- "their",- "they",- "which",- "any",- "all",- "may",- "shall",- "if",- "can",- "our",- "its",- "it",- "no",- "but",- "other",- "than",- "these",- "such",- "must",- "each",- "per",- "under",- "more",- "when",- "also",- "into",- "only",- "should",- "would",-]);--// Non-Latin scripts end English classification outright when they dominate.-const SCRIPT_RANGES: RegExp[] = [- /[一-鿿-ヿ]/g, // CJK + Kana- /[가-ᄀ-ᇿ]/g, // Hangul- /[Ѐ-ӿ]/g, // Cyrillic- /[-ۿݐ-ݿ]/g, // Arabic- /[Ͱ-Ϳ]/g, // Greek- /[ऀ-ॿ]/g, // Devanagari- /[-]/g, // Hebrew- /[-]/g, // Thai-];+const SECOND_PACK_BAR = 0.75;+const MAX_PACKS_CONFIDENT = 2;+const MAX_PACKS_UNSURE = 5;+const UNSURE_MAX_CHARS = 20000;+const NO_PACK_CONFIDENCE_CAP: HeuristicConfidence = "medium";-interface LatinProfile {- words: Set<string>;- dia: RegExp | null;-}--// Function-word and diacritic profiles for common Latin-script languages.-const LATIN_PROFILES: LatinProfile[] = [- {- words: new Set([- "el",- "los",- "las",- "que",- "para",- "una",- "por",- "según",- "más",- ]),- dia: /[áéíóúñ¿¡]/g,- },- {- words: new Set([- "le",- "les",- "des",- "une",- "est",- "pour",- "avec",- "dans",- "vous",- "votre",- "être",- "nous",- "cette",- "sont",- "été",- ]),- dia: /[àâçèéêëîïôùûœ]/g,- },- {- words: new Set([- "der",- "die",- "das",- "und",- "ist",- "für",- "mit",- "von",- "nicht",- "ein",- "eine",- "werden",- "wird",- "bei",- "sind",- "dem",- ]),- dia: /[äöüß]/g,- },- {- words: new Set([- "il",- "di",- "che",- "per",- "con",- "una",- "del",- "della",- "sono",- "questo",- "essere",- "più",- "nel",- "anche",- "gli",- ]),- dia: /[àèéìòù]/g,- },- {- words: new Set([- "os",- "as",- "que",- "para",- "com",- "uma",- "por",- "são",- "não",- "você",- "está",- "mais",- ]),- dia: /[ãõçáéíóúâêô]/g,- },- {- words: new Set([- "het",- "een",- "van",- "voor",- "met",- "aan",- "niet",- "zijn",- "wordt",- "deze",- "als",- "bij",- "ook",- "naar",- ]),- dia: null,- },- {- words: new Set([- "och",- "att",- "det",- "som",- "på",- "är",- "av",- "för",- "med",- "den",- "till",- "inte",- "har",- "ett",- "du",- ]),- dia: /[åäö]/g,- },- {- words: new Set([- "nie",- "jest",- "się",- "że",- "oraz",- "dla",- "przez",- "lub",- "być",- "może",- "przy",- "jak",- ]),- dia: /[ąćęłńśźż]/g,- },- {- words: new Set([- "ve",- "bir",- "bu",- "için",- "ile",- "olarak",- "olan",- "gibi",- "daha",- "çok",- "her",- "kadar",- "sonra",- ]),- dia: /[çğışöü]/g,- },-];+// Language-neutral structural patterns. Anything with a word in it lives in+// `rules/`; these are digits, punctuation and glyph shapes.+const NUMERIC_TOKEN = new RegExp("^[\\d$£€.,%-]+$");+const DIGIT = /\d/;+const UNDERSCORE4 = /_{4,}/;+const CHECKBOX = /[☐☑□■]\s/;+const DOT_LEADER = /\.{5,}\s*\d+\s*$/;+const BULLET = /^[•▪◦*-]\s+\S/;+const URL = /https?:\/\/|www\./gi;+const CITATION = /\[\d{1,3}\]|\(\d{4}\)/;-// detectEnglish helper patterns (global for counting; \p{L} needs the u flag).const LETTERS = /\p{L}/gu;const LATIN_LETTER = /[a-z]/gi;const WORD = /[\p{L}']+/gu;// ASCII whitespace plus the no-break spaces pdf.js extraction commonly emits.// oxlint-disable-next-line no-control-regex -- vertical tab is intentional ASCII whitespace-const WHITESPACE = /[\t\n\x0B\f\r \u00A0\u2007\u202F]+/g;+const WHITESPACE = /[\t\n\x0B\f\r ]+/g;+const CURLY_APOSTROPHE = /[‘’]/g;+const COMBINING_MARKS = /[\u0300-\u036F]/g;+const FOLD_PAIRS: [RegExp, string][] = [+ [/ß/g, "ss"],+ [/æ/g, "ae"],+ [/œ/g, "oe"],+ [/ø/g, "o"],+ [/ł/g, "l"],+ [/đ|ð/g, "d"],+ [/ı/g, "i"],+ [/þ/g, "th"],+];+const LIGATURE_FI = /fi/g;+const LIGATURE_FL = /fl/g;-// Structural signal patterns. Boolean-presence ones stay non-global (safe .test()),-// counting ones are global (used via countAll). Currency symbols are \u-escaped.-const CURRENCY = new RegExp(- "[$£€]\\s?\\d[\\d,.]*|\\d[\\d,.]*\\s?(usd|gbp|eur)\\b",- "gi",+interface ScriptGroup {+ id: string;+ range: RegExp;+ languages: string[];+}+interface LanguageProfile {+ language: string;+ words: Set<string>;+ chars: RegExp | null;+}++interface RawScript {+ id?: unknown;+ range?: unknown;+ languages?: unknown;+}+interface RawProfile {+ language?: unknown;+ words?: unknown;+ chars?: unknown;+}+interface LanguagesFile {+ english?: { words?: unknown };+ scripts?: RawScript[];+ latin?: { languages?: unknown };+ profiles?: RawProfile[];+}++const languages = LANGUAGE_DATA as LanguagesFile;++const ENGLISH_WORDS = new Set<string>(+ strings(languages.english?.words).map((w) => fold(w.toLowerCase())),+);++const SCRIPTS: ScriptGroup[] = (languages.scripts ?? []).flatMap((s) => {+ const range = compileRegex(str(s.range), "g");+ const langs = strings(s.languages);+ if (range == null || langs.length === 0) return [];+ return [{ id: str(s.id) ?? langs[0], range, languages: langs }];+});++const LATIN_LANGUAGES: string[] = strings(languages.latin?.languages);++const PROFILES = new Map<string, LanguageProfile>(+ (languages.profiles ?? []).flatMap((p) => {+ const language = str(p.language);+ if (language == null) return [];+ return [+ [+ language,+ {+ language,+ words: new Set(strings(p.words).map((w) => fold(w.toLowerCase()))),+ chars: compileRegex(str(p.chars), "g"),+ },+ ] as const,+ ];+ }),);-const NUMERIC_TOKEN = new RegExp("^[\\d$£€.,%-]+$");-const DIGIT = /\d/;-const FORM_LABEL = /^[A-Za-z][A-Za-z /()&']{2,30}:\s*$/;-const UNDERSCORE4 = /_{4,}/;-const CHECKBOX = /[☐☑□■]\s/;-const DOT_LEADER = /\.{5,}\s*\d+\s*$/;-const BULLET = /^[•▪◦*-]\s+\S/;-const URL = /https?:\/\/|www\./gi;-const TOC = /table of contents/i;-const SIG1 = /\b(signature|signed by|authorized signature|\/s\/)\b/i;-const SIG2 = /_{6,}\s*\n\s*(date|name|sign)/i;-const REF1 = /\b(references|bibliography)\b/i;-const REF2 = /\[\d{1,3}\]|\(\d{4}\)/;-const EMAIL_FROM = /\bfrom:\s.+\n(.*\n){0,3}?\s*(to|sent|date):\s/i;-const EMAIL_SUBJ = /subject:\s/i;-const ADDRESS = /\b\d{5}(-\d{4})?\b|\b[A-Z]{1,2}\d{1,2}[A-Z]?\s?\d[A-Z]{2}\b/g;// --- prepared rule model ---interface Phrase {@@ -352,7 +179,16 @@ interface Prior {max: number | null;}-// Raw JSON shapes (loose - the pack is authored by hand).+type SignalPatterns = Map<string, RegExp[]>;++interface PreparedSet {+ labels: PreparedLabel[];+ priors: Map<string, Prior>;+ signals: SignalPatterns;+ packs: string[];+}++// Raw JSON shapes (the rule files are authored by hand).interface RawRule {text?: unknown;pattern?: unknown;@@ -372,36 +208,152 @@ interface RawLabel {negatives?: RawRule[];structural?: RawRule[];}-interface RulesFile {+interface RawRules {labels?: RawLabel[];priors?: Record<string, unknown>;+ patterns?: Record<string, RawRule[]>;}-let PREPARED: PreparedLabel[] | null = null;-let PRIORS: Map<string, Prior> | null = null;-let loadPromise: Promise<void> | null = null;+const RULE_KINDS = [+ "phrases",+ "regexes",+ "filenames",+ "metadata",+ "negatives",+ "structural",+] as const;++let CORE: RawRules | null = null;+let corePromise: Promise<RawRules> | null = null;+const PACKS = new Map<string, RawRules>();+const packPromises = new Map<string, Promise<RawRules>>();+const SETS = new Map<string, PreparedSet>();++function unwrap(mod: unknown): RawRules {+ const withDefault = mod as { default?: RawRules };+ return withDefault.default ?? (mod as RawRules);+}-/** Load and prepare the rules pack once. Must resolve before classifyHeuristic. */-export async function ensureRulesLoaded(): Promise<void> {- if (PREPARED && PRIORS) return;- if (!loadPromise) {- loadPromise = import("@app/services/heuristic/heuristicRules.json").then(+function loadCore(): Promise<RawRules> {+ if (CORE != null) return Promise.resolve(CORE);+ if (corePromise == null) {+ corePromise = loadCoreRules().then((mod) => {- const root = (mod as { default?: RulesFile }).default ?? mod;- PREPARED = prepare(root.labels ?? []);- PRIORS = loadPriors(root.priors ?? {});+ CORE = unwrap(mod);+ return CORE;},(err) => {// A failed chunk load (flaky network) must not poison later attempts.- loadPromise = null;+ corePromise = null;throw err;},);}- await loadPromise;+ return corePromise;+}++function loadPack(language: string): Promise<RawRules | null> {+ const existing = PACKS.get(language);+ if (existing != null) return Promise.resolve(existing);+ const loader = LANGUAGE_PACKS[language];+ if (loader == null) return Promise.resolve(null);+ let pending = packPromises.get(language);+ if (pending == null) {+ pending = loader().then(+ (mod) => {+ const pack = unwrap(mod);+ PACKS.set(language, pack);+ return pack;+ },+ (err) => {+ packPromises.delete(language);+ throw err;+ },+ );+ packPromises.set(language, pending);+ }+ return pending;+}++export async function ensureRulesLoaded(+ langs: readonly string[] = ["en"],+): Promise<void> {+ await Promise.all([loadCore(), ...langs.map((l) => loadPack(l))]);+}++// --- merging and preparation ---++function mergeRaw(core: RawRules, packs: RawRules[]): RawRules {+ if (packs.length === 0) return core;++ const byId = new Map<string, RawLabel>();+ const order: string[] = [];+ for (const label of core.labels ?? []) {+ const id = str(label.id);+ if (id == null) continue;+ byId.set(id, { ...label });+ order.push(id);+ }++ for (const pack of packs) {+ for (const label of pack.labels ?? []) {+ const id = str(label.id);+ const target = id == null ? undefined : byId.get(id);+ if (target == null) continue;+ for (const kind of RULE_KINDS) {+ const extra = label[kind];+ if (extra == null || extra.length === 0) continue;+ target[kind] = [...(target[kind] ?? []), ...extra];+ }+ }+ }++ const patterns: Record<string, RawRule[]> = {};+ for (const source of [core, ...packs]) {+ for (const [group, rules] of Object.entries(source.patterns ?? {})) {+ patterns[group] = [...(patterns[group] ?? []), ...rules];+ }+ }++ return {+ labels: order.map((id) => byId.get(id)!),+ priors: core.priors,+ patterns,+ };}-// --- Preparation ---+function buildSet(core: RawRules, langs: string[]): PreparedSet {+ const key = langs.join("+");+ const cached = SETS.get(key);+ if (cached != null) return cached;++ const packs = langs.flatMap((l) => {+ const pack = PACKS.get(l);+ return pack == null ? [] : [pack];+ });+ const merged = mergeRaw(core, packs);+ const set: PreparedSet = {+ labels: prepare(merged.labels ?? []),+ priors: loadPriors(merged.priors ?? {}),+ signals: prepareSignals(merged.patterns ?? {}),+ packs: langs,+ };+ SETS.set(key, set);+ return set;+}++function prepareSignals(groups: Record<string, RawRule[]>): SignalPatterns {+ const out: SignalPatterns = new Map();+ for (const [group, rules] of Object.entries(groups)) {+ const compiled: RegExp[] = [];+ for (const rule of rules) {+ const re = compileRegex(str(rule.pattern), flags(rule));+ if (re != null) compiled.push(re);+ }+ if (compiled.length > 0) out.set(group, compiled);+ }+ return out;+}function prepare(labels: RawLabel[]): PreparedLabel[] {const out: PreparedLabel[] = [];@@ -521,6 +473,191 @@ export function compileRegex(}}+// --- language identification ---++const MIN_WORDS_FOR_FOREIGN = 12;+const MIN_DISTINCTIVE_CHARS = 3;+const MIN_WORD_HITS = 2;+const SCRIPT_SHARE = 0.25;++export function detectLanguage(text: string): LanguageDetection {+ const raw = nz(text);+ const letters = countAll(LETTERS, raw);+ if (letters < 25) {+ return {+ language: null,+ script: null,+ candidates: [],+ assumed: false,+ lowText: true,+ };+ }++ const words = allMatches(WORD, normalize(raw));+ const totalWords = Math.max(words.length, 1);++ for (const script of SCRIPTS) {+ if (countAll(script.range, raw) / letters <= SCRIPT_SHARE) continue;+ if (script.languages.length === 1) {+ const only = script.languages[0];+ return {+ language: only,+ script: script.id,+ candidates: [{ language: only, score: 1 }],+ assumed: false,+ lowText: false,+ };+ }+ const candidates = rankLanguages(raw, words, totalWords, script.languages);+ return {+ language: candidates[0]?.language ?? script.languages[0],+ script: script.id,+ candidates,+ assumed: false,+ lowText: false,+ };+ }++ const latinRatio = countAll(LATIN_LETTER, fold(raw)) / letters;+ const lowText = totalWords < 30;++ let englishHits = 0;+ const englishSeen = new Set<string>();+ for (const w of words) {+ if (ENGLISH_WORDS.has(w)) {+ englishHits++;+ englishSeen.add(w);+ }+ }+ const englishScore = englishHits / totalWords;++ const candidates = rankLanguages(raw, words, totalWords, LATIN_LANGUAGES);+ const best = candidates[0];+ const bestProfile = best == null ? null : PROFILES.get(best.language);+ let bestDistinct = 0;+ if (bestProfile != null) {+ const seen = new Set<string>();+ for (const w of words) if (bestProfile.words.has(w)) seen.add(w);+ bestDistinct = seen.size;+ }+ const bestChars =+ bestProfile?.chars == null ? 0 : countAll(bestProfile.chars, raw);+ const bestRatio =+ bestProfile == null ? 0 : countWords(words, bestProfile).total / totalWords;++ // Affirmative evidence of a specific other language, not merely an absence of+ // English: a shared function word or stray accent must not unseat English.+ const foreignEvidence = bestDistinct >= 3 || bestChars >= 6;+ const foreignWins =+ latinRatio >= 0.7 &&+ totalWords >= MIN_WORDS_FOR_FOREIGN &&+ foreignEvidence &&+ (bestChars >= 3 || bestRatio >= 0.1) &&+ (best?.score ?? 0) > englishScore * 1.2 &&+ (englishScore < 0.04 || bestRatio > englishScore * 1.5);++ if (foreignWins) {+ return {+ language: best?.language ?? null,+ script: "latin",+ candidates,+ assumed: false,+ lowText,+ };+ }++ const bar = lowText ? 0.03 : 0.045;+ const englishProven =+ latinRatio >= 0.75 &&+ englishScore >= bar &&+ englishSeen.size >= MIN_WORD_HITS;+ const englishAssumed = latinRatio >= 0.75 && !foreignEvidence;+ if (!englishProven && !englishAssumed) {+ return {+ language: null,+ script: latinRatio >= 0.7 ? "latin" : null,+ candidates,+ assumed: false,+ lowText,+ };+ }+ return {+ language: "en",+ script: "latin",+ candidates: [{ language: "en", score: englishScore }, ...candidates],+ assumed: !englishProven,+ lowText,+ };+}++function countWords(+ words: string[],+ profile: LanguageProfile,+): { total: number; distinct: number } {+ let total = 0;+ const seen = new Set<string>();+ for (const w of words) {+ if (profile.words.has(w)) {+ total++;+ seen.add(w);+ }+ }+ return { total, distinct: seen.size };+}++function rankLanguages(+ raw: string,+ words: string[],+ totalWords: number,+ candidates: readonly string[],+): LanguageCandidate[] {+ const ranked: (LanguageCandidate & { tiebreak: number })[] = [];+ for (const language of candidates) {+ const profile = PROFILES.get(language);+ if (profile == null) continue;+ const chars = profile.chars == null ? 0 : countAll(profile.chars, raw);+ const charEvidence = chars >= MIN_DISTINCTIVE_CHARS ? chars : 0;+ const hits = countWords(words, profile);+ if (hits.distinct < MIN_WORD_HITS && charEvidence === 0) continue;+ const ratio = hits.total / totalWords;+ const score = ratio + Math.min(charEvidence / totalWords, 0.15) * 6;+ const tiebreak = chars / totalWords;+ if (score > 0 || tiebreak > 0) ranked.push({ language, score, tiebreak });+ }+ ranked.sort((a, b) => b.score - a.score || b.tiebreak - a.tiebreak);+ return ranked.map(({ language, score }) => ({ language, score }));+}++function packsFor(+ detection: LanguageDetection,+ chars: number,+ localeHint?: string,+): string[] {+ const ranked =+ detection.candidates.length > 0+ ? detection.candidates+ : detection.language != null+ ? [{ language: detection.language, score: 1 }]+ : [];+ const best = ranked[0]?.score ?? 0;+ const unsure =+ (detection.assumed || detection.lowText) && chars <= UNSURE_MAX_CHARS;+ const max = unsure ? MAX_PACKS_UNSURE : MAX_PACKS_CONFIDENT;+ const bar = detection.assumed ? 0 : best * SECOND_PACK_BAR;+ const out: string[] = [];+ if (detection.assumed && localeHint != null) {+ const hinted = localeHint.slice(0, 2).toLowerCase();+ if (hinted !== "en" && hinted in LANGUAGE_PACKS) out.push(hinted);+ }+ for (const candidate of ranked) {+ if (out.length >= max) break;+ if (candidate.score < bar) break;+ if (!(candidate.language in LANGUAGE_PACKS)) continue;+ if (!out.includes(candidate.language)) out.push(candidate.language);+ }+ return out;+}+// --- Public API ---interface ScoredLabel {@@ -538,12 +675,20 @@ const EXPLAIN_SIGNALS = 12;const fmt = (n: number) => Math.round(n * 10) / 10;function toExplanation(- en: { isEnglish: boolean; lowText: boolean },+ detection: LanguageDetection,+ packs: string[],scored: ScoredLabel[],): HeuristicExplanation {return {- isEnglish: en.isEnglish,- lowText: en.lowText,+ language: detection.language,+ script: detection.script,+ assumed: detection.assumed,+ lowText: detection.lowText,+ packs,+ languageCandidates: detection.candidates.map((c) => ({+ language: c.language,+ score: fmt(c.score * 100) / 100,+ })),candidates: scored.slice(0, EXPLAIN_CANDIDATES).map((s) => ({id: s.label.id,emit: s.label.emit,@@ -554,30 +699,25 @@ function toExplanation(};}-/** Classify a document; returns emitted label ids (primary + secondaries, capped at 5). */-export function classifyHeuristic(+export async function classifyHeuristic(doc: HeuristicDoc,+ opts?: { explain?: boolean; localeHint?: string },+): Promise<HeuristicResult> {+ const detection = detectLanguage(doc.allZone);+ const wanted = packsFor(detection, nz(doc.allZone).length, opts?.localeHint);+ const core = await loadCore();+ await Promise.all(wanted.map((l) => loadPack(l)));+ const loaded = wanted.filter((l) => PACKS.has(l));+ return score(doc, buildSet(core, loaded), detection, opts);+}++function score(+ doc: HeuristicDoc,+ set: PreparedSet,+ detection: LanguageDetection,opts?: { explain?: boolean },): HeuristicResult {- if (!PREPARED || !PRIORS) {- throw new Error(- "Heuristic rules not loaded; await ensureRulesLoaded() before classifyHeuristic().",- );- }const explain = opts?.explain === true;-- const en = detectEnglish(doc.allZone);- // Non-English with real text: honestly out of scope for the English heuristics.- if (!en.isEnglish && !en.lowText) {- return {- labels: [],- confidence: "none",- score: 0,- isEnglish: false,- ...(explain ? { explain: toExplanation(en, []) } : {}),- };- }-const titleRaw = nz(doc.titleZone);const firstRaw = nz(doc.firstZone);const anyRaw = nz(doc.allZone);@@ -587,10 +727,10 @@ export function classifyHeuristic(const fileNameLower = nz(doc.fileName).toLowerCase();const meta = doc.meta ?? {};const metaAll = Object.values(meta).join(" \n ");- const struct = computeStructural(doc);+ const struct = computeStructural(doc, set.signals);const scored: ScoredLabel[] = [];- for (const label of PREPARED) {+ for (const label of set.labels) {let score = 0;let distinct = 0;const sig: string[] | null = explain ? [] : null;@@ -679,7 +819,7 @@ export function classifyHeuristic(}if (score > 0) {- const prior = pagePriorMultiplier(label.id, doc.pageCount);+ const prior = pagePriorMultiplier(set.priors, label.id, doc.pageCount);if (prior !== 1) sig?.push(`page-prior x${fmt(prior)}`);score *= prior;scored.push({ label, score, distinct, signals: sig });@@ -709,28 +849,26 @@ export function classifyHeuristic(confidence = "low";}}+ if (set.packs.length === 0 && confidence === "high") {+ confidence = NO_PACK_CONFIDENCE_CAP;+ }const roundedScore = Math.round(s1);- const explanation = explain ? { explain: toExplanation(en, scored) } : {};+ const explanation = explain+ ? { explain: toExplanation(detection, set.packs, scored) }+ : {};+ const base = {+ confidence,+ score: roundedScore,+ language: detection.language,+ packs: set.packs,+ ...explanation,+ };if (top == null || confidence === "none") {- return {- labels: [],- confidence: "none",- score: roundedScore,- isEnglish: en.isEnglish,- ...explanation,- };+ return { ...base, labels: [], confidence: "none" };}// Internal-only winner (book, menu...): suppress output rather than mislabel.- if (!top.label.emit) {- return {- labels: [],- confidence,- score: roundedScore,- isEnglish: en.isEnglish,- ...explanation,- };- }+ if (!top.label.emit) return { ...base, labels: [] };const labels: string[] = [top.label.id];for (let i = 1; i < scored.length && labels.length < 5; i++) {@@ -745,13 +883,7 @@ export function classifyHeuristic(labels.push(s.label.id);}}- return {- labels,- confidence,- score: roundedScore,- isEnglish: en.isEnglish,- ...explanation,- };+ return { ...base, labels };}/** True when the top match cleared the high-confidence bar. */@@ -764,77 +896,35 @@ export function isDefinitive(r: HeuristicResult): boolean {return isHighConfidence(r) && r.labels.length > 0;}-// --- English detection ---+// --- Structural signals ----interface EnglishResult {- isEnglish: boolean;- lowText: boolean;+function anyMatch(+ signals: SignalPatterns,+ group: string,+ hay: string,+): boolean {+ const patterns = signals.get(group);+ if (patterns == null) return false;+ for (const re of patterns) if (countRegex(re, hay) > 0) return true;+ return false;}-export function detectEnglish(text: string): EnglishResult {- const raw = nz(text);- const letters = countAll(LETTERS, raw);- if (letters < 25) return { isEnglish: false, lowText: true };-- for (const re of SCRIPT_RANGES) {- const hits = countAll(re, raw);- if (hits / letters > 0.25) return { isEnglish: false, lowText: false };- }-- const latinRatio = countAll(LATIN_LETTER, raw) / letters;- const words = allMatches(WORD, normalize(raw));- const totalWords = Math.max(words.length, 1);- let enHits = 0;- for (const w of words) if (STOPWORDS.has(w)) enHits++;- const stopRatio = enHits / totalWords;-- let bestScore = 0;- let bestRatio = 0;- let bestDistinct = 0;- let bestDia = 0;- for (const profile of LATIN_PROFILES) {- let hits = 0;- const distinct = new Set<string>();- for (const w of words) {- if (profile.words.has(w)) {- hits++;- distinct.add(w);- }- }- const diaCount = profile.dia == null ? 0 : countAll(profile.dia, raw);- const ratio = hits / totalWords;- const score = ratio + Math.min(diaCount / totalWords, 0.15) * 6;- if (score > bestScore) {- bestScore = score;- bestRatio = ratio;- bestDistinct = distinct.size;- bestDia = diaCount;- }- }-- const lowText = totalWords < 30;- const nonEnglish =- latinRatio >= 0.7 &&- totalWords >= 12 &&- (bestDistinct >= 3 || bestDia >= 6) &&- (bestDia >= 3 || bestRatio >= 0.1) &&- bestScore > stopRatio * 1.2 &&- (stopRatio < 0.04 || bestRatio > stopRatio * 1.5);- if (nonEnglish) return { isEnglish: false, lowText };-- const bar = lowText ? 0.03 : 0.045;- // Data-dense docs (tickets, itineraries, prescriptions) are mostly names and numbers with few- // function words in ANY language; reject stop-poor text only on affirmative foreign evidence.- const foreignEvidence = bestDistinct >= 3 || bestDia >= 6;- return {- isEnglish: latinRatio >= 0.75 && (stopRatio >= bar || !foreignEvidence),- lowText,- };+function countGroup(+ signals: SignalPatterns,+ group: string,+ hay: string,+): number {+ const patterns = signals.get(group);+ if (patterns == null) return 0;+ let total = 0;+ for (const re of patterns) total += countAll(re, hay);+ return total;}-// --- Structural signals -----function computeStructural(doc: HeuristicDoc): Record<string, number> {+function computeStructural(+ doc: HeuristicDoc,+ signals: SignalPatterns,+): Record<string, number> {const all = nz(doc.allZone);const lines: string[] = [];for (const l of all.split("\n")) {@@ -847,15 +937,21 @@ function computeStructural(doc: HeuristicDoc): Record<string, number> {}const totalTokens = Math.max(tokens.length, 1);- const currency = countAll(CURRENCY, all);+ const currency = countGroup(signals, "currency", all);let numericTokens = 0;for (const t of tokens) {if (NUMERIC_TOKEN.test(t) && DIGIT.test(t)) numericTokens++;}+ const formLabels = signals.get("form_label") ?? [];let formLines = 0;for (const l of lines) {- if (FORM_LABEL.test(l) || UNDERSCORE4.test(l) || CHECKBOX.test(l))+ if (+ UNDERSCORE4.test(l) ||+ CHECKBOX.test(l) ||+ formLabels.some((re) => countRegex(re, l) > 0)+ ) {formLines++;+ }}let dotLeaders = 0;for (const l of lines) if (DOT_LEADER.test(l)) dotLeaders++;@@ -869,21 +965,35 @@ function computeStructural(doc: HeuristicDoc): Record<string, number> {s["currency_heavy"] = currency >= 8 ? 1.0 : Math.min(currency / 8.0, 1.0);s["number_table"] = numericTokens / totalTokens >= 0.22 ? 1.0 : 0.0;s["form_like"] = formLines >= 6 ? 1.0 : formLines >= 3 ? 0.5 : 0.0;- s["toc"] = TOC.test(all) || dotLeaders >= 5 ? 1.0 : 0.0;- s["signature_block"] = SIG1.test(tail) || SIG2.test(tail) ? 1.0 : 0.0;+ s["toc"] = anyMatch(signals, "toc", all) || dotLeaders >= 5 ? 1.0 : 0.0;+ s["signature_block"] =+ anyMatch(signals, "signature", tail) ||+ anyMatch(signals, "signature_form", tail)+ ? 1.0+ : 0.0;s["references_section"] =- REF1.test(last4000) && REF2.test(last4000) ? 1.0 : 0.0;+ anyMatch(signals, "references", last4000) && CITATION.test(last4000)+ ? 1.0+ : 0.0;s["short_doc"] = doc.pageCount > 0 && doc.pageCount <= 2 ? 1.0 : 0.0;s["long_doc"] = doc.pageCount >= 40 ? 1.0 : 0.0;s["bullet_heavy"] = bullets >= 12 ? 1.0 : bullets >= 6 ? 0.5 : 0.0;- s["email_headers"] = EMAIL_FROM.test(all) && EMAIL_SUBJ.test(all) ? 1.0 : 0.0;+ s["email_headers"] =+ anyMatch(signals, "email_from", all) &&+ anyMatch(signals, "email_subject", all)+ ? 1.0+ : 0.0;s["url_heavy"] = urls >= 6 ? 1.0 : 0.0;- s["address_block"] = countAll(ADDRESS, all) >= 2 ? 1.0 : 0.0;+ s["address_block"] = countGroup(signals, "address", all) >= 2 ? 1.0 : 0.0;return s;}-function pagePriorMultiplier(labelId: string, pageCount: number): number {- const prior = PRIORS!.get(labelId);+function pagePriorMultiplier(+ priors: Map<string, Prior>,+ labelId: string,+ pageCount: number,+): number {+ const prior = priors.get(labelId);if (prior == null || pageCount < 1) return 1;if (prior.max != null && pageCount > prior.max) {return Math.max(0.3, prior.max / pageCount);@@ -903,22 +1013,30 @@ function num(v: unknown): number {}function str(v: unknown): string | null {- return typeof v === "string" ? v : null;+ return typeof v === "string" && v.length > 0 ? v : null;}-// Curly apostrophes and fi/fl ligatures survive pdf.js extraction in many PDFs;-// fold them to ASCII so rule phrases authored with ' / fi / fl still match.-const CURLY_APOSTROPHE = /[\u2018\u2019]/g;-const LIGATURE_FI = /\uFB01/g;-const LIGATURE_FL = /\uFB02/g;+function strings(v: unknown): string[] {+ return Array.isArray(v)+ ? v.filter((x): x is string => typeof x === "string")+ : [];+}function normalize(text: string | null | undefined): string {- return nz(text)- .toLowerCase()- .replace(CURLY_APOSTROPHE, "'")- .replace(LIGATURE_FI, "fi")- .replace(LIGATURE_FL, "fl")- .replace(WHITESPACE, " ");+ return fold(+ nz(text)+ .toLowerCase()+ .replace(CURLY_APOSTROPHE, "'")+ .replace(LIGATURE_FI, "fi")+ .replace(LIGATURE_FL, "fl")+ .replace(WHITESPACE, " "),+ );+}++function fold(text: string): string {+ let out = text.normalize("NFD").replace(COMBINING_MARKS, "");+ for (const [re, to] of FOLD_PAIRS) out = out.replace(re, to);+ return out;}function damp(count: number): number {@@ -929,23 +1047,25 @@ function damp(count: number): number {function countOccurrences(haystack: string, needle: string | null): number {if (needle == null || needle.length === 0) return 0;let count = 0;- let idx = haystack.indexOf(needle);- while (idx !== -1 && count < 12) {+ let from = 0;+ for (;;) {+ const at = haystack.indexOf(needle, from);+ if (at < 0) break;count++;- idx = haystack.indexOf(needle, idx + needle.length);+ from = at + needle.length;}return count;}-// Non-overlapping matches capped at 12.function countRegex(re: RegExp | null, text: string | null): number {if (re == null || text == null || text.length === 0) return 0;re.lastIndex = 0;let count = 0;- let m: RegExpExecArray | null;- while (count < 12 && (m = re.exec(text)) !== null) {+ for (;;) {+ const m = re.exec(text);+ if (m == null) break;count++;- if (m.index === re.lastIndex) re.lastIndex++; // advance past zero-width match+ if (m.index === re.lastIndex) re.lastIndex++;}return count;}@@ -954,8 +1074,9 @@ function countAll(re: RegExp, text: string | null): number {if (text == null || text.length === 0) return 0;re.lastIndex = 0;let count = 0;- let m: RegExpExecArray | null;- while ((m = re.exec(text)) !== null) {+ for (;;) {+ const m = re.exec(text);+ if (m == null) break;count++;if (m.index === re.lastIndex) re.lastIndex++;}@@ -963,11 +1084,12 @@ function countAll(re: RegExp, text: string | null): number {}function allMatches(re: RegExp, text: string | null): string[] {- const out: string[] = [];- if (text == null || text.length === 0) return out;+ if (text == null || text.length === 0) return [];re.lastIndex = 0;- let m: RegExpExecArray | null;- while ((m = re.exec(text)) !== null) {+ const out: string[] = [];+ for (;;) {+ const m = re.exec(text);+ if (m == null) break;out.push(m[0]);if (m.index === re.lastIndex) re.lastIndex++;}diff --git a/frontend/editor/src/proprietary/services/heuristic/heuristicRules.lint.test.ts b/frontend/editor/src/proprietary/services/heuristic/heuristicRules.lint.test.tsindex d21d9a79bd..286d9c91df 100644--- a/frontend/editor/src/proprietary/services/heuristic/heuristicRules.lint.test.ts+++ b/frontend/editor/src/proprietary/services/heuristic/heuristicRules.lint.test.ts@@ -1,9 +1,14 @@-// Structural lint for the rules pack: the engine silently drops or clamps+// Structural lint for the rule files: the engine silently drops or clamps// malformed rules, so authoring mistakes must fail here instead.-import { describe, expect, it } from "vitest";+import { beforeAll, describe, expect, it } from "vitest";import { compileRegex } from "@app/services/heuristic/heuristicEngine";-import rules from "@app/services/heuristic/heuristicRules.json";+import {+ LANGUAGE_PACKS,+ PACK_LANGUAGES,+ loadCoreRules,+} from "@app/services/heuristic/rules/index";+import languages from "@app/services/heuristic/rules/languages.json";interface RawRule {text?: string;@@ -24,8 +29,13 @@ interface RawLabel {negatives?: RawRule[];structural?: RawRule[];}-const labels = (rules as { labels: RawLabel[] }).labels;-const priors = (rules as { priors: Record<string, unknown> }).priors;+interface RuleFile {+ version?: number;+ language?: string;+ labels?: RawLabel[];+ priors?: Record<string, unknown>;+ patterns?: Record<string, RawRule[]>;+}// Mirrors computeStructural's emitted keys; extend together with the engine.const SIGNALS = new Set([@@ -42,6 +52,17 @@ const SIGNALS = new Set(["url_heavy","address_block",]);+const PATTERN_GROUPS = new Set([+ "currency",+ "form_label",+ "address",+ "toc",+ "signature",+ "signature_form",+ "references",+ "email_from",+ "email_subject",+]);const ZONES = new Set(["title", "first", "any"]);const META_FIELDS = new Set(["title",@@ -62,9 +83,92 @@ const WEIGHT_CAPS = {structural: 12,} as const;-describe("heuristicRules.json pack lint", () => {+const RULE_KINDS = Object.keys(WEIGHT_CAPS) as (keyof typeof WEIGHT_CAPS)[];++let core: RuleFile;+const packs = new Map<string, RuleFile>();++beforeAll(async () => {+ core = (await loadCoreRules()) as RuleFile;+ for (const [language, load] of Object.entries(LANGUAGE_PACKS)) {+ const mod = (await load()) as { default?: RuleFile };+ packs.set(language, mod.default ?? (mod as RuleFile));+ }+});++function labelsOf(file: RuleFile): RawLabel[] {+ return file.labels ?? [];+}++function brokenPatterns(file: RuleFile): string[] {+ const broken: string[] = [];+ for (const label of labelsOf(file)) {+ for (const kind of ["regexes", "filenames", "metadata"] as const) {+ for (const r of label[kind] ?? []) {+ if (compileRegex(r.pattern ?? null, r.flags ?? "") == null) {+ broken.push(`${label.id} ${kind}: ${r.pattern}`);+ }+ }+ }+ for (const n of label.negatives ?? []) {+ if (n.pattern != null && compileRegex(n.pattern, n.flags ?? "") == null) {+ broken.push(`${label.id} negative: ${n.pattern}`);+ }+ }+ }+ for (const [group, rules] of Object.entries(file.patterns ?? {})) {+ for (const r of rules) {+ if (compileRegex(r.pattern ?? null, r.flags ?? "") == null) {+ broken.push(`patterns.${group}: ${r.pattern}`);+ }+ }+ }+ return broken;+}++function badWeights(file: RuleFile): string[] {+ const bad: string[] = [];+ for (const label of labelsOf(file)) {+ for (const kind of RULE_KINDS) {+ for (const r of label[kind] ?? []) {+ const w = r.weight;+ if (typeof w !== "number" || !Number.isFinite(w) || w <= 0) {+ bad.push(`${label.id} ${kind}: weight ${String(w)}`);+ } else if (Math.abs(w) > WEIGHT_CAPS[kind]) {+ bad.push(`${label.id} ${kind}: weight ${w} over cap`);+ }+ }+ }+ }+ return bad;+}++function badZonesAndFields(file: RuleFile): string[] {+ const bad: string[] = [];+ for (const label of labelsOf(file)) {+ for (const kind of ["phrases", "regexes"] as const) {+ for (const r of label[kind] ?? []) {+ if (r.where != null && !ZONES.has(r.where)) {+ bad.push(`${label.id} ${kind} where: ${r.where}`);+ }+ }+ }+ for (const m of label.metadata ?? []) {+ if (m.field != null && !META_FIELDS.has(m.field)) {+ bad.push(`${label.id} metadata field: ${m.field}`);+ }+ }+ }+ return bad;+}++function unknownPatternGroups(file: RuleFile): string[] {+ return Object.keys(file.patterns ?? {}).filter((g) => !PATTERN_GROUPS.has(g));+}++describe("core rule set", () => {it("has unique, non-empty label ids", () => {- const ids = labels.map((l) => l.id);+ const ids = labelsOf(core).map((l) => l.id);expect(ids.every((id) => typeof id === "string" && id.length > 0)).toBe(true,);@@ -72,91 +176,107 @@ describe("heuristicRules.json pack lint", () => {});it("keys every page prior to an existing label id", () => {- const ids = new Set(labels.map((l) => l.id));- const orphans = Object.keys(priors).filter((k) => !ids.has(k));+ const ids = new Set(labelsOf(core).map((l) => l.id));+ const orphans = Object.keys(core.priors ?? {}).filter((k) => !ids.has(k));expect(orphans, "priors keyed to no label never apply").toEqual([]);});- it("compiles every regex/filename/metadata/negative pattern", () => {- const broken: string[] = [];- for (const label of labels) {- for (const kind of ["regexes", "filenames", "metadata"] as const) {- for (const r of label[kind] ?? []) {- if (compileRegex(r.pattern ?? null, r.flags ?? "") == null) {- broken.push(`${label.id} ${kind}: ${r.pattern}`);- }- }- }- for (const n of label.negatives ?? []) {- if (- n.pattern != null &&- compileRegex(n.pattern, n.flags ?? "") == null- ) {- broken.push(`${label.id} negative: ${n.pattern}`);- }- }- }- expect(broken, "non-compiling patterns are silently dropped").toEqual([]);+ it("compiles every pattern", () => {+ expect(brokenPatterns(core), "non-compiling patterns are dropped").toEqual(+ [],+ );});it("uses only structural signals the engine computes", () => {const unknown: string[] = [];- for (const label of labels) {+ for (const label of labelsOf(core)) {for (const s of label.structural ?? []) {- if (!SIGNALS.has(s.signal ?? "")) {+ if (!SIGNALS.has(s.signal ?? ""))unknown.push(`${label.id}: ${s.signal}`);- }}}expect(unknown, "unknown signals always score 0").toEqual([]);});- it("uses only zones and metadata fields the engine reads", () => {- const bad: string[] = [];- for (const label of labels) {- for (const kind of ["phrases", "regexes"] as const) {- for (const r of label[kind] ?? []) {- if (r.where != null && !ZONES.has(r.where)) {- bad.push(`${label.id} ${kind} where: ${r.where}`);- }- }+ it("uses only zones, metadata fields and pattern groups the engine reads", () => {+ expect(badZonesAndFields(core)).toEqual([]);+ expect(unknownPatternGroups(core)).toEqual([]);+ });++ it("keeps every weight positive and within the engine's clamp", () => {+ expect(badWeights(core)).toEqual([]);+ });++ it("holds no language vocabulary", () => {+ const leaked: string[] = [];+ for (const label of labelsOf(core)) {+ if ((label.phrases ?? []).length > 0) leaked.push(`${label.id}: phrases`);+ if ((label.negatives ?? []).length > 0) {+ leaked.push(`${label.id}: negatives`);}for (const m of label.metadata ?? []) {- if (m.field != null && !META_FIELDS.has(m.field)) {- bad.push(`${label.id} metadata field: ${m.field}`);- }+ if (m.field === "title") leaked.push(`${label.id}: metadata title`);}}- expect(bad).toEqual([]);+ expect(+ leaked,+ "phrases, negatives and document-title words are per-language; core is what every language shares",+ ).toEqual([]);+ });+});++describe.each(PACK_LANGUAGES)("language pack: %s", (language) => {+ const pack = () => packs.get(language)!;++ it("declares the language it is registered under", () => {+ expect(pack().language).toBe(language);+ });++ it("has unique label ids, all declared by core", () => {+ const coreIds = new Set(labelsOf(core).map((l) => l.id));+ const ids = labelsOf(pack()).map((l) => l.id);+ expect(new Set(ids).size, "a duplicated id silently merges").toBe(+ ids.length,+ );+ expect(+ ids.filter((id) => !coreIds.has(id)),+ "a label id core does not declare scores to something the UI cannot render",+ ).toEqual([]);+ });++ it("compiles every pattern", () => {+ expect(brokenPatterns(pack())).toEqual([]);+ });++ it("uses only zones, metadata fields and pattern groups the engine reads", () => {+ expect(badZonesAndFields(pack())).toEqual([]);+ expect(unknownPatternGroups(pack())).toEqual([]);});it("keeps every weight positive and within the engine's clamp", () => {- const bad: string[] = [];- for (const label of labels) {- for (const kind of [- "phrases",- "regexes",- "filenames",- "metadata",- "negatives",- "structural",- ] as const) {- for (const r of label[kind] ?? []) {- const w = r.weight;- if (typeof w !== "number" || !Number.isFinite(w) || w <= 0) {- bad.push(`${label.id} ${kind}: weight ${String(w)}`);- } else if (Math.abs(w) > WEIGHT_CAPS[kind]) {- bad.push(`${label.id} ${kind}: weight ${w} over cap`);- }- }+ expect(badWeights(pack())).toEqual([]);+ });++ it("leaves structural weights and page priors to core", () => {+ const leaked: string[] = [];+ for (const label of labelsOf(pack())) {+ if ((label.structural ?? []).length > 0) {+ leaked.push(`${label.id}: structural`);}}- expect(bad).toEqual([]);+ expect(+ leaked,+ "document shape is language-neutral, so its weights belong in core",+ ).toEqual([]);+ expect(+ pack().priors,+ "priors are core's; a pack copy would be ignored",+ ).toBe(undefined);});it("gives every phrase a non-empty text and every negative a matcher", () => {const bad: string[] = [];- for (const label of labels) {+ for (const label of labelsOf(pack())) {for (const p of label.phrases ?? []) {if (typeof p.text !== "string" || p.text.trim().length === 0) {bad.push(`${label.id} phrase with empty text`);@@ -170,4 +290,108 @@ describe("heuristicRules.json pack lint", () => {}expect(bad).toEqual([]);});++ it("normalises phrase text to lower case", () => {+ const upper: string[] = [];+ for (const label of labelsOf(pack())) {+ for (const p of label.phrases ?? []) {+ const text = p.text ?? "";+ if (text !== text.toLowerCase()) upper.push(`${label.id}: ${text}`);+ }+ }+ expect(+ upper,+ "the engine lower-cases the document before matching, so a capital never matches",+ ).toEqual([]);+ });+});++interface LanguagesFile {+ english: { words: string[] };+ scripts: { id: string; range: string; languages: string[] }[];+ latin: { languages: string[] };+ profiles: { language: string; words: string[]; chars: string | null }[];+}++describe("language profiles", () => {+ const data = languages as LanguagesFile;+ const profileFor = new Map(data.profiles.map((p) => [p.language, p]));++ it("compiles every script range and distinctive-letter class", () => {+ const broken: string[] = [];+ for (const s of data.scripts) {+ if (compileRegex(s.range, "g") == null) broken.push(`${s.id} range`);+ }+ for (const p of data.profiles) {+ if (p.chars != null && compileRegex(p.chars, "g") == null) {+ broken.push(`${p.language} chars`);+ }+ }+ expect(broken).toEqual([]);+ });++ it("gives every profile lower-case words", () => {+ const bad: string[] = [];+ for (const p of data.profiles) {+ if (p.words.length === 0) bad.push(`${p.language} has no words`);+ const upper = p.words.filter((w) => w !== w.toLowerCase());+ if (upper.length > 0) bad.push(`${p.language}: ${upper.join(" ")}`);+ }+ expect(bad, "the engine lower-cases before matching").toEqual([]);+ });++ it("tags every language with a region-free ISO 639-1 code", () => {+ const tags = [+ ...data.latin.languages,+ ...data.scripts.flatMap((s) => s.languages),+ ...data.profiles.map((p) => p.language),+ ];+ expect(tags.filter((t) => !/^[a-z]{2}$/.test(t))).toEqual([]);+ });++ it("declares each language in exactly one group", () => {+ const all = [+ ...data.latin.languages,+ ...data.scripts.flatMap((s) => s.languages),+ ];+ const dupes = all.filter((t, i) => all.indexOf(t) !== i);+ expect(+ dupes,+ "a language in two groups is scored by whichever range wins",+ ).toEqual([]);+ });++ it("gives a profile to every language that has to be told apart from a sibling", () => {+ const needs = [+ ...data.latin.languages,+ ...data.scripts+ .filter((s) => s.languages.length > 1)+ .flatMap((s) => s.languages),+ ];+ expect(+ needs.filter((l) => !profileFor.has(l)),+ "a language sharing its group with another can only be reached by profile",+ ).toEqual([]);+ });++ it("has no profile for a language nothing can dispatch to", () => {+ const reachable = new Set([+ ...data.latin.languages,+ ...data.scripts.flatMap((s) => s.languages),+ ]);+ expect(+ data.profiles.map((p) => p.language).filter((l) => !reachable.has(l)),+ ).toEqual([]);+ });++ it("can dispatch to every registered pack", () => {+ const detectable = new Set<string>(["en"]);+ for (const l of data.latin.languages) detectable.add(l);+ for (const s of data.scripts)+ for (const l of s.languages) detectable.add(l);+ expect(+ PACK_LANGUAGES.filter((l) => !detectable.has(l)),+ "a pack the detector can never name is dead weight in the bundle",+ ).toEqual([]);+ });});diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/core.json b/frontend/editor/src/proprietary/services/heuristic/rules/core.jsonnew file mode 100644index 0000000000..0a3d2a8826--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/core.json@@ -0,0 +1,5707 @@+{+ "version": 2,+ "labels": [+ {+ "id": "invoice",+ "name": "Invoice",+ "regexes": [+ {+ "pattern": "\\binv[-#]?\\d{3,8}\\b",+ "weight": 14,+ "name": "INV-#### reference"+ }+ ],+ "metadata": [+ {+ "field": "any",+ "pattern": "quickbooks|freshbooks|invoice2go|zoho invoice|\\bxero\\b",+ "weight": 12,+ "name": "Invoicing software producer"+ }+ ],+ "filenames": [+ {+ "pattern": "invoice",+ "weight": 26,+ "name": "invoice in filename"+ },+ {+ "pattern": "\\binv[_-]?\\d{3,8}",+ "weight": 20,+ "name": "INV number in filename"+ }+ ],+ "structural": [+ {+ "signal": "currency_heavy",+ "weight": 8+ },+ {+ "signal": "number_table",+ "weight": 5+ },+ {+ "signal": "short_doc",+ "weight": 4+ }+ ]+ },+ {+ "id": "receipt",+ "name": "Receipt",+ "regexes": [+ {+ "pattern": "[x*\\u2022]{4}\\s?-?\\d{4}",+ "weight": 12,+ "name": "masked card number"+ }+ ],+ "filenames": [+ {+ "pattern": "receipt",+ "weight": 26,+ "name": "receipt in filename"+ },+ {+ "pattern": "payment[_-]?confirmation",+ "weight": 16,+ "name": "payment confirmation filename"+ },+ {+ "pattern": "payment[-_ ]?confirmation",+ "weight": 28,+ "name": "payment confirmation filename"+ },+ {+ "pattern": "proof[-_ ]?of[-_ ]?payment",+ "weight": 26,+ "name": "proof of payment filename"+ },+ {+ "pattern": "payment[-_ ]?receipt",+ "weight": 18,+ "name": "payment receipt filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 8+ },+ {+ "signal": "currency_heavy",+ "weight": 6+ }+ ]+ },+ {+ "id": "bank-statement",+ "name": "Bank statement",+ "filenames": [+ {+ "pattern": "e?[-_]?statement",+ "weight": 16,+ "name": "statement in filename"+ },+ {+ "pattern": "bank[_ -]?statement",+ "weight": 24,+ "name": "bank statement filename"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 10+ },+ {+ "signal": "currency_heavy",+ "weight": 8+ }+ ]+ },+ {+ "id": "statement-of-account",+ "name": "Statement of account",+ "regexes": [+ {+ "pattern": "\\bAPR\\b",+ "flags": "g",+ "weight": 12,+ "name": "APR (uppercase)"+ }+ ],+ "filenames": [+ {+ "pattern": "(credit[-_ ]?card|visa|mastercard|amex|barclaycard).{0,12}stat",+ "weight": 24,+ "name": "card statement filename"+ },+ {+ "pattern": "card[_-]?statement",+ "weight": 22,+ "name": "card statement"+ }+ ],+ "structural": [+ {+ "signal": "currency_heavy",+ "weight": 8+ },+ {+ "signal": "number_table",+ "weight": 8+ }+ ]+ },+ {+ "id": "purchase-order",+ "name": "Purchase order",+ "regexes": [+ {+ "pattern": "\\bpo[-/ ]?\\d{4,8}\\b",+ "weight": 12,+ "name": "PO-#### reference"+ }+ ],+ "filenames": [+ {+ "pattern": "purchase[_-]?order",+ "weight": 28,+ "name": "purchase order filename"+ },+ {+ "pattern": "\\bpo[_-]?\\d{3,8}",+ "weight": 22,+ "name": "PO number filename"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 8+ },+ {+ "signal": "short_doc",+ "weight": 4+ }+ ]+ },+ {+ "id": "quote",+ "name": "Quote",+ "filenames": [+ {+ "pattern": "quot(e|ation)",+ "weight": 24,+ "name": "quote filename"+ },+ {+ "pattern": "estimate",+ "weight": 22,+ "name": "estimate filename"+ },+ {+ "pattern": "\\bqt[_-]?\\d{3,8}",+ "weight": 16,+ "name": "QT number filename"+ }+ ],+ "structural": [+ {+ "signal": "currency_heavy",+ "weight": 6+ },+ {+ "signal": "short_doc",+ "weight": 4+ },+ {+ "signal": "number_table",+ "weight": 4+ }+ ]+ },+ {+ "id": "remittance-advice",+ "name": "Remittance advice",+ "filenames": [+ {+ "pattern": "remit",+ "weight": 26,+ "name": "remittance filename"+ },+ {+ "pattern": "payment[_-]?advice",+ "weight": 24,+ "name": "payment advice filename"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 8+ },+ {+ "signal": "short_doc",+ "weight": 6+ }+ ]+ },+ {+ "id": "expense-report",+ "name": "Expense report",+ "metadata": [+ {+ "field": "any",+ "pattern": "\\bconcur\\b|expensify|zoho expense",+ "weight": 14,+ "name": "Expense software producer"+ }+ ],+ "filenames": [+ {+ "pattern": "expense",+ "weight": 24,+ "name": "expense filename"+ },+ {+ "pattern": "reimburs",+ "weight": 20,+ "name": "reimbursement filename"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 8+ },+ {+ "signal": "currency_heavy",+ "weight": 6+ },+ {+ "signal": "form_like",+ "weight": 5+ }+ ]+ },+ {+ "id": "financial-statement",+ "name": "Financial statement",+ "filenames": [+ {+ "pattern": "annual[_-]?report",+ "weight": 26,+ "name": "annual report filename"+ },+ {+ "pattern": "financial[_-]?statements?",+ "weight": 22,+ "name": "financial statements filename"+ },+ {+ "pattern": "10-?[kq]\\b",+ "weight": 18,+ "name": "10-K/10-Q filename"+ }+ ],+ "structural": [+ {+ "signal": "long_doc",+ "weight": 8+ },+ {+ "signal": "toc",+ "weight": 6+ },+ {+ "signal": "number_table",+ "weight": 6+ }+ ]+ },+ {+ "id": "budget",+ "name": "Budget",+ "filenames": [+ {+ "pattern": "budget",+ "weight": 18,+ "name": "budget in filename"+ },+ {+ "pattern": "forecast",+ "weight": 18,+ "name": "forecast in filename"+ },+ {+ "pattern": "opex[-_ ]?capex",+ "weight": 16,+ "name": "opex/capex filename"+ },+ {+ "pattern": "fy20\\d{2}[-_ ]?budget",+ "weight": 22,+ "name": "FY budget filename"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 8+ },+ {+ "signal": "currency_heavy",+ "weight": 6+ }+ ]+ },+ {+ "id": "credit-note",+ "name": "Credit note",+ "regexes": [+ {+ "pattern": "\\bcn[-#]\\d{3,8}\\b",+ "weight": 14,+ "name": "CN-#### reference"+ },+ {+ "pattern": "(?:-|\\()\\s?(?:[$£€]|usd|gbp|eur)\\s?\\d[\\d,]*(?:\\.\\d{2})?\\)?",+ "weight": 12,+ "name": "negative currency amount"+ }+ ],+ "filenames": [+ {+ "pattern": "credit[-_ ]?note",+ "weight": 28,+ "name": "credit note filename"+ },+ {+ "pattern": "credit[-_ ]?memo",+ "weight": 26,+ "name": "credit memo filename"+ },+ {+ "pattern": "(^|[^a-z])cn[-_]?\\d{3,}",+ "weight": 16,+ "name": "CN number in filename"+ }+ ],+ "structural": [+ {+ "signal": "currency_heavy",+ "weight": 6+ },+ {+ "signal": "short_doc",+ "weight": 6+ },+ {+ "signal": "number_table",+ "weight": 4+ }+ ]+ },+ {+ "id": "loan-agreement",+ "name": "Loan agreement",+ "filenames": [+ {+ "pattern": "loan[-_ ]?(agreement|contract|note)|promissory",+ "weight": 26,+ "name": "Loan filename"+ }+ ],+ "structural": [+ {+ "signal": "signature_block",+ "weight": 6+ },+ {+ "signal": "currency_heavy",+ "weight": 4+ }+ ]+ },+ {+ "id": "order-confirmation",+ "name": "Order confirmation",+ "regexes": [+ {+ "pattern": "\\b\\d{3}-\\d{7}-\\d{7}\\b",+ "flags": "g",+ "weight": 20,+ "name": "Amazon-style order id"+ }+ ],+ "filenames": [+ {+ "pattern": "order[-_ ]?confirmation",+ "weight": 30,+ "name": "order confirmation filename"+ },+ {+ "pattern": "order[-_ #]?\\d{4,}",+ "weight": 16,+ "name": "order number in filename"+ },+ {+ "pattern": "your[-_ ]?order",+ "weight": 18,+ "name": "your order filename"+ }+ ],+ "structural": [+ {+ "signal": "currency_heavy",+ "weight": 5+ },+ {+ "signal": "short_doc",+ "weight": 4+ },+ {+ "signal": "address_block",+ "weight": 4+ }+ ]+ },+ {+ "id": "donation-receipt",+ "name": "Donation receipt",+ "regexes": [+ {+ "pattern": "ein\\s*:?\\s*\\d{2}-\\d{7}",+ "weight": 14,+ "name": "EIN tax id"+ }+ ],+ "filenames": [+ {+ "pattern": "donation",+ "weight": 26,+ "name": "donation in filename"+ },+ {+ "pattern": "gift[-_ ]?aid",+ "weight": 22,+ "name": "gift aid filename"+ },+ {+ "pattern": "justgiving|gofundme|donorbox",+ "weight": 20,+ "name": "donation platform filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 6+ },+ {+ "signal": "address_block",+ "weight": 3+ }+ ]+ },+ {+ "id": "letter",+ "name": "Letter",+ "filenames": [+ {+ "pattern": "bank[-_ ]?(confirmation[-_ ]?)?letter",+ "weight": 22,+ "name": "bank letter filename"+ },+ {+ "pattern": "account[-_ ]?(verification|confirmation)",+ "weight": 20,+ "name": "account verification filename"+ },+ {+ "pattern": "proof[-_ ]?of[-_ ]?(account|funds)",+ "weight": 24,+ "name": "proof of account/funds filename"+ },+ {+ "pattern": "^letter[_\\- ]",+ "weight": 18,+ "name": "Starts with letter_"+ },+ {+ "pattern": "letter[_\\- ]?(to|from)[_\\- ]",+ "weight": 20,+ "name": "Letter to/from in filename"+ }+ ],+ "structural": [+ {+ "signal": "address_block",+ "weight": 6+ },+ {+ "signal": "short_doc",+ "weight": 5+ },+ {+ "signal": "signature_block",+ "weight": 5+ }+ ]+ },+ {+ "id": "board-report",+ "name": "Board report",+ "filenames": [+ {+ "pattern": "board[_ -]?(?:deck|pack)",+ "weight": 28,+ "name": "board deck/pack filename"+ },+ {+ "pattern": "board[_-]?materials",+ "weight": 22,+ "name": "board materials filename"+ },+ {+ "pattern": "q[1-4][_-]?20\\d{2}[_-]?board",+ "weight": 20,+ "name": "Q# board filename"+ }+ ],+ "structural": [+ {+ "signal": "bullet_heavy",+ "weight": 8+ },+ {+ "signal": "number_table",+ "weight": 6+ },+ {+ "signal": "toc",+ "weight": 4+ }+ ]+ },+ {+ "id": "pitch-deck",+ "name": "Pitch deck",+ "regexes": [+ {+ "pattern": "\\btam\\b",+ "weight": 14,+ "name": "TAM acronym"+ }+ ],+ "filenames": [+ {+ "pattern": "pitch[_-]?deck",+ "weight": 30,+ "name": "pitch deck filename"+ },+ {+ "pattern": "seed[_-]?(?:deck|round)",+ "weight": 22,+ "name": "seed deck/round filename"+ },+ {+ "pattern": "investor[_-]?deck",+ "weight": 20,+ "name": "investor deck filename"+ }+ ],+ "structural": [+ {+ "signal": "bullet_heavy",+ "weight": 8+ },+ {+ "signal": "short_doc",+ "weight": 5+ }+ ]+ },+ {+ "id": "investment-summary",+ "name": "Investment summary",+ "regexes": [+ {+ "pattern": "\\bmrr\\b",+ "weight": 12,+ "name": "MRR acronym"+ },+ {+ "pattern": "\\barr\\b",+ "weight": 10,+ "name": "ARR acronym"+ }+ ],+ "filenames": [+ {+ "pattern": "cap[_-]?table",+ "weight": 30,+ "name": "cap table filename"+ },+ {+ "pattern": "captable",+ "weight": 26,+ "name": "captable filename"+ },+ {+ "pattern": "\\bcap[_-]?tbl\\b",+ "weight": 16,+ "name": "cap tbl abbreviation filename"+ },+ {+ "pattern": "investor[_-]?update",+ "weight": 30,+ "name": "investor update filename"+ },+ {+ "pattern": "monthly[_-]?update",+ "weight": 14,+ "name": "monthly update filename"+ },+ {+ "pattern": "investor[_-]?letter",+ "weight": 18,+ "name": "investor letter filename"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 10+ },+ {+ "signal": "form_like",+ "weight": 4+ },+ {+ "signal": "short_doc",+ "weight": 4+ },+ {+ "signal": "bullet_heavy",+ "weight": 6+ }+ ]+ },+ {+ "id": "letter-of-intent",+ "name": "Letter of intent",+ "regexes": [+ {+ "pattern": "\\bloi\\b",+ "weight": 12,+ "name": "LOI abbreviation"+ },+ {+ "pattern": "\\bmou\\b",+ "weight": 12,+ "name": "MOU abbreviation"+ }+ ],+ "filenames": [+ {+ "pattern": "term[_-]?sheet",+ "weight": 30,+ "name": "term sheet filename"+ },+ {+ "pattern": "ts[_-]?series[_-]?[a-e]",+ "weight": 18,+ "name": "TS series letter filename"+ },+ {+ "pattern": "letter[-_ ]?of[-_ ]?intent",+ "weight": 30,+ "name": "letter of intent filename"+ },+ {+ "pattern": "(^|[^a-z])loi([^a-z]|$)",+ "weight": 22,+ "name": "LOI in filename"+ },+ {+ "pattern": "(^|[^a-z])mou([^a-z]|$)",+ "weight": 20,+ "name": "MOU in filename"+ }+ ],+ "structural": [+ {+ "signal": "form_like",+ "weight": 5+ },+ {+ "signal": "short_doc",+ "weight": 6+ },+ {+ "signal": "signature_block",+ "weight": 4+ }+ ]+ },+ {+ "id": "quarterly-report",+ "name": "Quarterly report",+ "filenames": [+ {+ "pattern": "earnings[_-]?(?:release|report)",+ "weight": 28,+ "name": "earnings release/report filename"+ },+ {+ "pattern": "q[1-4][_-]?20\\d{2}[_-]?earnings",+ "weight": 22,+ "name": "Q# earnings filename"+ },+ {+ "pattern": "interim[_-]?results",+ "weight": 18,+ "name": "interim results filename"+ }+ ],+ "structural": [+ {+ "signal": "currency_heavy",+ "weight": 6+ },+ {+ "signal": "number_table",+ "weight": 6+ }+ ]+ },+ {+ "id": "report",+ "name": "Report",+ "filenames": [+ {+ "pattern": "due[_-]?diligence",+ "weight": 30,+ "name": "due diligence filename"+ },+ {+ "pattern": "\\bdd[_-]?report\\b",+ "weight": 18,+ "name": "DD report filename"+ },+ {+ "pattern": "diligence[_-]?memo",+ "weight": 22,+ "name": "diligence memo filename"+ },+ {+ "pattern": "(cabinet|committee|council)[-_ ]?report",+ "weight": 24,+ "name": "Committee report filename"+ },+ {+ "pattern": "staff[-_ ]?report",+ "weight": 20,+ "name": "Staff report filename"+ },+ {+ "pattern": "agenda[-_ ]?item",+ "weight": 14,+ "name": "Agenda item filename"+ }+ ],+ "structural": [+ {+ "signal": "long_doc",+ "weight": 6+ },+ {+ "signal": "toc",+ "weight": 4+ },+ {+ "signal": "references_section",+ "weight": 3+ },+ {+ "signal": "bullet_heavy",+ "weight": 3+ }+ ]+ },+ {+ "id": "regulatory-filing",+ "name": "Regulatory filing",+ "regexes": [+ {+ "pattern": "\\bh\\.\\s?r\\.\\s?\\d{1,5}\\b",+ "weight": 20,+ "name": "House bill number"+ },+ {+ "pattern": "\\brin\\s+\\d{4}-[a-z]{2}\\d{2}\\b",+ "weight": 22,+ "name": "Regulation identifier number"+ },+ {+ "pattern": "\\bfr\\s+doc\\.?\\s+\\d{4}-\\d{4,6}\\b",+ "weight": 20,+ "name": "Federal Register doc number"+ },+ {+ "pattern": "\\b20\\d{2}\\s+no\\.\\s?\\d{1,4}\\b",+ "weight": 16,+ "name": "SI year and number"+ }+ ],+ "metadata": [+ {+ "field": "any",+ "pattern": "legislation\\.gov\\.uk",+ "weight": 14,+ "name": "legislation.gov.uk metadata"+ }+ ],+ "filenames": [+ {+ "pattern": "prospectus",+ "weight": 28,+ "name": "prospectus filename"+ },+ {+ "pattern": "offering[_-]?memorandum",+ "weight": 26,+ "name": "offering memorandum filename"+ },+ {+ "pattern": "\\bppm\\b",+ "weight": 14,+ "name": "PPM abbreviation filename"+ },+ {+ "pattern": "\\b(hr|s)[-_ ]?\\d{3,5}\\b",+ "weight": 16,+ "name": "Bill number filename"+ },+ {+ "pattern": "bill",+ "weight": 15,+ "name": "Bill filename"+ },+ {+ "pattern": "(ukpga|act[-_ ]?20\\d{2})",+ "weight": 20,+ "name": "Act filename"+ },+ {+ "pattern": "federal[-_ ]?register|final[-_ ]?rule",+ "weight": 22,+ "name": "Federal Register rule filename"+ },+ {+ "pattern": "statutory[-_ ]?instrument|uksi",+ "weight": 24,+ "name": "Statutory instrument filename"+ },+ {+ "pattern": "\\bcfr\\b|rulemaking",+ "weight": 18,+ "name": "CFR/rulemaking filename"+ }+ ],+ "structural": [+ {+ "signal": "long_doc",+ "weight": 6+ },+ {+ "signal": "toc",+ "weight": 5+ },+ {+ "signal": "references_section",+ "weight": 3+ }+ ]+ },+ {+ "id": "appraisal-report",+ "name": "Appraisal report",+ "regexes": [+ {+ "pattern": "\\b409a\\b",+ "weight": 20,+ "name": "409A reference"+ }+ ],+ "filenames": [+ {+ "pattern": "409a",+ "weight": 28,+ "name": "409A filename"+ },+ {+ "pattern": "valuation[_-]?report",+ "weight": 26,+ "name": "valuation report filename"+ },+ {+ "pattern": "business[_-]?valuation",+ "weight": 22,+ "name": "business valuation filename"+ }+ ],+ "structural": [+ {+ "signal": "long_doc",+ "weight": 5+ },+ {+ "signal": "number_table",+ "weight": 6+ },+ {+ "signal": "toc",+ "weight": 3+ }+ ]+ },+ {+ "id": "tax-form",+ "name": "Tax form",+ "regexes": [+ {+ "pattern": "\\b1095-[abc]\\b",+ "weight": 18,+ "name": "Form 1095 health coverage"+ },+ {+ "pattern": "omb no\\.?\\s*1545-\\d{4}",+ "weight": 12,+ "name": "IRS OMB number"+ }+ ],+ "metadata": [+ {+ "field": "any",+ "pattern": "internal revenue service|hm revenue|canada revenue agency",+ "weight": 8,+ "name": "Revenue agency in metadata"+ }+ ],+ "filenames": [+ {+ "pattern": "(?:^|[^a-z0-9])w[-_ ]?2(?:[^0-9]|$)",+ "weight": 22,+ "name": "W-2 in filename"+ },+ {+ "pattern": "(?:^|[^0-9])1099(?:[^0-9]|$)",+ "weight": 22,+ "name": "1099 in filename"+ },+ {+ "pattern": "(?:^|[^a-z0-9])w[-_ ]?[49](?:[^0-9]|$)",+ "weight": 20,+ "name": "W-9/W-4 in filename"+ },+ {+ "pattern": "(?:^|[^a-z0-9])(?:p45|p60|t4)(?:[^0-9a-z]|$)",+ "weight": 20,+ "name": "P45/P60/T4 in filename"+ }+ ],+ "structural": [+ {+ "signal": "form_like",+ "weight": 8+ },+ {+ "signal": "short_doc",+ "weight": 5+ }+ ]+ },+ {+ "id": "tax-return",+ "name": "Tax return",+ "regexes": [+ {+ "pattern": "\\b1040-(?:sr|nr|x|es)\\b",+ "weight": 18,+ "name": "1040 variant"+ },+ {+ "pattern": "\\bsa(?:100|302)\\b",+ "weight": 20,+ "name": "HMRC SA form number"+ }+ ],+ "metadata": [+ {+ "field": "any",+ "pattern": "turbotax|taxact|h&r block|taxslayer|freetaxusa|taxcalc",+ "weight": 14,+ "name": "Tax software producer"+ }+ ],+ "filenames": [+ {+ "pattern": "(?:^|[^0-9])1040(?:[^0-9]|$)",+ "weight": 20,+ "name": "1040 in filename"+ },+ {+ "pattern": "tax[-_ ]?return",+ "weight": 24,+ "name": "Tax return in filename"+ },+ {+ "pattern": "self[-_ ]?assessment|sa100|sa302",+ "weight": 22,+ "name": "Self assessment in filename"+ }+ ],+ "structural": [+ {+ "signal": "form_like",+ "weight": 6+ },+ {+ "signal": "number_table",+ "weight": 4+ }+ ]+ },+ {+ "id": "tax-statement",+ "name": "Tax statement",+ "metadata": [+ {+ "field": "any",+ "pattern": "internal revenue service|hm revenue",+ "weight": 10,+ "name": "Revenue agency in metadata"+ }+ ],+ "filenames": [+ {+ "pattern": "irs[-_ ]?(?:notice|letter)|hmrc",+ "weight": 18,+ "name": "IRS/HMRC in filename"+ },+ {+ "pattern": "cp[-_ ]?(?:14|49|90|501|503|504|2000)",+ "weight": 24,+ "name": "IRS CP code in filename"+ },+ {+ "pattern": "tax[-_ ]?notice|penalty[-_ ]?notice",+ "weight": 22,+ "name": "Tax notice in filename"+ }+ ],+ "structural": [+ {+ "signal": "address_block",+ "weight": 6+ },+ {+ "signal": "short_doc",+ "weight": 4+ },+ {+ "signal": "currency_heavy",+ "weight": 3+ }+ ]+ },+ {+ "id": "payslip",+ "name": "Payslip",+ "regexes": [+ {+ "pattern": "\\bytd\\b",+ "weight": 12,+ "name": "YTD column"+ }+ ],+ "metadata": [+ {+ "field": "any",+ "pattern": "\\badp\\b|gusto|paychex|paylocity|moorepay|sage payroll",+ "weight": 14,+ "name": "Payroll software producer"+ }+ ],+ "filenames": [+ {+ "pattern": "pay[-_ ]?slip",+ "weight": 28,+ "name": "Payslip in filename"+ },+ {+ "pattern": "pay[-_ ]?stub",+ "weight": 28,+ "name": "Paystub in filename"+ },+ {+ "pattern": "(?:wage|salary)[-_ ]?slip",+ "weight": 24,+ "name": "Wage/salary slip in filename"+ },+ {+ "pattern": "payroll|pay[-_ ]?check|earnings[-_ ]?statement",+ "weight": 18,+ "name": "Payroll in filename"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 6+ },+ {+ "signal": "short_doc",+ "weight": 6+ },+ {+ "signal": "form_like",+ "weight": 3+ }+ ]+ },+ {+ "id": "benefits-summary",+ "name": "Benefits summary",+ "regexes": [+ {+ "pattern": "\\b401\\(?k\\)?",+ "weight": 16,+ "name": "401(k) plan"+ }+ ],+ "filenames": [+ {+ "pattern": "pension",+ "weight": 24,+ "name": "Pension in filename"+ },+ {+ "pattern": "401[-_ ]?k",+ "weight": 24,+ "name": "401k in filename"+ },+ {+ "pattern": "retirement|superannuation",+ "weight": 18,+ "name": "Retirement in filename"+ },+ {+ "pattern": "universal[-_ ]?credit",+ "weight": 25,+ "name": "Universal Credit filename"+ },+ {+ "pattern": "benefit",+ "weight": 16,+ "name": "Benefit filename"+ },+ {+ "pattern": "award[-_ ]?notice",+ "weight": 20,+ "name": "Award notice filename"+ },+ {+ "pattern": "\\bdwp\\b",+ "weight": 18,+ "name": "DWP filename"+ }+ ],+ "structural": [+ {+ "signal": "currency_heavy",+ "weight": 4+ },+ {+ "signal": "number_table",+ "weight": 4+ }+ ]+ },+ {+ "id": "contract",+ "name": "Contract",+ "filenames": [+ {+ "pattern": "(contract|agreement)",+ "weight": 16,+ "name": "contract/agreement in filename"+ },+ {+ "pattern": "(^|[^a-z0-9])(msa|sow|mou|dpa)([^a-z0-9]|$)",+ "weight": 18,+ "name": "MSA/SOW/MOU/DPA abbreviation"+ },+ {+ "pattern": "data[\\s_-]?processing[\\s_-]?agreement",+ "weight": 30,+ "name": "DPA filename"+ },+ {+ "pattern": "(^|[^a-z0-9])dpa([^a-z0-9]|$)",+ "weight": 24,+ "name": "DPA abbreviation filename"+ },+ {+ "pattern": "standard[\\s_-]?contractual[\\s_-]?clauses|(^|[^a-z0-9])scc([^a-z0-9]|$)",+ "weight": 20,+ "name": "SCC filename"+ }+ ],+ "structural": [+ {+ "signal": "signature_block",+ "weight": 8+ },+ {+ "signal": "long_doc",+ "weight": 4+ },+ {+ "signal": "toc",+ "weight": 3+ }+ ]+ },+ {+ "id": "nda",+ "name": "NDA",+ "regexes": [+ {+ "pattern": "\\bnda\\b",+ "flags": "gi",+ "weight": 12,+ "name": "NDA abbreviation"+ }+ ],+ "filenames": [+ {+ "pattern": "(^|[^a-z0-9])nda([^a-z0-9]|$)",+ "weight": 26,+ "name": "nda in filename"+ },+ {+ "pattern": "(non.?disclosure|confidentiality)",+ "weight": 24,+ "name": "non-disclosure in filename"+ }+ ],+ "structural": [+ {+ "signal": "signature_block",+ "weight": 7+ },+ {+ "signal": "short_doc",+ "weight": 3+ }+ ]+ },+ {+ "id": "terms-and-conditions",+ "name": "Terms and conditions",+ "filenames": [+ {+ "pattern": "terms.{0,3}(of.{0,3}(service|use)|and.{0,3}conditions)",+ "weight": 24,+ "name": "terms of service/use in filename"+ },+ {+ "pattern": "(^|[^a-z0-9])(tos|eula|tnc|t&c)([^a-z0-9]|$)",+ "weight": 20,+ "name": "ToS/EULA abbreviation"+ }+ ],+ "structural": [+ {+ "signal": "url_heavy",+ "weight": 5+ },+ {+ "signal": "long_doc",+ "weight": 3+ }+ ]+ },+ {+ "id": "court-filing",+ "name": "Court filing",+ "regexes": [+ {+ "pattern": "\\d{1,2}:\\d{2}-cv-\\d{4,6}",+ "flags": "gi",+ "weight": 22,+ "name": "federal civil docket (cv)"+ }+ ],+ "filenames": [+ {+ "pattern": "(motion|complaint|petition|docket|subpoena|pleading|summons)",+ "weight": 16,+ "name": "filing type in filename"+ },+ {+ "pattern": "(^|[^a-z0-9])court([^a-z0-9]|$)",+ "weight": 14,+ "name": "court in filename"+ }+ ],+ "structural": [+ {+ "signal": "signature_block",+ "weight": 3+ }+ ]+ },+ {+ "id": "affidavit",+ "name": "Affidavit",+ "filenames": [+ {+ "pattern": "(affidavit|sworn)",+ "weight": 26,+ "name": "affidavit in filename"+ },+ {+ "pattern": "statutory.?declaration",+ "weight": 24,+ "name": "statutory declaration in filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 7+ },+ {+ "signal": "signature_block",+ "weight": 8+ }+ ]+ },+ {+ "id": "power-of-attorney",+ "name": "Power of attorney",+ "regexes": [+ {+ "pattern": "\\blp1[fh]\\b",+ "flags": "gi",+ "weight": 16,+ "name": "UK LPA form code"+ }+ ],+ "filenames": [+ {+ "pattern": "power.?of.?attorney",+ "weight": 28,+ "name": "power of attorney in filename"+ },+ {+ "pattern": "(^|[^a-z0-9])(poa|lpa)([^a-z0-9]|$)",+ "weight": 20,+ "name": "POA/LPA abbreviation"+ }+ ],+ "structural": [+ {+ "signal": "signature_block",+ "weight": 8+ },+ {+ "signal": "short_doc",+ "weight": 4+ },+ {+ "signal": "form_like",+ "weight": 4+ }+ ]+ },+ {+ "id": "will",+ "name": "Will",+ "filenames": [+ {+ "pattern": "(last.?will|testament|codicil)",+ "weight": 26,+ "name": "will in filename"+ },+ {+ "pattern": "(living|revocable|family).?trust",+ "weight": 24,+ "name": "trust in filename"+ }+ ],+ "structural": [+ {+ "signal": "signature_block",+ "weight": 8+ }+ ]+ },+ {+ "id": "legal-notice",+ "name": "Legal notice",+ "filenames": [+ {+ "pattern": "(cease.?and.?desist|demand.?letter|legal.?notice)",+ "weight": 26,+ "name": "demand/notice in filename"+ },+ {+ "pattern": "notice.?of.?(default|breach|termination|claim)",+ "weight": 18,+ "name": "notice-of in filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 7+ },+ {+ "signal": "address_block",+ "weight": 6+ }+ ]+ },+ {+ "id": "purchase-agreement",+ "name": "Purchase agreement",+ "filenames": [+ {+ "pattern": "share[-_ ]?purchase[-_ ]?agreement",+ "weight": 28,+ "name": "SPA filename"+ },+ {+ "pattern": "merger[-_ ]?agreement",+ "weight": 26,+ "name": "merger agreement filename"+ },+ {+ "pattern": "asset[-_ ]?purchase[-_ ]?agreement",+ "weight": 26,+ "name": "APA filename"+ },+ {+ "pattern": "(^|[^a-z])(m&a|spa|apa)([^a-z]|$)",+ "weight": 18,+ "name": "M&A abbreviation in filename"+ }+ ],+ "structural": [+ {+ "signal": "signature_block",+ "weight": 6+ },+ {+ "signal": "long_doc",+ "weight": 5+ },+ {+ "signal": "number_table",+ "weight": 4+ }+ ]+ },+ {+ "id": "shareholder-agreement",+ "name": "Shareholder agreement",+ "filenames": [+ {+ "pattern": "shareholders?[-_ ]?agreement",+ "weight": 30,+ "name": "shareholders agreement filename"+ },+ {+ "pattern": "cap[-_ ]?table",+ "weight": 18,+ "name": "cap table filename"+ },+ {+ "pattern": "(^|[^a-z])sha([^a-z]|$)",+ "weight": 16,+ "name": "SHA abbreviation in filename"+ }+ ],+ "structural": [+ {+ "signal": "signature_block",+ "weight": 6+ },+ {+ "signal": "long_doc",+ "weight": 4+ }+ ]+ },+ {+ "id": "legal-opinion",+ "name": "Legal opinion",+ "regexes": [+ {+ "pattern": "\\b\\d{1,3}\\s+f\\.\\s?(2d|3d|4th)\\s+\\d{1,4}\\b",+ "weight": 12,+ "name": "federal reporter citation"+ }+ ],+ "filenames": [+ {+ "pattern": "judg(e)?ment",+ "weight": 26,+ "name": "judgment in filename"+ },+ {+ "pattern": "(^|[^a-z0-9])(ewhc|ewca|uksc)([^a-z0-9]|$)",+ "weight": 28,+ "name": "UK court code in filename"+ },+ {+ "pattern": "opinion",+ "weight": 16,+ "name": "opinion in filename"+ },+ {+ "pattern": "(^|[^a-z0-9])ruling([^a-z0-9]|$)",+ "weight": 15,+ "name": "ruling in filename"+ }+ ],+ "structural": [+ {+ "signal": "long_doc",+ "weight": 5+ },+ {+ "signal": "toc",+ "weight": 3+ }+ ]+ },+ {+ "id": "subpoena",+ "name": "Subpoena",+ "regexes": [+ {+ "pattern": "\\bao\\s?88[ab]?\\b",+ "weight": 16,+ "name": "AO 88 subpoena form code"+ },+ {+ "pattern": "\\bn20\\b",+ "weight": 14,+ "name": "UK N20 witness summons form"+ }+ ],+ "filenames": [+ {+ "pattern": "subpoena",+ "weight": 30,+ "name": "subpoena in filename"+ },+ {+ "pattern": "witness[-_ ]?summons",+ "weight": 28,+ "name": "witness summons in filename"+ },+ {+ "pattern": "duces[-_ ]?tecum",+ "weight": 26,+ "name": "duces tecum in filename"+ },+ {+ "pattern": "(^|[^a-z0-9])summons([^a-z0-9]|$)",+ "weight": 22,+ "name": "summons in filename"+ }+ ],+ "structural": [+ {+ "signal": "form_like",+ "weight": 7+ },+ {+ "signal": "short_doc",+ "weight": 6+ },+ {+ "signal": "address_block",+ "weight": 3+ }+ ]+ },+ {+ "id": "settlement-agreement",+ "name": "Settlement agreement",+ "regexes": [+ {+ "pattern": "\\bcot[- ]?3\\b",+ "weight": 22,+ "name": "ACAS COT3 form"+ }+ ],+ "filenames": [+ {+ "pattern": "settlement",+ "weight": 28,+ "name": "settlement in filename"+ },+ {+ "pattern": "(^|[^a-z0-9])cot3([^a-z0-9]|$)",+ "weight": 26,+ "name": "COT3 in filename"+ },+ {+ "pattern": "release[-_ ]?agreement",+ "weight": 18,+ "name": "release agreement in filename"+ }+ ],+ "structural": [+ {+ "signal": "signature_block",+ "weight": 8+ },+ {+ "signal": "currency_heavy",+ "weight": 3+ }+ ]+ },+ {+ "id": "service-agreement",+ "name": "Service agreement",+ "regexes": [+ {+ "pattern": "\\bmsa\\b",+ "flags": "gi",+ "weight": 12,+ "name": "MSA abbreviation"+ },+ {+ "pattern": "\\bsow[s]?\\b",+ "flags": "gi",+ "weight": 14,+ "name": "SOW reference"+ }+ ],+ "filenames": [+ {+ "pattern": "engagement[-_ ]?letter|letter[-_ ]?of[-_ ]?engagement",+ "weight": 28,+ "name": "engagement letter in filename"+ },+ {+ "pattern": "client[-_ ]?care",+ "weight": 26,+ "name": "client care in filename"+ },+ {+ "pattern": "retainer",+ "weight": 20,+ "name": "retainer in filename"+ },+ {+ "pattern": "terms[-_ ]?of[-_ ]?business",+ "weight": 18,+ "name": "terms of business in filename"+ },+ {+ "pattern": "\\bmsa\\b|master[-_ ]?servic",+ "weight": 26,+ "name": "MSA in filename"+ },+ {+ "pattern": "framework[-_ ]?agreement",+ "weight": 22,+ "name": "Framework agreement filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 6+ },+ {+ "signal": "address_block",+ "weight": 5+ },+ {+ "signal": "signature_block",+ "weight": 3+ },+ {+ "signal": "toc",+ "weight": 4+ }+ ]+ },+ {+ "id": "privacy-policy",+ "name": "Privacy policy",+ "filenames": [+ {+ "pattern": "privacy[-_ ]?(policy|notice)",+ "weight": 26,+ "name": "Privacy policy filename"+ }+ ],+ "structural": [+ {+ "signal": "url_heavy",+ "weight": 4+ }+ ]+ },+ {+ "id": "resume",+ "name": "Resume",+ "filenames": [+ {+ "pattern": "resume",+ "weight": 26,+ "name": "resume in filename"+ },+ {+ "pattern": "(^|[^a-z])cv([^a-z]|$)",+ "weight": 22,+ "name": "cv in filename"+ },+ {+ "pattern": "curriculum",+ "weight": 24,+ "name": "curriculum in filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 5+ },+ {+ "signal": "bullet_heavy",+ "weight": 6+ }+ ]+ },+ {+ "id": "cover-letter",+ "name": "Cover letter",+ "filenames": [+ {+ "pattern": "cover[_ -]?letter",+ "weight": 28,+ "name": "cover letter in filename"+ },+ {+ "pattern": "covering[_ -]?letter",+ "weight": 26,+ "name": "covering letter in filename"+ },+ {+ "pattern": "application[_ -]?letter",+ "weight": 20,+ "name": "application letter in filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 6+ },+ {+ "signal": "address_block",+ "weight": 4+ }+ ]+ },+ {+ "id": "job-description",+ "name": "Job description",+ "filenames": [+ {+ "pattern": "job[_ -]?description",+ "weight": 28,+ "name": "job description in filename"+ },+ {+ "pattern": "(^|[^a-z])jd([^a-z]|$)",+ "weight": 18,+ "name": "jd in filename"+ },+ {+ "pattern": "role[_ -]?profile",+ "weight": 24,+ "name": "role profile in filename"+ },+ {+ "pattern": "(posting|vacancy|advert)",+ "weight": 16,+ "name": "vacancy/posting in filename"+ }+ ],+ "structural": [+ {+ "signal": "bullet_heavy",+ "weight": 6+ }+ ]+ },+ {+ "id": "offer-letter",+ "name": "Offer letter",+ "filenames": [+ {+ "pattern": "offer[_ -]?letter",+ "weight": 28,+ "name": "offer letter in filename"+ },+ {+ "pattern": "offer[_ -]?of[_ -]?employment",+ "weight": 28,+ "name": "offer of employment in filename"+ },+ {+ "pattern": "job[_ -]?offer",+ "weight": 24,+ "name": "job offer in filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 4+ },+ {+ "signal": "signature_block",+ "weight": 5+ }+ ]+ },+ {+ "id": "reference-letter",+ "name": "Reference letter",+ "filenames": [+ {+ "pattern": "(reference|recommendation)[_ -]?letter",+ "weight": 28,+ "name": "reference/recommendation letter in filename"+ },+ {+ "pattern": "letter[_ -]?of[_ -]?(reference|recommendation)",+ "weight": 28,+ "name": "letter of reference in filename"+ },+ {+ "pattern": "char(acter)?[_ -]?ref",+ "weight": 22,+ "name": "character reference in filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 6+ },+ {+ "signal": "signature_block",+ "weight": 5+ }+ ]+ },+ {+ "id": "employment-contract",+ "name": "Employment contract",+ "filenames": [+ {+ "pattern": "employment[_ -]?(contract|agreement)",+ "weight": 28,+ "name": "employment contract in filename"+ },+ {+ "pattern": "contract[_ -]?of[_ -]?employment",+ "weight": 28,+ "name": "contract of employment in filename"+ }+ ],+ "structural": [+ {+ "signal": "signature_block",+ "weight": 6+ },+ {+ "signal": "long_doc",+ "weight": 4+ },+ {+ "signal": "toc",+ "weight": 3+ }+ ]+ },+ {+ "id": "timesheet",+ "name": "Timesheet",+ "filenames": [+ {+ "pattern": "time[_ -]?sheet",+ "weight": 30,+ "name": "timesheet in filename"+ },+ {+ "pattern": "(^|[^a-z])hours([^a-z]|$)",+ "weight": 12,+ "name": "hours in filename"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 8+ },+ {+ "signal": "form_like",+ "weight": 5+ },+ {+ "signal": "short_doc",+ "weight": 5+ }+ ]+ },+ {+ "id": "performance-review",+ "name": "Performance review",+ "filenames": [+ {+ "pattern": "performance[_ -]?review",+ "weight": 28,+ "name": "performance review in filename"+ },+ {+ "pattern": "appraisal",+ "weight": 18,+ "name": "appraisal in filename"+ },+ {+ "pattern": "perf[_ -]?review",+ "weight": 22,+ "name": "perf review in filename"+ }+ ],+ "structural": [+ {+ "signal": "form_like",+ "weight": 5+ },+ {+ "signal": "number_table",+ "weight": 3+ }+ ]+ },+ {+ "id": "employee-handbook",+ "name": "Employee handbook",+ "filenames": [+ {+ "pattern": "(employee|staff)[-_ ]?handbook",+ "weight": 28,+ "name": "Handbook filename"+ }+ ],+ "structural": [+ {+ "signal": "toc",+ "weight": 8+ },+ {+ "signal": "long_doc",+ "weight": 4+ },+ {+ "signal": "bullet_heavy",+ "weight": 4+ }+ ]+ },+ {+ "id": "risk-assessment",+ "name": "Risk assessment",+ "regexes": [+ {+ "pattern": "\\ba0[1-9]:20\\d{2}\\b",+ "flags": "gi",+ "weight": 16,+ "name": "OWASP category code"+ }+ ],+ "filenames": [+ {+ "pattern": "pen[\\s_-]?test|penetration[\\s_-]?test",+ "weight": 28,+ "name": "pentest in filename"+ },+ {+ "pattern": "(^|[^a-z0-9])vapt([^a-z0-9]|$)",+ "weight": 22,+ "name": "VAPT abbreviation"+ },+ {+ "pattern": "security[\\s_-]?assessment",+ "weight": 16,+ "name": "security assessment filename"+ },+ {+ "pattern": "risk[\\s_-]?assessment",+ "weight": 28,+ "name": "risk assessment filename"+ },+ {+ "pattern": "risk[\\s_-]?register",+ "weight": 26,+ "name": "risk register filename"+ },+ {+ "pattern": "risk[\\s_-]?matrix",+ "weight": 18,+ "name": "risk matrix filename"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 8+ },+ {+ "signal": "toc",+ "weight": 4+ },+ {+ "signal": "long_doc",+ "weight": 3+ },+ {+ "signal": "form_like",+ "weight": 3+ }+ ]+ },+ {+ "id": "audit-report",+ "name": "Audit report",+ "regexes": [+ {+ "pattern": "iso\\s*/?\\s*iec\\s*27001(:\\d{4})?",+ "flags": "gi",+ "weight": 20,+ "name": "ISO 27001 reference"+ }+ ],+ "filenames": [+ {+ "pattern": "soc[\\s_-]?2",+ "weight": 28,+ "name": "SOC 2 in filename"+ },+ {+ "pattern": "type[\\s_-]?ii",+ "weight": 16,+ "name": "Type II in filename"+ },+ {+ "pattern": "iso[\\s_-]?27001",+ "weight": 20,+ "name": "ISO 27001 filename"+ }+ ],+ "structural": [+ {+ "signal": "long_doc",+ "weight": 5+ },+ {+ "signal": "toc",+ "weight": 4+ },+ {+ "signal": "signature_block",+ "weight": 3+ }+ ]+ },+ {+ "id": "compliance-document",+ "name": "Compliance document",+ "regexes": [+ {+ "pattern": "\\biso\\s?27001\\b",+ "flags": "gi",+ "weight": 12,+ "name": "ISO 27001 reference"+ },+ {+ "pattern": "\\brto\\b",+ "flags": "gi",+ "weight": 12,+ "name": "RTO abbreviation"+ },+ {+ "pattern": "\\brpo\\b",+ "flags": "gi",+ "weight": 12,+ "name": "RPO abbreviation"+ },+ {+ "pattern": "pci\\s*dss",+ "flags": "gi",+ "weight": 18,+ "name": "PCI DSS reference"+ },+ {+ "pattern": "\\b\\d{4}/\\d{1,3}/(eu|ec|eec)\\b",+ "flags": "gi",+ "weight": 22,+ "name": "eu directive number"+ },+ {+ "pattern": "\\b(bs\\s?)?en\\s?(iso\\s?|iec\\s?)?\\d{3,5}([-:]\\d{1,4}){0,3}",+ "flags": "gi",+ "weight": 12,+ "name": "en standard reference"+ }+ ],+ "filenames": [+ {+ "pattern": "information[\\s_-]?security[\\s_-]?polic",+ "weight": 28,+ "name": "information security policy filename"+ },+ {+ "pattern": "security[\\s_-]?polic(y|ies)",+ "weight": 24,+ "name": "security policy filename"+ },+ {+ "pattern": "infosec[\\s_-]?polic",+ "weight": 22,+ "name": "infosec policy filename"+ },+ {+ "pattern": "acceptable[\\s_-]?use[\\s_-]?polic",+ "weight": 18,+ "name": "AUP filename"+ },+ {+ "pattern": "business[\\s_-]?continuity",+ "weight": 28,+ "name": "BCP filename"+ },+ {+ "pattern": "disaster[\\s_-]?recovery",+ "weight": 26,+ "name": "DR plan filename"+ },+ {+ "pattern": "(^|[^a-z0-9])(bcp|drp)([^a-z0-9]|$)",+ "weight": 20,+ "name": "BCP/DRP abbreviation"+ },+ {+ "pattern": "compliance[\\s_-]?report",+ "weight": 28,+ "name": "compliance report filename"+ },+ {+ "pattern": "compliance[\\s_-]?assessment",+ "weight": 22,+ "name": "compliance assessment filename"+ },+ {+ "pattern": "(^|[^a-z0-9])(aoc|pci[\\s_-]?dss)([^a-z0-9]|$)",+ "weight": 20,+ "name": "AOC/PCI DSS abbreviation"+ },+ {+ "pattern": "declaration[\\s_-]*of[\\s_-]*conformity",+ "weight": 26,+ "name": "doc filename"+ },+ {+ "pattern": "(^|[^a-z0-9])(coc|cofc|dofc)([^a-z0-9]|$)",+ "weight": 18,+ "name": "coc abbreviation"+ },+ {+ "pattern": "conformity",+ "weight": 16,+ "name": "conformity keyword"+ }+ ],+ "structural": [+ {+ "signal": "toc",+ "weight": 4+ },+ {+ "signal": "long_doc",+ "weight": 3+ },+ {+ "signal": "bullet_heavy",+ "weight": 4+ },+ {+ "signal": "number_table",+ "weight": 6+ },+ {+ "signal": "short_doc",+ "weight": 8+ },+ {+ "signal": "signature_block",+ "weight": 6+ }+ ]+ },+ {+ "id": "incident-report",+ "name": "Incident report",+ "regexes": [+ {+ "pattern": "\\bioc(s)?\\b",+ "flags": "gi",+ "weight": 12,+ "name": "IOC abbreviation"+ }+ ],+ "filenames": [+ {+ "pattern": "security[\\s_-]?incident",+ "weight": 26,+ "name": "security incident filename"+ },+ {+ "pattern": "incident[\\s_-]?report",+ "weight": 24,+ "name": "incident report filename"+ },+ {+ "pattern": "breach[\\s_-]?report",+ "weight": 22,+ "name": "breach report filename"+ },+ {+ "pattern": "post[\\s_-]?mortem",+ "weight": 18,+ "name": "postmortem filename"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 6+ },+ {+ "signal": "toc",+ "weight": 3+ },+ {+ "signal": "signature_block",+ "weight": 3+ }+ ]+ },+ {+ "id": "questionnaire",+ "name": "Questionnaire",+ "filenames": [+ {+ "pattern": "security[\\s_-]?questionnaire",+ "weight": 28,+ "name": "security questionnaire filename"+ },+ {+ "pattern": "vendor[\\s_-]?risk",+ "weight": 20,+ "name": "vendor risk filename"+ },+ {+ "pattern": "(^|[^a-z0-9])(sig|caiq)([^a-z0-9]|$)",+ "weight": 22,+ "name": "SIG/CAIQ abbreviation filename"+ },+ {+ "pattern": "due[\\s_-]?diligence",+ "weight": 16,+ "name": "due diligence filename"+ }+ ],+ "structural": [+ {+ "signal": "form_like",+ "weight": 10+ },+ {+ "signal": "bullet_heavy",+ "weight": 4+ },+ {+ "signal": "number_table",+ "weight": 4+ }+ ]+ },+ {+ "id": "lab-report",+ "name": "Lab report",+ "metadata": [+ {+ "field": "any",+ "pattern": "labcorp|quest diagnostics|sonora quest|bioreference",+ "weight": 14,+ "name": "reference lab vendor"+ }+ ],+ "filenames": [+ {+ "pattern": "lab[-_ .]?(results?|report|work)",+ "weight": 26,+ "name": "lab results filename"+ },+ {+ "pattern": "blood[-_ .]?(test|work|results?)",+ "weight": 22,+ "name": "blood test filename"+ },+ {+ "pattern": "path(ology)?[-_ .]?(report|results?)",+ "weight": 18,+ "name": "pathology filename"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 10+ },+ {+ "signal": "short_doc",+ "weight": 4+ }+ ]+ },+ {+ "id": "prescription",+ "name": "Prescription",+ "regexes": [+ {+ "pattern": "\\bndc\\s?:?\\s?\\d{4,5}-\\d{3,4}-\\d{1,2}\\b",+ "weight": 20,+ "name": "NDC code"+ }+ ],+ "filenames": [+ {+ "pattern": "prescription",+ "weight": 26,+ "name": "prescription filename"+ },+ {+ "pattern": "(^|[^a-z])rx([^a-z]|$)",+ "weight": 18,+ "name": "rx token in filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 8+ },+ {+ "signal": "form_like",+ "weight": 4+ }+ ]+ },+ {+ "id": "medical-report",+ "name": "Medical report",+ "regexes": [+ {+ "pattern": "\\bmrn\\s?(?:no\\.?|#)?\\s?:?\\s?[a-z0-9]{5,12}\\b",+ "weight": 14,+ "name": "Medical record number"+ }+ ],+ "filenames": [+ {+ "pattern": "discharge[-_ .]?summary",+ "weight": 24,+ "name": "discharge summary filename"+ },+ {+ "pattern": "(clinic|consult(ant)?|medical|dr)[-_ .]?letter",+ "weight": 22,+ "name": "clinic letter filename"+ },+ {+ "pattern": "clinic[-_ .]?note",+ "weight": 20,+ "name": "clinic note filename"+ }+ ],+ "structural": [+ {+ "signal": "address_block",+ "weight": 6+ },+ {+ "signal": "signature_block",+ "weight": 5+ }+ ]+ },+ {+ "id": "immunization-record",+ "name": "Immunization record",+ "filenames": [+ {+ "pattern": "immuni[sz]",+ "weight": 26,+ "name": "immunization filename"+ },+ {+ "pattern": "vaccin",+ "weight": 24,+ "name": "vaccine filename"+ },+ {+ "pattern": "covid[-_ .]?(pass|cert|vacc|record)",+ "weight": 20,+ "name": "covid pass filename"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 4+ },+ {+ "signal": "form_like",+ "weight": 4+ },+ {+ "signal": "short_doc",+ "weight": 5+ }+ ]+ },+ {+ "id": "medical-invoice",+ "name": "Medical invoice",+ "regexes": [+ {+ "pattern": "\\b\\d{5}\\s?\\$\\d",+ "weight": 12,+ "name": "Procedure code before amount"+ }+ ],+ "filenames": [+ {+ "pattern": "explanation[-_ .]?of[-_ .]?benefits",+ "weight": 28,+ "name": "explanation of benefits filename"+ },+ {+ "pattern": "(^|[^a-z])eob([^a-z]|$)",+ "weight": 22,+ "name": "eob token in filename"+ },+ {+ "pattern": "(medical|hospital)[-_ .]?bill",+ "weight": 22,+ "name": "medical bill filename"+ },+ {+ "pattern": "billing[-_ .]?statement",+ "weight": 18,+ "name": "billing statement filename"+ }+ ],+ "structural": [+ {+ "signal": "currency_heavy",+ "weight": 9+ },+ {+ "signal": "number_table",+ "weight": 6+ }+ ]+ },+ {+ "id": "referral-letter",+ "name": "Referral letter",+ "filenames": [+ {+ "pattern": "referral",+ "weight": 26,+ "name": "referral filename"+ },+ {+ "pattern": "refer(red|ring)",+ "weight": 16,+ "name": "referred/referring filename"+ }+ ],+ "structural": [+ {+ "signal": "address_block",+ "weight": 6+ },+ {+ "signal": "signature_block",+ "weight": 5+ },+ {+ "signal": "short_doc",+ "weight": 5+ }+ ]+ },+ {+ "id": "consent-form",+ "name": "Consent form",+ "filenames": [+ {+ "pattern": "consent[-_ ]?form",+ "weight": 28,+ "name": "consent form filename"+ },+ {+ "pattern": "informed[-_ ]?consent",+ "weight": 26,+ "name": "informed consent filename"+ },+ {+ "pattern": "consent",+ "weight": 18,+ "name": "consent in filename"+ }+ ],+ "structural": [+ {+ "signal": "signature_block",+ "weight": 8+ },+ {+ "signal": "form_like",+ "weight": 6+ },+ {+ "signal": "short_doc",+ "weight": 4+ }+ ]+ },+ {+ "id": "discharge-summary",+ "name": "Discharge summary",+ "filenames": [+ {+ "pattern": "discharge[-_ ]?summary",+ "weight": 28,+ "name": "discharge summary filename"+ },+ {+ "pattern": "discharge",+ "weight": 20,+ "name": "discharge in filename"+ }+ ],+ "structural": [+ {+ "signal": "address_block",+ "weight": 4+ },+ {+ "signal": "signature_block",+ "weight": 3+ }+ ]+ },+ {+ "id": "insurance-policy",+ "name": "Insurance policy",+ "filenames": [+ {+ "pattern": "insurance[ _-]?policy",+ "weight": 26,+ "name": "insurance policy filename"+ },+ {+ "pattern": "policy[ _-]?(schedule|wording|document|booklet|declarations?)",+ "weight": 24,+ "name": "policy document filename"+ },+ {+ "pattern": "(?:^|[\\W_])ipid(?:[\\W_]|$)",+ "weight": 18,+ "name": "IPID filename"+ },+ {+ "pattern": "(?:^|[\\W_])policy",+ "weight": 8,+ "name": "policy in filename"+ },+ {+ "pattern": "(insurance|policy|motor|home|auto)[ _-]?renewal",+ "weight": 26,+ "name": "insurance renewal filename"+ },+ {+ "pattern": "renewal[ _-]?(notice|invitation|offer)",+ "weight": 26,+ "name": "renewal notice filename"+ },+ {+ "pattern": "renewal",+ "weight": 12,+ "name": "renewal in filename"+ }+ ],+ "structural": [+ {+ "signal": "long_doc",+ "weight": 5+ },+ {+ "signal": "toc",+ "weight": 3+ },+ {+ "signal": "short_doc",+ "weight": 4+ },+ {+ "signal": "currency_heavy",+ "weight": 3+ }+ ]+ },+ {+ "id": "insurance-certificate",+ "name": "Insurance certificate",+ "filenames": [+ {+ "pattern": "certificate[ _-]?of[ _-]?insurance",+ "weight": 28,+ "name": "certificate of insurance filename"+ },+ {+ "pattern": "acord",+ "weight": 25,+ "name": "acord filename"+ },+ {+ "pattern": "(?:^|[\\W_])coi(?:[\\W_]|$)",+ "weight": 22,+ "name": "coi abbreviation"+ },+ {+ "pattern": "cert.{0,20}(insurance|liab)",+ "weight": 20,+ "name": "insurance certificate filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 8+ },+ {+ "signal": "form_like",+ "weight": 5+ }+ ]+ },+ {+ "id": "insurance-claim",+ "name": "Insurance claim",+ "filenames": [+ {+ "pattern": "insurance[ _-]?claim",+ "weight": 26,+ "name": "insurance claim filename"+ },+ {+ "pattern": "claim[ _-]?form",+ "weight": 22,+ "name": "claim form filename"+ },+ {+ "pattern": "(?:^|[\\W_])fnol(?:[\\W_]|$)",+ "weight": 22,+ "name": "first notice of loss abbreviation"+ },+ {+ "pattern": "(?:^|[\\W_])claim",+ "weight": 12,+ "name": "claim in filename"+ }+ ],+ "structural": [+ {+ "signal": "form_like",+ "weight": 4+ }+ ]+ },+ {+ "id": "research-paper",+ "name": "Research paper",+ "regexes": [+ {+ "pattern": "\\b10\\.\\d{4,9}/[a-z0-9.()/:;_-]{4,60}",+ "weight": 20,+ "name": "DOI"+ },+ {+ "pattern": "\\[\\d{1,3}(,\\s?\\d{1,3}){1,6}\\]",+ "weight": 10,+ "name": "Numeric citation brackets"+ },+ {+ "pattern": "vol\\.\\s?\\d{1,3},\\s?no\\.\\s?\\d{1,3}",+ "weight": 14,+ "name": "Volume/issue line"+ }+ ],+ "metadata": [+ {+ "field": "producer",+ "pattern": "latex|pdftex|xetex|luatex",+ "weight": 14,+ "name": "LaTeX producer"+ },+ {+ "field": "any",+ "pattern": "elsevier|springer|ieee|arxiv",+ "weight": 12,+ "name": "Academic publisher"+ }+ ],+ "filenames": [+ {+ "pattern": "arxiv",+ "weight": 24,+ "name": "arxiv in filename"+ },+ {+ "pattern": "\\d{4}\\.\\d{4,5}(v\\d{1,2})?\\.pdf",+ "weight": 22,+ "name": "arXiv id filename"+ },+ {+ "pattern": "1-s2\\.0-s\\d",+ "weight": 25,+ "name": "Elsevier download filename"+ },+ {+ "pattern": "(preprint|manuscript)",+ "weight": 16,+ "name": "preprint/manuscript filename"+ }+ ],+ "structural": [+ {+ "signal": "references_section",+ "weight": 10+ }+ ]+ },+ {+ "id": "thesis",+ "name": "Thesis",+ "metadata": [+ {+ "field": "producer",+ "pattern": "latex|pdftex|xetex",+ "weight": 6,+ "name": "LaTeX producer"+ }+ ],+ "filenames": [+ {+ "pattern": "(thesis|dissertation)",+ "weight": 28,+ "name": "thesis/dissertation filename"+ },+ {+ "pattern": "phd",+ "weight": 12,+ "name": "phd in filename"+ }+ ],+ "structural": [+ {+ "signal": "toc",+ "weight": 9+ },+ {+ "signal": "long_doc",+ "weight": 10+ },+ {+ "signal": "references_section",+ "weight": 5+ }+ ]+ },+ {+ "id": "certificate",+ "name": "Certificate",+ "filenames": [+ {+ "pattern": "(certificate|diploma)",+ "weight": 22,+ "name": "certificate/diploma filename"+ },+ {+ "pattern": "(^|[^a-z])cert[_-]",+ "weight": 14,+ "name": "cert_ prefix"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 12+ },+ {+ "signal": "signature_block",+ "weight": 5+ }+ ]+ },+ {+ "id": "transcript",+ "name": "Transcript",+ "regexes": [+ {+ "pattern": "\\bgpa[:\\s]+[0-4]\\.\\d{1,2}",+ "weight": 18,+ "name": "GPA value"+ },+ {+ "pattern": "\\b[a-f][+-]?\\s\\d{1,2}\\.\\d{2}\\b",+ "weight": 8,+ "name": "Letter grade row"+ }+ ],+ "filenames": [+ {+ "pattern": "transcript",+ "weight": 22,+ "name": "transcript filename"+ },+ {+ "pattern": "academic[_ -]?record",+ "weight": 18,+ "name": "academic record filename"+ },+ {+ "pattern": "mark[_ -]?sheet",+ "weight": 20,+ "name": "marksheet filename"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 8+ }+ ]+ },+ {+ "id": "course-syllabus",+ "name": "Course syllabus",+ "filenames": [+ {+ "pattern": "syllabus",+ "weight": 28,+ "name": "syllabus filename"+ },+ {+ "pattern": "lecture",+ "weight": 18,+ "name": "lecture filename"+ },+ {+ "pattern": "(week|module|unit)[_ -]?\\d{1,2}",+ "weight": 14,+ "name": "week/module filename"+ },+ {+ "pattern": "(^|[^a-z])lec[_-]?\\d",+ "weight": 14,+ "name": "lecNN filename"+ }+ ],+ "structural": [+ {+ "signal": "bullet_heavy",+ "weight": 4+ },+ {+ "signal": "toc",+ "weight": 3+ }+ ]+ },+ {+ "id": "assignment-brief",+ "name": "Assignment brief",+ "filenames": [+ {+ "pattern": "(homework|assignment|worksheet|problem[_ -]?set|pset)",+ "weight": 24,+ "name": "homework/worksheet filename"+ },+ {+ "pattern": "(^|[^a-z])hw[_ -]?\\d",+ "weight": 18,+ "name": "hwN filename"+ },+ {+ "pattern": "(^|[^a-z])(quiz|midterm|exams?)[^a-z]",+ "weight": 16,+ "name": "quiz/exam filename"+ },+ {+ "pattern": "exercise",+ "weight": 10,+ "name": "exercise filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 4+ },+ {+ "signal": "form_like",+ "weight": 3+ }+ ]+ },+ {+ "id": "grade-report",+ "name": "Grade report",+ "regexes": [+ {+ "pattern": "\\b(?:wts|exs|gds)\\b",+ "weight": 10,+ "name": "UK attainment codes"+ }+ ],+ "filenames": [+ {+ "pattern": "report[-_ ]?card",+ "weight": 28,+ "name": "report card filename"+ },+ {+ "pattern": "school[-_ ]?report",+ "weight": 24,+ "name": "school report filename"+ },+ {+ "pattern": "(end[-_ ]?of[-_ ]?(year|term)|summer|autumn)[-_ ]?report",+ "weight": 20,+ "name": "end of year/term report filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 5+ },+ {+ "signal": "number_table",+ "weight": 4+ }+ ]+ },+ {+ "id": "registration-form",+ "name": "Registration form",+ "filenames": [+ {+ "pattern": "enrol{1,2}ment",+ "weight": 26,+ "name": "enrollment filename"+ },+ {+ "pattern": "admission[-_ ]?(form|application|pack)",+ "weight": 24,+ "name": "admission form filename"+ },+ {+ "pattern": "registration[-_ ]?(form|packet)",+ "weight": 18,+ "name": "registration form filename"+ },+ {+ "pattern": "new[-_ ]?student",+ "weight": 16,+ "name": "new student filename"+ }+ ],+ "structural": [+ {+ "signal": "form_like",+ "weight": 8+ },+ {+ "signal": "address_block",+ "weight": 4+ }+ ]+ },+ {+ "id": "lesson-plan",+ "name": "Lesson plan",+ "filenames": [+ {+ "pattern": "lesson[-_ ]?plan",+ "weight": 30,+ "name": "lesson plan filename"+ },+ {+ "pattern": "scheme[-_ ]?of[-_ ]?work",+ "weight": 20,+ "name": "scheme of work filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 5+ },+ {+ "signal": "bullet_heavy",+ "weight": 4+ },+ {+ "signal": "form_like",+ "weight": 3+ }+ ]+ },+ {+ "id": "lease-agreement",+ "name": "Lease agreement",+ "filenames": [+ {+ "pattern": "rental[-_ ]?agreement",+ "weight": 28,+ "name": "rental agreement filename"+ },+ {+ "pattern": "tenancy",+ "weight": 26,+ "name": "tenancy filename"+ },+ {+ "pattern": "(?:^|[^a-z])lease",+ "weight": 24,+ "name": "lease filename"+ }+ ],+ "structural": [+ {+ "signal": "signature_block",+ "weight": 6+ }+ ]+ },+ {+ "id": "mortgage-document",+ "name": "Mortgage document",+ "metadata": [+ {+ "field": "creator",+ "pattern": "encompass|calyx",+ "weight": 10,+ "name": "loan origination software"+ }+ ],+ "filenames": [+ {+ "pattern": "closing[-_ ]?disclosure",+ "weight": 30,+ "name": "closing disclosure filename"+ },+ {+ "pattern": "loan[-_ ]?estimate",+ "weight": 28,+ "name": "loan estimate filename"+ },+ {+ "pattern": "mortgage",+ "weight": 26,+ "name": "mortgage filename"+ },+ {+ "pattern": "deed[-_ ]?of[-_ ]?trust",+ "weight": 26,+ "name": "deed of trust filename"+ }+ ],+ "structural": [+ {+ "signal": "currency_heavy",+ "weight": 4+ },+ {+ "signal": "number_table",+ "weight": 4+ }+ ]+ },+ {+ "id": "deed",+ "name": "Deed",+ "filenames": [+ {+ "pattern": "quitclaim|warranty[-_ ]?deed",+ "weight": 28,+ "name": "deed type filename"+ },+ {+ "pattern": "title[-_ ]?deed",+ "weight": 26,+ "name": "title deed filename"+ },+ {+ "pattern": "land[-_ ]?registry|official[-_ ]?copy",+ "weight": 22,+ "name": "land registry filename"+ },+ {+ "pattern": "(?:^|[^a-z])deed",+ "weight": 20,+ "name": "deed filename"+ }+ ],+ "structural": [+ {+ "signal": "signature_block",+ "weight": 6+ },+ {+ "signal": "short_doc",+ "weight": 5+ }+ ]+ },+ {+ "id": "property-listing",+ "name": "Property listing",+ "metadata": [+ {+ "field": "any",+ "pattern": "rightmove|zoopla|zillow|redfin|matterport",+ "weight": 14,+ "name": "listing portal metadata"+ }+ ],+ "filenames": [+ {+ "pattern": "rightmove|zoopla|zillow|redfin",+ "weight": 26,+ "name": "listing portal filename"+ },+ {+ "pattern": "listing",+ "weight": 20,+ "name": "listing filename"+ },+ {+ "pattern": "property[-_ ]?details|particulars",+ "weight": 20,+ "name": "property details filename"+ }+ ],+ "structural": [+ {+ "signal": "address_block",+ "weight": 5+ },+ {+ "signal": "url_heavy",+ "weight": 4+ },+ {+ "signal": "short_doc",+ "weight": 3+ }+ ]+ },+ {+ "id": "inspection-report",+ "name": "Inspection report",+ "metadata": [+ {+ "field": "creator",+ "pattern": "spectora|homegauge|home inspector pro",+ "weight": 12,+ "name": "inspection software"+ }+ ],+ "filenames": [+ {+ "pattern": "home[-_ ]?inspection",+ "weight": 28,+ "name": "home inspection filename"+ },+ {+ "pattern": "homebuyer|building[-_ ]?survey",+ "weight": 24,+ "name": "survey report filename"+ },+ {+ "pattern": "inspection",+ "weight": 22,+ "name": "inspection filename"+ }+ ],+ "structural": [+ {+ "signal": "long_doc",+ "weight": 5+ },+ {+ "signal": "toc",+ "weight": 4+ },+ {+ "signal": "bullet_heavy",+ "weight": 3+ }+ ]+ },+ {+ "id": "hoa-document",+ "name": "HOA document",+ "regexes": [+ {+ "pattern": "\\bhoa\\b",+ "weight": 12,+ "name": "HOA acronym"+ }+ ],+ "filenames": [+ {+ "pattern": "hoa[-_. ]|[-_. ]hoa",+ "weight": 24,+ "name": "hoa filename"+ },+ {+ "pattern": "homeowners",+ "weight": 20,+ "name": "homeowners filename"+ },+ {+ "pattern": "service[-_ ]?charge",+ "weight": 18,+ "name": "service charge filename"+ },+ {+ "pattern": "assessment[-_ ]?notice",+ "weight": 18,+ "name": "assessment notice filename"+ }+ ],+ "structural": [+ {+ "signal": "address_block",+ "weight": 4+ },+ {+ "signal": "short_doc",+ "weight": 3+ }+ ]+ },+ {+ "id": "application-form",+ "name": "Application form",+ "regexes": [+ {+ "pattern": "\\(rev\\.?\\s*\\d{1,2}[\\/. -]\\d{2,4}\\)",+ "weight": 12,+ "name": "Form revision marker",+ "where": "first"+ }+ ],+ "metadata": [+ {+ "field": "producer",+ "pattern": "livecycle",+ "weight": 10,+ "name": "LiveCycle form producer"+ }+ ],+ "filenames": [+ {+ "pattern": "(application|registration)[-_ ]?form",+ "weight": 18,+ "name": "Application form filename"+ },+ {+ "pattern": "\\bform[-_ ]?[a-z]{0,3}-?\\d{1,4}\\b",+ "weight": 16,+ "name": "Form number filename"+ },+ {+ "pattern": "planning[-_ ]?(application|permission|statement|decision)",+ "weight": 26,+ "name": "Planning filename"+ },+ {+ "pattern": "zoning|variance",+ "weight": 20,+ "name": "Zoning filename"+ },+ {+ "pattern": "site[-_ ]?plan",+ "weight": 16,+ "name": "Site plan filename"+ }+ ],+ "structural": [+ {+ "signal": "form_like",+ "weight": 12+ },+ {+ "signal": "address_block",+ "weight": 3+ }+ ]+ },+ {+ "id": "government-notice",+ "name": "Government notice",+ "regexes": [+ {+ "pattern": "\\bm-\\d{2}-\\d{2}\\b",+ "weight": 16,+ "name": "OMB memorandum number"+ }+ ],+ "metadata": [+ {+ "field": "any",+ "pattern": "gov\\.uk",+ "weight": 10,+ "name": "gov.uk in metadata"+ }+ ],+ "filenames": [+ {+ "pattern": "(gov|council|federal|ministry|dwp|home[-_ ]?office)[-_ ]?letter",+ "weight": 18,+ "name": "Government letter filename"+ },+ {+ "pattern": "electoral",+ "weight": 15,+ "name": "Electoral correspondence filename"+ },+ {+ "pattern": "foia?[-_ ]?(request|response|reply)",+ "weight": 28,+ "name": "FOI request/response filename"+ },+ {+ "pattern": "public[-_ ]?records[-_ ]?request",+ "weight": 24,+ "name": "Public records request filename"+ },+ {+ "pattern": "(^|[^a-z])foia?([^a-z]|$)",+ "weight": 18,+ "name": "FOI in filename"+ },+ {+ "pattern": "consultation",+ "weight": 26,+ "name": "Consultation filename"+ },+ {+ "pattern": "green[-_ ]?paper",+ "weight": 22,+ "name": "Green paper filename"+ },+ {+ "pattern": "call[-_ ]?for[-_ ]?evidence",+ "weight": 20,+ "name": "Call for evidence filename"+ },+ {+ "pattern": "circular",+ "weight": 26,+ "name": "Circular filename"+ },+ {+ "pattern": "directive",+ "weight": 18,+ "name": "Directive filename"+ },+ {+ "pattern": "award[-_ ]?notice|notice[-_ ]?of[-_ ]?award|intent[-_ ]?to[-_ ]?award",+ "weight": 28,+ "name": "Award notice filename"+ },+ {+ "pattern": "contract[-_ ]?award",+ "weight": 26,+ "name": "Contract award filename"+ },+ {+ "pattern": "\\bnoia\\b",+ "weight": 15,+ "name": "NOIA filename"+ }+ ],+ "structural": [+ {+ "signal": "address_block",+ "weight": 6+ },+ {+ "signal": "signature_block",+ "weight": 4+ },+ {+ "signal": "short_doc",+ "weight": 4+ },+ {+ "signal": "bullet_heavy",+ "weight": 3+ },+ {+ "signal": "url_heavy",+ "weight": 3+ }+ ]+ },+ {+ "id": "visa-document",+ "name": "Visa document",+ "regexes": [+ {+ "pattern": "\\b(eac|wac|lin|src|msc|ioe|nbc|ysc)[-\\s]?\\d{2}[-\\s]?\\d{3}[-\\s]?\\d{5}\\b",+ "weight": 25,+ "name": "USCIS receipt number"+ },+ {+ "pattern": "\\bds-(11|82|160|260)\\b",+ "weight": 20,+ "name": "State Dept DS form"+ },+ {+ "pattern": "\\ba#\\s*\\d{2,3}[- ]?\\d{3}[- ]?\\d{3}\\b",+ "weight": 18,+ "name": "Alien number"+ }+ ],+ "filenames": [+ {+ "pattern": "visa|uscis|immigration",+ "weight": 24,+ "name": "Visa/immigration filename"+ },+ {+ "pattern": "\\bi-?(20|94|129|130|485|539|765|797)",+ "weight": 20,+ "name": "I-series form filename"+ },+ {+ "pattern": "passport",+ "weight": 18,+ "name": "Passport filename"+ },+ {+ "pattern": "home[-_ ]?office",+ "weight": 16,+ "name": "Home Office filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 3+ }+ ]+ },+ {+ "id": "license",+ "name": "License",+ "filenames": [+ {+ "pattern": "licen[cs]e|permit",+ "weight": 20,+ "name": "License/permit filename"+ },+ {+ "pattern": "dvla",+ "weight": 20,+ "name": "DVLA filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 5+ },+ {+ "signal": "signature_block",+ "weight": 3+ }+ ]+ },+ {+ "id": "public-notice",+ "name": "Public notice",+ "filenames": [+ {+ "pattern": "gazette",+ "weight": 26,+ "name": "Gazette filename"+ },+ {+ "pattern": "public[-_ ]?notice",+ "weight": 24,+ "name": "Public notice filename"+ },+ {+ "pattern": "notice[-_ ]?of[-_ ]?hearing",+ "weight": 20,+ "name": "Notice of hearing filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 4+ }+ ]+ },+ {+ "id": "analytics-report",+ "name": "Analytics report",+ "regexes": [+ {+ "pattern": "\\bq[1-4]\\s+20\\d{2}\\b",+ "weight": 12,+ "name": "Quarter reference"+ }+ ],+ "metadata": [+ {+ "field": "any",+ "pattern": "office for national statistics|census bureau|bureau of labor statistics",+ "weight": 14,+ "name": "Stats agency metadata"+ }+ ],+ "filenames": [+ {+ "pattern": "statistical[-_ ]?(release|bulletin)",+ "weight": 28,+ "name": "Statistical release filename"+ },+ {+ "pattern": "(^|[^a-z])(ons|bls|cpi|gdp)([^a-z]|$)",+ "weight": 18,+ "name": "Stats agency/series filename"+ },+ {+ "pattern": "labou?r[-_ ]?market|unemployment",+ "weight": 16,+ "name": "Labour market filename"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 8+ }+ ]+ },+ {+ "id": "grant-agreement",+ "name": "Grant agreement",+ "filenames": [+ {+ "pattern": "notice[-_ ]?of[-_ ]?award",+ "weight": 28,+ "name": "Notice of award filename"+ },+ {+ "pattern": "grant[-_ ]?(award|offer|agreement|letter)",+ "weight": 24,+ "name": "Grant letter filename"+ },+ {+ "pattern": "(^|[^a-z])noa([^a-z]|$)",+ "weight": 15,+ "name": "NoA abbreviation filename"+ }+ ],+ "structural": [+ {+ "signal": "currency_heavy",+ "weight": 5+ },+ {+ "signal": "signature_block",+ "weight": 3+ }+ ]+ },+ {+ "id": "tender-document",+ "name": "Tender document",+ "filenames": [+ {+ "pattern": "invitation[-_ ]?to[-_ ]?tender|request[-_ ]?for[-_ ]?(?:proposal|quotation|tender)s?",+ "weight": 28,+ "name": "ITT/RFP/RFQ filename"+ },+ {+ "pattern": "\\b(?:itt|rfp|rfq|rft|pqq)\\b(?![-_ ]?(?:response|reply|submission|return))",+ "weight": 22,+ "name": "Solicitation acronym filename"+ },+ {+ "pattern": "tender(?![-_ ]?(?:response|return|submission))",+ "weight": 16,+ "name": "Tender filename"+ }+ ],+ "structural": [+ {+ "signal": "toc",+ "weight": 4+ },+ {+ "signal": "long_doc",+ "weight": 3+ }+ ]+ },+ {+ "id": "sales-proposal",+ "name": "Sales proposal",+ "filenames": [+ {+ "pattern": "(?:tender|bid|rfp|itt)[-_ ]?(?:response|submission|return)",+ "weight": 28,+ "name": "Tender response filename"+ },+ {+ "pattern": "response[-_ ]?to[-_ ]?(?:tender|rfp|itt|rfq)",+ "weight": 26,+ "name": "Response-to-solicitation filename"+ },+ {+ "pattern": "compliance[-_ ]?matrix",+ "weight": 18,+ "name": "Compliance matrix filename"+ }+ ],+ "structural": [+ {+ "signal": "toc",+ "weight": 3+ },+ {+ "signal": "signature_block",+ "weight": 3+ },+ {+ "signal": "currency_heavy",+ "weight": 2+ }+ ]+ },+ {+ "id": "supply-order",+ "name": "Supply order",+ "regexes": [+ {+ "pattern": "\\bpr[-#]?\\d{4,8}\\b",+ "weight": 12,+ "name": "PR number reference"+ }+ ],+ "filenames": [+ {+ "pattern": "requisition",+ "weight": 28,+ "name": "Requisition filename"+ },+ {+ "pattern": "purchase[-_ ]?req",+ "weight": 22,+ "name": "Purchase req filename"+ },+ {+ "pattern": "\\bpr[-_]?\\d{4,8}",+ "weight": 15,+ "name": "PR number filename"+ }+ ],+ "structural": [+ {+ "signal": "form_like",+ "weight": 8+ },+ {+ "signal": "short_doc",+ "weight": 5+ },+ {+ "signal": "number_table",+ "weight": 3+ }+ ]+ },+ {+ "id": "grant-application",+ "name": "Grant application",+ "filenames": [+ {+ "pattern": "grant[-_ ]?application|funding[-_ ]?application|application[-_ ]?for[-_ ]?funding",+ "weight": 28,+ "name": "Grant application filename"+ },+ {+ "pattern": "\\bsf[-_]?424",+ "weight": 22,+ "name": "SF-424 filename"+ }+ ],+ "structural": [+ {+ "signal": "form_like",+ "weight": 5+ }+ ]+ },+ {+ "id": "technical-drawing",+ "name": "Technical drawing",+ "regexes": [+ {+ "pattern": "[ø⌀]\\s?\\d{1,3}(\\.\\d{1,2})?",+ "flags": "gi",+ "weight": 12,+ "name": "diameter callout"+ }+ ],+ "metadata": [+ {+ "field": "producer",+ "pattern": "autocad|dwg to pdf|solidworks|revit|microstation|inventor|draftsight|bricscad",+ "weight": 20,+ "name": "cad producer"+ },+ {+ "field": "creator",+ "pattern": "autocad|solidworks|revit|catia|creo|archicad|tekla|vectorworks",+ "weight": 18,+ "name": "cad creator"+ }+ ],+ "filenames": [+ {+ "pattern": "(^|[^a-z0-9])(dwg|drg)([^a-z0-9]|$)",+ "weight": 20,+ "name": "dwg abbreviation"+ },+ {+ "pattern": "drawing",+ "weight": 15,+ "name": "drawing keyword"+ },+ {+ "pattern": "general[\\s_-]?arrangement|(^|[^a-z0-9])ga[\\s_-]?plan",+ "weight": 16,+ "name": "ga plan filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 8+ }+ ]+ },+ {+ "id": "bill-of-materials",+ "name": "Bill of materials",+ "regexes": [+ {+ "pattern": "\\bdnp\\b",+ "flags": "gi",+ "weight": 12,+ "name": "dnp marker"+ }+ ],+ "filenames": [+ {+ "pattern": "(^|[^a-z0-9])boq([^a-z0-9]|$)",+ "weight": 24,+ "name": "boq abbreviation"+ },+ {+ "pattern": "bill[\\s_-]*of[\\s_-]*quantities",+ "weight": 26,+ "name": "boq filename"+ },+ {+ "pattern": "pricing[\\s_-]?document|tender[\\s_-]?sum",+ "weight": 15,+ "name": "tender pricing filename"+ },+ {+ "pattern": "(^|[^a-z0-9])bom([^a-z0-9]|$)",+ "weight": 24,+ "name": "bom abbreviation"+ },+ {+ "pattern": "bill[\\s_-]*of[\\s_-]*materials?",+ "weight": 24,+ "name": "bom filename"+ },+ {+ "pattern": "parts[\\s_-]?list",+ "weight": 18,+ "name": "parts list filename"+ }+ ],+ "structural": [+ {+ "signal": "currency_heavy",+ "weight": 8+ },+ {+ "signal": "number_table",+ "weight": 6+ },+ {+ "signal": "long_doc",+ "weight": 4+ }+ ]+ },+ {+ "id": "safety-procedure",+ "name": "Safety procedure",+ "regexes": [+ {+ "pattern": "\\bppe\\b",+ "flags": "gi",+ "weight": 10,+ "name": "ppe acronym"+ }+ ],+ "filenames": [+ {+ "pattern": "method[\\s_-]?statement",+ "weight": 26,+ "name": "method statement filename"+ },+ {+ "pattern": "(^|[^a-z0-9])rams([^a-z0-9]|$)",+ "weight": 20,+ "name": "rams filename"+ },+ {+ "pattern": "(^|[^a-z0-9])ms[-_ ]?\\d{2,4}",+ "weight": 15,+ "name": "ms number filename"+ },+ {+ "pattern": "standard[-_ ]?operating[-_ ]?procedure|\\bsop\\b",+ "weight": 16,+ "name": "SOP filename"+ }+ ],+ "structural": [+ {+ "signal": "bullet_heavy",+ "weight": 6+ },+ {+ "signal": "toc",+ "weight": 4+ }+ ]+ },+ {+ "id": "test-report",+ "name": "Test report",+ "regexes": [+ {+ "pattern": "en\\s?10204",+ "flags": "gi",+ "weight": 25,+ "name": "en 10204 reference"+ },+ {+ "pattern": "\\b\\d{3,4}\\s?(n/mm2|n/mm²|mpa)\\b",+ "flags": "gi",+ "weight": 14,+ "name": "strength units"+ },+ {+ "pattern": "iso\\s?/?\\s?(iec\\s?)?17025",+ "flags": "gi",+ "weight": 22,+ "name": "iso 17025"+ }+ ],+ "metadata": [+ {+ "field": "producer",+ "pattern": "met/?cal|procal|indysoft|gagetrak",+ "weight": 14,+ "name": "calibration software"+ }+ ],+ "filenames": [+ {+ "pattern": "mill[\\s_-]?(test[\\s_-]?)?cert",+ "weight": 24,+ "name": "mill cert filename"+ },+ {+ "pattern": "(^|[^a-z0-9])mtc([^a-z0-9]|$)",+ "weight": 20,+ "name": "mtc abbreviation"+ },+ {+ "pattern": "test[\\s_-]?cert",+ "weight": 18,+ "name": "test cert filename"+ },+ {+ "pattern": "(^|[^a-z0-9])3\\.1([^a-z0-9]|$)",+ "weight": 15,+ "name": "3.1 in filename"+ },+ {+ "pattern": "cal[\\s_-]?cert",+ "weight": 22,+ "name": "cal cert filename"+ },+ {+ "pattern": "calibration",+ "weight": 22,+ "name": "calibration keyword"+ },+ {+ "pattern": "(^|[^a-z0-9])cal[-_ ]?\\d{3,}",+ "weight": 15,+ "name": "cal number filename"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 8+ },+ {+ "signal": "short_doc",+ "weight": 4+ }+ ]+ },+ {+ "id": "quality-report",+ "name": "Quality report",+ "regexes": [+ {+ "pattern": "\\bncr[- ]?\\d{2,6}\\b",+ "flags": "gi",+ "weight": 20,+ "name": "ncr number"+ },+ {+ "pattern": "\\baql\\b",+ "flags": "gi",+ "weight": 16,+ "name": "aql"+ }+ ],+ "filenames": [+ {+ "pattern": "(incoming|final|first[\\s_-]?article)[\\s_-]?inspection",+ "weight": 24,+ "name": "inspection stage filename"+ },+ {+ "pattern": "(^|[^a-z0-9])(fai|ncr)([^a-z0-9]|$)",+ "weight": 18,+ "name": "fai or ncr abbreviation"+ },+ {+ "pattern": "inspection[\\s_-]?report",+ "weight": 15,+ "name": "inspection report filename"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 8+ },+ {+ "signal": "form_like",+ "weight": 4+ }+ ]+ },+ {+ "id": "itinerary",+ "name": "Itinerary",+ "regexes": [+ {+ "pattern": "\\((?!USD|EUR|GBP|CHF|JPY|CAD|AUD|VAT|LLC|LTD|INC|FAQ|PDF|USA)[A-Z]{3}\\)",+ "flags": "g",+ "weight": 10,+ "name": "IATA airport code in parentheses (currency/legal codes excluded)"+ },+ {+ "pattern": "\\b\\d{1,2}h\\s?\\d{2}m\\b",+ "flags": "gi",+ "weight": 12,+ "name": "duration like 2h 45m"+ }+ ],+ "filenames": [+ {+ "pattern": "itinerar",+ "weight": 28,+ "name": "itinerary in filename"+ },+ {+ "pattern": "trip[-_ ]?(?:plan|details|summary)",+ "weight": 20,+ "name": "trip plan/details/summary"+ },+ {+ "pattern": "travel[-_ ]?plan",+ "weight": 18,+ "name": "travel plan"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 4+ },+ {+ "signal": "short_doc",+ "weight": 3+ }+ ]+ },+ {+ "id": "ticket",+ "name": "Ticket",+ "regexes": [+ {+ "pattern": "\\b\\d{3}[- ]?\\d{10}\\b",+ "flags": "g",+ "weight": 12,+ "name": "13-digit ticket number"+ },+ {+ "pattern": "\\bnuc\\s?\\d{1,6}(?:\\.\\d{1,2})?\\b",+ "flags": "gi",+ "weight": 18,+ "name": "NUC amount in fare calculation"+ }+ ],+ "metadata": [+ {+ "field": "any",+ "pattern": "amadeus|sabre|travelport|galileo",+ "weight": 8,+ "name": "GDS software in metadata"+ },+ {+ "field": "any",+ "pattern": "ticketmaster|eventbrite|axs tickets|see tickets",+ "weight": 15,+ "name": "Ticketing platform metadata"+ }+ ],+ "filenames": [+ {+ "pattern": "boarding",+ "weight": 26,+ "name": "boarding in filename"+ },+ {+ "pattern": "e[-_]?ticket|etkt",+ "weight": 28,+ "name": "e-ticket filename"+ },+ {+ "pattern": "ticket[-_ ]?receipt",+ "weight": 22,+ "name": "ticket receipt filename"+ },+ {+ "pattern": "ticket",+ "weight": 18,+ "name": "Ticket in filename"+ },+ {+ "pattern": "ticketmaster|eventbrite|axs|seetickets|dice[_\\- ]",+ "weight": 26,+ "name": "Ticketing platform in filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 10+ },+ {+ "signal": "form_like",+ "weight": 3+ },+ {+ "signal": "currency_heavy",+ "weight": 3+ }+ ]+ },+ {+ "id": "booking-confirmation",+ "name": "Booking confirmation",+ "filenames": [+ {+ "pattern": "booking[-_ ]?confirmation",+ "weight": 30,+ "name": "booking confirmation filename"+ },+ {+ "pattern": "confirmation",+ "weight": 16,+ "name": "confirmation in filename"+ },+ {+ "pattern": "hotel|reservation|booking",+ "weight": 16,+ "name": "hotel/reservation/booking in filename"+ }+ ],+ "structural": [+ {+ "signal": "address_block",+ "weight": 5+ },+ {+ "signal": "currency_heavy",+ "weight": 3+ },+ {+ "signal": "short_doc",+ "weight": 3+ }+ ]+ },+ {+ "id": "utility-bill",+ "name": "Utility bill",+ "regexes": [+ {+ "pattern": "\\b\\d[\\d,]{0,6}(\\.\\d{1,3})?\\s*kwh\\b",+ "flags": "gi",+ "weight": 15,+ "name": "kWh amount"+ },+ {+ "pattern": "\\bmp[ar]n\\b",+ "flags": "gi",+ "weight": 20,+ "name": "UK meter point number (MPAN/MPRN)"+ }+ ],+ "metadata": [+ {+ "field": "author",+ "pattern": "(british gas|octopus energy|edf energy|e\\.on|duke energy|con edison|national grid|thames water|pacific gas)",+ "weight": 12,+ "name": "utility provider author"+ },+ {+ "field": "author",+ "pattern": "(verizon|vodafone|at&t|t-mobile|comcast|xfinity|virgin media|bt group)",+ "weight": 12,+ "name": "telecom provider author"+ }+ ],+ "filenames": [+ {+ "pattern": "(electric|gas|water|energy|utility|utilities|power)[-_ ]?(bill|statement)",+ "weight": 25,+ "name": "utility bill filename"+ },+ {+ "pattern": "(british[-_ ]?gas|octopus[-_ ]?energy|thames[-_ ]?water|scottish[-_ ]?power|national[-_ ]?grid|duke[-_ ]?energy|con[-_ ]?edison)",+ "weight": 18,+ "name": "utility provider filename"+ },+ {+ "pattern": "(pg&e|pacific[-_ ]?gas|eon[-_ ]?next|e\\.on|sse[-_ ]?energy|edf[-_ ]?energy|severn[-_ ]?trent|united[-_ ]?utilities|american[-_ ]?water|centerpoint[-_ ]?energy)",+ "weight": 18,+ "name": "utility provider filename (extended)"+ },+ {+ "pattern": "(phone|mobile|broadband|wireless|telecom|cell)[-_ ]?(bill|statement|invoice)",+ "weight": 25,+ "name": "telecom bill filename"+ },+ {+ "pattern": "(verizon|vodafone|t-?mobile|at&t|xfinity|comcast|spectrum[-_ ]?bill|virgin[-_ ]?media|o2[-_ ]?bill|ee[-_ ]?bill|sky[-_ ]?bill|three[-_ ]?bill|giffgaff|mint[-_ ]?mobile)",+ "weight": 18,+ "name": "telecom provider filename"+ }+ ],+ "structural": [+ {+ "signal": "currency_heavy",+ "weight": 4+ },+ {+ "signal": "number_table",+ "weight": 5+ },+ {+ "signal": "address_block",+ "weight": 4+ }+ ]+ },+ {+ "id": "subscription-confirmation",+ "name": "Subscription confirmation",+ "metadata": [+ {+ "field": "author",+ "pattern": "(stripe|paddle|recurly|chargebee|fastspring)",+ "weight": 10,+ "name": "billing platform author"+ }+ ],+ "filenames": [+ {+ "pattern": "subscription",+ "weight": 20,+ "name": "subscription filename"+ },+ {+ "pattern": "(netflix|spotify|patreon|hulu|audible|crunchyroll|disney[-_ ]?plus|disneyplus)",+ "weight": 18,+ "name": "subscription service filename"+ },+ {+ "pattern": "(adobe|dropbox|icloud)[-_ ]?(receipt|invoice|renewal|subscription)",+ "weight": 20,+ "name": "software subscription receipt filename"+ },+ {+ "pattern": "(apple|itunes|google[-_ ]?play|app[-_ ]?store)[-_ ]?(receipt|invoice|order)",+ "weight": 20,+ "name": "app store receipt filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 6+ },+ {+ "signal": "currency_heavy",+ "weight": 3+ }+ ]+ },+ {+ "id": "waybill",+ "name": "Waybill",+ "regexes": [+ {+ "pattern": "\\b1z[\\s-]?[0-9a-z]{3}[\\s-]?[0-9a-z]{3}[\\s-]?[0-9a-z]{2}[\\s-]?[0-9a-z]{4}[\\s-]?[0-9a-z]{4}\\b",+ "weight": 24,+ "name": "UPS tracking number"+ },+ {+ "pattern": "\\b9[1-5]\\d{2}[\\s-]?\\d{4}[\\s-]?\\d{4}[\\s-]?\\d{4}[\\s-]?\\d{4}(?:[\\s-]?\\d{2})?\\b",+ "weight": 20,+ "name": "USPS tracking number"+ },+ {+ "pattern": "\\b[a-z]{2}\\s?\\d{4}\\s?\\d{4}\\s?\\d\\s?gb\\b",+ "weight": 18,+ "name": "Royal Mail tracking number"+ }+ ],+ "metadata": [+ {+ "field": "any",+ "pattern": "shipstation|endicia|stamps\\.com|pirate ?ship|easypost|shippo|click ?& ?drop|sendcloud|packlink",+ "weight": 15,+ "name": "label platform producer"+ }+ ],+ "filenames": [+ {+ "pattern": "shipping[-_ ]?label",+ "weight": 28,+ "name": "shipping label filename"+ },+ {+ "pattern": "(ups|usps|fedex|dhl|evri|dpd|hermes|royal[-_ ]?mail)[-_ ]?(shipping[-_ ]?)?label",+ "weight": 26,+ "name": "carrier label filename"+ },+ {+ "pattern": "(^|[\\\\/])labels?( ?\\(\\d+\\))?\\.pdf$",+ "weight": 16,+ "name": "label.pdf filename"+ },+ {+ "pattern": "way[-_ ]?bill|bill[-_ ]?of[-_ ]?lading|\\bawb\\b",+ "weight": 18,+ "name": "waybill / bill of lading filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 10+ },+ {+ "signal": "address_block",+ "weight": 6+ }+ ]+ },+ {+ "id": "packing-slip",+ "name": "Packing slip",+ "regexes": [+ {+ "pattern": "\\b\\d{3}-\\d{7}-\\d{7}\\b",+ "weight": 10,+ "name": "Amazon order ID"+ }+ ],+ "filenames": [+ {+ "pattern": "packing[-_ ]?slip",+ "weight": 28,+ "name": "packing slip filename"+ },+ {+ "pattern": "packing[-_ ]?list",+ "weight": 24,+ "name": "packing list filename"+ },+ {+ "pattern": "pack[-_ ]?slip",+ "weight": 20,+ "name": "packslip filename"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 6+ },+ {+ "signal": "short_doc",+ "weight": 5+ }+ ]+ },+ {+ "id": "customs-declaration",+ "name": "Customs declaration",+ "regexes": [+ {+ "pattern": "\\bcn\\s?2[23]\\b",+ "weight": 25,+ "name": "CN22/CN23 form code"+ },+ {+ "pattern": "\\b\\d{4}\\.\\d{2}(?:\\.\\d{2,4})?\\b",+ "weight": 6,+ "name": "HS code format"+ }+ ],+ "filenames": [+ {+ "pattern": "cn[-_ ]?2[23]",+ "weight": 28,+ "name": "CN22/CN23 filename"+ },+ {+ "pattern": "customs",+ "weight": 24,+ "name": "customs filename"+ },+ {+ "pattern": "commercial[-_ ]?invoice",+ "weight": 24,+ "name": "commercial invoice filename"+ }+ ],+ "structural": [+ {+ "signal": "form_like",+ "weight": 8+ },+ {+ "signal": "number_table",+ "weight": 4+ }+ ]+ },+ {+ "id": "delivery-note",+ "name": "Delivery note",+ "filenames": [+ {+ "pattern": "delivery[-_ ]?note",+ "weight": 28,+ "name": "delivery note filename"+ },+ {+ "pattern": "proof[-_ ]?of[-_ ]?delivery",+ "weight": 26,+ "name": "proof of delivery filename"+ },+ {+ "pattern": "(^|[\\\\/_-])pod[_-]?\\d+",+ "weight": 20,+ "name": "POD number filename"+ },+ {+ "pattern": "de?spatch[-_ ]?note",+ "weight": 22,+ "name": "despatch note filename"+ }+ ],+ "structural": [+ {+ "signal": "signature_block",+ "weight": 10+ },+ {+ "signal": "short_doc",+ "weight": 5+ },+ {+ "signal": "address_block",+ "weight": 4+ }+ ]+ },+ {+ "id": "return-authorization",+ "name": "Return authorization",+ "regexes": [+ {+ "pattern": "\\b(?:1z[0-9a-z]{16}|9[1-5]\\d{20})\\b",+ "weight": 12,+ "name": "Carrier tracking number"+ }+ ],+ "filenames": [+ {+ "pattern": "returns?[-_ ]?(mailing[-_ ]?)?(shipping[-_ ]?)?label",+ "weight": 30,+ "name": "return label filename"+ },+ {+ "pattern": "(^|[\\\\/_-])rma[_-]?\\d+",+ "weight": 24,+ "name": "RMA filename"+ },+ {+ "pattern": "returns?[-_ ]?auth",+ "weight": 24,+ "name": "return authorization filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 8+ }+ ]+ },+ {+ "id": "proposal",+ "name": "Proposal",+ "filenames": [+ {+ "pattern": "proposal",+ "weight": 26,+ "name": "'proposal' in filename"+ },+ {+ "pattern": "\\bsow\\b|statement[-_ ]of[-_ ]work",+ "weight": 18,+ "name": "Statement of work filename"+ },+ {+ "pattern": "rfp[-_ ]?(?:response|reply)",+ "weight": 20,+ "name": "RFP response filename"+ }+ ],+ "structural": [+ {+ "signal": "currency_heavy",+ "weight": 3+ },+ {+ "signal": "signature_block",+ "weight": 3+ }+ ]+ },+ {+ "id": "presentation",+ "name": "Presentation",+ "metadata": [+ {+ "field": "any",+ "pattern": "powerpoint",+ "weight": 18,+ "name": "PowerPoint metadata"+ },+ {+ "field": "creator",+ "pattern": "keynote|impress|google slides",+ "weight": 15,+ "name": "Presentation software creator"+ },+ {+ "field": "producer",+ "pattern": "slides|keynote|impress",+ "weight": 12,+ "name": "Presentation software producer"+ }+ ],+ "filenames": [+ {+ "pattern": "slides|deck|presentation",+ "weight": 22,+ "name": "Slides/deck in filename"+ },+ {+ "pattern": "\\.pptx?|powerpoint|keynote",+ "weight": 24,+ "name": "Exported presentation file"+ },+ {+ "pattern": "webinar",+ "weight": 14,+ "name": "Webinar filename"+ }+ ],+ "structural": [+ {+ "signal": "bullet_heavy",+ "weight": 9+ }+ ]+ },+ {+ "id": "press-release",+ "name": "Press release",+ "filenames": [+ {+ "pattern": "press[-_ ]?release",+ "weight": 28,+ "name": "Press release filename"+ },+ {+ "pattern": "\\bpr[-_]\\d{2,6}",+ "weight": 12,+ "name": "Numbered PR filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 4+ }+ ]+ },+ {+ "id": "newsletter",+ "name": "Newsletter",+ "filenames": [+ {+ "pattern": "newsletter",+ "weight": 28,+ "name": "Newsletter filename"+ },+ {+ "pattern": "bulletin",+ "weight": 16,+ "name": "Bulletin filename"+ }+ ],+ "structural": [+ {+ "signal": "url_heavy",+ "weight": 3+ }+ ]+ },+ {+ "id": "brochure",+ "name": "Brochure",+ "filenames": [+ {+ "pattern": "brochure|flyer|flier|leaflet|pamphlet",+ "weight": 26,+ "name": "Brochure/flyer filename"+ },+ {+ "pattern": "one[-_ ]?pager",+ "weight": 16,+ "name": "One-pager filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 8+ },+ {+ "signal": "url_heavy",+ "weight": 3+ },+ {+ "signal": "address_block",+ "weight": 3+ }+ ]+ },+ {+ "id": "meeting-minutes",+ "name": "Meeting minutes",+ "filenames": [+ {+ "pattern": "minutes",+ "weight": 24,+ "name": "Minutes filename"+ },+ {+ "pattern": "\\bmom[-_]|minutes[-_ ]of[-_ ]meeting",+ "weight": 14,+ "name": "Minutes-of-meeting filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 3+ }+ ]+ },+ {+ "id": "memo",+ "name": "Memo",+ "filenames": [+ {+ "pattern": "memo(?:randum)?(?:[-_ .0-9]|$)",+ "weight": 22,+ "name": "Memo filename"+ },+ {+ "pattern": "executive[-_ ]?briefing",+ "weight": 28,+ "name": "executive briefing filename"+ },+ {+ "pattern": "exec[-_ ]?summary",+ "weight": 24,+ "name": "exec summary filename"+ },+ {+ "pattern": "board[-_ ]?brief",+ "weight": 20,+ "name": "board brief filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 6+ },+ {+ "signal": "bullet_heavy",+ "weight": 4+ }+ ]+ },+ {+ "id": "business-plan",+ "name": "Business plan",+ "filenames": [+ {+ "pattern": "business[-_ ]?plan",+ "weight": 28,+ "name": "Business plan filename"+ },+ {+ "pattern": "bizplan",+ "weight": 20,+ "name": "Bizplan filename"+ },+ {+ "pattern": "strategic[-_ ]?plan",+ "weight": 28,+ "name": "strategic plan filename"+ },+ {+ "pattern": "corporate[-_ ]?strategy",+ "weight": 24,+ "name": "corporate strategy filename"+ },+ {+ "pattern": "strategy[-_ ]?20\\d{2}",+ "weight": 18,+ "name": "strategy year filename"+ }+ ],+ "structural": [+ {+ "signal": "toc",+ "weight": 5+ },+ {+ "signal": "currency_heavy",+ "weight": 3+ },+ {+ "signal": "long_doc",+ "weight": 3+ },+ {+ "signal": "bullet_heavy",+ "weight": 5+ }+ ]+ },+ {+ "id": "white-paper",+ "name": "White paper",+ "filenames": [+ {+ "pattern": "white[-_ ]?paper",+ "weight": 28,+ "name": "Whitepaper filename"+ },+ {+ "pattern": "state[-_ ]of[-_ ]|industry[-_ ]report|research[-_ ]report",+ "weight": 16,+ "name": "Industry report filename"+ }+ ],+ "structural": [+ {+ "signal": "toc",+ "weight": 5+ },+ {+ "signal": "long_doc",+ "weight": 4+ }+ ]+ },+ {+ "id": "case-study",+ "name": "Case study",+ "filenames": [+ {+ "pattern": "case[-_ ]?study",+ "weight": 28,+ "name": "Case study filename"+ },+ {+ "pattern": "success[-_ ]?story",+ "weight": 20,+ "name": "Success story filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 3+ }+ ]+ },+ {+ "id": "organization-chart",+ "name": "Organization chart",+ "filenames": [+ {+ "pattern": "org(?:anizational|anisational)?[-_ ]?chart",+ "weight": 30,+ "name": "org chart filename"+ },+ {+ "pattern": "reporting[-_ ]?structure",+ "weight": 20,+ "name": "reporting structure filename"+ },+ {+ "pattern": "leadership[-_ ]?structure",+ "weight": 16,+ "name": "leadership structure filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 6+ },+ {+ "signal": "bullet_heavy",+ "weight": 4+ }+ ]+ },+ {+ "id": "meeting-agenda",+ "name": "Meeting agenda",+ "filenames": [+ {+ "pattern": "meeting[-_ ]?agenda",+ "weight": 30,+ "name": "meeting agenda filename"+ },+ {+ "pattern": "agenda",+ "weight": 26,+ "name": "agenda in filename"+ }+ ],+ "structural": [+ {+ "signal": "bullet_heavy",+ "weight": 6+ },+ {+ "signal": "short_doc",+ "weight": 4+ }+ ]+ },+ {+ "id": "statement-of-work",+ "name": "Statement of work",+ "regexes": [+ {+ "pattern": "\\bmsa\\b",+ "flags": "g",+ "weight": 8,+ "name": "MSA abbreviation"+ }+ ],+ "filenames": [+ {+ "pattern": "statement[-_ ]?of[-_ ]?work",+ "weight": 30,+ "name": "statement of work filename"+ },+ {+ "pattern": "(^|[^a-z])sow[-_ ]?\\d{0,3}([^a-z0-9]|$)",+ "weight": 20,+ "name": "SOW in filename"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 4+ },+ {+ "signal": "signature_block",+ "weight": 3+ }+ ]+ },+ {+ "id": "user-guide",+ "name": "User guide",+ "filenames": [+ {+ "pattern": "(user|owner'?s?|instruction|operating)[\\s_-]*(manual|guide|instructions)",+ "weight": 26,+ "name": "manual filename"+ },+ {+ "pattern": "manual",+ "weight": 15,+ "name": "manual keyword"+ },+ {+ "pattern": "quick[\\s_-]*start",+ "weight": 16,+ "name": "quick start filename"+ },+ {+ "pattern": "(^|[^a-z0-9])ifu([^a-z0-9]|$)|instructions[\\s_-]?for[\\s_-]?use",+ "weight": 16,+ "name": "instructions for use filename"+ }+ ],+ "structural": [+ {+ "signal": "toc",+ "weight": 6+ }+ ]+ },+ {+ "id": "datasheet",+ "name": "Datasheet",+ "regexes": [+ {+ "pattern": "\\b\\d+(\\.\\d+)?\\s?(mv|µa|ua|pf|nf|µf|uf|mhz|khz|ghz|kω|mω|vdc|vac)",+ "flags": "gi",+ "weight": 14,+ "name": "electrical units"+ }+ ],+ "metadata": [+ {+ "field": "any",+ "pattern": "texas instruments|stmicroelectronics|analog devices|nxp semiconductors|infineon|microchip technology|onsemi|renesas|vishay|rohm",+ "weight": 14,+ "name": "semiconductor vendor"+ }+ ],+ "filenames": [+ {+ "pattern": "datasheet",+ "weight": 24,+ "name": "datasheet filename"+ },+ {+ "pattern": "spec[\\s_-]?sheet",+ "weight": 18,+ "name": "spec sheet filename"+ },+ {+ "pattern": "(^|[^a-z0-9])tds([^a-z0-9]|$)",+ "weight": 16,+ "name": "tds filename"+ },+ {+ "pattern": "(^|[^a-z0-9])ds\\d{4,}",+ "weight": 15,+ "name": "vendor ds-number filename"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 8+ }+ ]+ },+ {+ "id": "technical-specification",+ "name": "Technical specification",+ "regexes": [+ {+ "pattern": "\\b(req|srs|nfr)[-_]\\d{1,4}\\b",+ "flags": "gi",+ "weight": 16,+ "name": "requirement id"+ }+ ],+ "filenames": [+ {+ "pattern": "(technical|functional|requirements?|system)[\\s_-]?spec",+ "weight": 22,+ "name": "spec filename"+ },+ {+ "pattern": "specification",+ "weight": 15,+ "name": "specification keyword"+ },+ {+ "pattern": "(^|[^a-z0-9])srs([^a-z0-9]|$)",+ "weight": 16,+ "name": "srs filename"+ }+ ],+ "structural": [+ {+ "signal": "toc",+ "weight": 5+ },+ {+ "signal": "long_doc",+ "weight": 3+ }+ ]+ },+ {+ "id": "patent",+ "name": "Patent",+ "regexes": [+ {+ "pattern": "\\bus\\s?\\d{1,2},\\d{3},\\d{3}\\s?[ab]\\d?\\b",+ "flags": "gi",+ "weight": 20,+ "name": "us patent number"+ },+ {+ "pattern": "\\bus\\s?\\d{4}/\\d{7}\\s?a\\d\\b",+ "flags": "gi",+ "weight": 18,+ "name": "us publication number"+ },+ {+ "pattern": "\\bep\\s?\\d[\\s.]?\\d{3}[\\s.]?\\d{3}\\s?[ab]\\d\\b",+ "flags": "gi",+ "weight": 18,+ "name": "ep publication number"+ },+ {+ "pattern": "\\bwo\\s?\\d{4}/\\d{5,6}(\\s?a\\d)?\\b",+ "flags": "gi",+ "weight": 14,+ "name": "wo publication number"+ },+ {+ "pattern": "int\\.?\\s?cl\\.?\\s?:?\\s?[a-h]\\d{2}[a-z]",+ "flags": "gi",+ "weight": 18,+ "name": "ipc classification"+ }+ ],+ "filenames": [+ {+ "pattern": "patent",+ "weight": 22,+ "name": "patent keyword"+ },+ {+ "pattern": "(^|[^a-z0-9])us\\d{7,8}[ab]?\\d?",+ "weight": 20,+ "name": "us patent number filename"+ },+ {+ "pattern": "(^|[^a-z0-9])ep\\d{6,7}",+ "weight": 18,+ "name": "ep number filename"+ },+ {+ "pattern": "(^|[^a-z0-9])wo\\d{4}",+ "weight": 16,+ "name": "wo publication filename"+ }+ ],+ "structural": [+ {+ "signal": "long_doc",+ "weight": 3+ },+ {+ "signal": "references_section",+ "weight": 3+ }+ ]+ },+ {+ "id": "api-documentation",+ "name": "API documentation",+ "regexes": [+ {+ "pattern": "\\bv\\d+\\.\\d+\\.\\d+\\b",+ "flags": "gi",+ "weight": 12,+ "name": "semantic version"+ }+ ],+ "metadata": [+ {+ "field": "any",+ "pattern": "sphinx|mkdocs|doxygen|gitbook|asciidoctor|docusaurus",+ "weight": 14,+ "name": "docs generator"+ }+ ],+ "filenames": [+ {+ "pattern": "(api|developer|dev|admin)[\\s_-]?(reference|guide|docs|documentation)",+ "weight": 24,+ "name": "api guide filename"+ },+ {+ "pattern": "release[\\s_-]?notes|changelog",+ "weight": 22,+ "name": "release notes filename"+ },+ {+ "pattern": "readme",+ "weight": 16,+ "name": "readme filename"+ }+ ],+ "structural": [+ {+ "signal": "url_heavy",+ "weight": 6+ },+ {+ "signal": "toc",+ "weight": 3+ }+ ]+ },+ {+ "id": "safety-data-sheet",+ "name": "Safety data sheet",+ "regexes": [+ {+ "pattern": "\\b\\d{2,7}-\\d{2}-\\d\\b",+ "flags": "g",+ "weight": 14,+ "name": "cas number"+ },+ {+ "pattern": "\\b[hp][1-5]\\d{2}\\b",+ "flags": "gi",+ "weight": 12,+ "name": "ghs hazard code"+ },+ {+ "pattern": "\\bun\\s?\\d{4}\\b",+ "flags": "gi",+ "weight": 12,+ "name": "un number"+ }+ ],+ "filenames": [+ {+ "pattern": "(^|[^a-z0-9])m?sds([^a-z0-9]|$)",+ "weight": 26,+ "name": "sds filename"+ },+ {+ "pattern": "safety[\\s_-]?data[\\s_-]?sheet",+ "weight": 28,+ "name": "safety data sheet filename"+ }+ ],+ "structural": [+ {+ "signal": "number_table",+ "weight": 3+ }+ ]+ },+ {+ "id": "warranty-document",+ "name": "Warranty document",+ "filenames": [+ {+ "pattern": "warranty",+ "weight": 28,+ "name": "warranty in filename"+ },+ {+ "pattern": "guarantee",+ "weight": 18,+ "name": "guarantee in filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 4+ }+ ]+ },+ {+ "id": "license-agreement",+ "name": "License agreement",+ "regexes": [+ {+ "pattern": "\\b[a-z0-9]{4,5}(?:-[a-z0-9]{4,5}){3,6}\\b",+ "flags": "gi",+ "weight": 14,+ "name": "hyphenated product key"+ }+ ],+ "filenames": [+ {+ "pattern": "licen[cs]e[-_ ]?key",+ "weight": 28,+ "name": "license key filename"+ },+ {+ "pattern": "licen[cs]e[-_ ]?certificate",+ "weight": 26,+ "name": "license certificate filename"+ },+ {+ "pattern": "product[-_ ]?key",+ "weight": 24,+ "name": "product key filename"+ },+ {+ "pattern": "activation",+ "weight": 16,+ "name": "activation in filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 8+ },+ {+ "signal": "form_like",+ "weight": 3+ }+ ]+ },+ {+ "id": "email-thread",+ "name": "Email thread",+ "regexes": [+ {+ "pattern": "<[a-z0-9._%+\\-]+@[a-z0-9.\\-]+\\.[a-z]{2,}>",+ "flags": "gi",+ "weight": 8,+ "name": "Angle-bracket email address"+ }+ ],+ "metadata": [+ {+ "field": "creator",+ "pattern": "outlook|thunderbird",+ "weight": 14,+ "name": "Mail client creator"+ }+ ],+ "filenames": [+ {+ "pattern": "^gmail - ",+ "weight": 26,+ "name": "Gmail print filename"+ },+ {+ "pattern": "(^|[\\\\/])(fw|fwd|re)[_ ]",+ "weight": 16,+ "name": "FW/RE filename prefix"+ },+ {+ "pattern": "email",+ "weight": 14,+ "name": "Email in filename"+ }+ ],+ "structural": [+ {+ "signal": "email_headers",+ "weight": 12+ }+ ]+ },+ {+ "id": "recipe",+ "name": "Recipe",+ "emit": false,+ "filenames": [+ {+ "pattern": "recipe",+ "weight": 25,+ "name": "Recipe in filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 4+ },+ {+ "signal": "bullet_heavy",+ "weight": 4+ }+ ]+ },+ {+ "id": "menu",+ "name": "Menu",+ "emit": false,+ "regexes": [+ {+ "pattern": "\\((v|vg|ve|gf)\\)",+ "flags": "g",+ "weight": 10,+ "name": "Dietary marker (v)/(vg)"+ },+ {+ "pattern": "\\.{3,} ?(£|\\$|€)?\\d{1,3}(\\.\\d{2})?",+ "flags": "g",+ "weight": 12,+ "name": "Dotted price leader"+ }+ ],+ "filenames": [+ {+ "pattern": "menu",+ "weight": 24,+ "name": "Menu in filename"+ }+ ],+ "structural": [+ {+ "signal": "currency_heavy",+ "weight": 6+ },+ {+ "signal": "short_doc",+ "weight": 4+ }+ ]+ },+ {+ "id": "book-ebook",+ "name": "Book / eBook",+ "emit": false,+ "metadata": [+ {+ "field": "producer",+ "pattern": "calibre",+ "weight": 18,+ "name": "calibre producer (ebook tool)"+ }+ ],+ "filenames": [+ {+ "pattern": "ebook|e-book",+ "weight": 22,+ "name": "eBook in filename"+ },+ {+ "pattern": "(^|[^a-z])book([^a-z]|$)",+ "weight": 10,+ "name": "Book in filename"+ }+ ],+ "structural": [+ {+ "signal": "long_doc",+ "weight": 12+ },+ {+ "signal": "toc",+ "weight": 5+ }+ ]+ },+ {+ "id": "magazine-article",+ "name": "Magazine article",+ "emit": false,+ "metadata": [+ {+ "field": "creator",+ "pattern": "indesign",+ "weight": 8,+ "name": "InDesign creator"+ }+ ],+ "filenames": [+ {+ "pattern": "magazine",+ "weight": 20,+ "name": "Magazine in filename"+ },+ {+ "pattern": "article|feature",+ "weight": 10,+ "name": "Article/feature in filename"+ }+ ]+ },+ {+ "id": "form",+ "name": "Form",+ "regexes": [+ {+ "pattern": "_{6,}",+ "flags": "g",+ "weight": 12,+ "name": "Fill-in blanks"+ },+ {+ "pattern": "☐|❏|❑|\\[ ?\\]",+ "flags": "g",+ "weight": 12,+ "name": "Checkbox marks"+ },+ {+ "pattern": "_{2,} ?\\/ ?_{2,}",+ "flags": "g",+ "weight": 12,+ "name": "Date fill-in blank"+ }+ ],+ "filenames": [+ {+ "pattern": "permission[_\\- ]slip|consent[_\\- ]form",+ "weight": 24,+ "name": "Permission/consent form filename"+ },+ {+ "pattern": "form",+ "weight": 12,+ "name": "Form in filename"+ },+ {+ "pattern": "application",+ "weight": 10,+ "name": "Application in filename"+ }+ ],+ "structural": [+ {+ "signal": "form_like",+ "weight": 12+ },+ {+ "signal": "short_doc",+ "weight": 3+ }+ ]+ },+ {+ "id": "invitation",+ "name": "Invitation",+ "filenames": [+ {+ "pattern": "invitation",+ "weight": 26,+ "name": "invitation in filename"+ },+ {+ "pattern": "save[-_ ]?the[-_ ]?date",+ "weight": 26,+ "name": "save the date filename"+ },+ {+ "pattern": "invite",+ "weight": 16,+ "name": "invite in filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 8+ }+ ]+ },+ {+ "id": "gift-certificate",+ "name": "Gift certificate",+ "filenames": [+ {+ "pattern": "gift[-_ ]?card",+ "weight": 28,+ "name": "gift card filename"+ },+ {+ "pattern": "gift[-_ ]?certificate",+ "weight": 26,+ "name": "gift certificate filename"+ },+ {+ "pattern": "voucher",+ "weight": 24,+ "name": "voucher in filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 8+ }+ ]+ },+ {+ "id": "confirmation-letter",+ "name": "Confirmation letter",+ "filenames": [+ {+ "pattern": "appointment",+ "weight": 28,+ "name": "appointment in filename"+ },+ {+ "pattern": "appt",+ "weight": 18,+ "name": "appt abbreviation in filename"+ }+ ],+ "structural": [+ {+ "signal": "short_doc",+ "weight": 8+ },+ {+ "signal": "address_block",+ "weight": 4+ }+ ]+ }+ ],+ "priors": {+ "resume": [1, 6],+ "cover-letter": [1, 3],+ "letter": [1, 5],+ "memo": [1, 5],+ "ticket": [1, 4],+ "invitation": [1, 3],+ "receipt": [1, 3],+ "invoice": [1, 6],+ "quote": [1, 10],+ "purchase-order": [1, 8],+ "remittance-advice": [1, 3],+ "payslip": [1, 3],+ "tax-form": [1, 10],+ "tax-statement": [1, 8],+ "subscription-confirmation": [1, 3],+ "order-confirmation": [1, 4],+ "donation-receipt": [1, 2],+ "confirmation-letter": [1, 2],+ "gift-certificate": [1, 2],+ "waybill": [1, 2],+ "return-authorization": [1, 2],+ "packing-slip": [1, 3],+ "delivery-note": [1, 3],+ "prescription": [1, 2],+ "referral-letter": [1, 3],+ "immunization-record": [1, 4],+ "medical-invoice": [1, 6],+ "certificate": [1, 2],+ "insurance-certificate": [1, 4],+ "license": [1, 5],+ "utility-bill": [1, 10],+ "benefits-summary": [1, 8],+ "government-notice": [1, 6],+ "hoa-document": [1, 5],+ "legal-notice": [1, 6],+ "menu": [1, 8],+ "recipe": [1, 6],+ "timesheet": [1, 3],+ "organization-chart": [1, 5],+ "meeting-agenda": [1, 5],+ "job-description": [1, 6],+ "offer-letter": [1, 5],+ "reference-letter": [1, 3],+ "email-thread": [1, 8],+ "nda": [1, 12],+ "affidavit": [1, 8],+ "investment-summary": [1, 12],+ "letter-of-intent": [1, 15],+ "credit-note": [1, 3],+ "public-notice": [1, 4],+ "subpoena": [1, 6],+ "service-agreement": [1, 6],+ "consent-form": [1, 4],+ "discharge-summary": [1, 6],+ "grade-report": [1, 4],+ "registration-form": [1, 6],+ "supply-order": [1, 3],+ "grant-agreement": [1, 4],+ "technical-drawing": [1, 12],+ "compliance-document": [1, 3],+ "test-report": [1, 4],+ "book-ebook": [30, null],+ "thesis": [20, null],+ "regulatory-filing": [12, null],+ "audit-report": [10, null],+ "business-plan": [8, null],+ "user-guide": [5, null],+ "employee-handbook": [8, null]+ },+ "patterns": {+ "currency": [+ {+ "pattern": "[$£€]\\s?\\d[\\d,.]*|\\d[\\d,.]*\\s?(usd|gbp|eur)\\b"+ }+ ],+ "form_label": [+ {+ "pattern": "^[A-Za-z][A-Za-z /()&']{2,30}:\\s*$",+ "flags": "m"+ }+ ],+ "address": [+ {+ "pattern": "\\b\\d{5}(-\\d{4})?\\b|\\b[A-Z]{1,2}\\d{1,2}[A-Z]?\\s?\\d[A-Z]{2}\\b"+ }+ ]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/index.ts b/frontend/editor/src/proprietary/services/heuristic/rules/index.tsnew file mode 100644index 0000000000..2526a139ec--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/index.ts@@ -0,0 +1,45 @@+export const loadCoreRules = () =>+ import("@app/services/heuristic/rules/core.json");++export const LANGUAGE_PACKS: Record<string, () => Promise<unknown>> = {+ ar: () => import("@app/services/heuristic/rules/packs/ar.json"),+ az: () => import("@app/services/heuristic/rules/packs/az.json"),+ bg: () => import("@app/services/heuristic/rules/packs/bg.json"),+ bo: () => import("@app/services/heuristic/rules/packs/bo.json"),+ ca: () => import("@app/services/heuristic/rules/packs/ca.json"),+ cs: () => import("@app/services/heuristic/rules/packs/cs.json"),+ da: () => import("@app/services/heuristic/rules/packs/da.json"),+ de: () => import("@app/services/heuristic/rules/packs/de.json"),+ el: () => import("@app/services/heuristic/rules/packs/el.json"),+ en: () => import("@app/services/heuristic/rules/packs/en.json"),+ es: () => import("@app/services/heuristic/rules/packs/es.json"),+ eu: () => import("@app/services/heuristic/rules/packs/eu.json"),+ fa: () => import("@app/services/heuristic/rules/packs/fa.json"),+ fr: () => import("@app/services/heuristic/rules/packs/fr.json"),+ ga: () => import("@app/services/heuristic/rules/packs/ga.json"),+ hi: () => import("@app/services/heuristic/rules/packs/hi.json"),+ hr: () => import("@app/services/heuristic/rules/packs/hr.json"),+ hu: () => import("@app/services/heuristic/rules/packs/hu.json"),+ id: () => import("@app/services/heuristic/rules/packs/id.json"),+ it: () => import("@app/services/heuristic/rules/packs/it.json"),+ ja: () => import("@app/services/heuristic/rules/packs/ja.json"),+ ko: () => import("@app/services/heuristic/rules/packs/ko.json"),+ ml: () => import("@app/services/heuristic/rules/packs/ml.json"),+ nl: () => import("@app/services/heuristic/rules/packs/nl.json"),+ no: () => import("@app/services/heuristic/rules/packs/no.json"),+ pl: () => import("@app/services/heuristic/rules/packs/pl.json"),+ pt: () => import("@app/services/heuristic/rules/packs/pt.json"),+ ro: () => import("@app/services/heuristic/rules/packs/ro.json"),+ ru: () => import("@app/services/heuristic/rules/packs/ru.json"),+ sk: () => import("@app/services/heuristic/rules/packs/sk.json"),+ sl: () => import("@app/services/heuristic/rules/packs/sl.json"),+ sr: () => import("@app/services/heuristic/rules/packs/sr.json"),+ sv: () => import("@app/services/heuristic/rules/packs/sv.json"),+ th: () => import("@app/services/heuristic/rules/packs/th.json"),+ tr: () => import("@app/services/heuristic/rules/packs/tr.json"),+ uk: () => import("@app/services/heuristic/rules/packs/uk.json"),+ vi: () => import("@app/services/heuristic/rules/packs/vi.json"),+ zh: () => import("@app/services/heuristic/rules/packs/zh.json"),+};++export const PACK_LANGUAGES: string[] = Object.keys(LANGUAGE_PACKS);diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/languages.json b/frontend/editor/src/proprietary/services/heuristic/rules/languages.jsonnew file mode 100644index 0000000000..8b33a344b4--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/languages.json@@ -0,0 +1,924 @@+{+ "version": 3,+ "english": {+ "words": [+ "the",+ "and",+ "of",+ "to",+ "in",+ "is",+ "that",+ "for",+ "on",+ "with",+ "as",+ "are",+ "this",+ "be",+ "by",+ "at",+ "from",+ "or",+ "an",+ "not",+ "your",+ "you",+ "we",+ "has",+ "have",+ "will",+ "was",+ "were",+ "been",+ "their",+ "they",+ "which",+ "any",+ "all",+ "may",+ "shall",+ "if",+ "can",+ "our",+ "its",+ "it",+ "no",+ "but",+ "other",+ "than",+ "these",+ "such",+ "must",+ "each",+ "per",+ "under",+ "more",+ "when",+ "also",+ "into",+ "only",+ "should",+ "would"+ ]+ },+ "scripts": [+ {+ "id": "cjk",+ "range": "[一-鿿-ヿ]",+ "languages": ["ja", "zh"]+ },+ {+ "id": "hangul",+ "range": "[가-ᄀ-ᇿ]",+ "languages": ["ko"]+ },+ {+ "id": "cyrillic",+ "range": "[Ѐ-ԯ]",+ "languages": ["ru", "uk", "bg"]+ },+ {+ "id": "arabic",+ "range": "[-ۿݐ-ݿ]",+ "languages": ["ar", "fa"]+ },+ {+ "id": "greek",+ "range": "[Ͱ-Ͽ]",+ "languages": ["el"]+ },+ {+ "id": "devanagari",+ "range": "[ऀ-ॿ]",+ "languages": ["hi"]+ },+ {+ "id": "hebrew",+ "range": "[-]",+ "languages": ["he"]+ },+ {+ "id": "thai",+ "range": "[-]",+ "languages": ["th"]+ },+ {+ "id": "malayalam",+ "range": "[ഀ-ൿ]",+ "languages": ["ml"]+ },+ {+ "id": "tibetan",+ "range": "[ༀ-]",+ "languages": ["bo"]+ }+ ],+ "latin": {+ "languages": [+ "az",+ "ca",+ "cs",+ "da",+ "de",+ "es",+ "eu",+ "fr",+ "ga",+ "hr",+ "hu",+ "id",+ "it",+ "nl",+ "no",+ "pl",+ "pt",+ "ro",+ "sk",+ "sl",+ "sr",+ "sv",+ "tr",+ "vi"+ ]+ },+ "profiles": [+ {+ "language": "az",+ "words": [+ "mən",+ "və",+ "bu",+ "bir",+ "nə",+ "mənim",+ "var",+ "çox",+ "ki",+ "üçün",+ "heç",+ "sən",+ "ilə",+ "biz",+ "sənin",+ "mənə",+ "ci",+ "onun"+ ],+ "chars": "[ə]"+ },+ {+ "language": "ca",+ "words": [+ "de",+ "la",+ "el",+ "és",+ "que",+ "no",+ "va",+ "un",+ "per",+ "una",+ "al",+ "amb",+ "les",+ "del",+ "els",+ "ell",+ "ha",+ "més",+ "hi",+ "vaig",+ "aquest",+ "seva",+ "aquesta",+ "fer"+ ],+ "chars": null+ },+ {+ "language": "cs",+ "words": [+ "je",+ "se",+ "na",+ "jsem",+ "že",+ "ve",+ "ale",+ "jeho",+ "když",+ "byl",+ "jsou",+ "jsme",+ "než",+ "za",+ "jsi",+ "ten",+ "jako",+ "jak",+ "můj",+ "není",+ "nebo",+ "pro"+ ],+ "chars": "[ěřů]"+ },+ {+ "language": "da",+ "words": [+ "er",+ "jeg",+ "en",+ "ikke",+ "det",+ "til",+ "han",+ "du",+ "har",+ "og",+ "på",+ "af",+ "med",+ "mig",+ "et",+ "kan",+ "den",+ "der",+ "ved",+ "meget",+ "hvad",+ "hende",+ "end",+ "havde",+ "blive",+ "bliver",+ "ud"+ ],+ "chars": null+ },+ {+ "language": "de",+ "words": [+ "ich",+ "ist",+ "die",+ "nicht",+ "zu",+ "der",+ "es",+ "das",+ "sie",+ "du",+ "ein",+ "eine",+ "und",+ "dass",+ "habe",+ "den",+ "wir",+ "hat"+ ],+ "chars": "[ß]"+ },+ {+ "language": "es",+ "words": [+ "el",+ "de",+ "la",+ "que",+ "no",+ "es",+ "en",+ "por",+ "un",+ "una",+ "ella",+ "las",+ "los",+ "está",+ "lo",+ "mi",+ "su",+ "para",+ "ese",+ "tiene",+ "cuando",+ "yo",+ "eso",+ "tengo",+ "tiempo",+ "esa"+ ],+ "chars": "[ñ]"+ },+ {+ "language": "eu",+ "words": [+ "da",+ "ez",+ "eta",+ "du",+ "bat",+ "dut",+ "zuen",+ "zen",+ "nire",+ "bere",+ "dago",+ "izan",+ "egiten",+ "egin",+ "nahi",+ "dira",+ "naiz",+ "baino"+ ],+ "chars": null+ },+ {+ "language": "fr",+ "words": [+ "je",+ "de",+ "la",+ "le",+ "pas",+ "ai",+ "est",+ "que",+ "ne",+ "un",+ "les",+ "il",+ "ce",+ "une",+ "suis",+ "pour",+ "des",+ "et",+ "qu",+ "qui",+ "dans"+ ],+ "chars": null+ },+ {+ "language": "ga",+ "words": [+ "tá",+ "ag",+ "ar",+ "na",+ "agus",+ "le",+ "tú",+ "bhfuil",+ "ní",+ "liom",+ "mo",+ "seo",+ "bhí",+ "sin",+ "atá",+ "ba",+ "agam",+ "ina"+ ],+ "chars": null+ },+ {+ "language": "hr",+ "words": [+ "je",+ "se",+ "na",+ "da",+ "ne",+ "sam",+ "li",+ "su",+ "za",+ "što",+ "od",+ "nije",+ "bio",+ "kao",+ "bi",+ "ti",+ "će",+ "mogu",+ "vrlo",+ "prije",+ "uvijek"+ ],+ "chars": null+ },+ {+ "language": "hu",+ "words": [+ "az",+ "nem",+ "hogy",+ "egy",+ "és",+ "meg",+ "van",+ "volt",+ "ha",+ "kell",+ "ez",+ "mint",+ "azt",+ "csak",+ "ki",+ "vagy",+ "olyan",+ "mindig"+ ],+ "chars": "[őű]"+ },+ {+ "language": "id",+ "words": [+ "saya",+ "yang",+ "tidak",+ "di",+ "dia",+ "itu",+ "ini",+ "kamu",+ "dengan",+ "aku",+ "untuk",+ "dan",+ "akan",+ "ada",+ "adalah",+ "anda",+ "bisa",+ "dari"+ ],+ "chars": null+ },+ {+ "language": "it",+ "words": [+ "la",+ "il",+ "di",+ "non",+ "un",+ "per",+ "una",+ "che",+ "ha",+ "sono",+ "mi",+ "ho",+ "le",+ "questo",+ "questa",+ "mia",+ "molto",+ "mio",+ "più",+ "gli"+ ],+ "chars": null+ },+ {+ "language": "nl",+ "words": [+ "de",+ "ik",+ "het",+ "een",+ "van",+ "niet",+ "dat",+ "zijn",+ "te",+ "op",+ "hij",+ "heb",+ "met",+ "om",+ "ze",+ "heeft",+ "mijn",+ "als"+ ],+ "chars": null+ },+ {+ "language": "no",+ "words": [+ "er",+ "jeg",+ "det",+ "ikke",+ "en",+ "på",+ "til",+ "du",+ "han",+ "har",+ "og",+ "som",+ "av",+ "med",+ "var",+ "et",+ "meg",+ "kan",+ "deg",+ "seg",+ "ble",+ "hva",+ "noen",+ "enn",+ "hadde",+ "veldig",+ "mye",+ "etter"+ ],+ "chars": null+ },+ {+ "language": "pl",+ "words": [+ "nie",+ "się",+ "jest",+ "na",+ "że",+ "po",+ "co",+ "jak",+ "ten",+ "czy",+ "za",+ "ma",+ "od",+ "kiedy",+ "ona",+ "mnie",+ "jego",+ "jej",+ "tego",+ "tylko",+ "przez",+ "już"+ ],+ "chars": "[łęążśńź]"+ },+ {+ "language": "pt",+ "words": [+ "eu",+ "que",+ "não",+ "ele",+ "um",+ "para",+ "você",+ "uma",+ "em",+ "por",+ "com",+ "no",+ "está",+ "ela",+ "nós",+ "os",+ "mais",+ "meu",+ "foi"+ ],+ "chars": null+ },+ {+ "language": "ro",+ "words": [+ "de",+ "să",+ "nu",+ "este",+ "și",+ "că",+ "am",+ "cu",+ "mai",+ "pe",+ "un",+ "din",+ "ce",+ "pentru",+ "sunt",+ "fost",+ "care",+ "va"+ ],+ "chars": "[ăîșțţ]"+ },+ {+ "language": "sk",+ "words": [+ "je",+ "sa",+ "som",+ "na",+ "si",+ "že",+ "ako",+ "čo",+ "má",+ "sú",+ "nie",+ "veľmi",+ "bol",+ "jeho",+ "aby",+ "keď",+ "za",+ "sme",+ "bola",+ "prečo",+ "veľa",+ "aj",+ "myslím",+ "alebo"+ ],+ "chars": "[ťľ]"+ },+ {+ "language": "sl",+ "words": [+ "je",+ "se",+ "ne",+ "na",+ "za",+ "sem",+ "ki",+ "bi",+ "lahko",+ "bo",+ "zelo",+ "po",+ "ali",+ "mesto",+ "ni",+ "kako",+ "od",+ "glavno",+ "kot",+ "kaj",+ "govorim",+ "zakaj",+ "vse"+ ],+ "chars": null+ },+ {+ "language": "sr",+ "words": [+ "je",+ "da",+ "se",+ "ne",+ "sam",+ "na",+ "li",+ "ja",+ "za",+ "su",+ "od",+ "mi",+ "nije",+ "ona",+ "bi",+ "će",+ "vi",+ "moj",+ "veoma",+ "vreme",+ "uvek",+ "trebalo",+ "video"+ ],+ "chars": null+ },+ {+ "language": "sv",+ "words": [+ "jag",+ "är",+ "att",+ "har",+ "det",+ "en",+ "inte",+ "han",+ "på",+ "du",+ "och",+ "till",+ "var",+ "om",+ "den",+ "hon",+ "som",+ "med",+ "ett",+ "vad",+ "mycket",+ "honom",+ "vill"+ ],+ "chars": null+ },+ {+ "language": "tr",+ "words": [+ "bir",+ "ve",+ "bu",+ "çok",+ "için",+ "var",+ "onun",+ "nın",+ "her",+ "lütfen",+ "değil",+ "iyi",+ "bana",+ "ile",+ "daha",+ "ben",+ "olarak",+ "misin"+ ],+ "chars": null+ },+ {+ "language": "vi",+ "words": [+ "tôi",+ "có",+ "anh",+ "không",+ "ấy",+ "bạn",+ "của",+ "một",+ "ta",+ "này",+ "người",+ "làm",+ "cho",+ "được",+ "chị",+ "con",+ "chúng",+ "trong"+ ],+ "chars": "[ôđưấếạờốảộìớủềểơịọệậầợởữắừứồẽự]"+ },+ {+ "language": "ja",+ "words": ["でも", "ああ", "すみません", "しかし"],+ "chars": "[いのはなたにしでてとるがをすかっまうこもらだれんりあくーよきさけそンどつちえお]"+ },+ {+ "language": "zh",+ "words": ["不是吗", "年了"],+ "chars": "[我的了他是不你个这们在有很她到么能天去为那时得什说没就想]"+ },+ {+ "language": "ru",+ "words": [+ "что",+ "он",+ "это",+ "ты",+ "мне",+ "как",+ "она",+ "меня",+ "есть",+ "бы",+ "когда",+ "то",+ "из",+ "его",+ "мы",+ "вы",+ "очень",+ "тебя"+ ],+ "chars": "[ыэё]"+ },+ {+ "language": "uk",+ "words": [+ "він",+ "що",+ "ти",+ "це",+ "як",+ "мені",+ "вона",+ "його",+ "ви",+ "мене",+ "цей",+ "тобі",+ "та",+ "коли",+ "дуже",+ "хто",+ "про",+ "від"+ ],+ "chars": "[ієї]"+ },+ {+ "language": "bg",+ "words": [+ "да",+ "се",+ "той",+ "си",+ "от",+ "ми",+ "ли",+ "тя",+ "ще",+ "много",+ "това",+ "че",+ "са",+ "те",+ "го",+ "беше",+ "съм",+ "му"+ ],+ "chars": "[ъ]"+ },+ {+ "language": "ar",+ "words": [+ "في",+ "إلى",+ "لا",+ "على",+ "هذه",+ "هذا",+ "ذلك",+ "كان",+ "هل",+ "عن",+ "هو",+ "هناك",+ "لم",+ "التي",+ "كل",+ "هي",+ "فضلك",+ "إنه"+ ],+ "chars": "[يكأةإىءؤ]"+ },+ {+ "language": "fa",+ "words": [+ "می",+ "به",+ "را",+ "است",+ "او",+ "از",+ "در",+ "که",+ "این",+ "با",+ "شما",+ "نمی",+ "یک",+ "برای",+ "های",+ "کنم",+ "بود",+ "کند"+ ],+ "chars": "[یکگپچ]"+ }+ ]+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/ar.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/ar.jsonnew file mode 100644index 0000000000..4393ff9fb8--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/ar.json@@ -0,0 +1,458 @@+{+ "version": 2,+ "language": "ar",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "فاتورة", "weight": 24, "where": "title" },+ { "text": "ضريبة القيمة المضافة", "weight": 8 }+ ]+ },+ {+ "id": "receipt",+ "phrases": [{ "text": "إيصال", "weight": 22, "where": "title" }]+ },+ {+ "id": "credit-note",+ "phrases": [{ "text": "إشعار دائن", "weight": 22, "where": "title" }]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "إيصال", "weight": 20, "where": "title" }]+ },+ {+ "id": "bank-statement",+ "phrases": [{ "text": "كشف حساب", "weight": 24, "where": "title" }]+ },+ {+ "id": "payslip",+ "phrases": [{ "text": "بيان راتب", "weight": 22, "where": "title" }]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "مصروف", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "بيان مالي", "weight": 20, "where": "title" },+ { "text": "ميزانية عمومية", "weight": 12 }+ ]+ },+ {+ "id": "tax-return",+ "phrases": [{ "text": "إقرار ضريبي", "weight": 22, "where": "title" }]+ },+ {+ "id": "tax-form",+ "phrases": [{ "text": "إقرار ضريبي", "weight": 18, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [{ "text": "عقد عمل", "weight": 24, "where": "title" }]+ },+ {+ "id": "nda",+ "phrases": [+ { "text": "اتفاقية عدم إفصاح", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "privacy-policy",+ "phrases": [+ { "text": "سياسة الخصوصية", "weight": 24, "where": "title" },+ { "text": "النظام الأوروبي العام لحماية البيانات", "weight": 10 }+ ]+ },+ {+ "id": "will",+ "phrases": [{ "text": "وصية", "weight": 20, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [{ "text": "رهن عقاري", "weight": 18, "where": "title" }]+ },+ {+ "id": "insurance-policy",+ "phrases": [{ "text": "بوليصة التأمين", "weight": 22, "where": "title" }]+ },+ {+ "id": "resume",+ "phrases": [{ "text": "سيرة ذاتية", "weight": 24, "where": "title" }]+ },+ {+ "id": "cover-letter",+ "phrases": [{ "text": "خطاب تقديم", "weight": 20, "where": "title" }]+ },+ {+ "id": "reference-letter",+ "phrases": [{ "text": "خطاب توصية", "weight": 20, "where": "title" }]+ },+ {+ "id": "job-description",+ "phrases": [{ "text": "وصف وظيفي", "weight": 20, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [+ { "text": "شهادة أكاديمية", "weight": 16, "where": "title" },+ { "text": "دبلوم", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "thesis",+ "phrases": [{ "text": "أطروحة", "weight": 20, "where": "title" }]+ },+ {+ "id": "research-paper",+ "phrases": [{ "text": "نشر أكاديمي", "weight": 10 }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "براءة اختراع", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "وصفة طبية", "weight": 20, "where": "title" },+ { "text": "صيدلة", "weight": 10 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [{ "text": "سجل طبي", "weight": 18, "where": "title" }]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "تلقيح طبي", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "استبانة", "weight": 20, "where": "title" }]+ },+ {+ "id": "user-guide",+ "phrases": [{ "text": "دليل المستخدم", "weight": 22, "where": "title" }]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ { "text": "صحيفة بيانات سلامة المادة", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "رسم صناعي", "weight": 20, "where": "title" }]+ },+ {+ "id": "bill-of-materials",+ "phrases": [{ "text": "مكونات المادة", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [{ "text": "بيان صحفي", "weight": 22, "where": "title" }]+ },+ {+ "id": "newsletter",+ "phrases": [{ "text": "نشرة إعلامية", "weight": 16, "where": "title" }]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "كتيب", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "خطة عمل", "weight": 20, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "ورقة بيضاء", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-minutes",+ "phrases": [{ "text": "محضر اجتماع", "weight": 18, "where": "title" }]+ },+ {+ "id": "invitation",+ "phrases": [{ "text": "دعوة زفاف", "weight": 14, "where": "title" }]+ },+ {+ "id": "ticket",+ "phrases": [{ "text": "تذكرة", "weight": 18, "where": "title" }]+ },+ {+ "id": "waybill",+ "phrases": [+ { "text": "قائمة الشحن البري", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "تأشيرة", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "عداد كهرباء", "weight": 12 }]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "قائمة طعام", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [{ "text": "وصفة", "weight": 18, "where": "title" }]+ },+ {+ "id": "presentation",+ "phrases": [{ "text": "عرض تقديمي", "weight": 12, "where": "title" }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "تقرير", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "رسالة مكتوبة", "weight": 8, "where": "title" }]+ },+ {+ "id": "form",+ "phrases": [{ "text": "استمارة", "weight": 10, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "تصريح", "weight": 12, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "تدقيق", "weight": 12 }]+ },+ {+ "id": "risk-assessment",+ "phrases": [{ "text": "تقييم المخاطر", "weight": 20, "where": "title" }]+ },+ {+ "id": "incident-report",+ "phrases": [{ "text": "تقرير الحادث", "weight": 20, "where": "title" }]+ },+ {+ "id": "inspection-report",+ "phrases": [{ "text": "معاينة", "weight": 10 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "عقار", "weight": 8 }]+ },+ {+ "id": "grant-agreement",+ "phrases": [{ "text": "منحة مالية", "weight": 12 }]+ },+ {+ "id": "tender-document",+ "phrases": [{ "text": "طلب العروض", "weight": 18, "where": "title" }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "نموذج عمل بالاشتراك", "weight": 10 }]+ },+ {+ "id": "donation-receipt",+ "phrases": [{ "text": "تبرع", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "بريد إلكتروني", "weight": 8 }]+ },+ {+ "id": "book-ebook",+ "phrases": [{ "text": "جدول المحتويات", "weight": 6 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "مجلة", "weight": 10 }]+ },+ {+ "id": "course-syllabus",+ "phrases": [{ "text": "خطة دراسية", "weight": 20, "where": "title" }]+ },+ {+ "id": "lesson-plan",+ "phrases": [{ "text": "خطة الدرس", "weight": 20, "where": "title" }]+ },+ {+ "id": "employee-handbook",+ "phrases": [{ "text": "كتيب الموظفين", "weight": 20, "where": "title" }]+ },+ {+ "id": "performance-review",+ "phrases": [{ "text": "تقييم أداء", "weight": 20, "where": "title" }]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "تعبئة", "weight": 8 }]+ },+ {+ "id": "statement-of-work",+ "phrases": [{ "text": "بيان العمل", "weight": 20, "where": "title" }]+ },+ {+ "id": "service-agreement",+ "phrases": [+ { "text": "اتفاق مستوى الخدمة", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "purchase-agreement",+ "phrases": [{ "text": "عقد بيع", "weight": 18, "where": "title" }]+ },+ {+ "id": "settlement-agreement",+ "phrases": [{ "text": "تسوية", "weight": 18, "where": "title" }]+ },+ {+ "id": "legal-opinion",+ "phrases": [{ "text": "استشارة قانونية", "weight": 18, "where": "title" }]+ },+ {+ "id": "subpoena",+ "phrases": [{ "text": "أمر بالاستدعاء", "weight": 20, "where": "title" }]+ },+ {+ "id": "consent-form",+ "phrases": [{ "text": "موافقة مستنيرة", "weight": 18, "where": "title" }]+ },+ {+ "id": "lab-report",+ "phrases": [{ "text": "علم المختبرات السريرية", "weight": 12 }]+ },+ {+ "id": "referral-letter",+ "phrases": [{ "text": "إحالة", "weight": 18, "where": "title" }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "تأمين", "weight": 20, "where": "title" }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "ضبط الجودة", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "معايرة", "weight": 12 }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "السلامة والصحة المهنية", "weight": 10 }]+ },+ {+ "id": "technical-specification",+ "phrases": [{ "text": "مواصفة", "weight": 16, "where": "title" }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "واجهة برمجة التطبيقات", "weight": 8 }]+ },+ {+ "id": "license-agreement",+ "phrases": [+ {+ "text": "اتفاقية ترخيص المستخدم النهائي",+ "weight": 20,+ "where": "title"+ }+ ]+ },+ {+ "id": "proposal",+ "phrases": [+ { "text": "نموذج طلب تقديم عرض", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "ميزانية", "weight": 14, "where": "title" }]+ },+ {+ "id": "order-confirmation",+ "phrases": [{ "text": "أمر البيع", "weight": 18, "where": "title" }]+ },+ {+ "id": "remittance-advice",+ "phrases": [+ { "text": "إخطار تحويل الأموال", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "statement-of-account",+ "phrases": [{ "text": "كشف حساب", "weight": 18, "where": "title" }]+ },+ {+ "id": "application-form",+ "phrases": [{ "text": "طلب التوظيف", "weight": 14, "where": "title" }]+ },+ {+ "id": "registration-form",+ "phrases": [{ "text": "جامعة نيوزيلندا", "weight": 18, "where": "title" }]+ },+ {+ "id": "gift-certificate",+ "phrases": [{ "text": "بطاقة هدية", "weight": 16, "where": "title" }]+ },+ {+ "id": "organization-chart",+ "phrases": [+ { "text": "مخطط هيكل تنظيمي", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "case-study",+ "phrases": [{ "text": "دراسة حالة", "weight": 16, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "مجلس إدارة", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "استثمار", "weight": 8 }]+ },+ {+ "id": "letter-of-intent",+ "phrases": [{ "text": "خطاب نوايا", "weight": 20, "where": "title" }]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "تحليل الويب", "weight": 10 }]+ },+ {+ "id": "appraisal-report",+ "phrases": [{ "text": "تثمين عقاري", "weight": 18, "where": "title" }]+ },+ {+ "id": "benefits-summary",+ "phrases": [{ "text": "استحقاقات الموظفين", "weight": 14 }]+ },+ {+ "id": "hoa-document",+ "phrases": [+ { "text": "جمعية مالكي المنازل", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "grade-report",+ "phrases": [+ { "text": "النتيجة المدرسية", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "واجب منزلي", "weight": 12 }]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "جدول\\ المحتويات" }],+ "references": [{ "pattern": "فهرسة\\ الكتب" }],+ "signature": [{ "pattern": "توقيع" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/az.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/az.jsonnew file mode 100644index 0000000000..12ee1c70ad--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/az.json@@ -0,0 +1,242 @@+{+ "version": 2,+ "language": "az",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "faktura", "weight": 24, "where": "title" },+ { "text": "əlavə dəyər vergisi", "weight": 8 }+ ]+ },+ {+ "id": "payslip",+ "phrases": [+ { "text": "hesablaşma vərəqi", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "xərclər", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "maliyyə hesabatı", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "müqavilə", "weight": 12, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [{ "text": "əmək müqaviləsi", "weight": 24, "where": "title" }]+ },+ {+ "id": "privacy-policy",+ "phrases": [+ { "text": "məxfilik siyasəti", "weight": 24, "where": "title" },+ {+ "text": "məlumatların mühafizəsi haqqında ümumi reqlament",+ "weight": 10+ }+ ]+ },+ {+ "id": "will",+ "phrases": [{ "text": "vəsiyyətnamə", "weight": 20, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [{ "text": "i̇poteka krediti", "weight": 18, "where": "title" }]+ },+ {+ "id": "insurance-policy",+ "phrases": [+ { "text": "sığorta siyasəti", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "resume",+ "phrases": [{ "text": "rezume", "weight": 20, "where": "title" }]+ },+ {+ "id": "reference-letter",+ "phrases": [{ "text": "tövsiyə məktubu", "weight": 20, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [+ { "text": "attestat", "weight": 16, "where": "title" },+ { "text": "diplom", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "research-paper",+ "phrases": [{ "text": "akademik nəşriyyat", "weight": 10 }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "patent", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [{ "text": "reseptura", "weight": 20, "where": "title" }]+ },+ {+ "id": "medical-report",+ "phrases": [{ "text": "xəstəlik tarixi", "weight": 18, "where": "title" }]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "vaksinasiya", "weight": 12 }]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "çertyoj", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [{ "text": "press-reliz", "weight": 22, "where": "title" }]+ },+ {+ "id": "meeting-minutes",+ "phrases": [{ "text": "stenoqram", "weight": 18, "where": "title" }]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "memorandum", "weight": 16, "where": "title" }]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "viza", "weight": 18, "where": "title" }]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "menyu", "weight": 16, "where": "title" }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "hesabat", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "məktub", "weight": 8, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "lisenziya", "weight": 12, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "audit", "weight": 12 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "daşınmaz əmlak", "weight": 8 }]+ },+ {+ "id": "grant-agreement",+ "phrases": [{ "text": "qrant", "weight": 12 }]+ },+ {+ "id": "booking-confirmation",+ "phrases": [{ "text": "rezervasiya", "weight": 14, "where": "title" }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "elektron poçt", "weight": 8 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "jurnal", "weight": 10 }]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "i̇şə qəbul", "weight": 8 }]+ },+ {+ "id": "purchase-agreement",+ "phrases": [+ { "text": "alqı-satqı müqaviləsi", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "loan-agreement",+ "phrases": [+ { "text": "kredit müqaviləsi", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "shareholder-agreement",+ "phrases": [+ { "text": "səhmdarlar müqaviləsi", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "sığorta", "weight": 20, "where": "title" }]+ },+ {+ "id": "safety-procedure",+ "phrases": [+ { "text": "əməyin mühafizəsi və təhlükəsizliyi", "weight": 10 }+ ]+ },+ {+ "id": "datasheet",+ "phrases": [{ "text": "dataşit", "weight": 18, "where": "title" }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "tətbiqi proqramlaşdırma interfeysi", "weight": 8 }]+ },+ {+ "id": "sales-proposal",+ "phrases": [{ "text": "oferta", "weight": 16, "where": "title" }]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "büdcə", "weight": 14, "where": "title" }]+ },+ {+ "id": "remittance-advice",+ "phrases": [{ "text": "avizo", "weight": 20, "where": "title" }]+ },+ {+ "id": "case-study",+ "phrases": [{ "text": "keys üsulu", "weight": 16, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "direktorlar şurası", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "i̇nvestisiya", "weight": 8 }]+ },+ {+ "id": "quarterly-report",+ "phrases": [+ { "text": "rüblük maliyyə hesabatı", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "veb-analitika", "weight": 10 }]+ },+ {+ "id": "benefits-summary",+ "phrases": [{ "text": "i̇şçi mükafatları", "weight": 14 }]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "ev tapşırığı", "weight": 12 }]+ }+ ],+ "patterns": {+ "references": [{ "pattern": "biblioqrafiya" }],+ "signature": [{ "pattern": "i̇mza" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/bg.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/bg.jsonnew file mode 100644index 0000000000..ea458cc971--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/bg.json@@ -0,0 +1,230 @@+{+ "version": 2,+ "language": "bg",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "фактура", "weight": 24, "where": "title" },+ { "text": "данък върху добавената стойност", "weight": 8 }+ ]+ },+ {+ "id": "credit-note",+ "phrases": [+ { "text": "кредитно известие", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "payslip",+ "phrases": [{ "text": "фиш за заплата", "weight": 22, "where": "title" }]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "разход", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "финансов отчет", "weight": 20, "where": "title" },+ { "text": "счетоводен баланс", "weight": 12 }+ ]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "договор", "weight": 12, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [{ "text": "трудов договор", "weight": 24, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [{ "text": "ипотечен кредит", "weight": 18, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [{ "text": "диплома", "weight": 16, "where": "title" }]+ },+ {+ "id": "thesis",+ "phrases": [{ "text": "дипломна работа", "weight": 20, "where": "title" }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "патент", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "рецепта", "weight": 20, "where": "title" },+ { "text": "фармация", "weight": 10 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [+ { "text": "медицински картон", "weight": 18, "where": "title" },+ { "text": "диагноза", "weight": 10 }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "ваксинация", "weight": 12 }]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "чертеж", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [+ { "text": "информационен бюлетин", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "брошура", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "бизнес план", "weight": 20, "where": "title" }]+ },+ {+ "id": "ticket",+ "phrases": [{ "text": "билет", "weight": 18, "where": "title" }]+ },+ {+ "id": "waybill",+ "phrases": [+ { "text": "товарителен запис", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "виза", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "електромер", "weight": 12 }]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "меню", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [+ { "text": "готварска рецепта", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "report",+ "phrases": [{ "text": "доклад", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "писмо", "weight": 8, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "лиценз", "weight": 12, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "одит", "weight": 12 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "недвижима собственост", "weight": 8 }]+ },+ {+ "id": "tender-document",+ "phrases": [+ { "text": "обществена поръчка", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "donation-receipt",+ "phrases": [{ "text": "дарителство", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "електронна поща", "weight": 8 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "списание", "weight": 10 }]+ },+ {+ "id": "course-syllabus",+ "phrases": [{ "text": "учебна програма", "weight": 20, "where": "title" }]+ },+ {+ "id": "lesson-plan",+ "phrases": [{ "text": "план на урок", "weight": 20, "where": "title" }]+ },+ {+ "id": "service-agreement",+ "phrases": [+ {+ "text": "споразумение за ниво на обслужване",+ "weight": 18,+ "where": "title"+ }+ ]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "застраховане", "weight": 20, "where": "title" }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "охрана на труда", "weight": 10 }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "приложно-програмен интерфейс", "weight": 8 }]+ },+ {+ "id": "license-agreement",+ "phrases": [+ {+ "text": "лицензионно споразумение с краен потребител",+ "weight": 20,+ "where": "title"+ }+ ]+ },+ {+ "id": "sales-proposal",+ "phrases": [{ "text": "оферта", "weight": 16, "where": "title" }]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "бюджет", "weight": 14, "where": "title" }]+ },+ {+ "id": "case-study",+ "phrases": [+ { "text": "изследване на случай", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "инвестиция", "weight": 8 }]+ },+ {+ "id": "tax-statement",+ "phrases": [{ "text": "данъчна оценка", "weight": 18, "where": "title" }]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "домашна работа", "weight": 12 }]+ }+ ],+ "patterns": {+ "references": [{ "pattern": "библиография" }],+ "signature": [{ "pattern": "подпис" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/bo.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/bo.jsonnew file mode 100644index 0000000000..dbc08342f4--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/bo.json@@ -0,0 +1,32 @@+{+ "version": 2,+ "language": "bo",+ "labels": [+ {+ "id": "receipt",+ "phrases": [{ "text": "ཆད་འཛིན།", "weight": 22, "where": "title" }]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "ཆད་འཛིན།", "weight": 20, "where": "title" }]+ },+ {+ "id": "will",+ "phrases": [+ { "text": "སངས་རྒྱས་ཀྱི་བསྙུན་གཞི་དང་ཞལ་ཆེམས་", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "ཤ་ཁབ་", "weight": 12 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "གློག་རྡུལ་འཕྲིན་སྒམ།", "weight": 8 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "དུས་དེབ།", "weight": 10 }]+ }+ ]+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/ca.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/ca.jsonnew file mode 100644index 0000000000..d61c413f0f--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/ca.json@@ -0,0 +1,341 @@+{+ "version": 2,+ "language": "ca",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "factura", "weight": 24, "where": "title" },+ { "text": "impost sobre el valor afegit", "weight": 8 }+ ]+ },+ {+ "id": "receipt",+ "phrases": [{ "text": "rebut", "weight": 22, "where": "title" }]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "rebut", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "estats financers", "weight": 20, "where": "title" },+ { "text": "balanç de situació", "weight": 12 }+ ]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "contracte", "weight": 12, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [+ { "text": "contracte de treball", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "lease-agreement",+ "phrases": [{ "text": "fiança", "weight": 10 }]+ },+ {+ "id": "nda",+ "phrases": [+ { "text": "acord de confidencialitat", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "privacy-policy",+ "phrases": [+ { "text": "política de privacitat", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "affidavit",+ "phrases": [{ "text": "afidàvit", "weight": 20, "where": "title" }]+ },+ {+ "id": "will",+ "phrases": [{ "text": "testament", "weight": 20, "where": "title" }]+ },+ {+ "id": "deed",+ "phrases": [{ "text": "escriptura", "weight": 16, "where": "title" }]+ },+ {+ "id": "cover-letter",+ "phrases": [+ { "text": "carta de presentació", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "certificate",+ "phrases": [{ "text": "diploma", "weight": 16, "where": "title" }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "patent", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "prescripció", "weight": 20, "where": "title" },+ { "text": "farmàcia", "weight": 10 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [+ { "text": "història clínica", "weight": 18, "where": "title" },+ { "text": "diagnosi", "weight": 10 }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "vacunació", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "qüestionari", "weight": 20, "where": "title" }]+ },+ {+ "id": "warranty-document",+ "phrases": [{ "text": "garantia", "weight": 18, "where": "title" }]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ {+ "text": "fitxa de dades de seguretat",+ "weight": 24,+ "where": "title"+ }+ ]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "dibuix tècnic", "weight": 20, "where": "title" }]+ },+ {+ "id": "bill-of-materials",+ "phrases": [+ { "text": "llista de materials", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "press-release",+ "phrases": [+ { "text": "comunicat de premsa", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "newsletter",+ "phrases": [+ { "text": "butlletí informatiu", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "fullet", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "pla de negoci", "weight": 20, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "llibre blanc", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-minutes",+ "phrases": [{ "text": "acta", "weight": 18, "where": "title" }]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "memoràndum", "weight": 16, "where": "title" }]+ },+ {+ "id": "ticket",+ "phrases": [{ "text": "bitllet", "weight": 18, "where": "title" }]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "visat", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "comptador elèctric", "weight": 12 }]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "carta", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [+ { "text": "recepta de cuina", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "presentation",+ "phrases": [{ "text": "presentació", "weight": 12, "where": "title" }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "informe", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "carta", "weight": 8, "where": "title" }]+ },+ {+ "id": "form",+ "phrases": [{ "text": "formulari", "weight": 10, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "llicència", "weight": 12, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "auditoria", "weight": 12 }]+ },+ {+ "id": "risk-assessment",+ "phrases": [+ { "text": "avaluació de risc", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "inspection-report",+ "phrases": [{ "text": "inspecció", "weight": 10 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "immoble", "weight": 8 }]+ },+ {+ "id": "grant-agreement",+ "phrases": [{ "text": "subvenció", "weight": 12 }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "subscripció", "weight": 10 }]+ },+ {+ "id": "donation-receipt",+ "phrases": [{ "text": "donació", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "correu electrònic", "weight": 8 }]+ },+ {+ "id": "book-ebook",+ "phrases": [{ "text": "sumari", "weight": 6 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "revista", "weight": 10 }]+ },+ {+ "id": "lesson-plan",+ "phrases": [+ { "text": "unitat didàctica", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "service-agreement",+ "phrases": [+ { "text": "acord de nivell de servei", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "consent-form",+ "phrases": [+ { "text": "consentiment informat", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "lab-report",+ "phrases": [{ "text": "laboratori clínic", "weight": 12 }]+ },+ {+ "id": "insurance-claim",+ "phrases": [+ { "text": "contracte d'assegurança", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "control de qualitat", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "calibratge", "weight": 12 }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "seguretat i salut laboral", "weight": 10 }]+ },+ {+ "id": "datasheet",+ "phrases": [{ "text": "fitxa tècnica", "weight": 18, "where": "title" }]+ },+ {+ "id": "technical-specification",+ "phrases": [{ "text": "especificació", "weight": 16, "where": "title" }]+ },+ {+ "id": "api-documentation",+ "phrases": [+ { "text": "interfície de programació d'aplicacions", "weight": 8 }+ ]+ },+ {+ "id": "license-agreement",+ "phrases": [+ {+ "text": "acord de llicència del programari",+ "weight": 20,+ "where": "title"+ }+ ]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "pressupost", "weight": 14, "where": "title" }]+ },+ {+ "id": "organization-chart",+ "phrases": [{ "text": "organigrama", "weight": 20, "where": "title" }]+ },+ {+ "id": "case-study",+ "phrases": [{ "text": "estudi de cas", "weight": 16, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "consell d'administració", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "inversió econòmica", "weight": 8 }]+ },+ {+ "id": "letter-of-intent",+ "phrases": [+ { "text": "carta d'intencions", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "treball escolar", "weight": 12 }]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "sumari" }],+ "references": [{ "pattern": "bibliografia" }],+ "signature": [{ "pattern": "signatura" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/cs.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/cs.jsonnew file mode 100644index 0000000000..a21baf94ea--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/cs.json@@ -0,0 +1,388 @@+{+ "version": 2,+ "language": "cs",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "faktura", "weight": 24, "where": "title" },+ { "text": "daň z přidané hodnoty", "weight": 8 }+ ]+ },+ {+ "id": "receipt",+ "phrases": [{ "text": "kvitance", "weight": 22, "where": "title" }]+ },+ {+ "id": "credit-note",+ "phrases": [{ "text": "dobropis", "weight": 22, "where": "title" }]+ },+ {+ "id": "purchase-order",+ "phrases": [{ "text": "objednávka", "weight": 20, "where": "title" }]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "kvitance", "weight": 20, "where": "title" }]+ },+ {+ "id": "expense-report",+ "phrases": [+ { "text": "finanční náklady", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "účetní závěrka", "weight": 20, "where": "title" },+ { "text": "rozvaha", "weight": 12 }+ ]+ },+ {+ "id": "tax-return",+ "phrases": [{ "text": "daňové přiznání", "weight": 22, "where": "title" }]+ },+ {+ "id": "tax-form",+ "phrases": [{ "text": "daňové přiznání", "weight": 18, "where": "title" }]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "smlouva", "weight": 12, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [+ { "text": "pracovní smlouva", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "lease-agreement",+ "phrases": [{ "text": "nájem", "weight": 18, "where": "title" }]+ },+ {+ "id": "affidavit",+ "phrases": [+ { "text": "čestné prohlášení", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "will",+ "phrases": [{ "text": "závěť", "weight": 20, "where": "title" }]+ },+ {+ "id": "deed",+ "phrases": [{ "text": "listina", "weight": 16, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [{ "text": "hypoteční úvěr", "weight": 18, "where": "title" }]+ },+ {+ "id": "resume",+ "phrases": [+ { "text": "curriculum vitæ", "weight": 24, "where": "title" },+ { "text": "curriculum vitae", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "cover-letter",+ "phrases": [{ "text": "motivační dopis", "weight": 20, "where": "title" }]+ },+ {+ "id": "job-description",+ "phrases": [+ { "text": "popis pracovního místa", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "certificate",+ "phrases": [+ { "text": "vysokoškolský diplom", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "transcript",+ "phrases": [+ { "text": "vysokoškolský index", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "thesis",+ "phrases": [+ {+ "text": "vysokoškolská kvalifikační práce",+ "weight": 20,+ "where": "title"+ }+ ]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "patent", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "lékařský předpis", "weight": 20, "where": "title" },+ { "text": "farmacie", "weight": 10 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [{ "text": "diagnóza", "weight": 10 }]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "očkování", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "dotazník", "weight": 20, "where": "title" }]+ },+ {+ "id": "user-guide",+ "phrases": [+ { "text": "uživatelská příručka", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ { "text": "bezpečnostní list", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "technical-drawing",+ "phrases": [+ { "text": "technické kreslení", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "bill-of-materials",+ "phrases": [{ "text": "kusovník", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [{ "text": "tisková zpráva", "weight": 22, "where": "title" }]+ },+ {+ "id": "newsletter",+ "phrases": [{ "text": "newsletter", "weight": 16, "where": "title" }]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "brožura", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [+ { "text": "podnikatelský záměr", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "bílá kniha", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-minutes",+ "phrases": [{ "text": "protokol", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-agenda",+ "phrases": [{ "text": "agenda", "weight": 16, "where": "title" }]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "memorandum", "weight": 16, "where": "title" }]+ },+ {+ "id": "invitation",+ "phrases": [+ { "text": "svatební oznámení", "weight": 14, "where": "title" }+ ]+ },+ {+ "id": "ticket",+ "phrases": [{ "text": "vstupenka", "weight": 18, "where": "title" }]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "vízum", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "elektroměr", "weight": 12 }]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "jídelní lístek", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [+ { "text": "kuchařský recept", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "presentation",+ "phrases": [{ "text": "prezentace", "weight": 12, "where": "title" }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "zpráva", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "dopis", "weight": 8, "where": "title" }]+ },+ {+ "id": "form",+ "phrases": [{ "text": "formulář", "weight": 10, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "licence", "weight": 12, "where": "title" }]+ },+ {+ "id": "legal-notice",+ "phrases": [+ { "text": "předžalobní výzva", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "audit", "weight": 12 }]+ },+ {+ "id": "inspection-report",+ "phrases": [{ "text": "inspekce", "weight": 10 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "nemovitá věc", "weight": 8 }]+ },+ {+ "id": "grant-agreement",+ "phrases": [{ "text": "grant", "weight": 12 }]+ },+ {+ "id": "tender-document",+ "phrases": [{ "text": "výběrové řízení", "weight": 18, "where": "title" }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "e-mail", "weight": 8 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "časopis", "weight": 10 }]+ },+ {+ "id": "course-syllabus",+ "phrases": [{ "text": "sylabus", "weight": 20, "where": "title" }]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "získávání a výběr zaměstnanců", "weight": 8 }]+ },+ {+ "id": "purchase-agreement",+ "phrases": [{ "text": "kupní smlouva", "weight": 18, "where": "title" }]+ },+ {+ "id": "settlement-agreement",+ "phrases": [{ "text": "smír", "weight": 18, "where": "title" }]+ },+ {+ "id": "consent-form",+ "phrases": [+ { "text": "informovaný souhlas", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "discharge-summary",+ "phrases": [{ "text": "hospitalizace", "weight": 20, "where": "title" }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "pojištění", "weight": 20, "where": "title" }]+ },+ {+ "id": "regulatory-filing",+ "phrases": [{ "text": "korporátní compliance", "weight": 10 }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "nástroje pro řízení kvality", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "kalibrace", "weight": 12 }]+ },+ {+ "id": "datasheet",+ "phrases": [{ "text": "katalogový list", "weight": 18, "where": "title" }]+ },+ {+ "id": "technical-specification",+ "phrases": [{ "text": "specifikace", "weight": 16, "where": "title" }]+ },+ {+ "id": "license-agreement",+ "phrases": [+ { "text": "end user license agreement", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "rozpočet", "weight": 14, "where": "title" }]+ },+ {+ "id": "gift-certificate",+ "phrases": [{ "text": "dárková karta", "weight": 16, "where": "title" }]+ },+ {+ "id": "return-authorization",+ "phrases": [{ "text": "vrácení zboží", "weight": 16, "where": "title" }]+ },+ {+ "id": "organization-chart",+ "phrases": [{ "text": "organigram", "weight": 20, "where": "title" }]+ },+ {+ "id": "case-study",+ "phrases": [+ { "text": "případová studie", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "představenstvo", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "investice", "weight": 8 }]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "webová analytika", "weight": 10 }]+ },+ {+ "id": "benefits-summary",+ "phrases": [{ "text": "zaměstnanecké výhody", "weight": 14 }]+ },+ {+ "id": "grade-report",+ "phrases": [{ "text": "vysvědčení", "weight": 20, "where": "title" }]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "domácí úkol", "weight": 12 }]+ }+ ],+ "patterns": {+ "references": [{ "pattern": "bibliografie" }],+ "signature": [{ "pattern": "podpis" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/da.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/da.jsonnew file mode 100644index 0000000000..16c800af3c--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/da.json@@ -0,0 +1,308 @@+{+ "version": 2,+ "language": "da",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "faktura", "weight": 24, "where": "title" },+ { "text": "moms", "weight": 8 }+ ]+ },+ {+ "id": "receipt",+ "phrases": [{ "text": "kvittering", "weight": 22, "where": "title" }]+ },+ {+ "id": "credit-note",+ "phrases": [{ "text": "kreditnota", "weight": 22, "where": "title" }]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "kvittering", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [{ "text": "balance", "weight": 12 }]+ },+ {+ "id": "tax-return",+ "phrases": [{ "text": "selvangivelse", "weight": 22, "where": "title" }]+ },+ {+ "id": "tax-form",+ "phrases": [{ "text": "selvangivelse", "weight": 18, "where": "title" }]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "kontrakt", "weight": 12, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [+ { "text": "ansættelsesaftale", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "lease-agreement",+ "phrases": [+ { "text": "lejekontrakt", "weight": 18, "where": "title" },+ { "text": "depositum", "weight": 10 }+ ]+ },+ {+ "id": "privacy-policy",+ "phrases": [{ "text": "databeskyttelsesforordningen", "weight": 10 }]+ },+ {+ "id": "will",+ "phrases": [{ "text": "testamente", "weight": 20, "where": "title" }]+ },+ {+ "id": "deed",+ "phrases": [{ "text": "bekendtgørelse", "weight": 16, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [{ "text": "realkreditlån", "weight": 18, "where": "title" }]+ },+ {+ "id": "insurance-policy",+ "phrases": [+ { "text": "forsikringspolice", "weight": 22, "where": "title" },+ { "text": "selvrisiko", "weight": 8 }+ ]+ },+ {+ "id": "resume",+ "phrases": [{ "text": "curriculum vitæ", "weight": 24, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [{ "text": "diplom", "weight": 16, "where": "title" }]+ },+ {+ "id": "thesis",+ "phrases": [{ "text": "speciale", "weight": 20, "where": "title" }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "patent", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "recept", "weight": 20, "where": "title" },+ { "text": "farmaci", "weight": 10 }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "vaccination", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "spørgeskema", "weight": 20, "where": "title" }]+ },+ {+ "id": "user-guide",+ "phrases": [{ "text": "brugsanvisning", "weight": 22, "where": "title" }]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ { "text": "sikkerhedsdatablad", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "press-release",+ "phrases": [+ { "text": "pressemeddelelse", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "newsletter",+ "phrases": [{ "text": "nyhedsbrev", "weight": 16, "where": "title" }]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "brochure", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "forretningsplan", "weight": 20, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "hvidbog", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-minutes",+ "phrases": [{ "text": "referat", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-agenda",+ "phrases": [{ "text": "dagsorden", "weight": 16, "where": "title" }]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "memorandum", "weight": 16, "where": "title" }]+ },+ {+ "id": "invitation",+ "phrases": [+ { "text": "bryllupsinvitation", "weight": 14, "where": "title" }+ ]+ },+ {+ "id": "ticket",+ "phrases": [{ "text": "billet", "weight": 18, "where": "title" }]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "visum", "weight": 18, "where": "title" }]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "menu", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [{ "text": "madopskrift", "weight": 18, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "brev", "weight": 8, "where": "title" }]+ },+ {+ "id": "form",+ "phrases": [{ "text": "blanket", "weight": 10, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "licens", "weight": 12, "where": "title" }]+ },+ {+ "id": "risk-assessment",+ "phrases": [{ "text": "risikovurdering", "weight": 20, "where": "title" }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "fast ejendom", "weight": 8 }]+ },+ {+ "id": "grant-agreement",+ "phrases": [{ "text": "legat", "weight": 12 }]+ },+ {+ "id": "tender-document",+ "phrases": [{ "text": "licitation", "weight": 18, "where": "title" }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "abonnement", "weight": 10 }]+ },+ {+ "id": "donation-receipt",+ "phrases": [{ "text": "donation", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "e-mail", "weight": 8 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "tidsskrift", "weight": 10 }]+ },+ {+ "id": "performance-review",+ "phrases": [+ { "text": "udviklingssamtale", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "rekruttering", "weight": 8 }]+ },+ {+ "id": "settlement-agreement",+ "phrases": [{ "text": "forlig", "weight": 18, "where": "title" }]+ },+ {+ "id": "subpoena",+ "phrases": [{ "text": "stævning", "weight": 20, "where": "title" }]+ },+ {+ "id": "consent-form",+ "phrases": [+ { "text": "informeret samtykke", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "forsikring", "weight": 20, "where": "title" }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "kvalitetskontrol", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "kalibrering", "weight": 12 }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "arbejdsmiljø", "weight": 10 }]+ },+ {+ "id": "datasheet",+ "phrases": [{ "text": "datablad", "weight": 18, "where": "title" }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "application programming interface", "weight": 8 }]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "budget", "weight": 14, "where": "title" }]+ },+ {+ "id": "application-form",+ "phrases": [{ "text": "jobansøgning", "weight": 14, "where": "title" }]+ },+ {+ "id": "organization-chart",+ "phrases": [+ { "text": "organisationsdiagram", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "case-study",+ "phrases": [{ "text": "casestudie", "weight": 16, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "bestyrelse", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "investering", "weight": 8 }]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "webanalyse", "weight": 10 }]+ },+ {+ "id": "benefits-summary",+ "phrases": [{ "text": "frynsegode", "weight": 14 }]+ },+ {+ "id": "hoa-document",+ "phrases": [{ "text": "ejerforening", "weight": 18, "where": "title" }]+ }+ ],+ "patterns": {+ "references": [{ "pattern": "bibliografi" }],+ "signature": [{ "pattern": "signatur" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/de.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/de.jsonnew file mode 100644index 0000000000..721dd7dfe4--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/de.json@@ -0,0 +1,735 @@+{+ "version": 2,+ "language": "de",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "rechnung", "weight": 14, "where": "title" },+ { "text": "rechnungsnummer", "weight": 22, "where": "first" },+ { "text": "rechnungsdatum", "weight": 16, "where": "first" },+ { "text": "rechnungsempfänger", "weight": 12, "where": "first" },+ { "text": "rechnungsbetrag", "weight": 16 },+ { "text": "zahlbar bis", "weight": 16 },+ { "text": "zahlungsbedingungen", "weight": 8 },+ { "text": "zu zahlender betrag", "weight": 14 },+ { "text": "leistungszeitraum", "weight": 8 },+ { "text": "ust-idnr", "weight": 14 },+ { "text": "umsatzsteuer-identifikationsnummer", "weight": 12 },+ { "text": "mehrwertsteuer", "weight": 8 },+ { "text": "zahlbar innerhalb", "weight": 14 },+ { "text": "gesamtbetrag", "weight": 8 }+ ],+ "regexes": [+ {+ "pattern": "rechnungs-?\\s?nr\\.?\\s*:?\\s*[a-z0-9][a-z0-9-]{2,14}",+ "weight": 16,+ "name": "Rechnungsnummer field"+ },+ {+ "pattern": "\\bre[-\\s]?\\d{3,8}\\b",+ "weight": 12,+ "name": "RE-#### reference"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "rechnung",+ "weight": 16,+ "name": "Rechnung in PDF title"+ }+ ],+ "negatives": [+ {+ "text": "lieferschein",+ "weight": 14,+ "name": "delivery note heading"+ },+ { "text": "gutschrift", "weight": 18, "name": "credit note heading" },+ { "text": "kostenvoranschlag", "weight": 16, "name": "quote wording" },+ {+ "text": "kontoauszug",+ "weight": 12,+ "name": "bank statement heading"+ },+ { "text": "mahnung", "weight": 12, "name": "dunning letter heading" }+ ]+ },+ {+ "id": "receipt",+ "phrases": [+ { "text": "quittung", "weight": 20, "where": "title" },+ { "text": "kassenbon", "weight": 22, "where": "title" },+ { "text": "kassenbeleg", "weight": 20, "where": "title" },+ { "text": "zahlungsbestätigung", "weight": 20 },+ { "text": "zahlung erhalten", "weight": 16 },+ { "text": "betrag erhalten", "weight": 16 },+ { "text": "vielen dank für ihren einkauf", "weight": 16 },+ { "text": "dankeschön für ihren einkauf", "weight": 14 }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "quittung|kassenbon|beleg",+ "weight": 14,+ "name": "Quittung in PDF title"+ }+ ],+ "negatives": [+ {+ "text": "zahlbar bis",+ "weight": 12,+ "name": "still-payable wording"+ },+ {+ "text": "lieferschein",+ "weight": 12,+ "name": "delivery note heading"+ }+ ]+ },+ {+ "id": "credit-note",+ "phrases": [+ { "text": "gutschrift", "weight": 24, "where": "title" },+ { "text": "gutschriftsnummer", "weight": 20 },+ { "text": "gutschriftnummer", "weight": 20 },+ { "text": "stornorechnung", "weight": 18 },+ { "text": "storno", "weight": 8 }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "gutschrift",+ "weight": 16,+ "name": "Gutschrift in PDF title"+ }+ ]+ },+ {+ "id": "quote",+ "phrases": [+ { "text": "angebot", "weight": 16, "where": "title" },+ { "text": "kostenvoranschlag", "weight": 24, "where": "title" },+ { "text": "angebotsnummer", "weight": 20 },+ { "text": "angebot gültig bis", "weight": 18 },+ { "text": "freibleibendes angebot", "weight": 16 },+ { "text": "unverbindliches angebot", "weight": 16 }+ ],+ "negatives": [+ {+ "text": "rechnungsnummer",+ "weight": 14,+ "name": "invoice numbering"+ },+ { "text": "zahlbar bis", "weight": 12, "name": "payment-due wording" }+ ]+ },+ {+ "id": "purchase-order",+ "phrases": [+ { "text": "bestellung", "weight": 16, "where": "title" },+ { "text": "bestellnummer", "weight": 18 },+ { "text": "bestelldatum", "weight": 14 },+ { "text": "liefertermin", "weight": 8 },+ { "text": "bestellschein", "weight": 20 }+ ],+ "negatives": [+ {+ "text": "auftragsbestätigung",+ "weight": 14,+ "name": "order confirmation heading"+ },+ { "text": "rechnungsnummer", "weight": 12, "name": "invoice numbering" }+ ]+ },+ {+ "id": "order-confirmation",+ "phrases": [+ { "text": "auftragsbestätigung", "weight": 26, "where": "title" },+ { "text": "bestellbestätigung", "weight": 24, "where": "title" },+ { "text": "vielen dank für ihre bestellung", "weight": 16 },+ { "text": "ihre bestellung ist eingegangen", "weight": 16 }+ ]+ },+ {+ "id": "delivery-note",+ "phrases": [+ { "text": "lieferschein", "weight": 28, "where": "title" },+ { "text": "lieferscheinnummer", "weight": 20 },+ { "text": "lieferadresse", "weight": 10 },+ { "text": "versandart", "weight": 8 }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "lieferschein",+ "weight": 16,+ "name": "Lieferschein in PDF title"+ }+ ],+ "negatives": [+ { "text": "rechnungsbetrag", "weight": 12, "name": "invoice total" }+ ]+ },+ {+ "id": "packing-slip",+ "phrases": [+ { "text": "packliste", "weight": 24, "where": "title" },+ { "text": "versandliste", "weight": 20 }+ ]+ },+ {+ "id": "bank-statement",+ "phrases": [+ { "text": "kontoauszug", "weight": 28, "where": "title" },+ { "text": "alter kontostand", "weight": 18 },+ { "text": "neuer kontostand", "weight": 18 },+ { "text": "kontostand", "weight": 14 },+ { "text": "buchungstag", "weight": 16 },+ { "text": "wertstellung", "weight": 16 },+ { "text": "kontonummer", "weight": 12 },+ { "text": "umsatzübersicht", "weight": 18 }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "kontoauszug",+ "weight": 16,+ "name": "Kontoauszug in PDF title"+ }+ ]+ },+ {+ "id": "remittance-advice",+ "phrases": [+ { "text": "zahlungsavis", "weight": 24, "where": "title" },+ { "text": "zahlungsmitteilung", "weight": 20 },+ { "text": "überweisungsträger", "weight": 16 }+ ]+ },+ {+ "id": "expense-report",+ "phrases": [+ { "text": "reisekostenabrechnung", "weight": 28, "where": "title" },+ { "text": "spesenabrechnung", "weight": 26, "where": "title" },+ { "text": "kilometergeld", "weight": 16 },+ { "text": "verpflegungspauschale", "weight": 18 }+ ]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "jahresabschluss", "weight": 26, "where": "title" },+ { "text": "gewinn- und verlustrechnung", "weight": 26 },+ { "text": "lagebericht", "weight": 18 },+ { "text": "bilanz", "weight": 16 },+ { "text": "aktiva", "weight": 12 },+ { "text": "passiva", "weight": 12 }+ ]+ },+ {+ "id": "payslip",+ "phrases": [+ { "text": "gehaltsabrechnung", "weight": 28, "where": "title" },+ { "text": "lohnabrechnung", "weight": 28, "where": "title" },+ { "text": "verdienstabrechnung", "weight": 26, "where": "title" },+ { "text": "entgeltabrechnung", "weight": 26, "where": "title" },+ { "text": "steuerklasse", "weight": 18 },+ { "text": "auszahlungsbetrag", "weight": 16 },+ { "text": "lohnsteuer", "weight": 14 },+ { "text": "sozialversicherung", "weight": 10 },+ { "text": "rentenversicherung", "weight": 10 },+ { "text": "gesamtbrutto", "weight": 16 }+ ]+ },+ {+ "id": "tax-statement",+ "phrases": [+ { "text": "lohnsteuerbescheinigung", "weight": 30, "where": "title" },+ { "text": "steuerbescheid", "weight": 24, "where": "title" },+ { "text": "steuerbescheinigung", "weight": 22 },+ { "text": "festsetzung", "weight": 12 }+ ]+ },+ {+ "id": "tax-return",+ "phrases": [+ { "text": "einkommensteuererklärung", "weight": 28, "where": "title" },+ { "text": "steuererklärung", "weight": 22, "where": "title" },+ { "text": "umsatzsteuervoranmeldung", "weight": 26 }+ ],+ "regexes": [+ {+ "pattern": "\\banlage\\s+(n|kap|vorsorgeaufwand|ave|kind)\\b",+ "weight": 16,+ "name": "Anlage form part"+ }+ ]+ },+ {+ "id": "utility-bill",+ "phrases": [+ { "text": "stromrechnung", "weight": 26, "where": "title" },+ { "text": "gasrechnung", "weight": 26, "where": "title" },+ { "text": "jahresverbrauchsabrechnung", "weight": 26 },+ { "text": "nebenkostenabrechnung", "weight": 26 },+ { "text": "verbrauchsabrechnung", "weight": 22 },+ { "text": "zählerstand", "weight": 20 },+ { "text": "zählernummer", "weight": 18 },+ { "text": "abschlagszahlung", "weight": 16 },+ { "text": "kilowattstunden", "weight": 14 }+ ]+ },+ {+ "id": "contract",+ "phrases": [+ { "text": "vertrag", "weight": 12, "where": "title" },+ { "text": "vertragsparteien", "weight": 16 },+ { "text": "vertragsgegenstand", "weight": 16 },+ { "text": "vertragslaufzeit", "weight": 14 },+ { "text": "die parteien vereinbaren", "weight": 16 },+ { "text": "salvatorische klausel", "weight": 16 },+ { "text": "kündigungsfrist", "weight": 12 },+ { "text": "gerichtsstand", "weight": 10 },+ { "text": "im folgenden", "weight": 8 }+ ]+ },+ {+ "id": "employment-contract",+ "phrases": [+ { "text": "arbeitsvertrag", "weight": 30, "where": "title" },+ { "text": "anstellungsvertrag", "weight": 26, "where": "title" },+ { "text": "probezeit", "weight": 16 },+ { "text": "urlaubsanspruch", "weight": 14 },+ { "text": "arbeitszeit", "weight": 10 },+ { "text": "tarifvertrag", "weight": 10 }+ ]+ },+ {+ "id": "lease-agreement",+ "phrases": [+ { "text": "mietvertrag", "weight": 30, "where": "title" },+ { "text": "mietsache", "weight": 16 },+ { "text": "kaltmiete", "weight": 18 },+ { "text": "warmmiete", "weight": 18 },+ { "text": "kaution", "weight": 14 },+ { "text": "vermieter", "weight": 12 },+ { "text": "nebenkosten", "weight": 10 }+ ]+ },+ {+ "id": "nda",+ "phrases": [+ {+ "text": "vertraulichkeitsvereinbarung",+ "weight": 30,+ "where": "title"+ },+ {+ "text": "geheimhaltungsvereinbarung",+ "weight": 30,+ "where": "title"+ },+ { "text": "verschwiegenheitserklärung", "weight": 26 },+ { "text": "vertrauliche informationen", "weight": 12 }+ ]+ },+ {+ "id": "terms-and-conditions",+ "phrases": [+ {+ "text": "allgemeine geschäftsbedingungen",+ "weight": 30,+ "where": "title"+ },+ { "text": "nutzungsbedingungen", "weight": 22 },+ { "text": "geltungsbereich", "weight": 12 }+ ],+ "regexes": [+ { "pattern": "\\bagb\\b", "weight": 16, "name": "AGB abbreviation" }+ ]+ },+ {+ "id": "privacy-policy",+ "phrases": [+ { "text": "datenschutzerklärung", "weight": 30, "where": "title" },+ { "text": "datenschutzhinweise", "weight": 24, "where": "title" },+ { "text": "verantwortlicher im sinne der dsgvo", "weight": 20 },+ { "text": "auftragsverarbeitung", "weight": 16 },+ { "text": "personenbezogene daten", "weight": 14 }+ ],+ "regexes": [+ { "pattern": "\\bdsgvo\\b", "weight": 14, "name": "DSGVO reference" }+ ]+ },+ {+ "id": "legal-notice",+ "phrases": [+ { "text": "abmahnung", "weight": 24, "where": "title" },+ { "text": "unterlassungserklärung", "weight": 24 },+ { "text": "impressum", "weight": 18, "where": "title" },+ { "text": "rechtsbehelfsbelehrung", "weight": 22 }+ ]+ },+ {+ "id": "government-notice",+ "phrases": [+ { "text": "bescheid", "weight": 14, "where": "title" },+ { "text": "widerspruch", "weight": 12 },+ { "text": "zuständige behörde", "weight": 14 },+ { "text": "verwaltungsakt", "weight": 18 }+ ]+ },+ {+ "id": "resume",+ "phrases": [+ { "text": "lebenslauf", "weight": 30, "where": "title" },+ { "text": "berufserfahrung", "weight": 20 },+ { "text": "persönliche daten", "weight": 12 },+ { "text": "sprachkenntnisse", "weight": 14 },+ { "text": "ausbildung", "weight": 10 },+ { "text": "weiterbildung", "weight": 10 }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "lebenslauf",+ "weight": 16,+ "name": "Lebenslauf in PDF title"+ }+ ]+ },+ {+ "id": "cover-letter",+ "phrases": [+ { "text": "bewerbung als", "weight": 24 },+ { "text": "ich bewerbe mich", "weight": 20 },+ { "text": "anschreiben", "weight": 18, "where": "title" },+ { "text": "bewerbungsunterlagen", "weight": 16 }+ ],+ "negatives": [+ { "text": "berufserfahrung", "weight": 12, "name": "resume section" }+ ]+ },+ {+ "id": "reference-letter",+ "phrases": [+ { "text": "arbeitszeugnis", "weight": 28, "where": "title" },+ { "text": "zwischenzeugnis", "weight": 26, "where": "title" },+ { "text": "zur vollsten zufriedenheit", "weight": 20 },+ { "text": "empfehlungsschreiben", "weight": 22 }+ ]+ },+ {+ "id": "job-description",+ "phrases": [+ { "text": "stellenbeschreibung", "weight": 26, "where": "title" },+ { "text": "stellenausschreibung", "weight": 24, "where": "title" },+ { "text": "ihre aufgaben", "weight": 14 },+ { "text": "ihr profil", "weight": 14 },+ { "text": "wir bieten", "weight": 12 }+ ]+ },+ {+ "id": "insurance-policy",+ "phrases": [+ { "text": "versicherungsschein", "weight": 30, "where": "title" },+ { "text": "versicherungspolice", "weight": 28, "where": "title" },+ { "text": "versicherungsnummer", "weight": 16 },+ { "text": "versicherungsbeginn", "weight": 14 },+ { "text": "deckungssumme", "weight": 16 },+ { "text": "selbstbeteiligung", "weight": 14 }+ ]+ },+ {+ "id": "insurance-claim",+ "phrases": [+ { "text": "schadenmeldung", "weight": 26, "where": "title" },+ { "text": "schadensanzeige", "weight": 24, "where": "title" },+ { "text": "schadennummer", "weight": 18 },+ { "text": "schadenhergang", "weight": 18 }+ ]+ },+ {+ "id": "medical-invoice",+ "phrases": [+ { "text": "arztrechnung", "weight": 28, "where": "title" },+ { "text": "privatrechnung", "weight": 18 },+ { "text": "liquidation", "weight": 14 }+ ],+ "regexes": [+ { "pattern": "\\bgo[äa]\\b", "weight": 18, "name": "GOÄ fee schedule" }+ ]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "rezept", "weight": 14, "where": "title" },+ { "text": "arzneimittel", "weight": 14 },+ { "text": "apotheke", "weight": 14 },+ { "text": "verordnung", "weight": 10 },+ { "text": "darreichungsform", "weight": 18 },+ { "text": "dosierung", "weight": 14 }+ ],+ "negatives": [+ {+ "text": "zutaten",+ "weight": 18,+ "name": "recipe ingredients - Rezept is both"+ },+ {+ "text": "zubereitung",+ "weight": 18,+ "name": "recipe method - Rezept is both"+ }+ ]+ },+ {+ "id": "recipe",+ "phrases": [+ { "text": "zutaten", "weight": 22 },+ { "text": "zubereitung", "weight": 22 },+ { "text": "portionen", "weight": 16 },+ { "text": "backofen vorheizen", "weight": 18 },+ { "text": "esslöffel", "weight": 14 }+ ],+ "negatives": [+ {+ "text": "apotheke",+ "weight": 16,+ "name": "pharmacy - Rezept is both"+ },+ { "text": "dosierung", "weight": 14, "name": "dosage wording" }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [+ { "text": "arztbrief", "weight": 26, "where": "title" },+ { "text": "befundbericht", "weight": 24, "where": "title" },+ { "text": "anamnese", "weight": 20 },+ { "text": "epikrise", "weight": 22 },+ { "text": "diagnose", "weight": 14 }+ ]+ },+ {+ "id": "discharge-summary",+ "phrases": [+ { "text": "entlassungsbrief", "weight": 26, "where": "title" },+ { "text": "entlassungsbericht", "weight": 26, "where": "title" },+ { "text": "aufnahmedatum", "weight": 14 },+ { "text": "entlassungsdatum", "weight": 16 }+ ]+ },+ {+ "id": "certificate",+ "phrases": [+ { "text": "urkunde", "weight": 20, "where": "title" },+ { "text": "zertifikat", "weight": 18, "where": "title" },+ { "text": "teilnahmebescheinigung", "weight": 22 },+ { "text": "hiermit wird bescheinigt", "weight": 20 },+ { "text": "bescheinigung", "weight": 12 }+ ]+ },+ {+ "id": "meeting-minutes",+ "phrases": [+ { "text": "sitzungsprotokoll", "weight": 26, "where": "title" },+ { "text": "ergebnisprotokoll", "weight": 24 },+ { "text": "protokoll", "weight": 16, "where": "title" },+ { "text": "anwesend", "weight": 12 },+ { "text": "beschluss", "weight": 10 }+ ]+ },+ {+ "id": "meeting-agenda",+ "phrases": [+ { "text": "tagesordnung", "weight": 20, "where": "title" },+ { "text": "tagesordnungspunkt", "weight": 18 }+ ]+ },+ {+ "id": "memo",+ "phrases": [+ { "text": "aktenvermerk", "weight": 22, "where": "title" },+ { "text": "hausmitteilung", "weight": 20 }+ ]+ },+ {+ "id": "letter",+ "phrases": [+ { "text": "sehr geehrte damen und herren", "weight": 14 },+ { "text": "mit freundlichen grüßen", "weight": 12 },+ { "text": "ihr schreiben vom", "weight": 14 },+ { "text": "betreff", "weight": 10 }+ ]+ },+ {+ "id": "ticket",+ "phrases": [+ { "text": "fahrkarte", "weight": 24, "where": "title" },+ { "text": "fahrschein", "weight": 24, "where": "title" },+ { "text": "bordkarte", "weight": 26, "where": "title" },+ { "text": "eintrittskarte", "weight": 22 },+ { "text": "gültig für eine fahrt", "weight": 18 }+ ]+ },+ {+ "id": "booking-confirmation",+ "phrases": [+ { "text": "buchungsbestätigung", "weight": 28, "where": "title" },+ { "text": "reservierungsbestätigung", "weight": 26, "where": "title" },+ { "text": "buchungsnummer", "weight": 18 },+ { "text": "anreise", "weight": 12 },+ { "text": "abreise", "weight": 12 }+ ]+ },+ {+ "id": "itinerary",+ "phrases": [+ { "text": "reiseplan", "weight": 24, "where": "title" },+ { "text": "reiseverlauf", "weight": 22 },+ { "text": "flugnummer", "weight": 16 }+ ]+ },+ {+ "id": "warranty-document",+ "phrases": [+ { "text": "garantieurkunde", "weight": 26, "where": "title" },+ { "text": "garantiebedingungen", "weight": 22 },+ { "text": "gewährleistung", "weight": 14 },+ { "text": "garantiezeit", "weight": 16 }+ ]+ },+ {+ "id": "user-guide",+ "phrases": [+ { "text": "bedienungsanleitung", "weight": 28, "where": "title" },+ { "text": "gebrauchsanweisung", "weight": 26, "where": "title" },+ { "text": "benutzerhandbuch", "weight": 26, "where": "title" },+ { "text": "inbetriebnahme", "weight": 14 },+ { "text": "sicherheitshinweise", "weight": 12 }+ ]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ { "text": "sicherheitsdatenblatt", "weight": 30, "where": "title" },+ { "text": "gefahrstoff", "weight": 18 },+ { "text": "gefahrenhinweise", "weight": 16 }+ ]+ },+ {+ "id": "press-release",+ "phrases": [+ { "text": "pressemitteilung", "weight": 28, "where": "title" },+ { "text": "pressemeldung", "weight": 24, "where": "title" },+ { "text": "zur sofortigen veröffentlichung", "weight": 20 }+ ]+ },+ {+ "id": "invitation",+ "phrases": [+ { "text": "einladung", "weight": 20, "where": "title" },+ { "text": "wir laden sie ein", "weight": 18 },+ { "text": "um rückantwort wird gebeten", "weight": 18 }+ ]+ },+ {+ "id": "customs-declaration",+ "phrases": [+ { "text": "zollinhaltserklärung", "weight": 28, "where": "title" },+ { "text": "zollanmeldung", "weight": 26, "where": "title" },+ { "text": "warenwert", "weight": 14 }+ ]+ },+ {+ "id": "waybill",+ "phrases": [+ { "text": "frachtbrief", "weight": 26, "where": "title" },+ { "text": "versandetikett", "weight": 20 },+ { "text": "sendungsnummer", "weight": 16 }+ ]+ },+ {+ "id": "registration-form",+ "phrases": [+ { "text": "anmeldeformular", "weight": 24, "where": "title" },+ { "text": "anmeldung", "weight": 12, "where": "title" }+ ]+ },+ {+ "id": "application-form",+ "phrases": [+ { "text": "antragsformular", "weight": 22, "where": "title" },+ { "text": "antrag auf", "weight": 16 },+ { "text": "bitte in druckbuchstaben", "weight": 18 }+ ]+ },+ {+ "id": "questionnaire",+ "phrases": [+ { "text": "fragebogen", "weight": 24, "where": "title" },+ { "text": "bitte kreuzen sie an", "weight": 18 },+ { "text": "trifft zu", "weight": 12 }+ ]+ },+ {+ "id": "thesis",+ "phrases": [+ { "text": "bachelorarbeit", "weight": 28, "where": "title" },+ { "text": "masterarbeit", "weight": 28, "where": "title" },+ { "text": "diplomarbeit", "weight": 26, "where": "title" },+ { "text": "dissertation", "weight": 22 },+ { "text": "eidesstattliche erklärung", "weight": 20 },+ { "text": "erstgutachter", "weight": 20 }+ ]+ },+ {+ "id": "transcript",+ "phrases": [+ { "text": "notenspiegel", "weight": 26, "where": "title" },+ { "text": "leistungsnachweis", "weight": 22 },+ { "text": "zeugnis", "weight": 12, "where": "title" },+ { "text": "prüfungsleistungen", "weight": 18 }+ ]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "inhaltsverzeichnis" }],+ "signature": [+ {+ "pattern": "\\b(unterschrift|unterzeichnet|rechtsverbindliche unterschrift|gezeichnet)\\b"+ }+ ],+ "signature_form": [+ {+ "pattern": "_{6,}\\s*\\n\\s*(datum|name|unterschrift|ort)",+ "flags": "i"+ }+ ],+ "references": [+ {+ "pattern": "\\b(literaturverzeichnis|quellenverzeichnis|quellenangaben)\\b"+ }+ ],+ "email_from": [+ {+ "pattern": "\\bvon:\\s.+\\n(.*\\n){0,3}?\\s*(an|gesendet|datum):\\s",+ "flags": "i"+ }+ ],+ "email_subject": [{ "pattern": "betreff:\\s" }],+ "currency": [+ { "pattern": "\\d[\\d.,]*\\s?(chf|eur|euro)\\b|\\b(chf|eur|euro)\\s?\\d" }+ ],+ "form_label": [+ {+ "pattern": "^[A-Za-zÄÖÜäöüß][A-Za-zÄÖÜäöüß /()&'.-]{2,30}:\\s*$",+ "flags": "m"+ }+ ]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/el.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/el.jsonnew file mode 100644index 0000000000..9623acb991--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/el.json@@ -0,0 +1,181 @@+{+ "version": 2,+ "language": "el",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "τιμολόγιο", "weight": 24, "where": "title" },+ { "text": "φόρος προστιθέμενης αξίας", "weight": 8 }+ ]+ },+ {+ "id": "purchase-order",+ "phrases": [{ "text": "εντολή αγοράς", "weight": 20, "where": "title" }]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "έξοδο", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [{ "text": "ισολογισμός", "weight": 12 }]+ },+ {+ "id": "tax-return",+ "phrases": [+ { "text": "φορολογική δήλωση", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "tax-form",+ "phrases": [+ { "text": "φορολογική δήλωση", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "σύμβαση", "weight": 12, "where": "title" }]+ },+ {+ "id": "will",+ "phrases": [{ "text": "διαθήκη", "weight": 20, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [{ "text": "υποθήκη", "weight": 18, "where": "title" }]+ },+ {+ "id": "resume",+ "phrases": [+ { "text": "βιογραφικό σημείωμα", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "ευρεσιτεχνία", "weight": 18, "where": "title" }]+ },+ {+ "id": "medical-report",+ "phrases": [{ "text": "διάγνωση", "weight": 10 }]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "εμβολιασμός", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "ερωτηματολόγιο", "weight": 20, "where": "title" }]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ { "text": "δελτίο δεδομένων ασφάλειας", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "business-plan",+ "phrases": [+ { "text": "επιχειρηματικό σχέδιο", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "λευκή βίβλος", "weight": 18, "where": "title" }]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "μνημόνιο", "weight": 16, "where": "title" }]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "βίζα", "weight": 18, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [{ "text": "συνταγή", "weight": 18, "where": "title" }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "αναφορά", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "επιστολή", "weight": 8, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "άδεια", "weight": 12, "where": "title" }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "ακίνητο", "weight": 8 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "ηλεκτρονικό ταχυδρομείο", "weight": 8 }]+ },+ {+ "id": "book-ebook",+ "phrases": [{ "text": "πίνακας περιεχομένων", "weight": 6 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "περιοδικό", "weight": 10 }]+ },+ {+ "id": "course-syllabus",+ "phrases": [{ "text": "εξεταστέα ύλη", "weight": 20, "where": "title" }]+ },+ {+ "id": "purchase-agreement",+ "phrases": [{ "text": "πώληση", "weight": 18, "where": "title" }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "ασφάλεια", "weight": 20, "where": "title" }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "διεπαφή προγραμματισμού εφαρμογών", "weight": 8 }]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "προϋπολογισμός", "weight": 14, "where": "title" }]+ },+ {+ "id": "order-confirmation",+ "phrases": [{ "text": "εντολή πώλησης", "weight": 18, "where": "title" }]+ },+ {+ "id": "organization-chart",+ "phrases": [{ "text": "οργανόγραμμα", "weight": 20, "where": "title" }]+ },+ {+ "id": "case-study",+ "phrases": [+ { "text": "μελέτη περίπτωσης", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "διοικητικό συμβούλιο", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "επένδυση", "weight": 8 }]+ },+ {+ "id": "grade-report",+ "phrases": [{ "text": "έλεγχος", "weight": 20, "where": "title" }]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "εργασία για το σπίτι", "weight": 12 }]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "πίνακας\\ περιεχομένων" }],+ "references": [{ "pattern": "βιβλιογραφία" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/heuristicRules.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/en.jsonsimilarity index 75%rename from frontend/editor/src/proprietary/services/heuristic/heuristicRules.jsonrename to frontend/editor/src/proprietary/services/heuristic/rules/packs/en.jsonindex b34a7bf446..2150e25341 100644--- a/frontend/editor/src/proprietary/services/heuristic/heuristicRules.json+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/en.json@@ -1,11 +1,9 @@{- "version": 1,- "source": "poc/downloads-classifier (heuristic classifier POC)",+ "version": 2,+ "language": "en","labels": [{"id": "invoice",- "name": "Invoice",- "emit": true,"phrases": [{"text": "tax invoice",@@ -69,44 +67,6 @@"weight": 8}],- "regexes": [- {- "pattern": "\\binv[-#]?\\d{3,8}\\b",- "weight": 14,- "name": "INV-#### reference"- },- {- "pattern": "invoice\\s*(?:no\\.?|number|#)\\s*:?\\s*[a-z0-9][a-z0-9-]{2,14}",- "weight": 16,- "name": "Invoice number field"- }- ],- "filenames": [- {- "pattern": "invoice",- "weight": 26,- "name": "invoice in filename"- },- {- "pattern": "\\binv[_-]?\\d{3,8}",- "weight": 20,- "name": "INV number in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "invoice",- "weight": 16,- "name": "Invoice in PDF title"- },- {- "field": "any",- "pattern": "quickbooks|freshbooks|invoice2go|zoho invoice|\\bxero\\b",- "weight": 12,- "name": "Invoicing software producer"- }- ],"negatives": [{"text": "remittance advice",@@ -149,25 +109,24 @@"name": "subscription plan renewal"}],- "structural": [- {- "signal": "currency_heavy",- "weight": 8- },+ "regexes": [{- "signal": "number_table",- "weight": 5- },+ "pattern": "invoice\\s*(?:no\\.?|number|#)\\s*:?\\s*[a-z0-9][a-z0-9-]{2,14}",+ "weight": 16,+ "name": "Invoice number field"+ }+ ],+ "metadata": [{- "signal": "short_doc",- "weight": 4+ "field": "title",+ "pattern": "invoice",+ "weight": 16,+ "name": "Invoice in PDF title"}]},{"id": "receipt",- "name": "Receipt",- "emit": true,"phrases": [{"text": "sales receipt",@@ -278,69 +237,6 @@"weight": 6}],- "regexes": [- {- "pattern": "[x*\\u2022]{4}\\s?-?\\d{4}",- "weight": 12,- "name": "masked card number"- },- {- "pattern": "auth(?:orization)?\\s*(?:code|#)\\s*:?\\s*[a-z0-9]{4,10}",- "weight": 12,- "name": "authorization code"- },- {- "pattern": "payment\\s*(?:id|reference|ref\\.?|confirmation)\\s*(?:number|no\\.?|#)?\\s*:?\\s*[a-z0-9][a-z0-9-]{3,24}",- "weight": 14,- "name": "payment reference field"- },- {- "pattern": "your payment of\\s*(?:usd|eur|gbp|\\$|£|€)",- "weight": 18,- "name": "your payment of <amount>"- }- ],- "filenames": [- {- "pattern": "receipt",- "weight": 26,- "name": "receipt in filename"- },- {- "pattern": "payment[_-]?confirmation",- "weight": 16,- "name": "payment confirmation filename"- },- {- "pattern": "payment[-_ ]?confirmation",- "weight": 28,- "name": "payment confirmation filename"- },- {- "pattern": "proof[-_ ]?of[-_ ]?payment",- "weight": 26,- "name": "proof of payment filename"- },- {- "pattern": "payment[-_ ]?receipt",- "weight": 18,- "name": "payment receipt filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "receipt",- "weight": 14,- "name": "Receipt in PDF title"- },- {- "field": "title",- "pattern": "payment (confirmation|receipt)",- "weight": 14,- "name": "payment confirmation in PDF title"- }- ],"negatives": [{"text": "minimum payment due",@@ -378,21 +274,40 @@"name": "order confirmation field"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 8+ "pattern": "auth(?:orization)?\\s*(?:code|#)\\s*:?\\s*[a-z0-9]{4,10}",+ "weight": 12,+ "name": "authorization code"},{- "signal": "currency_heavy",- "weight": 6+ "pattern": "payment\\s*(?:id|reference|ref\\.?|confirmation)\\s*(?:number|no\\.?|#)?\\s*:?\\s*[a-z0-9][a-z0-9-]{3,24}",+ "weight": 14,+ "name": "payment reference field"+ },+ {+ "pattern": "your payment of\\s*(?:usd|eur|gbp|\\$|£|€)",+ "weight": 18,+ "name": "your payment of <amount>"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "receipt",+ "weight": 14,+ "name": "Receipt in PDF title"+ },+ {+ "field": "title",+ "pattern": "payment (confirmation|receipt)",+ "weight": 14,+ "name": "payment confirmation in PDF title"}]},{"id": "bank-statement",- "name": "Bank statement",- "emit": true,"phrases": [{"text": "account statement",@@ -453,36 +368,6 @@"weight": 10}],- "regexes": [- {- "pattern": "sort\\s*code\\s*:?\\s*\\d{2}[- ]\\d{2}[- ]\\d{2}",- "weight": 18,- "name": "UK sort code"- },- {- "pattern": "routing\\s*(?:number|no\\.?|#)\\s*:?\\s*\\d{9}",- "weight": 18,- "name": "US routing number"- },- {- "pattern": "(?:faster payment|direct debit|standing order)\\b",- "weight": 12,- "name": "UK transaction types"- }- ],- "filenames": [- {- "pattern": "e?[-_]?statement",- "weight": 16,- "name": "statement in filename"- },- {- "pattern": "bank[_ -]?statement",- "weight": 24,- "name": "bank statement filename"- }- ],- "metadata": [],"negatives": [{"text": "minimum payment due",@@ -510,21 +395,26 @@"name": "utility usage unit"}],- "structural": [+ "regexes": [{- "signal": "number_table",- "weight": 10+ "pattern": "sort\\s*code\\s*:?\\s*\\d{2}[- ]\\d{2}[- ]\\d{2}",+ "weight": 18,+ "name": "UK sort code"},{- "signal": "currency_heavy",- "weight": 8+ "pattern": "routing\\s*(?:number|no\\.?|#)\\s*:?\\s*\\d{9}",+ "weight": 18,+ "name": "US routing number"+ },+ {+ "pattern": "(?:faster payment|direct debit|standing order)\\b",+ "weight": 12,+ "name": "UK transaction types"}]},{"id": "statement-of-account",- "name": "Statement of account",- "emit": true,"phrases": [{"text": "minimum payment due",@@ -579,37 +469,6 @@"weight": 8}],- "regexes": [- {- "pattern": "\\bAPR\\b",- "flags": "g",- "weight": 12,- "name": "APR (uppercase)"- },- {- "pattern": "account\\s+ending\\s+(?:in\\s+)?\\d{4}",- "weight": 14,- "name": "account ending ####"- },- {- "pattern": "\\d{1,2}\\.\\d{2}%\\s+(?:variable\\s+)?apr",- "weight": 14,- "name": "percentage APR rate"- }- ],- "filenames": [- {- "pattern": "(credit[-_ ]?card|visa|mastercard|amex|barclaycard).{0,12}stat",- "weight": 24,- "name": "card statement filename"- },- {- "pattern": "card[_-]?statement",- "weight": 22,- "name": "card statement"- }- ],- "metadata": [],"negatives": [{"text": "sort code",@@ -632,21 +491,21 @@"name": "invoice field"}],- "structural": [+ "regexes": [{- "signal": "currency_heavy",- "weight": 8+ "pattern": "account\\s+ending\\s+(?:in\\s+)?\\d{4}",+ "weight": 14,+ "name": "account ending ####"},{- "signal": "number_table",- "weight": 8+ "pattern": "\\d{1,2}\\.\\d{2}%\\s+(?:variable\\s+)?apr",+ "weight": 14,+ "name": "percentage APR rate"}]},{"id": "purchase-order",- "name": "Purchase order",- "emit": true,"phrases": [{"text": "purchase order",@@ -700,36 +559,6 @@"weight": 6}],- "regexes": [- {- "pattern": "\\bp\\.?o\\.?\\s*(?:#|no\\.?|number)\\s*:?\\s*[a-z0-9][a-z0-9/-]{2,14}",- "weight": 16,- "name": "PO number field"- },- {- "pattern": "\\bpo[-/ ]?\\d{4,8}\\b",- "weight": 12,- "name": "PO-#### reference"- },- {- "pattern": "no\\s+po,?\\s+no\\s+pay",- "weight": 18,- "name": "no PO no pay policy"- }- ],- "filenames": [- {- "pattern": "purchase[_-]?order",- "weight": 28,- "name": "purchase order filename"- },- {- "pattern": "\\bpo[_-]?\\d{3,8}",- "weight": 22,- "name": "PO number filename"- }- ],- "metadata": [],"negatives": [{"text": "invoice number",@@ -757,21 +586,21 @@"name": "quote wording"}],- "structural": [+ "regexes": [{- "signal": "number_table",- "weight": 8+ "pattern": "\\bp\\.?o\\.?\\s*(?:#|no\\.?|number)\\s*:?\\s*[a-z0-9][a-z0-9/-]{2,14}",+ "weight": 16,+ "name": "PO number field"},{- "signal": "short_doc",- "weight": 4+ "pattern": "no\\s+po,?\\s+no\\s+pay",+ "weight": 18,+ "name": "no PO no pay policy"}]},{"id": "quote",- "name": "Quote",- "emit": true,"phrases": [{"text": "quotation",@@ -828,36 +657,6 @@"weight": 10}],- "regexes": [- {- "pattern": "quote\\s*(?:#|no\\.?|number)\\s*:?\\s*[a-z0-9][a-z0-9-]{1,14}",- "weight": 14,- "name": "quote number field"- },- {- "pattern": "valid\\s+for\\s+\\d{1,3}\\s+days",- "weight": 16,- "name": "valid for N days"- }- ],- "filenames": [- {- "pattern": "quot(e|ation)",- "weight": 24,- "name": "quote filename"- },- {- "pattern": "estimate",- "weight": 22,- "name": "estimate filename"- },- {- "pattern": "\\bqt[_-]?\\d{3,8}",- "weight": 16,- "name": "QT number filename"- }- ],- "metadata": [],"negatives": [{"text": "invoice number",@@ -885,25 +684,21 @@"name": "proposal wording"}],- "structural": [- {- "signal": "currency_heavy",- "weight": 6- },+ "regexes": [{- "signal": "short_doc",- "weight": 4+ "pattern": "quote\\s*(?:#|no\\.?|number)\\s*:?\\s*[a-z0-9][a-z0-9-]{1,14}",+ "weight": 14,+ "name": "quote number field"},{- "signal": "number_table",- "weight": 4+ "pattern": "valid\\s+for\\s+\\d{1,3}\\s+days",+ "weight": 16,+ "name": "valid for N days"}]},{"id": "remittance-advice",- "name": "Remittance advice",- "emit": true,"phrases": [{"text": "remittance advice",@@ -948,26 +743,6 @@"weight": 6}],- "regexes": [- {- "pattern": "payment\\s+ref(?:erence)?\\s*(?:no\\.?|number|#)?\\s*:?\\s*[a-z0-9][a-z0-9/-]{3,20}",- "weight": 12,- "name": "payment reference field"- }- ],- "filenames": [- {- "pattern": "remit",- "weight": 26,- "name": "remittance filename"- },- {- "pattern": "payment[_-]?advice",- "weight": 24,- "name": "payment advice filename"- }- ],- "metadata": [],"negatives": [{"text": "amount due",@@ -985,21 +760,16 @@"name": "quote wording"}],- "structural": [- {- "signal": "number_table",- "weight": 8- },+ "regexes": [{- "signal": "short_doc",- "weight": 6+ "pattern": "payment\\s+ref(?:erence)?\\s*(?:no\\.?|number|#)?\\s*:?\\s*[a-z0-9][a-z0-9/-]{3,20}",+ "weight": 12,+ "name": "payment reference field"}]},{"id": "expense-report",- "name": "Expense report",- "emit": true,"phrases": [{"text": "expense report",@@ -1056,33 +826,6 @@"weight": 8}],- "regexes": [- {- "pattern": "\\d{1,4}\\s*miles?\\s*(?:@|at)\\s*[$\\u00a3\\u20ac]?\\s?\\d+(?:\\.\\d+)?",- "weight": 14,- "name": "mileage rate line"- }- ],- "filenames": [- {- "pattern": "expense",- "weight": 24,- "name": "expense filename"- },- {- "pattern": "reimburs",- "weight": 20,- "name": "reimbursement filename"- }- ],- "metadata": [- {- "field": "any",- "pattern": "\\bconcur\\b|expensify|zoho expense",- "weight": 14,- "name": "Expense software producer"- }- ],"negatives": [{"text": "net pay",@@ -1110,25 +853,16 @@"name": "timesheet term"}],- "structural": [- {- "signal": "number_table",- "weight": 8- },- {- "signal": "currency_heavy",- "weight": 6- },+ "regexes": [{- "signal": "form_like",- "weight": 5+ "pattern": "\\d{1,4}\\s*miles?\\s*(?:@|at)\\s*[$\\u00a3\\u20ac]?\\s?\\d+(?:\\.\\d+)?",+ "weight": 14,+ "name": "mileage rate line"}]},{"id": "financial-statement",- "name": "Financial statement",- "emit": true,"phrases": [{"text": "consolidated financial statements",@@ -1189,48 +923,6 @@"where": "title"}],- "regexes": [- {- "pattern": "form\\s+10-[kq]\\b",- "weight": 22,- "name": "SEC form 10-K/10-Q"- },- {- "pattern": "for\\s+the\\s+(?:year|quarter|quarterly\\s+period|three\\s+months|nine\\s+months)\\s+ended",- "weight": 14,- "name": "period ended wording"- },- {- "pattern": "\\(in\\s+(?:thousands|millions)[^)]{0,40}\\)",- "weight": 16,- "name": "(in thousands/millions)"- }- ],- "filenames": [- {- "pattern": "annual[_-]?report",- "weight": 26,- "name": "annual report filename"- },- {- "pattern": "financial[_-]?statements?",- "weight": 22,- "name": "financial statements filename"- },- {- "pattern": "10-?[kq]\\b",- "weight": 18,- "name": "10-K/10-Q filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "annual report|financial statements",- "weight": 14,- "name": "report title metadata"- }- ],"negatives": [{"text": "minimum payment due",@@ -1253,25 +945,34 @@"name": "business plan wording"}],- "structural": [+ "regexes": [{- "signal": "long_doc",- "weight": 8+ "pattern": "form\\s+10-[kq]\\b",+ "weight": 22,+ "name": "SEC form 10-K/10-Q"},{- "signal": "toc",- "weight": 6+ "pattern": "for\\s+the\\s+(?:year|quarter|quarterly\\s+period|three\\s+months|nine\\s+months)\\s+ended",+ "weight": 14,+ "name": "period ended wording"},{- "signal": "number_table",- "weight": 6+ "pattern": "\\(in\\s+(?:thousands|millions)[^)]{0,40}\\)",+ "weight": 16,+ "name": "(in thousands/millions)"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "annual report|financial statements",+ "weight": 14,+ "name": "report title metadata"}]},{"id": "budget",- "name": "Budget",- "emit": true,"phrases": [{"text": "annual budget",@@ -1333,53 +1034,6 @@"weight": 16}],- "regexes": [- {- "pattern": "budget\\s+(?:vs\\.?|versus)\\s+actual",- "weight": 18,- "name": "budget vs actual variant"- },- {- "pattern": "variance\\s+(?:of|is)\\s*[+-]?\\$?[\\d,.]{1,12}",- "weight": 14,- "name": "variance figure"- },- {- "pattern": "\\bfy\\s?2\\d\\s+budget\\b",- "weight": 14,- "name": "FY budget"- }- ],- "filenames": [- {- "pattern": "budget",- "weight": 18,- "name": "budget in filename"- },- {- "pattern": "forecast",- "weight": 18,- "name": "forecast in filename"- },- {- "pattern": "opex[-_ ]?capex",- "weight": 16,- "name": "opex/capex filename"- },- {- "pattern": "fy20\\d{2}[-_ ]?budget",- "weight": 22,- "name": "FY budget filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "budget|forecast",- "weight": 12,- "name": "budget/forecast in PDF title"- }- ],"negatives": [{"text": "independent auditor",@@ -1412,21 +1066,34 @@"name": "expense report heading"}],- "structural": [+ "regexes": [{- "signal": "number_table",- "weight": 8+ "pattern": "budget\\s+(?:vs\\.?|versus)\\s+actual",+ "weight": 18,+ "name": "budget vs actual variant"},{- "signal": "currency_heavy",- "weight": 6+ "pattern": "variance\\s+(?:of|is)\\s*[+-]?\\$?[\\d,.]{1,12}",+ "weight": 14,+ "name": "variance figure"+ },+ {+ "pattern": "\\bfy\\s?2\\d\\s+budget\\b",+ "weight": 14,+ "name": "FY budget"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "budget|forecast",+ "weight": 12,+ "name": "budget/forecast in PDF title"}]},{"id": "credit-note",- "name": "Credit note",- "emit": true,"phrases": [{"text": "credit note",@@ -1479,53 +1146,6 @@"weight": 12}],- "regexes": [- {- "pattern": "(?:relates|applies|refers) to invoice",- "weight": 20,- "name": "relates-to-invoice clause"- },- {- "pattern": "credit (?:note|memo)\\s*(?:no\\.?|number|#)\\s*:?\\s*[a-z0-9][a-z0-9/-]{2,16}",- "weight": 18,- "name": "credit note number field"- },- {- "pattern": "\\bcn[-#]\\d{3,8}\\b",- "weight": 14,- "name": "CN-#### reference"- },- {- "pattern": "(?:-|\\()\\s?(?:[$£€]|usd|gbp|eur)\\s?\\d[\\d,]*(?:\\.\\d{2})?\\)?",- "weight": 12,- "name": "negative currency amount"- }- ],- "filenames": [- {- "pattern": "credit[-_ ]?note",- "weight": 28,- "name": "credit note filename"- },- {- "pattern": "credit[-_ ]?memo",- "weight": 26,- "name": "credit memo filename"- },- {- "pattern": "(^|[^a-z])cn[-_]?\\d{3,}",- "weight": 16,- "name": "CN number in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "credit (note|memo)",- "weight": 16,- "name": "credit note in PDF title"- }- ],"negatives": [{"text": "remittance advice",@@ -1568,25 +1188,29 @@"name": "order confirmation field"}],- "structural": [+ "regexes": [{- "signal": "currency_heavy",- "weight": 6+ "pattern": "(?:relates|applies|refers) to invoice",+ "weight": 20,+ "name": "relates-to-invoice clause"},{- "signal": "short_doc",- "weight": 6- },+ "pattern": "credit (?:note|memo)\\s*(?:no\\.?|number|#)\\s*:?\\s*[a-z0-9][a-z0-9/-]{2,16}",+ "weight": 18,+ "name": "credit note number field"+ }+ ],+ "metadata": [{- "signal": "number_table",- "weight": 4+ "field": "title",+ "pattern": "credit (note|memo)",+ "weight": 16,+ "name": "credit note in PDF title"}]},{"id": "loan-agreement",- "name": "Loan agreement",- "emit": true,"phrases": [{"text": "loan agreement",@@ -1636,22 +1260,6 @@"weight": 8}],- "regexes": [- {- "pattern": "interest rate of \\d{1,2}(\\.\\d{1,2})? ?%|\\d{1,2}(\\.\\d{1,2})? ?% per annum",- "flags": "gi",- "weight": 16,- "name": "Interest rate clause"- }- ],- "filenames": [- {- "pattern": "loan[-_ ]?(agreement|contract|note)|promissory",- "weight": 26,- "name": "Loan filename"- }- ],- "metadata": [],"negatives": [{"text": "mortgage",@@ -1674,21 +1282,17 @@"name": "Card statement vocabulary"}],- "structural": [- {- "signal": "signature_block",- "weight": 6- },+ "regexes": [{- "signal": "currency_heavy",- "weight": 4+ "pattern": "interest rate of \\d{1,2}(\\.\\d{1,2})? ?%|\\d{1,2}(\\.\\d{1,2})? ?% per annum",+ "flags": "gi",+ "weight": 16,+ "name": "Interest rate clause"}]},{"id": "order-confirmation",- "name": "Order confirmation",- "emit": true,"phrases": [{"text": "order confirmation",@@ -1748,54 +1352,11 @@"where": "first"}],- "regexes": [+ "negatives": [{- "pattern": "order\\s*(?:no\\.?|number|#)\\s*:?\\s*[a-z0-9][a-z0-9-]{3,20}",- "weight": 14,- "name": "Order number field"- },- {- "pattern": "\\b\\d{3}-\\d{7}-\\d{7}\\b",- "flags": "g",- "weight": 20,- "name": "Amazon-style order id"- },- {- "pattern": "arriv(?:es|ing)\\s*:?\\s+(?:mon|tue|wed|thu|fri|sat|sun|by|between)",- "weight": 12,- "name": "arrival estimate line"- }- ],- "filenames": [- {- "pattern": "order[-_ ]?confirmation",- "weight": 30,- "name": "order confirmation filename"- },- {- "pattern": "order[-_ #]?\\d{4,}",- "weight": 16,- "name": "order number in filename"- },- {- "pattern": "your[-_ ]?order",- "weight": 18,- "name": "your order filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "order confirmation",- "weight": 16,- "name": "order confirmation in PDF title"- }- ],- "negatives": [- {- "text": "invoice number",- "weight": 16,- "name": "invoice field"+ "text": "invoice number",+ "weight": 16,+ "name": "invoice field"},{"text": "packing slip",@@ -1833,25 +1394,29 @@"name": "boarding pass heading"}],- "structural": [+ "regexes": [{- "signal": "currency_heavy",- "weight": 5+ "pattern": "order\\s*(?:no\\.?|number|#)\\s*:?\\s*[a-z0-9][a-z0-9-]{3,20}",+ "weight": 14,+ "name": "Order number field"},{- "signal": "short_doc",- "weight": 4- },+ "pattern": "arriv(?:es|ing)\\s*:?\\s+(?:mon|tue|wed|thu|fri|sat|sun|by|between)",+ "weight": 12,+ "name": "arrival estimate line"+ }+ ],+ "metadata": [{- "signal": "address_block",- "weight": 4+ "field": "title",+ "pattern": "order confirmation",+ "weight": 16,+ "name": "order confirmation in PDF title"}]},{"id": "donation-receipt",- "name": "Donation receipt",- "emit": true,"phrases": [{"text": "donation receipt",@@ -1903,48 +1468,6 @@"weight": 6}],- "regexes": [- {- "pattern": "ein\\s*:?\\s*\\d{2}-\\d{7}",- "weight": 14,- "name": "EIN tax id"- },- {- "pattern": "registered charity (?:no\\.?|number)\\s*:?\\s*\\d{6,8}",- "weight": 18,- "name": "UK charity number"- },- {- "pattern": "tax[- ]deductible to the (?:full(?:est)? )?extent",- "weight": 18,- "name": "deductible-to-extent clause"- }- ],- "filenames": [- {- "pattern": "donation",- "weight": 26,- "name": "donation in filename"- },- {- "pattern": "gift[-_ ]?aid",- "weight": 22,- "name": "gift aid filename"- },- {- "pattern": "justgiving|gofundme|donorbox",- "weight": 20,- "name": "donation platform filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "donation",- "weight": 14,- "name": "donation in PDF title"- }- ],"negatives": [{"text": "invoice number",@@ -1967,21 +1490,29 @@"name": "retail order heading"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 6+ "pattern": "registered charity (?:no\\.?|number)\\s*:?\\s*\\d{6,8}",+ "weight": 18,+ "name": "UK charity number"},{- "signal": "address_block",- "weight": 3+ "pattern": "tax[- ]deductible to the (?:full(?:est)? )?extent",+ "weight": 18,+ "name": "deductible-to-extent clause"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "donation",+ "weight": 14,+ "name": "donation in PDF title"}]},{"id": "letter",- "name": "Letter",- "emit": true,"phrases": [{"text": "important information about your account",@@ -2070,65 +1601,6 @@"weight": 8}],- "regexes": [- {- "pattern": "(?:holds?|maintains?)\\s+an?\\s+account\\s+with",- "weight": 20,- "name": "account verification wording"- },- {- "pattern": "account\\s+(?:opening|closure)\\s+confirmation",- "weight": 20,- "name": "account opening/closure confirmation"- },- {- "pattern": "interest\\s+rate\\s+(?:change|is\\s+changing|will\\s+change)",- "weight": 16,- "name": "interest rate change notice"- },- {- "pattern": "\\bdear (mr|mrs|ms|miss|dr|prof)\\.? [a-z]+",- "flags": "gi",- "weight": 12,- "name": "Personal salutation",- "where": "first"- }- ],- "filenames": [- {- "pattern": "bank[-_ ]?(confirmation[-_ ]?)?letter",- "weight": 22,- "name": "bank letter filename"- },- {- "pattern": "account[-_ ]?(verification|confirmation)",- "weight": 20,- "name": "account verification filename"- },- {- "pattern": "proof[-_ ]?of[-_ ]?(account|funds)",- "weight": 24,- "name": "proof of account/funds filename"- },- {- "pattern": "^letter[_\\- ]",- "weight": 18,- "name": "Starts with letter_"- },- {- "pattern": "letter[_\\- ]?(to|from)[_\\- ]",- "weight": 20,- "name": "Letter to/from in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "\\bletter\\b",- "weight": 10,- "name": "Letter in PDF title"- }- ],"negatives": [{"text": "statement period",@@ -2200,25 +1672,41 @@"name": "Government agency letterhead"}],- "structural": [+ "regexes": [{- "signal": "address_block",- "weight": 6+ "pattern": "(?:holds?|maintains?)\\s+an?\\s+account\\s+with",+ "weight": 20,+ "name": "account verification wording"},{- "signal": "short_doc",- "weight": 5+ "pattern": "account\\s+(?:opening|closure)\\s+confirmation",+ "weight": 20,+ "name": "account opening/closure confirmation"},{- "signal": "signature_block",- "weight": 5+ "pattern": "interest\\s+rate\\s+(?:change|is\\s+changing|will\\s+change)",+ "weight": 16,+ "name": "interest rate change notice"+ },+ {+ "pattern": "\\bdear (mr|mrs|ms|miss|dr|prof)\\.? [a-z]+",+ "flags": "gi",+ "weight": 12,+ "name": "Personal salutation",+ "where": "first"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "\\bletter\\b",+ "weight": 10,+ "name": "Letter in PDF title"}]},{"id": "board-report",- "name": "Board report",- "emit": true,"phrases": [{"text": "board deck",@@ -2276,48 +1764,6 @@"weight": 6}],- "regexes": [- {- "pattern": "\\bq[1-4]\\s+20\\d{2}\\s+board\\s+(?:deck|pack|meeting)\\b",- "weight": 20,- "name": "Q# 20xx board pack reference"- },- {- "pattern": "agenda\\s+item\\s+\\d{1,2}\\b",- "weight": 14,- "name": "Agenda item number"- },- {- "pattern": "\\d{1,2}\\s+in\\s+favou?r,?\\s+\\d{1,2}\\s+against",- "weight": 16,- "name": "Board approval vote tally"- }- ],- "filenames": [- {- "pattern": "board[_ -]?(?:deck|pack)",- "weight": 28,- "name": "board deck/pack filename"- },- {- "pattern": "board[_-]?materials",- "weight": 22,- "name": "board materials filename"- },- {- "pattern": "q[1-4][_-]?20\\d{2}[_-]?board",- "weight": 20,- "name": "Q# board filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "board deck|board pack|board meeting",- "weight": 14,- "name": "Board deck/pack title metadata"- }- ],"negatives": [{"text": "meeting was called to order",@@ -2350,25 +1796,34 @@"name": "pitch deck use of funds"}],- "structural": [+ "regexes": [{- "signal": "bullet_heavy",- "weight": 8+ "pattern": "\\bq[1-4]\\s+20\\d{2}\\s+board\\s+(?:deck|pack|meeting)\\b",+ "weight": 20,+ "name": "Q# 20xx board pack reference"},{- "signal": "number_table",- "weight": 6+ "pattern": "agenda\\s+item\\s+\\d{1,2}\\b",+ "weight": 14,+ "name": "Agenda item number"},{- "signal": "toc",- "weight": 4+ "pattern": "\\d{1,2}\\s+in\\s+favou?r,?\\s+\\d{1,2}\\s+against",+ "weight": 16,+ "name": "Board approval vote tally"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "board deck|board pack|board meeting",+ "weight": 14,+ "name": "Board deck/pack title metadata"}]},{"id": "pitch-deck",- "name": "Pitch deck",- "emit": true,"phrases": [{"text": "pitch deck",@@ -2426,12 +1881,29 @@"weight": 16}],- "regexes": [+ "negatives": [+ {+ "text": "board of directors meeting",+ "weight": 14,+ "name": "board deck wording"+ },{- "pattern": "\\btam\\b",+ "text": "board pack","weight": 14,- "name": "TAM acronym"+ "name": "board deck wording"+ },+ {+ "text": "quarter in review",+ "weight": 12,+ "name": "board KPI review wording"},+ {+ "text": "guidance for the full year",+ "weight": 12,+ "name": "earnings guidance wording"+ }+ ],+ "regexes": [{"pattern": "\\b(?:pre-)?seed\\s+round\\b|\\bseries\\s+[a-e]\\s+round\\b","weight": 18,@@ -2448,68 +1920,17 @@"name": "SAM/SOM market sizing"}],- "filenames": [- {- "pattern": "pitch[_-]?deck",- "weight": 30,- "name": "pitch deck filename"- },- {- "pattern": "seed[_-]?(?:deck|round)",- "weight": 22,- "name": "seed deck/round filename"- },- {- "pattern": "investor[_-]?deck",- "weight": 20,- "name": "investor deck filename"- }- ],- "metadata": [+ "metadata": [{"field": "title","pattern": "pitch deck|investor deck","weight": 15,"name": "Pitch deck title metadata"}- ],- "negatives": [- {- "text": "board of directors meeting",- "weight": 14,- "name": "board deck wording"- },- {- "text": "board pack",- "weight": 14,- "name": "board deck wording"- },- {- "text": "quarter in review",- "weight": 12,- "name": "board KPI review wording"- },- {- "text": "guidance for the full year",- "weight": 12,- "name": "earnings guidance wording"- }- ],- "structural": [- {- "signal": "bullet_heavy",- "weight": 8- },- {- "signal": "short_doc",- "weight": 5- }]},{"id": "investment-summary",- "name": "Investment summary",- "emit": true,"phrases": [{"text": "capitalization table",@@ -2616,84 +2037,6 @@"weight": 6}],- "regexes": [- {- "pattern": "\\d{1,3}(?:\\.\\d{1,2})?\\s?%\\s+(?:fully\\s+diluted|ownership|of\\s+the\\s+company)",- "weight": 16,- "name": "% ownership figure"- },- {- "pattern": "class\\s+[a-c]\\s+(?:common|preferred)\\s+stock",- "weight": 14,- "name": "Share class label"- },- {- "pattern": "\\bfd\\s+shares\\b",- "weight": 12,- "name": "FD shares abbreviation"- },- {- "pattern": "\\bmrr\\b",- "weight": 12,- "name": "MRR acronym"- },- {- "pattern": "\\barr\\b",- "weight": 10,- "name": "ARR acronym"- },- {- "pattern": "\\bq[1-4]\\s+20\\d{2}\\s+investor\\s+update\\b",- "weight": 20,- "name": "Q# investor update heading"- }- ],- "filenames": [- {- "pattern": "cap[_-]?table",- "weight": 30,- "name": "cap table filename"- },- {- "pattern": "captable",- "weight": 26,- "name": "captable filename"- },- {- "pattern": "\\bcap[_-]?tbl\\b",- "weight": 16,- "name": "cap tbl abbreviation filename"- },- {- "pattern": "investor[_-]?update",- "weight": 30,- "name": "investor update filename"- },- {- "pattern": "monthly[_-]?update",- "weight": 14,- "name": "monthly update filename"- },- {- "pattern": "investor[_-]?letter",- "weight": 18,- "name": "investor letter filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "cap table|capitalization table|capitalisation table",- "weight": 16,- "name": "Cap table title metadata"- },- {- "field": "title",- "pattern": "investor update",- "weight": 16,- "name": "Investor update title metadata"- }- ],"negatives": [{"text": "opening balance",@@ -2741,29 +2084,45 @@"name": "board deck wording"}],- "structural": [+ "regexes": [{- "signal": "number_table",- "weight": 10+ "pattern": "\\d{1,3}(?:\\.\\d{1,2})?\\s?%\\s+(?:fully\\s+diluted|ownership|of\\s+the\\s+company)",+ "weight": 16,+ "name": "% ownership figure"},{- "signal": "form_like",- "weight": 4+ "pattern": "class\\s+[a-c]\\s+(?:common|preferred)\\s+stock",+ "weight": 14,+ "name": "Share class label"},{- "signal": "short_doc",- "weight": 4+ "pattern": "\\bfd\\s+shares\\b",+ "weight": 12,+ "name": "FD shares abbreviation"},{- "signal": "bullet_heavy",- "weight": 6+ "pattern": "\\bq[1-4]\\s+20\\d{2}\\s+investor\\s+update\\b",+ "weight": 20,+ "name": "Q# investor update heading"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "cap table|capitalization table|capitalisation table",+ "weight": 16,+ "name": "Cap table title metadata"+ },+ {+ "field": "title",+ "pattern": "investor update",+ "weight": 16,+ "name": "Investor update title metadata"}]},{"id": "letter-of-intent",- "name": "Letter of intent",- "emit": true,"phrases": [{"text": "term sheet",@@ -2869,84 +2228,6 @@"weight": 12}],- "regexes": [- {- "pattern": "series\\s+[a-e]\\s+preferred\\s+stock",- "weight": 16,- "name": "Series X preferred stock"- },- {- "pattern": "1x\\s+non-?participating",- "weight": 16,- "name": "1x liquidation preference"- },- {- "pattern": "\\$\\s?\\d[\\d,.]*\\s*(?:m|million)?\\s+pre-money",- "weight": 16,- "name": "$X pre-money figure"- },- {- "pattern": "\\bloi\\b",- "weight": 12,- "name": "LOI abbreviation"- },- {- "pattern": "\\bmou\\b",- "weight": 12,- "name": "MOU abbreviation"- },- {- "pattern": "subject to (?:the negotiation and execution of )?a definitive (?:purchase |merger )?agreement",- "weight": 20,- "name": "subject to definitive agreement clause"- },- {- "pattern": "shall not be binding on either party",- "weight": 16,- "name": "non-binding clause"- }- ],- "filenames": [- {- "pattern": "term[_-]?sheet",- "weight": 30,- "name": "term sheet filename"- },- {- "pattern": "ts[_-]?series[_-]?[a-e]",- "weight": 18,- "name": "TS series letter filename"- },- {- "pattern": "letter[-_ ]?of[-_ ]?intent",- "weight": 30,- "name": "letter of intent filename"- },- {- "pattern": "(^|[^a-z])loi([^a-z]|$)",- "weight": 22,- "name": "LOI in filename"- },- {- "pattern": "(^|[^a-z])mou([^a-z]|$)",- "weight": 20,- "name": "MOU in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "term sheet",- "weight": 16,- "name": "Term sheet title metadata"- },- {- "field": "title",- "pattern": "letter of intent|memorandum of understanding",- "weight": 16,- "name": "LOI/MOU in PDF title"- }- ],"negatives": [{"text": "entire agreement",@@ -2994,25 +2275,50 @@"name": "NDA heading"}],- "structural": [+ "regexes": [{- "signal": "form_like",- "weight": 5+ "pattern": "series\\s+[a-e]\\s+preferred\\s+stock",+ "weight": 16,+ "name": "Series X preferred stock"},{- "signal": "short_doc",- "weight": 6+ "pattern": "1x\\s+non-?participating",+ "weight": 16,+ "name": "1x liquidation preference"},{- "signal": "signature_block",- "weight": 4+ "pattern": "\\$\\s?\\d[\\d,.]*\\s*(?:m|million)?\\s+pre-money",+ "weight": 16,+ "name": "$X pre-money figure"+ },+ {+ "pattern": "subject to (?:the negotiation and execution of )?a definitive (?:purchase |merger )?agreement",+ "weight": 20,+ "name": "subject to definitive agreement clause"+ },+ {+ "pattern": "shall not be binding on either party",+ "weight": 16,+ "name": "non-binding clause"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "term sheet",+ "weight": 16,+ "name": "Term sheet title metadata"+ },+ {+ "field": "title",+ "pattern": "letter of intent|memorandum of understanding",+ "weight": 16,+ "name": "LOI/MOU in PDF title"}]},{"id": "quarterly-report",- "name": "Quarterly report",- "emit": true,"phrases": [{"text": "quarterly earnings release",@@ -3070,63 +2376,21 @@"where": "title"}],- "regexes": [+ "negatives": [{- "pattern": "reports\\s+(?:first|second|third|fourth|q[1-4])\\s+quarter\\s+(?:and\\s+half-year\\s+)?(?:20\\d{2}\\s+)?(?:financial\\s+)?results",- "weight": 22,- "name": "reports Q# results headline"+ "text": "consolidated financial statements",+ "weight": 14,+ "name": "10-K/10-Q financial report wording"},{- "pattern": "eps\\s+of\\s+(?:\\$|\\u00a3|\\u20ac)?\\d",- "weight": 16,- "name": "EPS of $X"+ "text": "notes to the financial statements",+ "weight": 14,+ "name": "annual report wording"},{- "pattern": "rais(?:e[sd]?|ing)\\s+(?:its\\s+)?(?:full[- ]year\\s+)?guidance",- "weight": 16,- "name": "raises guidance"- }- ],- "filenames": [- {- "pattern": "earnings[_-]?(?:release|report)",- "weight": 28,- "name": "earnings release/report filename"- },- {- "pattern": "q[1-4][_-]?20\\d{2}[_-]?earnings",- "weight": 22,- "name": "Q# earnings filename"- },- {- "pattern": "interim[_-]?results",- "weight": 18,- "name": "interim results filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "earnings release|earnings report|interim results",- "weight": 12,- "name": "Earnings title metadata"- }- ],- "negatives": [- {- "text": "consolidated financial statements",- "weight": 14,- "name": "10-K/10-Q financial report wording"- },- {- "text": "notes to the financial statements",- "weight": 14,- "name": "annual report wording"- },- {- "text": "form 10-k",- "weight": 12,- "name": "SEC annual filing"+ "text": "form 10-k",+ "weight": 12,+ "name": "SEC annual filing"},{"text": "form 10-q",@@ -3144,21 +2408,34 @@"name": "investor update wording"}],- "structural": [+ "regexes": [{- "signal": "currency_heavy",- "weight": 6+ "pattern": "reports\\s+(?:first|second|third|fourth|q[1-4])\\s+quarter\\s+(?:and\\s+half-year\\s+)?(?:20\\d{2}\\s+)?(?:financial\\s+)?results",+ "weight": 22,+ "name": "reports Q# results headline"},{- "signal": "number_table",- "weight": 6+ "pattern": "eps\\s+of\\s+(?:\\$|\\u00a3|\\u20ac)?\\d",+ "weight": 16,+ "name": "EPS of $X"+ },+ {+ "pattern": "rais(?:e[sd]?|ing)\\s+(?:its\\s+)?(?:full[- ]year\\s+)?guidance",+ "weight": 16,+ "name": "raises guidance"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "earnings release|earnings report|interim results",+ "weight": 12,+ "name": "Earnings title metadata"}]},{"id": "report",- "name": "Report",- "emit": true,"phrases": [{"text": "due diligence report",@@ -3266,89 +2543,6 @@"weight": 14}],- "regexes": [- {- "pattern": "due\\s+diligence\\s+(?:report|memo|findings|summary)",- "weight": 20,- "name": "Due diligence heading"- },- {- "pattern": "\\bqo?e\\s+report\\b",- "weight": 12,- "name": "QoE report abbreviation"- },- {- "pattern": "agenda\\s+item\\s+(no\\.?\\s*)?\\d{1,2}",- "weight": 14,- "name": "Agenda item number"- },- {- "pattern": "wards?\\s+affected\\s*:",- "weight": 22,- "name": "Wards affected field"- },- {- "pattern": "report\\s+(of|by)\\s+the\\s+(director|head|chief|executive|county\\s+administrator|city\\s+manager)",- "weight": 18,- "name": "Officer report line"- },- {- "pattern": "cabinet\\s+member\\s+for\\s+[a-z]",- "weight": 20,- "name": "Cabinet member portfolio"- },- {- "pattern": "recommendations?\\s*:?\\s*that\\s+(the\\s+)?(cabinet|committee|council|board)",- "weight": 24,- "name": "Recommendation to body"- }- ],- "filenames": [- {- "pattern": "due[_-]?diligence",- "weight": 30,- "name": "due diligence filename"- },- {- "pattern": "\\bdd[_-]?report\\b",- "weight": 18,- "name": "DD report filename"- },- {- "pattern": "diligence[_-]?memo",- "weight": 22,- "name": "diligence memo filename"- },- {- "pattern": "(cabinet|committee|council)[-_ ]?report",- "weight": 24,- "name": "Committee report filename"- },- {- "pattern": "staff[-_ ]?report",- "weight": 20,- "name": "Staff report filename"- },- {- "pattern": "agenda[-_ ]?item",- "weight": 14,- "name": "Agenda item filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "due diligence",- "weight": 16,- "name": "Due diligence title metadata"- },- {- "field": "title",- "pattern": "report to (cabinet|council|committee)",- "weight": 14,- "name": "Report-to title"- }- ],"negatives": [{"text": "entire agreement",@@ -3391,29 +2585,60 @@"name": "Meeting agenda cover"}],- "structural": [+ "regexes": [{- "signal": "long_doc",- "weight": 6+ "pattern": "due\\s+diligence\\s+(?:report|memo|findings|summary)",+ "weight": 20,+ "name": "Due diligence heading"},{- "signal": "toc",- "weight": 4+ "pattern": "\\bqo?e\\s+report\\b",+ "weight": 12,+ "name": "QoE report abbreviation"+ },+ {+ "pattern": "agenda\\s+item\\s+(no\\.?\\s*)?\\d{1,2}",+ "weight": 14,+ "name": "Agenda item number"+ },+ {+ "pattern": "wards?\\s+affected\\s*:",+ "weight": 22,+ "name": "Wards affected field"+ },+ {+ "pattern": "report\\s+(of|by)\\s+the\\s+(director|head|chief|executive|county\\s+administrator|city\\s+manager)",+ "weight": 18,+ "name": "Officer report line"+ },+ {+ "pattern": "cabinet\\s+member\\s+for\\s+[a-z]",+ "weight": 20,+ "name": "Cabinet member portfolio"},{- "signal": "references_section",- "weight": 3+ "pattern": "recommendations?\\s*:?\\s*that\\s+(the\\s+)?(cabinet|committee|council|board)",+ "weight": 24,+ "name": "Recommendation to body"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "due diligence",+ "weight": 16,+ "name": "Due diligence title metadata"},{- "signal": "bullet_heavy",- "weight": 3+ "field": "title",+ "pattern": "report to (cabinet|council|committee)",+ "weight": 14,+ "name": "Report-to title"}]},{"id": "regulatory-filing",- "name": "Regulatory filing",- "emit": true,"phrases": [{"text": "offering memorandum",@@ -3598,6 +2823,53 @@"weight": 24}],+ "negatives": [+ {+ "text": "annual report",+ "weight": 10,+ "name": "financial report wording"+ },+ {+ "text": "entire agreement",+ "weight": 10,+ "name": "formal contract wording"+ },+ {+ "text": "this term sheet is non-binding",+ "weight": 12,+ "name": "term sheet wording"+ },+ {+ "text": "terms and conditions",+ "weight": 26,+ "name": "T&C legalese confusable"+ },+ {+ "text": "this agreement",+ "weight": 20,+ "name": "Contract wording"+ },+ {+ "text": "privacy policy",+ "weight": 16,+ "name": "Policy document"+ },+ {+ "text": "licensee",+ "weight": 14,+ "name": "License agreement party"+ },+ {+ "text": "statutory instrument",+ "weight": 18,+ "name": "Regulation, not primary legislation"+ },+ {+ "text": "we welcome your views",+ "weight": 16,+ "name": "Consultation paper wording"+ }+ ],"regexes": [{"pattern": "securities\\s+act\\s+of\\s+1933",@@ -3614,11 +2886,6 @@"weight": 14,"name": "Offering price of $X"},- {- "pattern": "\\bh\\.\\s?r\\.\\s?\\d{1,5}\\b",- "weight": 20,- "name": "House bill number"- },{"pattern": "\\b1\\d{2}(st|nd|rd|th)\\s+congress\\b","weight": 22,@@ -3644,74 +2911,12 @@"weight": 24,"name": "CFR part citation"},- {- "pattern": "\\brin\\s+\\d{4}-[a-z]{2}\\d{2}\\b",- "weight": 22,- "name": "Regulation identifier number"- },- {- "pattern": "\\bfr\\s+doc\\.?\\s+\\d{4}-\\d{4,6}\\b",- "weight": 20,- "name": "Federal Register doc number"- },- {- "pattern": "\\b20\\d{2}\\s+no\\.\\s?\\d{1,4}\\b",- "weight": 16,- "name": "SI year and number"- },{"pattern": "docket\\s+(no\\.?|number)\\s*:?\\s*[a-z]{2,6}-","weight": 14,"name": "Rulemaking docket"}],- "filenames": [- {- "pattern": "prospectus",- "weight": 28,- "name": "prospectus filename"- },- {- "pattern": "offering[_-]?memorandum",- "weight": 26,- "name": "offering memorandum filename"- },- {- "pattern": "\\bppm\\b",- "weight": 14,- "name": "PPM abbreviation filename"- },- {- "pattern": "\\b(hr|s)[-_ ]?\\d{3,5}\\b",- "weight": 16,- "name": "Bill number filename"- },- {- "pattern": "bill",- "weight": 15,- "name": "Bill filename"- },- {- "pattern": "(ukpga|act[-_ ]?20\\d{2})",- "weight": 20,- "name": "Act filename"- },- {- "pattern": "federal[-_ ]?register|final[-_ ]?rule",- "weight": 22,- "name": "Federal Register rule filename"- },- {- "pattern": "statutory[-_ ]?instrument|uksi",- "weight": 24,- "name": "Statutory instrument filename"- },- {- "pattern": "\\bcfr\\b|rulemaking",- "weight": 18,- "name": "CFR/rulemaking filename"- }- ],"metadata": [{"field": "title",@@ -3725,85 +2930,16 @@"weight": 12,"name": "Bill/act in PDF title"},- {- "field": "any",- "pattern": "legislation\\.gov\\.uk",- "weight": 14,- "name": "legislation.gov.uk metadata"- },{"field": "title","pattern": "federal register|final rule|regulations 20\\d{2}","weight": 12,"name": "Rule in PDF title"}- ],- "negatives": [- {- "text": "annual report",- "weight": 10,- "name": "financial report wording"- },- {- "text": "entire agreement",- "weight": 10,- "name": "formal contract wording"- },- {- "text": "this term sheet is non-binding",- "weight": 12,- "name": "term sheet wording"- },- {- "text": "terms and conditions",- "weight": 26,- "name": "T&C legalese confusable"- },- {- "text": "this agreement",- "weight": 20,- "name": "Contract wording"- },- {- "text": "privacy policy",- "weight": 16,- "name": "Policy document"- },- {- "text": "licensee",- "weight": 14,- "name": "License agreement party"- },- {- "text": "statutory instrument",- "weight": 18,- "name": "Regulation, not primary legislation"- },- {- "text": "we welcome your views",- "weight": 16,- "name": "Consultation paper wording"- }- ],- "structural": [- {- "signal": "long_doc",- "weight": 6- },- {- "signal": "toc",- "weight": 5- },- {- "signal": "references_section",- "weight": 3- }]},{"id": "appraisal-report",- "name": "Appraisal report",- "emit": true,"phrases": [{"text": "409a valuation",@@ -3856,48 +2992,6 @@"weight": 12}],- "regexes": [- {- "pattern": "\\b409a\\b",- "weight": 20,- "name": "409A reference"- },- {- "pattern": "\\bwacc\\b",- "weight": 14,- "name": "WACC acronym"- },- {- "pattern": "discount\\s+rate\\s+of\\s+\\d{1,2}(?:\\.\\d+)?%",- "weight": 14,- "name": "Discount rate percentage"- }- ],- "filenames": [- {- "pattern": "409a",- "weight": 28,- "name": "409A filename"- },- {- "pattern": "valuation[_-]?report",- "weight": 26,- "name": "valuation report filename"- },- {- "pattern": "business[_-]?valuation",- "weight": 22,- "name": "business valuation filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "409a|valuation report",- "weight": 16,- "name": "Valuation report title metadata"- }- ],"negatives": [{"text": "balance sheet",@@ -3920,25 +3014,29 @@"name": "due diligence wording"}],- "structural": [+ "regexes": [{- "signal": "long_doc",- "weight": 5+ "pattern": "\\bwacc\\b",+ "weight": 14,+ "name": "WACC acronym"},{- "signal": "number_table",- "weight": 6- },+ "pattern": "discount\\s+rate\\s+of\\s+\\d{1,2}(?:\\.\\d+)?%",+ "weight": 14,+ "name": "Discount rate percentage"+ }+ ],+ "metadata": [{- "signal": "toc",- "weight": 3+ "field": "title",+ "pattern": "409a|valuation report",+ "weight": 16,+ "name": "Valuation report title metadata"}]},{"id": "tax-form",- "name": "Tax form",- "emit": true,"phrases": [{"text": "wage and tax statement",@@ -4005,6 +3103,28 @@"weight": 22}],+ "negatives": [+ {+ "text": "form 1040",+ "weight": 15,+ "name": "Filed 1040 return"+ },+ {+ "text": "self assessment",+ "weight": 12,+ "name": "UK self assessment return"+ },+ {+ "text": "adjusted gross income",+ "weight": 12,+ "name": "Return computation line"+ },+ {+ "text": "net pay",+ "weight": 10,+ "name": "Payslip vocabulary"+ }+ ],"regexes": [{"pattern": "\\bform\\s+w-?2\\b",@@ -4025,38 +3145,6 @@"pattern": "\\bform\\s+w-?4\\b","weight": 18,"name": "Form W-4"- },- {- "pattern": "\\b1095-[abc]\\b",- "weight": 18,- "name": "Form 1095 health coverage"- },- {- "pattern": "omb no\\.?\\s*1545-\\d{4}",- "weight": 12,- "name": "IRS OMB number"- }- ],- "filenames": [- {- "pattern": "(?:^|[^a-z0-9])w[-_ ]?2(?:[^0-9]|$)",- "weight": 22,- "name": "W-2 in filename"- },- {- "pattern": "(?:^|[^0-9])1099(?:[^0-9]|$)",- "weight": 22,- "name": "1099 in filename"- },- {- "pattern": "(?:^|[^a-z0-9])w[-_ ]?[49](?:[^0-9]|$)",- "weight": 20,- "name": "W-9/W-4 in filename"- },- {- "pattern": "(?:^|[^a-z0-9])(?:p45|p60|t4)(?:[^0-9a-z]|$)",- "weight": 20,- "name": "P45/P60/T4 in filename"}],"metadata": [@@ -4065,51 +3153,11 @@"pattern": "w-?[249]\\b|1099|p45|p60|\\bt4\\b","weight": 12,"name": "Tax form id in title"- },- {- "field": "any",- "pattern": "internal revenue service|hm revenue|canada revenue agency",- "weight": 8,- "name": "Revenue agency in metadata"- }- ],- "negatives": [- {- "text": "form 1040",- "weight": 15,- "name": "Filed 1040 return"- },- {- "text": "self assessment",- "weight": 12,- "name": "UK self assessment return"- },- {- "text": "adjusted gross income",- "weight": 12,- "name": "Return computation line"- },- {- "text": "net pay",- "weight": 10,- "name": "Payslip vocabulary"- }- ],- "structural": [- {- "signal": "form_like",- "weight": 8- },- {- "signal": "short_doc",- "weight": 5}]},{"id": "tax-return",- "name": "Tax return",- "emit": true,"phrases": [{"text": "u.s. individual income tax return",@@ -4175,59 +3223,6 @@"weight": 10}],- "regexes": [- {- "pattern": "\\bform\\s+1040\\b",- "weight": 22,- "name": "Form 1040"- },- {- "pattern": "\\b1040-(?:sr|nr|x|es)\\b",- "weight": 18,- "name": "1040 variant"- },- {- "pattern": "schedule\\s+(?:[a-e]|se)\\s+\\(form\\s+1040\\)",- "weight": 16,- "name": "1040 schedule"- },- {- "pattern": "\\bsa(?:100|302)\\b",- "weight": 20,- "name": "HMRC SA form number"- }- ],- "filenames": [- {- "pattern": "(?:^|[^0-9])1040(?:[^0-9]|$)",- "weight": 20,- "name": "1040 in filename"- },- {- "pattern": "tax[-_ ]?return",- "weight": 24,- "name": "Tax return in filename"- },- {- "pattern": "self[-_ ]?assessment|sa100|sa302",- "weight": 22,- "name": "Self assessment in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "1040|tax return|self assessment",- "weight": 12,- "name": "Return in title"- },- {- "field": "any",- "pattern": "turbotax|taxact|h&r block|taxslayer|freetaxusa|taxcalc",- "weight": 14,- "name": "Tax software producer"- }- ],"negatives": [{"text": "wage and tax statement",@@ -4255,21 +3250,29 @@"name": "Payslip vocabulary"}],- "structural": [+ "regexes": [{- "signal": "form_like",- "weight": 6+ "pattern": "\\bform\\s+1040\\b",+ "weight": 22,+ "name": "Form 1040"},{- "signal": "number_table",- "weight": 4+ "pattern": "schedule\\s+(?:[a-e]|se)\\s+\\(form\\s+1040\\)",+ "weight": 16,+ "name": "1040 schedule"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "1040|tax return|self assessment",+ "weight": 12,+ "name": "Return in title"}]},{"id": "tax-statement",- "name": "Tax statement",- "emit": true,"phrases": [{"text": "notice of deficiency",@@ -4329,6 +3332,23 @@"where": "first"}],+ "negatives": [+ {+ "text": "u.s. individual income tax return",+ "weight": 18,+ "name": "1040 title"+ },+ {+ "text": "wage and tax statement",+ "weight": 15,+ "name": "W-2 heading"+ },+ {+ "text": "invoice number",+ "weight": 15,+ "name": "Invoice vocabulary"+ }+ ],"regexes": [{"pattern": "notice\\s+(?:cp|ltr)[- ]?\\d{2,4}",@@ -4350,68 +3370,10 @@"weight": 22,"name": "CP2000 proposed changes"}- ],- "filenames": [- {- "pattern": "irs[-_ ]?(?:notice|letter)|hmrc",- "weight": 18,- "name": "IRS/HMRC in filename"- },- {- "pattern": "cp[-_ ]?(?:14|49|90|501|503|504|2000)",- "weight": 24,- "name": "IRS CP code in filename"- },- {- "pattern": "tax[-_ ]?notice|penalty[-_ ]?notice",- "weight": 22,- "name": "Tax notice in filename"- }- ],- "metadata": [- {- "field": "any",- "pattern": "internal revenue service|hm revenue",- "weight": 10,- "name": "Revenue agency in metadata"- }- ],- "negatives": [- {- "text": "u.s. individual income tax return",- "weight": 18,- "name": "1040 title"- },- {- "text": "wage and tax statement",- "weight": 15,- "name": "W-2 heading"- },- {- "text": "invoice number",- "weight": 15,- "name": "Invoice vocabulary"- }- ],- "structural": [- {- "signal": "address_block",- "weight": 6- },- {- "signal": "short_doc",- "weight": 4- },- {- "signal": "currency_heavy",- "weight": 3- }]},{"id": "payslip",- "name": "Payslip",- "emit": true,"phrases": [{"text": "earnings statement",@@ -4475,59 +3437,6 @@"weight": 8}],- "regexes": [- {- "pattern": "\\bytd\\b",- "weight": 12,- "name": "YTD column"- },- {- "pattern": "\\bfica\\b",- "weight": 14,- "name": "FICA deduction"- },- {- "pattern": "\\bpaye\\b",- "weight": 12,- "name": "PAYE deduction"- }- ],- "filenames": [- {- "pattern": "pay[-_ ]?slip",- "weight": 28,- "name": "Payslip in filename"- },- {- "pattern": "pay[-_ ]?stub",- "weight": 28,- "name": "Paystub in filename"- },- {- "pattern": "(?:wage|salary)[-_ ]?slip",- "weight": 24,- "name": "Wage/salary slip in filename"- },- {- "pattern": "payroll|pay[-_ ]?check|earnings[-_ ]?statement",- "weight": 18,- "name": "Payroll in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "payslip|pay slip|pay stub|pay advice|salary slip|earnings statement",- "weight": 14,- "name": "Payslip in title"- },- {- "field": "any",- "pattern": "\\badp\\b|gusto|paychex|paylocity|moorepay|sage payroll",- "weight": 14,- "name": "Payroll software producer"- }- ],"negatives": [{"text": "wage and tax statement",@@ -4551,25 +3460,29 @@"name": "Invoice vocabulary"}],- "structural": [+ "regexes": [{- "signal": "number_table",- "weight": 6+ "pattern": "\\bfica\\b",+ "weight": 14,+ "name": "FICA deduction"},{- "signal": "short_doc",- "weight": 6- },+ "pattern": "\\bpaye\\b",+ "weight": 12,+ "name": "PAYE deduction"+ }+ ],+ "metadata": [{- "signal": "form_like",- "weight": 3+ "field": "title",+ "pattern": "payslip|pay slip|pay stub|pay advice|salary slip|earnings statement",+ "weight": 14,+ "name": "Payslip in title"}]},{"id": "benefits-summary",- "name": "Benefits summary",- "emit": true,"phrases": [{"text": "pension statement",@@ -4689,79 +3602,6 @@"weight": 12}],- "regexes": [- {- "pattern": "\\b401\\(?k\\)?",- "weight": 16,- "name": "401(k) plan"- },- {- "pattern": "\\b(?:sipp|rrsp)\\b",- "weight": 14,- "name": "Pension account acronym"- },- {- "pattern": "\\b(?:traditional|roth|sep)[- ]ira\\b",- "weight": 14,- "name": "IRA account type"- },- {- "pattern": "\\b[a-ceghj-pr-tw-z]{2}\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}\\s?[a-d]\\b",- "weight": 12,- "name": "National Insurance number"- }- ],- "filenames": [- {- "pattern": "pension",- "weight": 24,- "name": "Pension in filename"- },- {- "pattern": "401[-_ ]?k",- "weight": 24,- "name": "401k in filename"- },- {- "pattern": "retirement|superannuation",- "weight": 18,- "name": "Retirement in filename"- },- {- "pattern": "universal[-_ ]?credit",- "weight": 25,- "name": "Universal Credit filename"- },- {- "pattern": "benefit",- "weight": 16,- "name": "Benefit filename"- },- {- "pattern": "award[-_ ]?notice",- "weight": 20,- "name": "Award notice filename"- },- {- "pattern": "\\bdwp\\b",- "weight": 18,- "name": "DWP filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "pension|retirement|401\\(?k\\)?",- "weight": 12,- "name": "Pension in title"- },- {- "field": "title",- "pattern": "universal credit|benefit|award notice",- "weight": 12,- "name": "Benefits title"- }- ],"negatives": [{"text": "net pay",@@ -4799,21 +3639,40 @@"name": "Payslip"}],- "structural": [+ "regexes": [{- "signal": "currency_heavy",- "weight": 4+ "pattern": "\\b(?:sipp|rrsp)\\b",+ "weight": 14,+ "name": "Pension account acronym"},{- "signal": "number_table",- "weight": 4+ "pattern": "\\b(?:traditional|roth|sep)[- ]ira\\b",+ "weight": 14,+ "name": "IRA account type"+ },+ {+ "pattern": "\\b[a-ceghj-pr-tw-z]{2}\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}\\s?[a-d]\\b",+ "weight": 12,+ "name": "National Insurance number"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "pension|retirement|401\\(?k\\)?",+ "weight": 12,+ "name": "Pension in title"+ },+ {+ "field": "title",+ "pattern": "universal credit|benefit|award notice",+ "weight": 12,+ "name": "Benefits title"}]},{"id": "contract",- "name": "Contract",- "emit": true,"phrases": [{"text": "in witness whereof",@@ -4930,88 +3789,6 @@"weight": 8}],- "regexes": [- {- "pattern": "this\\s+agreement\\s+is\\s+made\\s+(on|as\\s+of|by\\s+and\\s+between)",- "flags": "gi",- "weight": 20,- "name": "agreement made on/between",- "where": "first"- },- {- "pattern": "is\\s+made\\s+and\\s+entered\\s+into",- "flags": "gi",- "weight": 18,- "name": "made and entered into",- "where": "first"- },- {- "pattern": "article\\s*28(\\(\\d\\))?\\s*(of\\s+the\\s+)?(gdpr|regulation)",- "flags": "gi",- "weight": 20,- "name": "GDPR Article 28 reference"- },- {- "pattern": "annex\\s+(i{1,3}|1|2|3)\\s*[:\\-]?\\s*(list of parties|description of processing)",- "flags": "gi",- "weight": 16,- "name": "SCC annex heading"- },- {- "pattern": "processing\\s+instructions",- "flags": "gi",- "weight": 12,- "name": "processing instructions clause"- },- {- "pattern": "\\bccpa\\b|\\bcpra\\b",- "flags": "gi",- "weight": 12,- "name": "CCPA/CPRA reference"- }- ],- "filenames": [- {- "pattern": "(contract|agreement)",- "weight": 16,- "name": "contract/agreement in filename"- },- {- "pattern": "(^|[^a-z0-9])(msa|sow|mou|dpa)([^a-z0-9]|$)",- "weight": 18,- "name": "MSA/SOW/MOU/DPA abbreviation"- },- {- "pattern": "data[\\s_-]?processing[\\s_-]?agreement",- "weight": 30,- "name": "DPA filename"- },- {- "pattern": "(^|[^a-z0-9])dpa([^a-z0-9]|$)",- "weight": 24,- "name": "DPA abbreviation filename"- },- {- "pattern": "standard[\\s_-]?contractual[\\s_-]?clauses|(^|[^a-z0-9])scc([^a-z0-9]|$)",- "weight": 20,- "name": "SCC filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "agreement|contract",- "flags": "gi",- "weight": 10,- "name": "Info title mentions agreement"- },- {- "field": "title",- "pattern": "data processing agreement|data processing addendum",- "weight": 16,- "name": "Info title DPA"- }- ],"negatives": [{"text": "non-disclosure agreement",@@ -5072,25 +3849,64 @@"name": "MSA vocab"}],- "structural": [+ "regexes": [{- "signal": "signature_block",- "weight": 8+ "pattern": "this\\s+agreement\\s+is\\s+made\\s+(on|as\\s+of|by\\s+and\\s+between)",+ "flags": "gi",+ "weight": 20,+ "name": "agreement made on/between",+ "where": "first"},{- "signal": "long_doc",- "weight": 4+ "pattern": "is\\s+made\\s+and\\s+entered\\s+into",+ "flags": "gi",+ "weight": 18,+ "name": "made and entered into",+ "where": "first"+ },+ {+ "pattern": "article\\s*28(\\(\\d\\))?\\s*(of\\s+the\\s+)?(gdpr|regulation)",+ "flags": "gi",+ "weight": 20,+ "name": "GDPR Article 28 reference"+ },+ {+ "pattern": "annex\\s+(i{1,3}|1|2|3)\\s*[:\\-]?\\s*(list of parties|description of processing)",+ "flags": "gi",+ "weight": 16,+ "name": "SCC annex heading"+ },+ {+ "pattern": "processing\\s+instructions",+ "flags": "gi",+ "weight": 12,+ "name": "processing instructions clause"+ },+ {+ "pattern": "\\bccpa\\b|\\bcpra\\b",+ "flags": "gi",+ "weight": 12,+ "name": "CCPA/CPRA reference"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "agreement|contract",+ "flags": "gi",+ "weight": 10,+ "name": "Info title mentions agreement"},{- "signal": "toc",- "weight": 3+ "field": "title",+ "pattern": "data processing agreement|data processing addendum",+ "weight": 16,+ "name": "Info title DPA"}]},{"id": "nda",- "name": "NDA",- "emit": true,"phrases": [{"text": "non-disclosure agreement",@@ -5141,35 +3957,6 @@"weight": 14}],- "regexes": [- {- "pattern": "\\bnda\\b",- "flags": "gi",- "weight": 12,- "name": "NDA abbreviation"- }- ],- "filenames": [- {- "pattern": "(^|[^a-z0-9])nda([^a-z0-9]|$)",- "weight": 26,- "name": "nda in filename"- },- {- "pattern": "(non.?disclosure|confidentiality)",- "weight": 24,- "name": "non-disclosure in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "non.?disclosure|confidentiality|\\bnda\\b",- "flags": "gi",- "weight": 14,- "name": "Info title NDA"- }- ],"negatives": [{"text": "master services agreement",@@ -5228,21 +4015,18 @@"name": "Commercial payment terms (full contract)"}],- "structural": [- {- "signal": "signature_block",- "weight": 7- },+ "metadata": [{- "signal": "short_doc",- "weight": 3+ "field": "title",+ "pattern": "non.?disclosure|confidentiality|\\bnda\\b",+ "flags": "gi",+ "weight": 14,+ "name": "Info title NDA"}]},{"id": "terms-and-conditions",- "name": "Terms and conditions",- "emit": true,"phrases": [{"text": "terms of service",@@ -5308,28 +4092,6 @@"weight": 14}],- "regexes": [],- "filenames": [- {- "pattern": "terms.{0,3}(of.{0,3}(service|use)|and.{0,3}conditions)",- "weight": 24,- "name": "terms of service/use in filename"- },- {- "pattern": "(^|[^a-z0-9])(tos|eula|tnc|t&c)([^a-z0-9]|$)",- "weight": 20,- "name": "ToS/EULA abbreviation"- }- ],- "metadata": [- {- "field": "title",- "pattern": "terms\\s+(of\\s+(service|use)|and\\s+conditions|&\\s*conditions)",- "flags": "gi",- "weight": 14,- "name": "Info title terms"- }- ],"negatives": [{"text": "policy number",@@ -5352,21 +4114,18 @@"name": "invoice vocab"}],- "structural": [- {- "signal": "url_heavy",- "weight": 5- },+ "metadata": [{- "signal": "long_doc",- "weight": 3+ "field": "title",+ "pattern": "terms\\s+(of\\s+(service|use)|and\\s+conditions|&\\s*conditions)",+ "flags": "gi",+ "weight": 14,+ "name": "Info title terms"}]},{"id": "court-filing",- "name": "Court filing",- "emit": true,"phrases": [{"text": "united states district court",@@ -5431,53 +4190,6 @@"weight": 20}],- "regexes": [- {- "pattern": "\\bcase\\s+(no|number)\\.?\\s*:?\\s*[a-z0-9]",- "flags": "gi",- "weight": 16,- "name": "case number",- "where": "first"- },- {- "pattern": "\\bdocket\\s+(no|number)\\.?",- "flags": "gi",- "weight": 16,- "name": "docket number"- },- {- "pattern": "plaintiffs?\\s*,?\\s*v(s)?\\.",- "flags": "gi",- "weight": 18,- "name": "Plaintiff v. caption",- "where": "first"- },- {- "pattern": "claim\\s+no\\.?\\s*[a-z]{2}-\\d{4}-\\d{4,6}",- "flags": "gi",- "weight": 20,- "name": "UK court claim number"- },- {- "pattern": "\\d{1,2}:\\d{2}-cv-\\d{4,6}",- "flags": "gi",- "weight": 22,- "name": "federal civil docket (cv)"- }- ],- "filenames": [- {- "pattern": "(motion|complaint|petition|docket|subpoena|pleading|summons)",- "weight": 16,- "name": "filing type in filename"- },- {- "pattern": "(^|[^a-z0-9])court([^a-z0-9]|$)",- "weight": 14,- "name": "court in filename"- }- ],- "metadata": [],"negatives": [{"text": "subscribed and sworn to before me",@@ -5520,17 +4232,37 @@"name": "Judicial reasoning"}],- "structural": [+ "regexes": [+ {+ "pattern": "\\bcase\\s+(no|number)\\.?\\s*:?\\s*[a-z0-9]",+ "flags": "gi",+ "weight": 16,+ "name": "case number",+ "where": "first"+ },+ {+ "pattern": "\\bdocket\\s+(no|number)\\.?",+ "flags": "gi",+ "weight": 16,+ "name": "docket number"+ },+ {+ "pattern": "plaintiffs?\\s*,?\\s*v(s)?\\.",+ "flags": "gi",+ "weight": 18,+ "name": "Plaintiff v. caption",+ "where": "first"+ },{- "signal": "signature_block",- "weight": 3+ "pattern": "claim\\s+no\\.?\\s*[a-z]{2}-\\d{4}-\\d{4,6}",+ "flags": "gi",+ "weight": 20,+ "name": "UK court claim number"}]},{"id": "affidavit",- "name": "Affidavit",- "emit": true,"phrases": [{"text": "affidavit",@@ -5591,35 +4323,6 @@"weight": 24}],- "regexes": [- {- "pattern": "state\\s+of\\s+[a-z]+.{0,30}county\\s+of",- "flags": "gi",- "weight": 16,- "name": "notary venue block"- }- ],- "filenames": [- {- "pattern": "(affidavit|sworn)",- "weight": 26,- "name": "affidavit in filename"- },- {- "pattern": "statutory.?declaration",- "weight": 24,- "name": "statutory declaration in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "affidavit|statutory declaration",- "flags": "gi",- "weight": 14,- "name": "Info title affidavit"- }- ],"negatives": [{"text": "attorney-in-fact",@@ -5637,21 +4340,26 @@"name": "mortgage vocab"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 7- },+ "pattern": "state\\s+of\\s+[a-z]+.{0,30}county\\s+of",+ "flags": "gi",+ "weight": 16,+ "name": "notary venue block"+ }+ ],+ "metadata": [{- "signal": "signature_block",- "weight": 8+ "field": "title",+ "pattern": "affidavit|statutory declaration",+ "flags": "gi",+ "weight": 14,+ "name": "Info title affidavit"}]},{"id": "power-of-attorney",- "name": "Power of attorney",- "emit": true,"phrases": [{"text": "power of attorney",@@ -5703,35 +4411,6 @@"weight": 18}],- "regexes": [- {- "pattern": "\\blp1[fh]\\b",- "flags": "gi",- "weight": 16,- "name": "UK LPA form code"- }- ],- "filenames": [- {- "pattern": "power.?of.?attorney",- "weight": 28,- "name": "power of attorney in filename"- },- {- "pattern": "(^|[^a-z0-9])(poa|lpa)([^a-z0-9]|$)",- "weight": 20,- "name": "POA/LPA abbreviation"- }- ],- "metadata": [- {- "field": "title",- "pattern": "power of attorney|\\blpa\\b",- "flags": "gi",- "weight": 14,- "name": "Info title POA"- }- ],"negatives": [{"text": "last will and testament",@@ -5744,25 +4423,18 @@"name": "mortgage vocab"}],- "structural": [- {- "signal": "signature_block",- "weight": 8- },- {- "signal": "short_doc",- "weight": 4- },+ "metadata": [{- "signal": "form_like",- "weight": 4+ "field": "title",+ "pattern": "power of attorney|\\blpa\\b",+ "flags": "gi",+ "weight": 14,+ "name": "Info title POA"}]},{"id": "will",- "name": "Will",- "emit": true,"phrases": [{"text": "last will and testament",@@ -5823,28 +4495,6 @@"weight": 4}],- "regexes": [],- "filenames": [- {- "pattern": "(last.?will|testament|codicil)",- "weight": 26,- "name": "will in filename"- },- {- "pattern": "(living|revocable|family).?trust",- "weight": 24,- "name": "trust in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "last will|testament|living trust|declaration of trust",- "flags": "gi",- "weight": 12,- "name": "Info title will/trust"- }- ],"negatives": [{"text": "deed of trust",@@ -5867,17 +4517,18 @@"name": "POA vocab"}],- "structural": [+ "metadata": [{- "signal": "signature_block",- "weight": 8- }+ "field": "title",+ "pattern": "last will|testament|living trust|declaration of trust",+ "flags": "gi",+ "weight": 12,+ "name": "Info title will/trust"+ }]},{"id": "legal-notice",- "name": "Legal notice",- "emit": true,"phrases": [{"text": "cease and desist",@@ -5938,28 +4589,6 @@"weight": 28}],- "regexes": [- {- "pattern": "re\\s*:\\s*(cease|demand|notice|outstanding)",- "flags": "gi",- "weight": 12,- "name": "Re: demand/notice subject",- "where": "first"- }- ],- "filenames": [- {- "pattern": "(cease.?and.?desist|demand.?letter|legal.?notice)",- "weight": 26,- "name": "demand/notice in filename"- },- {- "pattern": "notice.?of.?(default|breach|termination|claim)",- "weight": 18,- "name": "notice-of in filename"- }- ],- "metadata": [],"negatives": [{"text": "homeowners association",@@ -5988,21 +4617,18 @@"name": "court case number present"}],- "structural": [- {- "signal": "short_doc",- "weight": 7- },+ "regexes": [{- "signal": "address_block",- "weight": 6+ "pattern": "re\\s*:\\s*(cease|demand|notice|outstanding)",+ "flags": "gi",+ "weight": 12,+ "name": "Re: demand/notice subject",+ "where": "first"}]},{"id": "purchase-agreement",- "name": "Purchase agreement",- "emit": true,"phrases": [{"text": "agreement and plan of merger",@@ -6061,53 +4687,6 @@"weight": 12}],- "regexes": [- {- "pattern": "closing\\s+(?:date|conditions)",- "weight": 12,- "name": "closing date/conditions"- },- {- "pattern": "escrow\\s+(?:amount|account|agent|fund)",- "weight": 16,- "name": "escrow terms"- },- {- "pattern": "purchase price\\s+(?:of|shall be|is)\\s*\\$",- "weight": 16,- "name": "purchase price figure"- }- ],- "filenames": [- {- "pattern": "share[-_ ]?purchase[-_ ]?agreement",- "weight": 28,- "name": "SPA filename"- },- {- "pattern": "merger[-_ ]?agreement",- "weight": 26,- "name": "merger agreement filename"- },- {- "pattern": "asset[-_ ]?purchase[-_ ]?agreement",- "weight": 26,- "name": "APA filename"- },- {- "pattern": "(^|[^a-z])(m&a|spa|apa)([^a-z]|$)",- "weight": 18,- "name": "M&A abbreviation in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "merger agreement|share purchase agreement|plan of merger",- "weight": 16,- "name": "M&A agreement in PDF title"- }- ],"negatives": [{"text": "letter of intent",@@ -6135,25 +4714,34 @@"name": "SOW heading"}],- "structural": [+ "regexes": [{- "signal": "signature_block",- "weight": 6+ "pattern": "closing\\s+(?:date|conditions)",+ "weight": 12,+ "name": "closing date/conditions"},{- "signal": "long_doc",- "weight": 5+ "pattern": "escrow\\s+(?:amount|account|agent|fund)",+ "weight": 16,+ "name": "escrow terms"},{- "signal": "number_table",- "weight": 4+ "pattern": "purchase price\\s+(?:of|shall be|is)\\s*\\$",+ "weight": 16,+ "name": "purchase price figure"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "merger agreement|share purchase agreement|plan of merger",+ "weight": 16,+ "name": "M&A agreement in PDF title"}]},{"id": "shareholder-agreement",- "name": "Shareholder agreement",- "emit": true,"phrases": [{"text": "shareholders agreement",@@ -6214,48 +4802,6 @@"weight": 12}],- "regexes": [- {- "pattern": "drag[- ]along",- "weight": 18,- "name": "drag-along variant"- },- {- "pattern": "tag[- ]along",- "weight": 18,- "name": "tag-along variant"- },- {- "pattern": "pre[- ]emption\\s+rights?",- "weight": 16,- "name": "pre-emption rights variant"- }- ],- "filenames": [- {- "pattern": "shareholders?[-_ ]?agreement",- "weight": 30,- "name": "shareholders agreement filename"- },- {- "pattern": "cap[-_ ]?table",- "weight": 18,- "name": "cap table filename"- },- {- "pattern": "(^|[^a-z])sha([^a-z]|$)",- "weight": 16,- "name": "SHA abbreviation in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "shareholders?.?\\s?agreement",- "weight": 16,- "name": "shareholders agreement in PDF title"- }- ],"negatives": [{"text": "employment agreement",@@ -6283,21 +4829,34 @@"name": "M&A escrow term"}],- "structural": [+ "regexes": [{- "signal": "signature_block",- "weight": 6+ "pattern": "drag[- ]along",+ "weight": 18,+ "name": "drag-along variant"},{- "signal": "long_doc",- "weight": 4+ "pattern": "tag[- ]along",+ "weight": 18,+ "name": "tag-along variant"+ },+ {+ "pattern": "pre[- ]emption\\s+rights?",+ "weight": 16,+ "name": "pre-emption rights variant"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "shareholders?.?\\s?agreement",+ "weight": 16,+ "name": "shareholders agreement in PDF title"}]},{"id": "legal-opinion",- "name": "Legal opinion",- "emit": true,"phrases": [{"text": "approved judgment",@@ -6394,64 +4953,6 @@"weight": 14}],- "regexes": [- {- "pattern": "\\[\\d{4}\\]\\s+(ewhc|ewca|uksc|ukpc|ukut|ewfc)\\s+((civ|crim|admin)\\s+)?\\d{1,5}",- "weight": 25,- "name": "UK neutral citation"- },- {- "pattern": "judgment of the (district|trial) court is (affirmed|reversed|vacated|modified)",- "weight": 22,- "name": "appellate disposition"- },- {- "pattern": "\\b(mr|mrs|lord|lady)\\s+justice\\s+[a-z]{2,24}",- "weight": 14,- "name": "Mr/Mrs Justice name"- },- {- "pattern": "\\b\\d{1,3}\\s+f\\.\\s?(2d|3d|4th)\\s+\\d{1,4}\\b",- "weight": 12,- "name": "federal reporter citation"- },- {- "pattern": "\\bcircuit judges\\b",- "weight": 12,- "name": "circuit judges panel"- }- ],- "filenames": [- {- "pattern": "judg(e)?ment",- "weight": 26,- "name": "judgment in filename"- },- {- "pattern": "(^|[^a-z0-9])(ewhc|ewca|uksc)([^a-z0-9]|$)",- "weight": 28,- "name": "UK court code in filename"- },- {- "pattern": "opinion",- "weight": 16,- "name": "opinion in filename"- },- {- "pattern": "(^|[^a-z0-9])ruling([^a-z0-9]|$)",- "weight": 15,- "name": "ruling in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "judg(e)?ment|opinion of the court",- "flags": "gi",- "weight": 12,- "name": "Info title judgment/opinion"- }- ],"negatives": [{"text": "respectfully submitted",@@ -6490,21 +4991,40 @@"name": "DOI identifier (academic paper)"}],- "structural": [+ "regexes": [{- "signal": "long_doc",- "weight": 5+ "pattern": "\\[\\d{4}\\]\\s+(ewhc|ewca|uksc|ukpc|ukut|ewfc)\\s+((civ|crim|admin)\\s+)?\\d{1,5}",+ "weight": 25,+ "name": "UK neutral citation"+ },+ {+ "pattern": "judgment of the (district|trial) court is (affirmed|reversed|vacated|modified)",+ "weight": 22,+ "name": "appellate disposition"+ },+ {+ "pattern": "\\b(mr|mrs|lord|lady)\\s+justice\\s+[a-z]{2,24}",+ "weight": 14,+ "name": "Mr/Mrs Justice name"},{- "signal": "toc",- "weight": 3+ "pattern": "\\bcircuit judges\\b",+ "weight": 12,+ "name": "circuit judges panel"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "judg(e)?ment|opinion of the court",+ "flags": "gi",+ "weight": 12,+ "name": "Info title judgment/opinion"}]},{"id": "subpoena",- "name": "Subpoena",- "emit": true,"phrases": [{"text": "subpoena duces tecum",@@ -6561,21 +5081,38 @@"weight": 6}],- "regexes": [+ "negatives": [{- "pattern": "you are (hereby )?(commanded|summoned|required) to (appear|attend|produce|testify)",- "weight": 24,- "name": "command to appear/produce"+ "text": "motion to quash",+ "weight": 22,+ "name": "filing about a subpoena"},{- "pattern": "\\bao\\s?88[ab]?\\b",+ "text": "respectfully submitted","weight": 16,- "name": "AO 88 subpoena form code"+ "name": "party filing sign-off"+ },+ {+ "text": "memorandum in support",+ "weight": 14,+ "name": "motion brief vocab"+ },+ {+ "text": "particulars of claim",+ "weight": 14,+ "name": "UK pleading heading"},{- "pattern": "\\bn20\\b",+ "text": "prayer for relief","weight": 14,- "name": "UK N20 witness summons form"+ "name": "complaint vocab"+ }+ ],+ "regexes": [+ {+ "pattern": "you are (hereby )?(commanded|summoned|required) to (appear|attend|produce|testify)",+ "weight": 24,+ "name": "command to appear/produce"},{"pattern": "\\brule 45\\b",@@ -6583,29 +5120,7 @@"name": "FRCP Rule 45 reference"}],- "filenames": [- {- "pattern": "subpoena",- "weight": 30,- "name": "subpoena in filename"- },- {- "pattern": "witness[-_ ]?summons",- "weight": 28,- "name": "witness summons in filename"- },- {- "pattern": "duces[-_ ]?tecum",- "weight": 26,- "name": "duces tecum in filename"- },- {- "pattern": "(^|[^a-z0-9])summons([^a-z0-9]|$)",- "weight": 22,- "name": "summons in filename"- }- ],- "metadata": [+ "metadata": [{"field": "title","pattern": "subpoena|summons",@@ -6613,53 +5128,10 @@"weight": 14,"name": "Info title subpoena/summons"}- ],- "negatives": [- {- "text": "motion to quash",- "weight": 22,- "name": "filing about a subpoena"- },- {- "text": "respectfully submitted",- "weight": 16,- "name": "party filing sign-off"- },- {- "text": "memorandum in support",- "weight": 14,- "name": "motion brief vocab"- },- {- "text": "particulars of claim",- "weight": 14,- "name": "UK pleading heading"- },- {- "text": "prayer for relief",- "weight": 14,- "name": "complaint vocab"- }- ],- "structural": [- {- "signal": "form_like",- "weight": 7- },- {- "signal": "short_doc",- "weight": 6- },- {- "signal": "address_block",- "weight": 3- }]},{"id": "settlement-agreement",- "name": "Settlement agreement",- "emit": true,"phrases": [{"text": "settlement agreement",@@ -6711,54 +5183,6 @@"weight": 8}],- "regexes": [- {- "pattern": "\\bcot[- ]?3\\b",- "weight": 22,- "name": "ACAS COT3 form"- },- {- "pattern": "releases? and forever discharges?",- "weight": 22,- "name": "release and discharge clause"- },- {- "pattern": "in full and final (settlement|satisfaction) of",- "weight": 20,- "name": "full and final clause"- },- {- "pattern": "\\bacas\\b",- "weight": 14,- "name": "ACAS conciliation"- }- ],- "filenames": [- {- "pattern": "settlement",- "weight": 28,- "name": "settlement in filename"- },- {- "pattern": "(^|[^a-z0-9])cot3([^a-z0-9]|$)",- "weight": 26,- "name": "COT3 in filename"- },- {- "pattern": "release[-_ ]?agreement",- "weight": 18,- "name": "release agreement in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "settlement",- "flags": "gi",- "weight": 14,- "name": "Info title settlement"- }- ],"negatives": [{"text": "policy number",@@ -6791,21 +5215,35 @@"name": "purchase/M&A vocab"}],- "structural": [+ "regexes": [{- "signal": "signature_block",- "weight": 8+ "pattern": "releases? and forever discharges?",+ "weight": 22,+ "name": "release and discharge clause"+ },+ {+ "pattern": "in full and final (settlement|satisfaction) of",+ "weight": 20,+ "name": "full and final clause"},{- "signal": "currency_heavy",- "weight": 3+ "pattern": "\\bacas\\b",+ "weight": 14,+ "name": "ACAS conciliation"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "settlement",+ "flags": "gi",+ "weight": 14,+ "name": "Info title settlement"}]},{"id": "service-agreement",- "name": "Service agreement",- "emit": true,"phrases": [{"text": "letter of engagement",@@ -6922,77 +5360,6 @@"weight": 6}],- "regexes": [- {- "pattern": "(will|shall) be (charged|billed) at",- "weight": 12,- "name": "billed/charged at clause"- },- {- "pattern": "sign and return (the )?(enclosed|attached|a) copy",- "weight": 12,- "name": "sign-and-return instruction"- },- {- "pattern": "\\bmsa\\b",- "flags": "gi",- "weight": 12,- "name": "MSA abbreviation"- },- {- "pattern": "\\bsow[s]?\\b",- "flags": "gi",- "weight": 14,- "name": "SOW reference"- },- {- "pattern": "exhibit [a-e]\\b",- "flags": "gi",- "weight": 10,- "name": "Contract exhibits"- }- ],- "filenames": [- {- "pattern": "engagement[-_ ]?letter|letter[-_ ]?of[-_ ]?engagement",- "weight": 28,- "name": "engagement letter in filename"- },- {- "pattern": "client[-_ ]?care",- "weight": 26,- "name": "client care in filename"- },- {- "pattern": "retainer",- "weight": 20,- "name": "retainer in filename"- },- {- "pattern": "terms[-_ ]?of[-_ ]?business",- "weight": 18,- "name": "terms of business in filename"- },- {- "pattern": "\\bmsa\\b|master[-_ ]?servic",- "weight": 26,- "name": "MSA in filename"- },- {- "pattern": "framework[-_ ]?agreement",- "weight": 22,- "name": "Framework agreement filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "engagement letter|letter of engagement|client care",- "flags": "gi",- "weight": 14,- "name": "Info title engagement"- }- ],"negatives": [{"text": "pleased to offer you",@@ -7045,29 +5412,36 @@"name": "Employment contract"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 6+ "pattern": "(will|shall) be (charged|billed) at",+ "weight": 12,+ "name": "billed/charged at clause"},{- "signal": "address_block",- "weight": 5+ "pattern": "sign and return (the )?(enclosed|attached|a) copy",+ "weight": 12,+ "name": "sign-and-return instruction"},{- "signal": "signature_block",- "weight": 3- },+ "pattern": "exhibit [a-e]\\b",+ "flags": "gi",+ "weight": 10,+ "name": "Contract exhibits"+ }+ ],+ "metadata": [{- "signal": "toc",- "weight": 4+ "field": "title",+ "pattern": "engagement letter|letter of engagement|client care",+ "flags": "gi",+ "weight": 14,+ "name": "Info title engagement"}]},{"id": "privacy-policy",- "name": "Privacy policy",- "emit": true,"phrases": [{"text": "privacy policy",@@ -7120,28 +5494,6 @@"weight": 16}],- "regexes": [- {- "pattern": "\\bgdpr\\b|\\bccpa\\b|\\buk gdpr\\b",- "flags": "gi",- "weight": 14,- "name": "Privacy regulation"- },- {- "pattern": "article \\d{1,2} of the gdpr",- "flags": "gi",- "weight": 16,- "name": "GDPR article reference"- }- ],- "filenames": [- {- "pattern": "privacy[-_ ]?(policy|notice)",- "weight": 26,- "name": "Privacy policy filename"- }- ],- "metadata": [],"negatives": [{"text": "terms of service",@@ -7164,17 +5516,23 @@"name": "DPA vocabulary"}],- "structural": [+ "regexes": [{- "signal": "url_heavy",- "weight": 4+ "pattern": "\\bgdpr\\b|\\bccpa\\b|\\buk gdpr\\b",+ "flags": "gi",+ "weight": 14,+ "name": "Privacy regulation"+ },+ {+ "pattern": "article \\d{1,2} of the gdpr",+ "flags": "gi",+ "weight": 16,+ "name": "GDPR article reference"}]},{"id": "resume",- "name": "Resume",- "emit": true,"phrases": [{"text": "curriculum vitae",@@ -7237,6 +5595,28 @@"weight": 8}],+ "negatives": [+ {+ "text": "dear hiring manager",+ "weight": 20,+ "name": "cover letter salutation"+ },+ {+ "text": "we are seeking",+ "weight": 18,+ "name": "job description language"+ },+ {+ "text": "pleased to offer you",+ "weight": 18,+ "name": "offer letter language"+ },+ {+ "text": "letter of recommendation",+ "weight": 15,+ "name": "reference letter heading"+ }+ ],"regexes": [{"pattern": "linkedin\\.com/in/[a-z0-9-]{3,40}",@@ -7267,23 +5647,6 @@"name": "Skills section heading"}],- "filenames": [- {- "pattern": "resume",- "weight": 26,- "name": "resume in filename"- },- {- "pattern": "(^|[^a-z])cv([^a-z]|$)",- "weight": 22,- "name": "cv in filename"- },- {- "pattern": "curriculum",- "weight": 24,- "name": "curriculum in filename"- }- ],"metadata": [{"field": "title",@@ -7291,45 +5654,11 @@"weight": 14,"name": "Resume/CV in PDF title"}- ],- "negatives": [- {- "text": "dear hiring manager",- "weight": 20,- "name": "cover letter salutation"- },- {- "text": "we are seeking",- "weight": 18,- "name": "job description language"- },- {- "text": "pleased to offer you",- "weight": 18,- "name": "offer letter language"- },- {- "text": "letter of recommendation",- "weight": 15,- "name": "reference letter heading"- }- ],- "structural": [- {- "signal": "short_doc",- "weight": 5- },- {- "signal": "bullet_heavy",- "weight": 6- }- ]- },- {- "id": "cover-letter",- "name": "Cover letter",- "emit": true,- "phrases": [+ ]+ },+ {+ "id": "cover-letter",+ "phrases": [{"text": "dear hiring manager","weight": 30,@@ -7384,38 +5713,6 @@"weight": 16}],- "regexes": [- {- "pattern": "\\bre:?\\s+application for\\b",- "weight": 16,- "name": "Re: application for subject line"- }- ],- "filenames": [- {- "pattern": "cover[_ -]?letter",- "weight": 28,- "name": "cover letter in filename"- },- {- "pattern": "covering[_ -]?letter",- "weight": 26,- "name": "covering letter in filename"- },- {- "pattern": "application[_ -]?letter",- "weight": 20,- "name": "application letter in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "cover(ing)? letter",- "weight": 14,- "name": "Cover letter in PDF title"- }- ],"negatives": [{"text": "curriculum vitae",@@ -7438,21 +5735,24 @@"name": "resume closing line"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 6- },+ "pattern": "\\bre:?\\s+application for\\b",+ "weight": 16,+ "name": "Re: application for subject line"+ }+ ],+ "metadata": [{- "signal": "address_block",- "weight": 4+ "field": "title",+ "pattern": "cover(ing)? letter",+ "weight": 14,+ "name": "Cover letter in PDF title"}]},{"id": "job-description",- "name": "Job description",- "emit": true,"phrases": [{"text": "job description",@@ -7515,48 +5815,6 @@"weight": 12}],- "regexes": [- {- "pattern": "[$£€]\\s?\\d{2,3},\\d{3}\\s*(-|–|to)\\s*[$£€]?\\s?\\d{2,3},\\d{3}",- "weight": 14,- "name": "Salary range figures"- },- {- "pattern": "what you['’]ll (do|bring|need)",- "weight": 24,- "name": "What you'll do/bring heading (both apostrophes)"- }- ],- "filenames": [- {- "pattern": "job[_ -]?description",- "weight": 28,- "name": "job description in filename"- },- {- "pattern": "(^|[^a-z])jd([^a-z]|$)",- "weight": 18,- "name": "jd in filename"- },- {- "pattern": "role[_ -]?profile",- "weight": 24,- "name": "role profile in filename"- },- {- "pattern": "(posting|vacancy|advert)",- "weight": 16,- "name": "vacancy/posting in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "job description|role profile",- "weight": 14,- "name": "Job description in PDF title"- }- ],"negatives": [{"text": "pleased to offer you",@@ -7579,17 +5837,29 @@"name": "contract language"}],- "structural": [+ "regexes": [{- "signal": "bullet_heavy",- "weight": 6+ "pattern": "[$£€]\\s?\\d{2,3},\\d{3}\\s*(-|–|to)\\s*[$£€]?\\s?\\d{2,3},\\d{3}",+ "weight": 14,+ "name": "Salary range figures"+ },+ {+ "pattern": "what you['’]ll (do|bring|need)",+ "weight": 24,+ "name": "What you'll do/bring heading (both apostrophes)"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "job description|role profile",+ "weight": 14,+ "name": "Job description in PDF title"}]},{"id": "offer-letter",- "name": "Offer letter",- "emit": true,"phrases": [{"text": "pleased to offer you",@@ -7650,38 +5920,6 @@"weight": 18}],- "regexes": [- {- "pattern": "salary of\\s+[$£€]?\\s?\\d{2,3},\\d{3}",- "weight": 16,- "name": "salary of $X figure"- }- ],- "filenames": [- {- "pattern": "offer[_ -]?letter",- "weight": 28,- "name": "offer letter in filename"- },- {- "pattern": "offer[_ -]?of[_ -]?employment",- "weight": 28,- "name": "offer of employment in filename"- },- {- "pattern": "job[_ -]?offer",- "weight": 24,- "name": "job offer in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "offer (letter|of employment)",- "weight": 14,- "name": "Offer letter in PDF title"- }- ],"negatives": [{"text": "we are seeking",@@ -7709,21 +5947,24 @@"name": "employment contract language"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 4- },+ "pattern": "salary of\\s+[$£€]?\\s?\\d{2,3},\\d{3}",+ "weight": 16,+ "name": "salary of $X figure"+ }+ ],+ "metadata": [{- "signal": "signature_block",- "weight": 5+ "field": "title",+ "pattern": "offer (letter|of employment)",+ "weight": 14,+ "name": "Offer letter in PDF title"}]},{"id": "reference-letter",- "name": "Reference letter",- "emit": true,"phrases": [{"text": "letter of recommendation",@@ -7782,38 +6023,6 @@"weight": 18}],- "regexes": [- {- "pattern": "\\brecommend (him|her|them)\\b",- "weight": 16,- "name": "recommend him/her/them"- }- ],- "filenames": [- {- "pattern": "(reference|recommendation)[_ -]?letter",- "weight": 28,- "name": "reference/recommendation letter in filename"- },- {- "pattern": "letter[_ -]?of[_ -]?(reference|recommendation)",- "weight": 28,- "name": "letter of reference in filename"- },- {- "pattern": "char(acter)?[_ -]?ref",- "weight": 22,- "name": "character reference in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "letter of recommendation|reference letter|character reference",- "weight": 14,- "name": "Reference letter in PDF title"- }- ],"negatives": [{"text": "reference range",@@ -7831,21 +6040,24 @@"name": "cover letter language"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 6- },+ "pattern": "\\brecommend (him|her|them)\\b",+ "weight": 16,+ "name": "recommend him/her/them"+ }+ ],+ "metadata": [{- "signal": "signature_block",- "weight": 5+ "field": "title",+ "pattern": "letter of recommendation|reference letter|character reference",+ "weight": 14,+ "name": "Reference letter in PDF title"}]},{"id": "employment-contract",- "name": "Employment contract",- "emit": true,"phrases": [{"text": "contract of employment",@@ -7906,33 +6118,6 @@"weight": 18}],- "regexes": [- {- "pattern": "\\((the\\s+)?[\"“]?(employer|employee)[\"”]?\\)",- "weight": 20,- "name": "Employer/Employee defined term"- }- ],- "filenames": [- {- "pattern": "employment[_ -]?(contract|agreement)",- "weight": 28,- "name": "employment contract in filename"- },- {- "pattern": "contract[_ -]?of[_ -]?employment",- "weight": 28,- "name": "contract of employment in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "employment (agreement|contract)|contract of employment",- "weight": 14,- "name": "Employment contract in PDF title"- }- ],"negatives": [{"text": "landlord",@@ -7955,25 +6140,24 @@"name": "offer letter language"}],- "structural": [- {- "signal": "signature_block",- "weight": 6- },+ "regexes": [{- "signal": "long_doc",- "weight": 4- },+ "pattern": "\\((the\\s+)?[\"“]?(employer|employee)[\"”]?\\)",+ "weight": 20,+ "name": "Employer/Employee defined term"+ }+ ],+ "metadata": [{- "signal": "toc",- "weight": 3+ "field": "title",+ "pattern": "employment (agreement|contract)|contract of employment",+ "weight": 14,+ "name": "Employment contract in PDF title"}]},{"id": "timesheet",- "name": "Timesheet",- "emit": true,"phrases": [{"text": "timesheet",@@ -8030,6 +6214,23 @@"weight": 8}],+ "negatives": [+ {+ "text": "invoice number",+ "weight": 20,+ "name": "invoice field"+ },+ {+ "text": "net pay",+ "weight": 20,+ "name": "payslip field"+ },+ {+ "text": "remittance",+ "weight": 15,+ "name": "remittance advice term"+ }+ ],"regexes": [{"pattern": "\\bmon(day)?\\s+tue(sday)?\\s+wed(nesday)?\\b",@@ -8047,62 +6248,17 @@"name": "Hours total (e.g. Hours: 40.00)"}],- "filenames": [- {- "pattern": "time[_ -]?sheet",- "weight": 30,- "name": "timesheet in filename"- },- {- "pattern": "(^|[^a-z])hours([^a-z]|$)",- "weight": 12,- "name": "hours in filename"- }- ],- "metadata": [+ "metadata": [{"field": "title","pattern": "time ?sheet","weight": 14,"name": "Timesheet in PDF title"}- ],- "negatives": [- {- "text": "invoice number",- "weight": 20,- "name": "invoice field"- },- {- "text": "net pay",- "weight": 20,- "name": "payslip field"- },- {- "text": "remittance",- "weight": 15,- "name": "remittance advice term"- }- ],- "structural": [- {- "signal": "number_table",- "weight": 8- },- {- "signal": "form_like",- "weight": 5- },- {- "signal": "short_doc",- "weight": 5- }]},{"id": "performance-review",- "name": "Performance review",- "emit": true,"phrases": [{"text": "performance review",@@ -8160,43 +6316,6 @@"weight": 18}],- "regexes": [- {- "pattern": "\\b5\\s*[-=–]\\s*(exceptional|outstanding|exceeds)",- "weight": 16,- "name": "Rating scale legend (5 = Exceptional)"- },- {- "pattern": "overall rating\\s*[:=]?\\s*[1-5]\\b",- "weight": 14,- "name": "Overall rating score"- }- ],- "filenames": [- {- "pattern": "performance[_ -]?review",- "weight": 28,- "name": "performance review in filename"- },- {- "pattern": "appraisal",- "weight": 18,- "name": "appraisal in filename"- },- {- "pattern": "perf[_ -]?review",- "weight": 22,- "name": "perf review in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "performance (review|appraisal)|appraisal",- "weight": 12,- "name": "Performance review in PDF title"- }- ],"negatives": [{"text": "tax return",@@ -8219,21 +6338,29 @@"name": "property appraisal term"}],- "structural": [+ "regexes": [{- "signal": "form_like",- "weight": 5+ "pattern": "\\b5\\s*[-=–]\\s*(exceptional|outstanding|exceeds)",+ "weight": 16,+ "name": "Rating scale legend (5 = Exceptional)"},{- "signal": "number_table",- "weight": 3+ "pattern": "overall rating\\s*[:=]?\\s*[1-5]\\b",+ "weight": 14,+ "name": "Overall rating score"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "performance (review|appraisal)|appraisal",+ "weight": 12,+ "name": "Performance review in PDF title"}]},{"id": "employee-handbook",- "name": "Employee handbook",- "emit": true,"phrases": [{"text": "employee handbook",@@ -8286,15 +6413,6 @@"weight": 14}],- "regexes": [],- "filenames": [- {- "pattern": "(employee|staff)[-_ ]?handbook",- "weight": 28,- "name": "Handbook filename"- }- ],- "metadata": [],"negatives": [{"text": "employment agreement",@@ -8311,26 +6429,10 @@"weight": 16,"name": "CV"}- ],- "structural": [- {- "signal": "toc",- "weight": 8- },- {- "signal": "long_doc",- "weight": 4- },- {- "signal": "bullet_heavy",- "weight": 4- }]},{"id": "risk-assessment",- "name": "Risk assessment",- "emit": true,"phrases": [{"text": "penetration test report",@@ -8434,6 +6536,43 @@"weight": 12}],+ "negatives": [+ {+ "text": "functional requirements",+ "weight": 14,+ "name": "tech spec vocab"+ },+ {+ "text": "api reference",+ "weight": 12,+ "name": "software doc vocab"+ },+ {+ "text": "trust services criteria",+ "weight": 20,+ "name": "SOC 2 report vocab"+ },+ {+ "text": "auditor's opinion",+ "weight": 16,+ "name": "SOC 2 opinion vocab"+ },+ {+ "text": "cvss",+ "weight": 14,+ "name": "pentest report vocab"+ },+ {+ "text": "indicators of compromise",+ "weight": 12,+ "name": "incident report vocab"+ },+ {+ "text": "containment and eradication",+ "weight": 12,+ "name": "incident report vocab"+ }+ ],"regexes": [{"pattern": "cvss\\s*(v?3(\\.\\d)?)?\\s*(score|base score)?\\s*[:=]?\\s*\\d(\\.\\d)?",@@ -8453,12 +6592,6 @@"weight": 14,"name": "finding number"},- {- "pattern": "\\ba0[1-9]:20\\d{2}\\b",- "flags": "gi",- "weight": 16,- "name": "OWASP category code"- },{"pattern": "engagement\\s+(dates?|window)","flags": "gi",@@ -8484,38 +6617,6 @@"name": "risk matrix dimensions"}],- "filenames": [- {- "pattern": "pen[\\s_-]?test|penetration[\\s_-]?test",- "weight": 28,- "name": "pentest in filename"- },- {- "pattern": "(^|[^a-z0-9])vapt([^a-z0-9]|$)",- "weight": 22,- "name": "VAPT abbreviation"- },- {- "pattern": "security[\\s_-]?assessment",- "weight": 16,- "name": "security assessment filename"- },- {- "pattern": "risk[\\s_-]?assessment",- "weight": 28,- "name": "risk assessment filename"- },- {- "pattern": "risk[\\s_-]?register",- "weight": 26,- "name": "risk register filename"- },- {- "pattern": "risk[\\s_-]?matrix",- "weight": 18,- "name": "risk matrix filename"- }- ],"metadata": [{"field": "title",@@ -8529,67 +6630,10 @@"weight": 14,"name": "Info title risk assessment"}- ],- "negatives": [- {- "text": "functional requirements",- "weight": 14,- "name": "tech spec vocab"- },- {- "text": "api reference",- "weight": 12,- "name": "software doc vocab"- },- {- "text": "trust services criteria",- "weight": 20,- "name": "SOC 2 report vocab"- },- {- "text": "auditor's opinion",- "weight": 16,- "name": "SOC 2 opinion vocab"- },- {- "text": "cvss",- "weight": 14,- "name": "pentest report vocab"- },- {- "text": "indicators of compromise",- "weight": 12,- "name": "incident report vocab"- },- {- "text": "containment and eradication",- "weight": 12,- "name": "incident report vocab"- }- ],- "structural": [- {- "signal": "number_table",- "weight": 8- },- {- "signal": "toc",- "weight": 4- },- {- "signal": "long_doc",- "weight": 3- },- {- "signal": "form_like",- "weight": 3- }]},{"id": "audit-report",- "name": "Audit report",- "emit": true,"phrases": [{"text": "soc 2 type ii",@@ -8642,51 +6686,6 @@"weight": 10}],- "regexes": [- {- "pattern": "soc\\s*2\\s*type\\s*(i{1,2}|1|2)",- "flags": "gi",- "weight": 24,- "name": "SOC 2 Type I/II"- },- {- "pattern": "iso\\s*/?\\s*iec\\s*27001(:\\d{4})?",- "flags": "gi",- "weight": 20,- "name": "ISO 27001 reference"- },- {- "pattern": "\\d{1,2}[/.-]\\d{1,2}[/.-]\\d{2,4}\\s*(to|through|-)\\s*\\d{1,2}[/.-]\\d{1,2}[/.-]\\d{2,4}",- "flags": "gi",- "weight": 14,- "name": "audit period date range"- }- ],- "filenames": [- {- "pattern": "soc[\\s_-]?2",- "weight": 28,- "name": "SOC 2 in filename"- },- {- "pattern": "type[\\s_-]?ii",- "weight": 16,- "name": "Type II in filename"- },- {- "pattern": "iso[\\s_-]?27001",- "weight": 20,- "name": "ISO 27001 filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "soc\\s*2|type\\s*ii|iso\\s*27001",- "weight": 14,- "name": "Info title SOC 2"- }- ],"negatives": [{"text": "certificate of liability insurance",@@ -8709,25 +6708,31 @@"name": "financial statement vocab"}],- "structural": [+ "regexes": [{- "signal": "long_doc",- "weight": 5+ "pattern": "soc\\s*2\\s*type\\s*(i{1,2}|1|2)",+ "flags": "gi",+ "weight": 24,+ "name": "SOC 2 Type I/II"},{- "signal": "toc",- "weight": 4- },+ "pattern": "\\d{1,2}[/.-]\\d{1,2}[/.-]\\d{2,4}\\s*(to|through|-)\\s*\\d{1,2}[/.-]\\d{1,2}[/.-]\\d{2,4}",+ "flags": "gi",+ "weight": 14,+ "name": "audit period date range"+ }+ ],+ "metadata": [{- "signal": "signature_block",- "weight": 3+ "field": "title",+ "pattern": "soc\\s*2|type\\s*ii|iso\\s*27001",+ "weight": 14,+ "name": "Info title SOC 2"}]},{"id": "compliance-document",- "name": "Compliance document",- "emit": true,"phrases": [{"text": "information security policy",@@ -8928,179 +6933,6 @@"weight": 12}],- "regexes": [- {- "pattern": "policy\\s+(owner|approved by|effective date)\\s*[:]",- "flags": "gi",- "weight": 14,- "name": "policy metadata field"- },- {- "pattern": "review(ed)?\\s+(annually|every\\s+\\d{1,2}\\s+(months|years))",- "flags": "gi",- "weight": 12,- "name": "policy review cadence"- },- {- "pattern": "\\biso\\s?27001\\b",- "flags": "gi",- "weight": 12,- "name": "ISO 27001 reference"- },- {- "pattern": "\\brto\\b",- "flags": "gi",- "weight": 12,- "name": "RTO abbreviation"- },- {- "pattern": "\\brpo\\b",- "flags": "gi",- "weight": 12,- "name": "RPO abbreviation"- },- {- "pattern": "recovery\\s+time\\s+objective\\s*[:=]?\\s*\\d{1,3}\\s*(hours?|minutes?|days?)",- "flags": "gi",- "weight": 18,- "name": "RTO with value"- },- {- "pattern": "tier\\s*[1-4]\\s*(system|application)",- "flags": "gi",- "weight": 12,- "name": "recovery tier classification"- },- {- "pattern": "pci\\s*dss",- "flags": "gi",- "weight": 18,- "name": "PCI DSS reference"- },- {- "pattern": "hipaa\\s*(security|privacy)?\\s*rule",- "flags": "gi",- "weight": 16,- "name": "HIPAA rule reference"- },- {- "pattern": "\\bfedramp\\b",- "flags": "gi",- "weight": 14,- "name": "FedRAMP reference"- },- {- "pattern": "compliance\\s+(status|rate)\\s*[:=]?\\s*\\d{1,3}\\s*%",- "flags": "gi",- "weight": 14,- "name": "compliance percentage"- },- {- "pattern": "\\b\\d{4}/\\d{1,3}/(eu|ec|eec)\\b",- "flags": "gi",- "weight": 22,- "name": "eu directive number"- },- {- "pattern": "regulation\\s?\\(eu\\)\\s?\\d{4}/\\d{3,4}",- "flags": "gi",- "weight": 18,- "name": "eu regulation number"- },- {- "pattern": "\\b(bs\\s?)?en\\s?(iso\\s?|iec\\s?)?\\d{3,5}([-:]\\d{1,4}){0,3}",- "flags": "gi",- "weight": 12,- "name": "en standard reference"- }- ],- "filenames": [- {- "pattern": "information[\\s_-]?security[\\s_-]?polic",- "weight": 28,- "name": "information security policy filename"- },- {- "pattern": "security[\\s_-]?polic(y|ies)",- "weight": 24,- "name": "security policy filename"- },- {- "pattern": "infosec[\\s_-]?polic",- "weight": 22,- "name": "infosec policy filename"- },- {- "pattern": "acceptable[\\s_-]?use[\\s_-]?polic",- "weight": 18,- "name": "AUP filename"- },- {- "pattern": "business[\\s_-]?continuity",- "weight": 28,- "name": "BCP filename"- },- {- "pattern": "disaster[\\s_-]?recovery",- "weight": 26,- "name": "DR plan filename"- },- {- "pattern": "(^|[^a-z0-9])(bcp|drp)([^a-z0-9]|$)",- "weight": 20,- "name": "BCP/DRP abbreviation"- },- {- "pattern": "compliance[\\s_-]?report",- "weight": 28,- "name": "compliance report filename"- },- {- "pattern": "compliance[\\s_-]?assessment",- "weight": 22,- "name": "compliance assessment filename"- },- {- "pattern": "(^|[^a-z0-9])(aoc|pci[\\s_-]?dss)([^a-z0-9]|$)",- "weight": 20,- "name": "AOC/PCI DSS abbreviation"- },- {- "pattern": "declaration[\\s_-]*of[\\s_-]*conformity",- "weight": 26,- "name": "doc filename"- },- {- "pattern": "(^|[^a-z0-9])(coc|cofc|dofc)([^a-z0-9]|$)",- "weight": 18,- "name": "coc abbreviation"- },- {- "pattern": "conformity",- "weight": 16,- "name": "conformity keyword"- }- ],- "metadata": [- {- "field": "title",- "pattern": "information security policy|security policy",- "weight": 14,- "name": "Info title security policy"- },- {- "field": "title",- "pattern": "business continuity|disaster recovery",- "weight": 14,- "name": "Info title BCP/DR"- },- {- "field": "title",- "pattern": "compliance report|compliance assessment|attestation of compliance",- "weight": 14,- "name": "Info title compliance report"- }- ],"negatives": [{"text": "by accessing or using",@@ -9198,37 +7030,79 @@"name": "mill cert table"}],- "structural": [+ "regexes": [{- "signal": "toc",- "weight": 4+ "pattern": "policy\\s+(owner|approved by|effective date)\\s*[:]",+ "flags": "gi",+ "weight": 14,+ "name": "policy metadata field"},{- "signal": "long_doc",- "weight": 3+ "pattern": "review(ed)?\\s+(annually|every\\s+\\d{1,2}\\s+(months|years))",+ "flags": "gi",+ "weight": 12,+ "name": "policy review cadence"},{- "signal": "bullet_heavy",- "weight": 4+ "pattern": "recovery\\s+time\\s+objective\\s*[:=]?\\s*\\d{1,3}\\s*(hours?|minutes?|days?)",+ "flags": "gi",+ "weight": 18,+ "name": "RTO with value"},{- "signal": "number_table",- "weight": 6+ "pattern": "tier\\s*[1-4]\\s*(system|application)",+ "flags": "gi",+ "weight": 12,+ "name": "recovery tier classification"},{- "signal": "short_doc",- "weight": 8+ "pattern": "hipaa\\s*(security|privacy)?\\s*rule",+ "flags": "gi",+ "weight": 16,+ "name": "HIPAA rule reference"},{- "signal": "signature_block",- "weight": 6+ "pattern": "\\bfedramp\\b",+ "flags": "gi",+ "weight": 14,+ "name": "FedRAMP reference"+ },+ {+ "pattern": "compliance\\s+(status|rate)\\s*[:=]?\\s*\\d{1,3}\\s*%",+ "flags": "gi",+ "weight": 14,+ "name": "compliance percentage"+ },+ {+ "pattern": "regulation\\s?\\(eu\\)\\s?\\d{4}/\\d{3,4}",+ "flags": "gi",+ "weight": 18,+ "name": "eu regulation number"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "information security policy|security policy",+ "weight": 14,+ "name": "Info title security policy"+ },+ {+ "field": "title",+ "pattern": "business continuity|disaster recovery",+ "weight": 14,+ "name": "Info title BCP/DR"+ },+ {+ "field": "title",+ "pattern": "compliance report|compliance assessment|attestation of compliance",+ "weight": 14,+ "name": "Info title compliance report"}]},{"id": "incident-report",- "name": "Incident report",- "emit": true,"phrases": [{"text": "security incident report",@@ -9299,62 +7173,6 @@"weight": 20}],- "regexes": [- {- "pattern": "incident\\s*(id|number|ref(erence)?)\\s*[:#]?\\s*[a-z0-9-]{3,15}",- "flags": "gi",- "weight": 16,- "name": "incident ID"- },- {- "pattern": "\\bioc(s)?\\b",- "flags": "gi",- "weight": 12,- "name": "IOC abbreviation"- },- {- "pattern": "detected\\s+(on|at)\\s+\\d{1,2}[/.-]\\d{1,2}[/.-]\\d{2,4}",- "flags": "gi",- "weight": 14,- "name": "detection date"- },- {- "pattern": "mean\\s+time\\s+to\\s+(detect|contain|respond)",- "flags": "gi",- "weight": 16,- "name": "MTTD/MTTC/MTTR"- }- ],- "filenames": [- {- "pattern": "security[\\s_-]?incident",- "weight": 26,- "name": "security incident filename"- },- {- "pattern": "incident[\\s_-]?report",- "weight": 24,- "name": "incident report filename"- },- {- "pattern": "breach[\\s_-]?report",- "weight": 22,- "name": "breach report filename"- },- {- "pattern": "post[\\s_-]?mortem",- "weight": 18,- "name": "postmortem filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "incident report|breach notification|post-incident",- "weight": 14,- "name": "Info title incident report"- }- ],"negatives": [{"text": "call to order",@@ -9377,25 +7195,37 @@"name": "risk assessment vocab"}],- "structural": [+ "regexes": [{- "signal": "number_table",- "weight": 6+ "pattern": "incident\\s*(id|number|ref(erence)?)\\s*[:#]?\\s*[a-z0-9-]{3,15}",+ "flags": "gi",+ "weight": 16,+ "name": "incident ID"},{- "signal": "toc",- "weight": 3+ "pattern": "detected\\s+(on|at)\\s+\\d{1,2}[/.-]\\d{1,2}[/.-]\\d{2,4}",+ "flags": "gi",+ "weight": 14,+ "name": "detection date"},{- "signal": "signature_block",- "weight": 3+ "pattern": "mean\\s+time\\s+to\\s+(detect|contain|respond)",+ "flags": "gi",+ "weight": 16,+ "name": "MTTD/MTTC/MTTR"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "incident report|breach notification|post-incident",+ "weight": 14,+ "name": "Info title incident report"}]},{"id": "questionnaire",- "name": "Questionnaire",- "emit": true,"phrases": [{"text": "vendor security questionnaire",@@ -9449,6 +7279,23 @@"weight": 6}],+ "negatives": [+ {+ "text": "cvss",+ "weight": 12,+ "name": "pentest report vocab"+ },+ {+ "text": "trust services criteria",+ "weight": 14,+ "name": "SOC 2 report vocab"+ },+ {+ "text": "auditor's opinion",+ "weight": 12,+ "name": "SOC 2 opinion vocab"+ }+ ],"regexes": [{"pattern": "\\bsig\\s?(lite|core)\\b",@@ -9475,28 +7322,6 @@"name": "numbered question"}],- "filenames": [- {- "pattern": "security[\\s_-]?questionnaire",- "weight": 28,- "name": "security questionnaire filename"- },- {- "pattern": "vendor[\\s_-]?risk",- "weight": 20,- "name": "vendor risk filename"- },- {- "pattern": "(^|[^a-z0-9])(sig|caiq)([^a-z0-9]|$)",- "weight": 22,- "name": "SIG/CAIQ abbreviation filename"- },- {- "pattern": "due[\\s_-]?diligence",- "weight": 16,- "name": "due diligence filename"- }- ],"metadata": [{"field": "title",@@ -9504,43 +7329,10 @@"weight": 14,"name": "Info title vendor questionnaire"}- ],- "negatives": [- {- "text": "cvss",- "weight": 12,- "name": "pentest report vocab"- },- {- "text": "trust services criteria",- "weight": 14,- "name": "SOC 2 report vocab"- },- {- "text": "auditor's opinion",- "weight": 12,- "name": "SOC 2 opinion vocab"- }- ],- "structural": [- {- "signal": "form_like",- "weight": 10- },- {- "signal": "bullet_heavy",- "weight": 4- },- {- "signal": "number_table",- "weight": 4- }]},{"id": "lab-report",- "name": "Lab report",- "emit": true,"phrases": [{"text": "laboratory report",@@ -9602,64 +7394,6 @@"weight": 12}],- "regexes": [- {- "pattern": "\\b\\d{1,4}(?:\\.\\d{1,3})?\\s?(?:mg\\/dl|mmol\\/l|g\\/dl|g\\/l|iu\\/l|u\\/l|ng\\/ml|mcg\\/dl|pg\\/ml|miu\\/l|umol\\/l|10\\^(?:9|12)\\/l|x10e(?:3|6)\\/ul)\\b",- "weight": 16,- "name": "Result value with lab units"- },- {- "pattern": "(?:mg\\/dl|mmol\\/l|g\\/dl|g\\/l|iu\\/l|u\\/l|ng\\/ml|umol\\/l|ug\\/l|fl|%)\\s?\\(\\s?\\d{1,4}(?:\\.\\d{1,3})?\\s?[-–]\\s?\\d{1,4}(?:\\.\\d{1,3})?\\s?\\)",- "weight": 14,- "name": "Bracketed reference range"- },- {- "pattern": "\\bclia\\s?(?:no\\.?|number|#)?\\s?:?\\s?\\d{2}d\\d{7}\\b",- "weight": 14,- "name": "CLIA number"- },- {- "pattern": "\\b(?:h(?:a)?emoglobin|h(?:a)?ematocrit|platelet count|white (?:blood )?cell count|creatinine|bilirubin|alkaline phosphatase|hba1c|tsh|egfr|ferritin)\\b",- "weight": 10,- "name": "Common lab analytes"- },- {- "pattern": "\\bcollected\\s?:?\\s?\\d{1,2}[\\/\\-]",- "weight": 10,- "name": "Collected date field"- }- ],- "filenames": [- {- "pattern": "lab[-_ .]?(results?|report|work)",- "weight": 26,- "name": "lab results filename"- },- {- "pattern": "blood[-_ .]?(test|work|results?)",- "weight": 22,- "name": "blood test filename"- },- {- "pattern": "path(ology)?[-_ .]?(report|results?)",- "weight": 18,- "name": "pathology filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "lab(oratory)?[ _-]?(results?|report)",- "weight": 14,- "name": "lab report in title"- },- {- "field": "any",- "pattern": "labcorp|quest diagnostics|sonora quest|bioreference",- "weight": 14,- "name": "reference lab vendor"- }- ],"negatives": [{"text": "explanation of benefits",@@ -9702,21 +7436,44 @@"name": "prescription language"}],- "structural": [+ "regexes": [{- "signal": "number_table",- "weight": 10+ "pattern": "\\b\\d{1,4}(?:\\.\\d{1,3})?\\s?(?:mg\\/dl|mmol\\/l|g\\/dl|g\\/l|iu\\/l|u\\/l|ng\\/ml|mcg\\/dl|pg\\/ml|miu\\/l|umol\\/l|10\\^(?:9|12)\\/l|x10e(?:3|6)\\/ul)\\b",+ "weight": 16,+ "name": "Result value with lab units"},{- "signal": "short_doc",- "weight": 4+ "pattern": "(?:mg\\/dl|mmol\\/l|g\\/dl|g\\/l|iu\\/l|u\\/l|ng\\/ml|umol\\/l|ug\\/l|fl|%)\\s?\\(\\s?\\d{1,4}(?:\\.\\d{1,3})?\\s?[-–]\\s?\\d{1,4}(?:\\.\\d{1,3})?\\s?\\)",+ "weight": 14,+ "name": "Bracketed reference range"+ },+ {+ "pattern": "\\bclia\\s?(?:no\\.?|number|#)?\\s?:?\\s?\\d{2}d\\d{7}\\b",+ "weight": 14,+ "name": "CLIA number"+ },+ {+ "pattern": "\\b(?:h(?:a)?emoglobin|h(?:a)?ematocrit|platelet count|white (?:blood )?cell count|creatinine|bilirubin|alkaline phosphatase|hba1c|tsh|egfr|ferritin)\\b",+ "weight": 10,+ "name": "Common lab analytes"+ },+ {+ "pattern": "\\bcollected\\s?:?\\s?\\d{1,2}[\\/\\-]",+ "weight": 10,+ "name": "Collected date field"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "lab(oratory)?[ _-]?(results?|report)",+ "weight": 14,+ "name": "lab report in title"}]},{"id": "prescription",- "name": "Prescription",- "emit": true,"phrases": [{"text": "dispense as written",@@ -9767,53 +7524,6 @@"weight": 8}],- "regexes": [- {- "pattern": "\\bdea\\s?(?:no\\.?|number|#)?\\s?:?\\s?[a-z]{2}\\d{7}\\b",- "weight": 25,- "name": "DEA number"- },- {- "pattern": "\\bndc\\s?:?\\s?\\d{4,5}-\\d{3,4}-\\d{1,2}\\b",- "weight": 20,- "name": "NDC code"- },- {- "pattern": "\\btake (?:one|two|1|2) (?:tablet|capsule|cap)s? by mouth\\b",- "weight": 18,- "name": "Sig dosing instruction"- },- {- "pattern": "\\brx\\s?(?:no\\.?|number|#)?\\s?:?\\s?\\d{5,10}\\b",- "weight": 16,- "name": "Rx number"- },- {- "pattern": "\\brefills?(?: remaining| left| authorized)?\\s?:?\\s?\\d{1,2}\\b",- "weight": 14,- "name": "Refill count"- }- ],- "filenames": [- {- "pattern": "prescription",- "weight": 26,- "name": "prescription filename"- },- {- "pattern": "(^|[^a-z])rx([^a-z]|$)",- "weight": 18,- "name": "rx token in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "prescription",- "weight": 12,- "name": "prescription in title"- }- ],"negatives": [{"text": "explanation of benefits",@@ -9841,21 +7551,39 @@"name": "insurance drug-list language"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 8+ "pattern": "\\bdea\\s?(?:no\\.?|number|#)?\\s?:?\\s?[a-z]{2}\\d{7}\\b",+ "weight": 25,+ "name": "DEA number"},{- "signal": "form_like",- "weight": 4+ "pattern": "\\btake (?:one|two|1|2) (?:tablet|capsule|cap)s? by mouth\\b",+ "weight": 18,+ "name": "Sig dosing instruction"+ },+ {+ "pattern": "\\brx\\s?(?:no\\.?|number|#)?\\s?:?\\s?\\d{5,10}\\b",+ "weight": 16,+ "name": "Rx number"+ },+ {+ "pattern": "\\brefills?(?: remaining| left| authorized)?\\s?:?\\s?\\d{1,2}\\b",+ "weight": 14,+ "name": "Refill count"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "prescription",+ "weight": 12,+ "name": "prescription in title"}]},{"id": "medical-report",- "name": "Medical report",- "emit": true,"phrases": [{"text": "discharge summary",@@ -9905,48 +7633,6 @@"weight": 10}],- "regexes": [- {- "pattern": "\\bconsultant (?:cardiologist|physician|dermatologist|neurologist|psychiatrist|surgeon|paediatrician|pediatrician|gastroenterologist|rheumatologist|endocrinologist|oncologist|urologist|ophthalmologist)\\b",- "weight": 16,- "name": "Consultant specialty sign-off"- },- {- "pattern": "\\bmrn\\s?(?:no\\.?|#)?\\s?:?\\s?[a-z0-9]{5,12}\\b",- "weight": 14,- "name": "Medical record number"- },- {- "pattern": "\\bnhs\\s?(?:no\\.?|number)\\s?:?\\s?\\d{3}\\s?\\d{3}\\s?\\d{4}\\b",- "weight": 10,- "name": "NHS number"- }- ],- "filenames": [- {- "pattern": "discharge[-_ .]?summary",- "weight": 24,- "name": "discharge summary filename"- },- {- "pattern": "(clinic|consult(ant)?|medical|dr)[-_ .]?letter",- "weight": 22,- "name": "clinic letter filename"- },- {- "pattern": "clinic[-_ .]?note",- "weight": 20,- "name": "clinic note filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "(clinic|discharge) (letter|summary)",- "weight": 12,- "name": "clinic letter in title"- }- ],"negatives": [{"text": "reason for referral",@@ -9974,21 +7660,29 @@"name": "EOB language"}],- "structural": [+ "regexes": [{- "signal": "address_block",- "weight": 6+ "pattern": "\\bconsultant (?:cardiologist|physician|dermatologist|neurologist|psychiatrist|surgeon|paediatrician|pediatrician|gastroenterologist|rheumatologist|endocrinologist|oncologist|urologist|ophthalmologist)\\b",+ "weight": 16,+ "name": "Consultant specialty sign-off"},{- "signal": "signature_block",- "weight": 5+ "pattern": "\\bnhs\\s?(?:no\\.?|number)\\s?:?\\s?\\d{3}\\s?\\d{3}\\s?\\d{4}\\b",+ "weight": 10,+ "name": "NHS number"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "(clinic|discharge) (letter|summary)",+ "weight": 12,+ "name": "clinic letter in title"}]},{"id": "immunization-record",- "name": "Immunization record",- "emit": true,"phrases": [{"text": "immunization record",@@ -10050,6 +7744,18 @@"weight": 8}],+ "negatives": [+ {+ "text": "reference range",+ "weight": 14,+ "name": "lab report language"+ },+ {+ "text": "explanation of benefits",+ "weight": 14,+ "name": "EOB language"+ }+ ],"regexes": [{"pattern": "\\b(?:comirnaty|spikevax|vaxzevria|nuvaxovid|gardasil|shingrix|havrix|engerix|stamaril|typhim|daptacel|varivax|fluzone|menactra|bexsero|pentacel|infanrix)\\b",@@ -10062,23 +7768,6 @@"name": "Lot/batch number"}],- "filenames": [- {- "pattern": "immuni[sz]",- "weight": 26,- "name": "immunization filename"- },- {- "pattern": "vaccin",- "weight": 24,- "name": "vaccine filename"- },- {- "pattern": "covid[-_ .]?(pass|cert|vacc|record)",- "weight": 20,- "name": "covid pass filename"- }- ],"metadata": [{"field": "title",@@ -10086,38 +7775,10 @@"weight": 12,"name": "vaccination in title"}- ],- "negatives": [- {- "text": "reference range",- "weight": 14,- "name": "lab report language"- },- {- "text": "explanation of benefits",- "weight": 14,- "name": "EOB language"- }- ],- "structural": [- {- "signal": "number_table",- "weight": 4- },- {- "signal": "form_like",- "weight": 4- },- {- "signal": "short_doc",- "weight": 5- }]},{"id": "medical-invoice",- "name": "Medical invoice",- "emit": true,"phrases": [{"text": "explanation of benefits",@@ -10178,6 +7839,28 @@"weight": 6}],+ "negatives": [+ {+ "text": "summary of benefits and coverage",+ "weight": 18,+ "name": "insurance policy language"+ },+ {+ "text": "reference range",+ "weight": 16,+ "name": "lab report language"+ },+ {+ "text": "policy period",+ "weight": 14,+ "name": "insurance policy language"+ },+ {+ "text": "kwh",+ "weight": 14,+ "name": "utility bill language"+ }+ ],"regexes": [{"pattern": "\\bcpt\\s?(?:code)?\\s?:?\\s?\\d{5}\\b",@@ -10199,39 +7882,12 @@"weight": 12,"name": "Claim number"},- {- "pattern": "\\b\\d{5}\\s?\\$\\d",- "weight": 12,- "name": "Procedure code before amount"- },{"pattern": "\\bmember id\\s?:?\\s?[a-z0-9]{6,14}\\b","weight": 10,"name": "Member ID"}],- "filenames": [- {- "pattern": "explanation[-_ .]?of[-_ .]?benefits",- "weight": 28,- "name": "explanation of benefits filename"- },- {- "pattern": "(^|[^a-z])eob([^a-z]|$)",- "weight": 22,- "name": "eob token in filename"- },- {- "pattern": "(medical|hospital)[-_ .]?bill",- "weight": 22,- "name": "medical bill filename"- },- {- "pattern": "billing[-_ .]?statement",- "weight": 18,- "name": "billing statement filename"- }- ],"metadata": [{"field": "title",@@ -10239,44 +7895,10 @@"weight": 12,"name": "EOB in title"}- ],- "negatives": [- {- "text": "summary of benefits and coverage",- "weight": 18,- "name": "insurance policy language"- },- {- "text": "reference range",- "weight": 16,- "name": "lab report language"- },- {- "text": "policy period",- "weight": 14,- "name": "insurance policy language"- },- {- "text": "kwh",- "weight": 14,- "name": "utility bill language"- }- ],- "structural": [- {- "signal": "currency_heavy",- "weight": 9- },- {- "signal": "number_table",- "weight": 6- }]},{"id": "referral-letter",- "name": "Referral letter",- "emit": true,"phrases": [{"text": "referral letter",@@ -10302,49 +7924,22 @@{"text": "referring gp","weight": 24- },- {- "text": "two week wait",- "weight": 24- },- {- "text": "grateful if you would see",- "weight": 24- },- {- "text": "referring provider",- "weight": 22- },- {- "text": "urgent referral",- "weight": 22- }- ],- "regexes": [- {- "pattern": "\\bnhs\\s?(?:no\\.?|number)\\s?:?\\s?\\d{3}\\s?\\d{3}\\s?\\d{4}\\b",- "weight": 10,- "name": "NHS number"- }- ],- "filenames": [+ },{- "pattern": "referral",- "weight": 26,- "name": "referral filename"+ "text": "two week wait",+ "weight": 24},{- "pattern": "refer(red|ring)",- "weight": 16,- "name": "referred/referring filename"- }- ],- "metadata": [+ "text": "grateful if you would see",+ "weight": 24+ },{- "field": "title",- "pattern": "referral",- "weight": 14,- "name": "referral in title"+ "text": "referring provider",+ "weight": 22+ },+ {+ "text": "urgent referral",+ "weight": 22}],"negatives": [@@ -10374,25 +7969,24 @@"name": "EOB language"}],- "structural": [- {- "signal": "address_block",- "weight": 6- },+ "regexes": [{- "signal": "signature_block",- "weight": 5- },+ "pattern": "\\bnhs\\s?(?:no\\.?|number)\\s?:?\\s?\\d{3}\\s?\\d{3}\\s?\\d{4}\\b",+ "weight": 10,+ "name": "NHS number"+ }+ ],+ "metadata": [{- "signal": "short_doc",- "weight": 5+ "field": "title",+ "pattern": "referral",+ "weight": 14,+ "name": "referral in title"}]},{"id": "consent-form",- "name": "Consent form",- "emit": true,"phrases": [{"text": "consent form",@@ -10449,53 +8043,6 @@"weight": 6}],- "regexes": [- {- "pattern": "i,?\\s+the\\s+undersigned,?\\s+(?:hereby\\s+)?(?:consent|authori[sz]e)",- "weight": 20,- "name": "undersigned consent clause"- },- {- "pattern": "opportunity to [a-z ,]{0,50}ask questions",- "weight": 18,- "name": "opportunity to ask questions clause"- },- {- "pattern": "(?:free|right) to withdraw [a-z ]{0,60}at any time",- "weight": 18,- "name": "free to withdraw clause"- },- {- "pattern": "risks?,? (?:and\\s+)?benefits?,? and alternatives",- "weight": 16,- "name": "risks benefits alternatives triple"- }- ],- "filenames": [- {- "pattern": "consent[-_ ]?form",- "weight": 28,- "name": "consent form filename"- },- {- "pattern": "informed[-_ ]?consent",- "weight": 26,- "name": "informed consent filename"- },- {- "pattern": "consent",- "weight": 18,- "name": "consent in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "consent",- "weight": 14,- "name": "consent in PDF title"- }- ],"negatives": [{"text": "omb no.",@@ -10523,25 +8070,39 @@"name": "lab report language"}],- "structural": [+ "regexes": [{- "signal": "signature_block",- "weight": 8+ "pattern": "i,?\\s+the\\s+undersigned,?\\s+(?:hereby\\s+)?(?:consent|authori[sz]e)",+ "weight": 20,+ "name": "undersigned consent clause"},{- "signal": "form_like",- "weight": 6+ "pattern": "opportunity to [a-z ,]{0,50}ask questions",+ "weight": 18,+ "name": "opportunity to ask questions clause"},{- "signal": "short_doc",- "weight": 4+ "pattern": "(?:free|right) to withdraw [a-z ]{0,60}at any time",+ "weight": 18,+ "name": "free to withdraw clause"+ },+ {+ "pattern": "risks?,? (?:and\\s+)?benefits?,? and alternatives",+ "weight": 16,+ "name": "risks benefits alternatives triple"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "consent",+ "weight": 14,+ "name": "consent in PDF title"}]},{"id": "discharge-summary",- "name": "Discharge summary",- "emit": true,"phrases": [{"text": "discharge summary",@@ -10603,48 +8164,6 @@"weight": 14}],- "regexes": [- {- "pattern": "date of admission[\\s\\S]{0,60}date of discharge",- "weight": 18,- "name": "admission/discharge date pair (UK)"- },- {- "pattern": "admi(?:ssion|t) date[\\s\\S]{0,60}discharge date",- "weight": 16,- "name": "admission/discharge date pair (US)"- },- {- "pattern": "discharged? (?:home|to home|to a (?:nursing|care) home|to rehab)",- "weight": 12,- "name": "discharge destination"- },- {- "pattern": "\\bnhs\\s?(?:no\\.?|number)\\s?:?\\s?\\d{3}\\s?\\d{3}\\s?\\d{4}\\b",- "weight": 8,- "name": "NHS number"- }- ],- "filenames": [- {- "pattern": "discharge[-_ ]?summary",- "weight": 28,- "name": "discharge summary filename"- },- {- "pattern": "discharge",- "weight": 20,- "name": "discharge in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "discharge",- "weight": 14,- "name": "discharge in PDF title"- }- ],"negatives": [{"text": "reason for referral",@@ -10682,21 +8201,39 @@"name": "lab report language"}],- "structural": [+ "regexes": [{- "signal": "address_block",- "weight": 4+ "pattern": "date of admission[\\s\\S]{0,60}date of discharge",+ "weight": 18,+ "name": "admission/discharge date pair (UK)"+ },+ {+ "pattern": "admi(?:ssion|t) date[\\s\\S]{0,60}discharge date",+ "weight": 16,+ "name": "admission/discharge date pair (US)"+ },+ {+ "pattern": "discharged? (?:home|to home|to a (?:nursing|care) home|to rehab)",+ "weight": 12,+ "name": "discharge destination"},{- "signal": "signature_block",- "weight": 3+ "pattern": "\\bnhs\\s?(?:no\\.?|number)\\s?:?\\s?\\d{3}\\s?\\d{3}\\s?\\d{4}\\b",+ "weight": 8,+ "name": "NHS number"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "discharge",+ "weight": 14,+ "name": "discharge in PDF title"}]},{"id": "insurance-policy",- "name": "Insurance policy",- "emit": true,"phrases": [{"text": "policy wording",@@ -10812,83 +8349,6 @@"weight": 12}],- "regexes": [- {- "pattern": "policy\\s*(?:no|number|num|#)[.:# ]\\s*[a-z0-9][a-z0-9/-]{4,19}",- "flags": "gi",- "weight": 12,- "name": "Policy number"- },- {- "pattern": "(?:last year(?:'|’)?s|previous(?: annual)?) premium",- "flags": "gi",- "weight": 20,- "name": "Premium comparison"- },- {- "pattern": "renewal (?:date|premium)\\s*:",- "flags": "gi",- "weight": 12,- "name": "Renewal field with colon"- },- {- "pattern": "renew(?:s|ed)? automatically|auto(?:matic(?:ally)?)?[ -]?renew",- "flags": "gi",- "weight": 12,- "name": "Auto-renew variants"- }- ],- "filenames": [- {- "pattern": "insurance[ _-]?policy",- "weight": 26,- "name": "insurance policy filename"- },- {- "pattern": "policy[ _-]?(schedule|wording|document|booklet|declarations?)",- "weight": 24,- "name": "policy document filename"- },- {- "pattern": "(?:^|[\\W_])ipid(?:[\\W_]|$)",- "weight": 18,- "name": "IPID filename"- },- {- "pattern": "(?:^|[\\W_])policy",- "weight": 8,- "name": "policy in filename"- },- {- "pattern": "(insurance|policy|motor|home|auto)[ _-]?renewal",- "weight": 26,- "name": "insurance renewal filename"- },- {- "pattern": "renewal[ _-]?(notice|invitation|offer)",- "weight": 26,- "name": "renewal notice filename"- },- {- "pattern": "renewal",- "weight": 12,- "name": "renewal in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "insurance policy|policy (schedule|wording|booklet|document)",- "weight": 12,- "name": "policy document title"- },- {- "field": "title",- "pattern": "renewal (notice|invitation|offer)|policy renewal",- "weight": 12,- "name": "renewal document title"- }- ],"negatives": [{"text": "certificate of liability insurance",@@ -10946,29 +8406,49 @@"name": "membership renewal"}],- "structural": [+ "regexes": [{- "signal": "long_doc",- "weight": 5+ "pattern": "policy\\s*(?:no|number|num|#)[.:# ]\\s*[a-z0-9][a-z0-9/-]{4,19}",+ "flags": "gi",+ "weight": 12,+ "name": "Policy number"+ },+ {+ "pattern": "(?:last year(?:'|’)?s|previous(?: annual)?) premium",+ "flags": "gi",+ "weight": 20,+ "name": "Premium comparison"},{- "signal": "toc",- "weight": 3+ "pattern": "renewal (?:date|premium)\\s*:",+ "flags": "gi",+ "weight": 12,+ "name": "Renewal field with colon"},{- "signal": "short_doc",- "weight": 4+ "pattern": "renew(?:s|ed)? automatically|auto(?:matic(?:ally)?)?[ -]?renew",+ "flags": "gi",+ "weight": 12,+ "name": "Auto-renew variants"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "insurance policy|policy (schedule|wording|booklet|document)",+ "weight": 12,+ "name": "policy document title"},{- "signal": "currency_heavy",- "weight": 3+ "field": "title",+ "pattern": "renewal (notice|invitation|offer)|policy renewal",+ "weight": 12,+ "name": "renewal document title"}]},{"id": "insurance-certificate",- "name": "Insurance certificate",- "emit": true,"phrases": [{"text": "certificate of liability insurance",@@ -11033,50 +8513,6 @@"weight": 14}],- "regexes": [- {- "pattern": "acord\\s*2[0-9]{1,2}",- "flags": "gi",- "weight": 22,- "name": "ACORD form number"- },- {- "pattern": "each occurrence\\s*\\$\\s*[\\d,]{7,15}",- "flags": "gi",- "weight": 18,- "name": "Occurrence limit amount"- }- ],- "filenames": [- {- "pattern": "certificate[ _-]?of[ _-]?insurance",- "weight": 28,- "name": "certificate of insurance filename"- },- {- "pattern": "acord",- "weight": 25,- "name": "acord filename"- },- {- "pattern": "(?:^|[\\W_])coi(?:[\\W_]|$)",- "weight": 22,- "name": "coi abbreviation"- },- {- "pattern": "cert.{0,20}(insurance|liab)",- "weight": 20,- "name": "insurance certificate filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "certificate of .{0,20}insurance|acord",- "weight": 16,- "name": "certificate title"- }- ],"negatives": [{"text": "policy wording",@@ -11114,21 +8550,31 @@"name": "long booklet"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 8+ "pattern": "acord\\s*2[0-9]{1,2}",+ "flags": "gi",+ "weight": 22,+ "name": "ACORD form number"},{- "signal": "form_like",- "weight": 5+ "pattern": "each occurrence\\s*\\$\\s*[\\d,]{7,15}",+ "flags": "gi",+ "weight": 18,+ "name": "Occurrence limit amount"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "certificate of .{0,20}insurance|acord",+ "weight": 16,+ "name": "certificate title"}]},{"id": "insurance-claim",- "name": "Insurance claim",- "emit": true,"phrases": [{"text": "date of loss",@@ -11192,50 +8638,6 @@"weight": 8}],- "regexes": [- {- "pattern": "claim\\s*(?:no|number|num|ref|reference|#)[.:# ]\\s*[a-z0-9][a-z0-9/-]{3,19}",- "flags": "gi",- "weight": 15,- "name": "Claim number"- },- {- "pattern": "date of loss\\s*[:.]?\\s*\\d{1,2}[/.-]\\d{1,2}[/.-]\\d{2,4}",- "flags": "gi",- "weight": 18,- "name": "Date of loss field"- }- ],- "filenames": [- {- "pattern": "insurance[ _-]?claim",- "weight": 26,- "name": "insurance claim filename"- },- {- "pattern": "claim[ _-]?form",- "weight": 22,- "name": "claim form filename"- },- {- "pattern": "(?:^|[\\W_])fnol(?:[\\W_]|$)",- "weight": 22,- "name": "first notice of loss abbreviation"- },- {- "pattern": "(?:^|[\\W_])claim",- "weight": 12,- "name": "claim in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "claim (form|summary|letter)|insurance claim",- "weight": 12,- "name": "claim document title"- }- ],"negatives": [{"text": "explanation of benefits",@@ -11273,17 +8675,31 @@"name": "US court party"}],- "structural": [+ "regexes": [{- "signal": "form_like",- "weight": 4+ "pattern": "claim\\s*(?:no|number|num|ref|reference|#)[.:# ]\\s*[a-z0-9][a-z0-9/-]{3,19}",+ "flags": "gi",+ "weight": 15,+ "name": "Claim number"+ },+ {+ "pattern": "date of loss\\s*[:.]?\\s*\\d{1,2}[/.-]\\d{1,2}[/.-]\\d{2,4}",+ "flags": "gi",+ "weight": 18,+ "name": "Date of loss field"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "claim (form|summary|letter)|insurance claim",+ "weight": 12,+ "name": "claim document title"}]},{"id": "research-paper",- "name": "Research paper",- "emit": true,"phrases": [{"text": "abstract",@@ -11340,69 +8756,6 @@"where": "first"}],- "regexes": [- {- "pattern": "\\b10\\.\\d{4,9}/[a-z0-9.()/:;_-]{4,60}",- "weight": 20,- "name": "DOI"- },- {- "pattern": "arxiv[:\\s]\\d{4}\\.\\d{4,5}",- "weight": 25,- "name": "arXiv identifier"- },- {- "pattern": "\\[\\d{1,3}(,\\s?\\d{1,3}){1,6}\\]",- "weight": 10,- "name": "Numeric citation brackets"- },- {- "pattern": "vol\\.\\s?\\d{1,3},\\s?no\\.\\s?\\d{1,3}",- "weight": 14,- "name": "Volume/issue line"- },- {- "pattern": "issn[:\\s]*\\d{4}-?\\d{3}[\\dx]",- "weight": 10,- "name": "ISSN"- }- ],- "filenames": [- {- "pattern": "arxiv",- "weight": 24,- "name": "arxiv in filename"- },- {- "pattern": "\\d{4}\\.\\d{4,5}(v\\d{1,2})?\\.pdf",- "weight": 22,- "name": "arXiv id filename"- },- {- "pattern": "1-s2\\.0-s\\d",- "weight": 25,- "name": "Elsevier download filename"- },- {- "pattern": "(preprint|manuscript)",- "weight": 16,- "name": "preprint/manuscript filename"- }- ],- "metadata": [- {- "field": "producer",- "pattern": "latex|pdftex|xetex|luatex",- "weight": 14,- "name": "LaTeX producer"- },- {- "field": "any",- "pattern": "elsevier|springer|ieee|arxiv",- "weight": 12,- "name": "Academic publisher"- }- ],"negatives": [{"text": "in partial fulfillment",@@ -11430,17 +8783,21 @@"name": "Certificate wording"}],- "structural": [+ "regexes": [{- "signal": "references_section",- "weight": 10+ "pattern": "arxiv[:\\s]\\d{4}\\.\\d{4,5}",+ "weight": 25,+ "name": "arXiv identifier"+ },+ {+ "pattern": "issn[:\\s]*\\d{4}-?\\d{3}[\\dx]",+ "weight": 10,+ "name": "ISSN"}]},{"id": "thesis",- "name": "Thesis",- "emit": true,"phrases": [{"text": "in partial fulfillment",@@ -11508,44 +8865,6 @@"weight": 5}],- "regexes": [- {- "pattern": "(doctoral|ph\\.?d\\.?|master'?s|msc|bachelor'?s|undergraduate)\\s(thesis|dissertation)",- "weight": 22,- "name": "Degree-level thesis mention"- },- {- "pattern": "\\bchapter\\s[1-9]\\b",- "weight": 6,- "name": "Chapter headings"- }- ],- "filenames": [- {- "pattern": "(thesis|dissertation)",- "weight": 28,- "name": "thesis/dissertation filename"- },- {- "pattern": "phd",- "weight": 12,- "name": "phd in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "thesis|dissertation",- "weight": 16,- "name": "Thesis in Info title"- },- {- "field": "producer",- "pattern": "latex|pdftex|xetex",- "weight": 6,- "name": "LaTeX producer"- }- ],"negatives": [{"text": "received in revised form",@@ -11563,25 +8882,29 @@"name": "ISBN (book)"}],- "structural": [+ "regexes": [{- "signal": "toc",- "weight": 9+ "pattern": "(doctoral|ph\\.?d\\.?|master'?s|msc|bachelor'?s|undergraduate)\\s(thesis|dissertation)",+ "weight": 22,+ "name": "Degree-level thesis mention"},{- "signal": "long_doc",- "weight": 10- },+ "pattern": "\\bchapter\\s[1-9]\\b",+ "weight": 6,+ "name": "Chapter headings"+ }+ ],+ "metadata": [{- "signal": "references_section",- "weight": 5+ "field": "title",+ "pattern": "thesis|dissertation",+ "weight": 16,+ "name": "Thesis in Info title"}]},{"id": "certificate",- "name": "Certificate",- "emit": true,"phrases": [{"text": "certificate of completion",@@ -11666,38 +8989,6 @@"weight": 16}],- "regexes": [- {- "pattern": "certificate\\s(no|number|id)[.:\\s]",- "weight": 14,- "name": "Certificate number"- },- {- "pattern": "cpd\\s?(hours|credits|points|units)",- "weight": 14,- "name": "CPD hours"- }- ],- "filenames": [- {- "pattern": "(certificate|diploma)",- "weight": 22,- "name": "certificate/diploma filename"- },- {- "pattern": "(^|[^a-z])cert[_-]",- "weight": 14,- "name": "cert_ prefix"- }- ],- "metadata": [- {- "field": "title",- "pattern": "certificate|diploma",- "weight": 12,- "name": "Certificate in Info title"- }- ],"negatives": [{"text": "certificate of insurance",@@ -11735,21 +9026,29 @@"name": "Transcript wording"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 12+ "pattern": "certificate\\s(no|number|id)[.:\\s]",+ "weight": 14,+ "name": "Certificate number"},{- "signal": "signature_block",- "weight": 5+ "pattern": "cpd\\s?(hours|credits|points|units)",+ "weight": 14,+ "name": "CPD hours"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "certificate|diploma",+ "weight": 12,+ "name": "Certificate in Info title"}]},{"id": "transcript",- "name": "Transcript",- "emit": true,"phrases": [{"text": "official transcript",@@ -11813,17 +9112,14 @@"weight": 12}],- "regexes": [- {- "pattern": "\\bgpa[:\\s]+[0-4]\\.\\d{1,2}",- "weight": 18,- "name": "GPA value"- },+ "negatives": [{- "pattern": "\\b[a-f][+-]?\\s\\d{1,2}\\.\\d{2}\\b",- "weight": 8,- "name": "Letter grade row"- },+ "pattern": "(court|hearing|deposition|interview)\\s?transcript",+ "weight": 22,+ "name": "Non-academic transcript"+ }+ ],+ "regexes": [{"pattern": "\\b(10|15|20|30|40|60|120)\\scredits\\b","weight": 12,@@ -11840,23 +9136,6 @@"name": "Semester heading"}],- "filenames": [- {- "pattern": "transcript",- "weight": 22,- "name": "transcript filename"- },- {- "pattern": "academic[_ -]?record",- "weight": 18,- "name": "academic record filename"- },- {- "pattern": "mark[_ -]?sheet",- "weight": 20,- "name": "marksheet filename"- }- ],"metadata": [{"field": "title",@@ -11864,25 +9143,10 @@"weight": 12,"name": "Transcript in Info title"}- ],- "negatives": [- {- "pattern": "(court|hearing|deposition|interview)\\s?transcript",- "weight": 22,- "name": "Non-academic transcript"- }- ],- "structural": [- {- "signal": "number_table",- "weight": 8- }]},{"id": "course-syllabus",- "name": "Course syllabus",- "emit": true,"phrases": [{"text": "course syllabus",@@ -11946,48 +9210,6 @@"weight": 12}],- "regexes": [- {- "pattern": "\\blecture\\s\\d{1,2}\\b",- "weight": 12,- "name": "Lecture number"- },- {- "pattern": "\\bweek\\s\\d{1,2}[:\\s]",- "weight": 8,- "name": "Week schedule"- }- ],- "filenames": [- {- "pattern": "syllabus",- "weight": 28,- "name": "syllabus filename"- },- {- "pattern": "lecture",- "weight": 18,- "name": "lecture filename"- },- {- "pattern": "(week|module|unit)[_ -]?\\d{1,2}",- "weight": 14,- "name": "week/module filename"- },- {- "pattern": "(^|[^a-z])lec[_-]?\\d",- "weight": 14,- "name": "lecNN filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "syllabus|lecture",- "weight": 12,- "name": "Syllabus/lecture in Info title"- }- ],"negatives": [{"text": "show your work",@@ -12005,21 +9227,29 @@"name": "Marks brackets (worksheet)"}],- "structural": [+ "regexes": [{- "signal": "bullet_heavy",- "weight": 4+ "pattern": "\\blecture\\s\\d{1,2}\\b",+ "weight": 12,+ "name": "Lecture number"},{- "signal": "toc",- "weight": 3+ "pattern": "\\bweek\\s\\d{1,2}[:\\s]",+ "weight": 8,+ "name": "Week schedule"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "syllabus|lecture",+ "weight": 12,+ "name": "Syllabus/lecture in Info title"}]},{"id": "assignment-brief",- "name": "Assignment brief",- "emit": true,"phrases": [{"text": "show your work",@@ -12082,6 +9312,28 @@"weight": 6}],+ "negatives": [+ {+ "text": "invoice",+ "weight": 18,+ "name": "Invoice (due date confusable)"+ },+ {+ "text": "amount due",+ "weight": 16,+ "name": "Billing wording"+ },+ {+ "text": "internal revenue service",+ "weight": 18,+ "name": "IRS tax worksheet"+ },+ {+ "pattern": "assignment\\s(of|and assumption)\\s",+ "weight": 20,+ "name": "Legal assignment"+ }+ ],"regexes": [{"pattern": "[\\[(]\\d{1,2}\\s?marks?[\\])]",@@ -12109,28 +9361,6 @@"name": "Due weekday"}],- "filenames": [- {- "pattern": "(homework|assignment|worksheet|problem[_ -]?set|pset)",- "weight": 24,- "name": "homework/worksheet filename"- },- {- "pattern": "(^|[^a-z])hw[_ -]?\\d",- "weight": 18,- "name": "hwN filename"- },- {- "pattern": "(^|[^a-z])(quiz|midterm|exams?)[^a-z]",- "weight": 16,- "name": "quiz/exam filename"- },- {- "pattern": "exercise",- "weight": 10,- "name": "exercise filename"- }- ],"metadata": [{"field": "title",@@ -12138,44 +9368,10 @@"weight": 10,"name": "Assignment in Info title"}- ],- "negatives": [- {- "text": "invoice",- "weight": 18,- "name": "Invoice (due date confusable)"- },- {- "text": "amount due",- "weight": 16,- "name": "Billing wording"- },- {- "text": "internal revenue service",- "weight": 18,- "name": "IRS tax worksheet"- },- {- "pattern": "assignment\\s(of|and assumption)\\s",- "weight": 20,- "name": "Legal assignment"- }- ],- "structural": [- {- "signal": "short_doc",- "weight": 4- },- {- "signal": "form_like",- "weight": 3- }]},{"id": "grade-report",- "name": "Grade report",- "emit": true,"phrases": [{"text": "report card",@@ -12236,53 +9432,6 @@"weight": 6}],- "regexes": [- {- "pattern": "attendance\\s*:?\\s*\\d{1,3}(?:\\.\\d)?\\s*%",- "weight": 20,- "name": "attendance percentage"- },- {- "pattern": "(?:working towards|working at|exceeding) (?:the )?expected standard",- "weight": 16,- "name": "UK attainment band"- },- {- "pattern": "(?:autumn|spring|summer|fall) (?:term|trimester|semester)\\s+(?:report|20\\d{2})",- "weight": 14,- "name": "term report header"- },- {- "pattern": "\\b(?:wts|exs|gds)\\b",- "weight": 10,- "name": "UK attainment codes"- }- ],- "filenames": [- {- "pattern": "report[-_ ]?card",- "weight": 28,- "name": "report card filename"- },- {- "pattern": "school[-_ ]?report",- "weight": 24,- "name": "school report filename"- },- {- "pattern": "(end[-_ ]?of[-_ ]?(year|term)|summer|autumn)[-_ ]?report",- "weight": 20,- "name": "end of year/term report filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "report card|school report",- "weight": 14,- "name": "report card in PDF title"- }- ],"negatives": [{"text": "cumulative gpa",@@ -12320,21 +9469,34 @@"name": "transcript language"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 5+ "pattern": "attendance\\s*:?\\s*\\d{1,3}(?:\\.\\d)?\\s*%",+ "weight": 20,+ "name": "attendance percentage"},{- "signal": "number_table",- "weight": 4+ "pattern": "(?:working towards|working at|exceeding) (?:the )?expected standard",+ "weight": 16,+ "name": "UK attainment band"+ },+ {+ "pattern": "(?:autumn|spring|summer|fall) (?:term|trimester|semester)\\s+(?:report|20\\d{2})",+ "weight": 14,+ "name": "term report header"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "report card|school report",+ "weight": 14,+ "name": "report card in PDF title"}]},{"id": "registration-form",- "name": "Registration form",- "emit": true,"phrases": [{"text": "enrollment form",@@ -12394,59 +9556,7 @@},{"text": "parent/guardian",- "weight": 12- }- ],- "regexes": [- {- "pattern": "entering grade\\s*:?\\s*(?:k|pre-k|[1-9]|1[0-2])\\b",- "weight": 16,- "name": "US entering grade field"- },- {- "pattern": "previous school (?:attended|or nursery)",- "weight": 14,- "name": "previous school field"- },- {- "pattern": "year of entry\\s*:?\\s*20\\d{2}",- "weight": 14,- "name": "year of entry field"- },- {- "pattern": "parent\\s*/\\s*(?:guardian|carer)",- "weight": 12,- "name": "parent/guardian slash field"- }- ],- "filenames": [- {- "pattern": "enrol{1,2}ment",- "weight": 26,- "name": "enrollment filename"- },- {- "pattern": "admission[-_ ]?(form|application|pack)",- "weight": 24,- "name": "admission form filename"- },- {- "pattern": "registration[-_ ]?(form|packet)",- "weight": 18,- "name": "registration form filename"- },- {- "pattern": "new[-_ ]?student",- "weight": 16,- "name": "new student filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "enrol|admission|registration",- "weight": 12,- "name": "enrollment terms in PDF title"+ "weight": 12}],"negatives": [@@ -12486,21 +9596,39 @@"name": "consent form language"}],- "structural": [+ "regexes": [{- "signal": "form_like",- "weight": 8+ "pattern": "entering grade\\s*:?\\s*(?:k|pre-k|[1-9]|1[0-2])\\b",+ "weight": 16,+ "name": "US entering grade field"},{- "signal": "address_block",- "weight": 4+ "pattern": "previous school (?:attended|or nursery)",+ "weight": 14,+ "name": "previous school field"+ },+ {+ "pattern": "year of entry\\s*:?\\s*20\\d{2}",+ "weight": 14,+ "name": "year of entry field"+ },+ {+ "pattern": "parent\\s*/\\s*(?:guardian|carer)",+ "weight": 12,+ "name": "parent/guardian slash field"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "enrol|admission|registration",+ "weight": 12,+ "name": "enrollment terms in PDF title"}]},{"id": "lesson-plan",- "name": "Lesson plan",- "emit": true,"phrases": [{"text": "lesson plan",@@ -12556,48 +9684,6 @@"weight": 14}],- "regexes": [- {- "pattern": "lesson\\s+\\d{1,2}\\s+of\\s+\\d{1,2}",- "weight": 14,- "name": "lesson X of Y"- },- {- "pattern": "\\b(?:ks[1-4]|key stage [1-4])\\b",- "weight": 14,- "name": "UK key stage"- },- {- "pattern": "\\bngss\\b|common core (?:state )?standards",- "weight": 14,- "name": "US standards alignment"- },- {- "pattern": "\\(\\s?\\d{1,2}\\s?min(?:s|utes)?\\s?\\)",- "weight": 12,- "name": "timed activity segments"- }- ],- "filenames": [- {- "pattern": "lesson[-_ ]?plan",- "weight": 30,- "name": "lesson plan filename"- },- {- "pattern": "scheme[-_ ]?of[-_ ]?work",- "weight": 20,- "name": "scheme of work filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "lesson plan",- "weight": 14,- "name": "lesson plan in PDF title"- }- ],"negatives": [{"text": "course syllabus",@@ -12635,25 +9721,39 @@"name": "worksheet language"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 5+ "pattern": "lesson\\s+\\d{1,2}\\s+of\\s+\\d{1,2}",+ "weight": 14,+ "name": "lesson X of Y"},{- "signal": "bullet_heavy",- "weight": 4+ "pattern": "\\b(?:ks[1-4]|key stage [1-4])\\b",+ "weight": 14,+ "name": "UK key stage"+ },+ {+ "pattern": "\\bngss\\b|common core (?:state )?standards",+ "weight": 14,+ "name": "US standards alignment"},{- "signal": "form_like",- "weight": 3+ "pattern": "\\(\\s?\\d{1,2}\\s?min(?:s|utes)?\\s?\\)",+ "weight": 12,+ "name": "timed activity segments"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "lesson plan",+ "weight": 14,+ "name": "lesson plan in PDF title"}]},{"id": "lease-agreement",- "name": "Lease agreement",- "emit": true,"phrases": [{"text": "residential lease agreement",@@ -12715,48 +9815,6 @@"weight": 6}],- "regexes": [- {- "pattern": "term of (?:the |this )?(?:lease|tenancy)",- "weight": 18,- "name": "term-of-lease clause"- },- {- "pattern": "[$£€]\\s?\\d[\\d,]{2,9}(?:\\.\\d{2})?\\s*(?:per calendar month|per month|pcm|/month|/mo)",- "weight": 16,- "name": "rent amount per month"- },- {- "pattern": "deposit protection service|tenancy deposit scheme|mydeposits",- "weight": 16,- "name": "UK deposit scheme"- }- ],- "filenames": [- {- "pattern": "rental[-_ ]?agreement",- "weight": 28,- "name": "rental agreement filename"- },- {- "pattern": "tenancy",- "weight": 26,- "name": "tenancy filename"- },- {- "pattern": "(?:^|[^a-z])lease",- "weight": 24,- "name": "lease filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "lease|tenancy",- "weight": 12,- "name": "lease in doc title"- }- ],"negatives": [{"text": "closing disclosure",@@ -12784,17 +9842,34 @@"name": "deed grantor term"}],- "structural": [+ "regexes": [{- "signal": "signature_block",- "weight": 6+ "pattern": "term of (?:the |this )?(?:lease|tenancy)",+ "weight": 18,+ "name": "term-of-lease clause"+ },+ {+ "pattern": "[$£€]\\s?\\d[\\d,]{2,9}(?:\\.\\d{2})?\\s*(?:per calendar month|per month|pcm|/month|/mo)",+ "weight": 16,+ "name": "rent amount per month"+ },+ {+ "pattern": "deposit protection service|tenancy deposit scheme|mydeposits",+ "weight": 16,+ "name": "UK deposit scheme"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "lease|tenancy",+ "weight": 12,+ "name": "lease in doc title"}]},{"id": "mortgage-document",- "name": "Mortgage document",- "emit": true,"phrases": [{"text": "closing disclosure",@@ -12852,6 +9927,28 @@"weight": 14}],+ "negatives": [+ {+ "text": "minimum payment due",+ "weight": 16,+ "name": "credit card statement"+ },+ {+ "text": "monthly rent",+ "weight": 14,+ "name": "lease rent term"+ },+ {+ "text": "security deposit",+ "weight": 12,+ "name": "lease deposit term"+ },+ {+ "text": "statement period",+ "weight": 12,+ "name": "bank statement"+ }+ ],"regexes": [{"pattern": "loan (?:number|no\\.?|id|#)\\s*#?\\s*:?\\s*\\d{6,12}",@@ -12874,79 +9971,17 @@"name": "principal-and-interest"}],- "filenames": [- {- "pattern": "closing[-_ ]?disclosure",- "weight": 30,- "name": "closing disclosure filename"- },- {- "pattern": "loan[-_ ]?estimate",- "weight": 28,- "name": "loan estimate filename"- },- {- "pattern": "mortgage",- "weight": 26,- "name": "mortgage filename"- },- {- "pattern": "deed[-_ ]?of[-_ ]?trust",- "weight": 26,- "name": "deed of trust filename"- }- ],"metadata": [{"field": "title","pattern": "closing disclosure|loan estimate|mortgage","weight": 14,"name": "mortgage doc title"- },- {- "field": "creator",- "pattern": "encompass|calyx",- "weight": 10,- "name": "loan origination software"- }- ],- "negatives": [- {- "text": "minimum payment due",- "weight": 16,- "name": "credit card statement"- },- {- "text": "monthly rent",- "weight": 14,- "name": "lease rent term"- },- {- "text": "security deposit",- "weight": 12,- "name": "lease deposit term"- },- {- "text": "statement period",- "weight": 12,- "name": "bank statement"- }- ],- "structural": [- {- "signal": "currency_heavy",- "weight": 4- },- {- "signal": "number_table",- "weight": 4}]},{"id": "deed",- "name": "Deed",- "emit": true,"phrases": [{"text": "warranty deed",@@ -12985,75 +10020,28 @@"weight": 22},{- "text": "title absolute",- "weight": 22- },- {- "text": "in fee simple",- "weight": 20- },- {- "text": "grantee",- "weight": 18- },- {- "text": "county recorder",- "weight": 18- },- {- "text": "grantor",- "weight": 16- },- {- "text": "legal description",- "weight": 12- }- ],- "regexes": [- {- "pattern": "title number\\s*:?\\s*[a-z]{1,3}\\d{4,7}",- "weight": 18,- "name": "UK title number"- },- {- "pattern": "book\\s+\\d{1,6},?\\s+page\\s+\\d{1,6}",- "weight": 16,- "name": "recorder book/page"- },- {- "pattern": "(?:apn|parcel (?:id|no\\.?|number))\\s*[:#]?\\s*\\d[\\d-]{4,14}",- "weight": 14,- "name": "assessor parcel number"- }- ],- "filenames": [+ "text": "title absolute",+ "weight": 22+ },{- "pattern": "quitclaim|warranty[-_ ]?deed",- "weight": 28,- "name": "deed type filename"+ "text": "in fee simple",+ "weight": 20},{- "pattern": "title[-_ ]?deed",- "weight": 26,- "name": "title deed filename"+ "text": "grantee",+ "weight": 18},{- "pattern": "land[-_ ]?registry|official[-_ ]?copy",- "weight": 22,- "name": "land registry filename"+ "text": "county recorder",+ "weight": 18},{- "pattern": "(?:^|[^a-z])deed",- "weight": 20,- "name": "deed filename"- }- ],- "metadata": [+ "text": "grantor",+ "weight": 16+ },{- "field": "title",- "pattern": "deed|land registry",- "weight": 10,- "name": "deed in doc title"+ "text": "legal description",+ "weight": 12}],"negatives": [@@ -13078,21 +10066,34 @@"name": "mortgage doc"}],- "structural": [+ "regexes": [{- "signal": "signature_block",- "weight": 6+ "pattern": "title number\\s*:?\\s*[a-z]{1,3}\\d{4,7}",+ "weight": 18,+ "name": "UK title number"},{- "signal": "short_doc",- "weight": 5+ "pattern": "book\\s+\\d{1,6},?\\s+page\\s+\\d{1,6}",+ "weight": 16,+ "name": "recorder book/page"+ },+ {+ "pattern": "(?:apn|parcel (?:id|no\\.?|number))\\s*[:#]?\\s*\\d[\\d-]{4,14}",+ "weight": 14,+ "name": "assessor parcel number"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "deed|land registry",+ "weight": 10,+ "name": "deed in doc title"}]},{"id": "property-listing",- "name": "Property listing",- "emit": true,"phrases": [{"text": "offers in excess of",@@ -13151,6 +10152,23 @@"weight": 5}],+ "negatives": [+ {+ "text": "at the time of inspection",+ "weight": 16,+ "name": "inspection report"+ },+ {+ "text": "appraisal report",+ "weight": 14,+ "name": "appraisal doc"+ },+ {+ "text": "security deposit",+ "weight": 10,+ "name": "lease term"+ }+ ],"regexes": [{"pattern": "mls\\s*(?:#|no\\.?|number)?\\s*:?\\s*[a-z]?\\d{6,10}",@@ -13168,73 +10186,17 @@"name": "square footage"}],- "filenames": [- {- "pattern": "rightmove|zoopla|zillow|redfin",- "weight": 26,- "name": "listing portal filename"- },- {- "pattern": "listing",- "weight": 20,- "name": "listing filename"- },- {- "pattern": "property[-_ ]?details|particulars",- "weight": 20,- "name": "property details filename"- }- ],"metadata": [- {- "field": "any",- "pattern": "rightmove|zoopla|zillow|redfin|matterport",- "weight": 14,- "name": "listing portal metadata"- },{"field": "title","pattern": "for sale|property details","weight": 10,"name": "for-sale title"}- ],- "negatives": [- {- "text": "at the time of inspection",- "weight": 16,- "name": "inspection report"- },- {- "text": "appraisal report",- "weight": 14,- "name": "appraisal doc"- },- {- "text": "security deposit",- "weight": 10,- "name": "lease term"- }- ],- "structural": [- {- "signal": "address_block",- "weight": 5- },- {- "signal": "url_heavy",- "weight": 4- },- {- "signal": "short_doc",- "weight": 3- }]},{"id": "inspection-report",- "name": "Inspection report",- "emit": true,"phrases": [{"text": "home inspection report",@@ -13289,48 +10251,6 @@"weight": 10}],- "regexes": [- {- "pattern": "at the time of (?:the )?inspection",- "weight": 24,- "name": "time-of-inspection phrasing"- },- {- "pattern": "condition rating[:\\s]+[123]\\b",- "weight": 14,- "name": "RICS condition rating"- },- {- "pattern": "internachi|ashi (?:certified|member)",- "weight": 14,- "name": "inspector association"- }- ],- "filenames": [- {- "pattern": "home[-_ ]?inspection",- "weight": 28,- "name": "home inspection filename"- },- {- "pattern": "homebuyer|building[-_ ]?survey",- "weight": 24,- "name": "survey report filename"- },- {- "pattern": "inspection",- "weight": 22,- "name": "inspection filename"- }- ],- "metadata": [- {- "field": "creator",- "pattern": "spectora|homegauge|home inspector pro",- "weight": 12,- "name": "inspection software"- }- ],"negatives": [{"text": "safety data sheet",@@ -13353,25 +10273,26 @@"name": "insurance cert"}],- "structural": [+ "regexes": [{- "signal": "long_doc",- "weight": 5+ "pattern": "at the time of (?:the )?inspection",+ "weight": 24,+ "name": "time-of-inspection phrasing"},{- "signal": "toc",- "weight": 4+ "pattern": "condition rating[:\\s]+[123]\\b",+ "weight": 14,+ "name": "RICS condition rating"},{- "signal": "bullet_heavy",- "weight": 3+ "pattern": "internachi|ashi (?:certified|member)",+ "weight": 14,+ "name": "inspector association"}]},{"id": "hoa-document",- "name": "HOA document",- "emit": true,"phrases": [{"text": "homeowners association",@@ -13430,46 +10351,6 @@"weight": 8}],- "regexes": [- {- "pattern": "covenants,? conditions,? (?:and|&) restrictions",- "weight": 22,- "name": "CC&R spelled out"- },- {- "pattern": "(?:dues|assessment)s?\\s+(?:of|are|in the amount of)\\s+[$£]",- "weight": 12,- "name": "dues amount"- },- {- "pattern": "\\bhoa\\b",- "weight": 12,- "name": "HOA acronym"- }- ],- "filenames": [- {- "pattern": "hoa[-_. ]|[-_. ]hoa",- "weight": 24,- "name": "hoa filename"- },- {- "pattern": "homeowners",- "weight": 20,- "name": "homeowners filename"- },- {- "pattern": "service[-_ ]?charge",- "weight": 18,- "name": "service charge filename"- },- {- "pattern": "assessment[-_ ]?notice",- "weight": 18,- "name": "assessment notice filename"- }- ],- "metadata": [],"negatives": [{"text": "tenancy agreement",@@ -13492,21 +10373,21 @@"name": "invoice"}],- "structural": [+ "regexes": [{- "signal": "address_block",- "weight": 4+ "pattern": "covenants,? conditions,? (?:and|&) restrictions",+ "weight": 22,+ "name": "CC&R spelled out"},{- "signal": "short_doc",- "weight": 3+ "pattern": "(?:dues|assessment)s?\\s+(?:of|are|in the amount of)\\s+[$£]",+ "weight": 12,+ "name": "dues amount"}]},{"id": "application-form",- "name": "Application form",- "emit": true,"phrases": [{"text": "omb no.",@@ -13565,152 +10446,60 @@},{"text": "national insurance number",- "weight": 8- },- {- "text": "town and country planning act",- "weight": 30- },- {- "text": "planning application",- "weight": 28,- "where": "title"- },- {- "text": "planning permission",- "weight": 26- },- {- "text": "board of zoning appeals",- "weight": 26- },- {- "text": "zoning variance",- "weight": 26- },- {- "text": "proposed development",- "weight": 22- },- {- "text": "building permit application",- "weight": 24- },- {- "text": "case officer",- "weight": 20- },- {- "text": "planning officer",- "weight": 20- },- {- "text": "erection of",- "weight": 14- },- {- "text": "site plan",- "weight": 12- },- {- "text": "conservation area",- "weight": 10- },- {- "text": "setback",- "weight": 8- }- ],- "regexes": [- {- "pattern": "omb\\s+(no\\.?|control\\s+no\\.?|control\\s+number)\\s*:?\\s*\\d{4}-\\d{4}",- "weight": 24,- "name": "OMB control number",- "where": "first"- },- {- "pattern": "\\bform\\s+[a-z]{1,4}[- ]?\\d{1,4}[a-z]?\\b",- "weight": 14,- "name": "Agency form number"- },- {- "pattern": "\\b(department|bureau|ministry|office) of (health|state|motor vehicles|public safety|homeland security|veterans affairs|vital statistics|revenue|labor|labour|transportation|transport|human services|social services|home affairs|the interior|consular affairs)\\b",- "weight": 14,- "name": "Government agency letterhead",- "where": "first"+ "weight": 8},{- "pattern": "\\(rev\\.?\\s*\\d{1,2}[\\/. -]\\d{2,4}\\)",- "weight": 12,- "name": "Form revision marker",- "where": "first"+ "text": "town and country planning act",+ "weight": 30},{- "pattern": "application\\s+(no\\.?|number|ref(erence)?)\\s*:?\\s*\\d{2}\\/\\d{4,5}\\/[a-z]{2,6}",- "weight": 24,- "name": "UK planning reference"+ "text": "planning application",+ "weight": 28,+ "where": "title"},{- "pattern": "(grant|refuse|approve)\\s+(full\\s+)?planning\\s+permission",- "weight": 22,- "name": "Planning decision wording"+ "text": "planning permission",+ "weight": 26},{- "pattern": "parcel\\s+(id|number|no\\.?)",- "weight": 14,- "name": "Parcel identifier"+ "text": "board of zoning appeals",+ "weight": 26},{- "pattern": "\\bzon(ed|ing)\\s+(district|classification)\\b",- "weight": 14,- "name": "Zoning district"- }- ],- "filenames": [+ "text": "zoning variance",+ "weight": 26+ },{- "pattern": "(application|registration)[-_ ]?form",- "weight": 18,- "name": "Application form filename"+ "text": "proposed development",+ "weight": 22},{- "pattern": "\\bform[-_ ]?[a-z]{0,3}-?\\d{1,4}\\b",- "weight": 16,- "name": "Form number filename"+ "text": "building permit application",+ "weight": 24},{- "pattern": "planning[-_ ]?(application|permission|statement|decision)",- "weight": 26,- "name": "Planning filename"+ "text": "case officer",+ "weight": 20},{- "pattern": "zoning|variance",- "weight": 20,- "name": "Zoning filename"+ "text": "planning officer",+ "weight": 20},{- "pattern": "site[-_ ]?plan",- "weight": 16,- "name": "Site plan filename"- }- ],- "metadata": [+ "text": "erection of",+ "weight": 14+ },{- "field": "producer",- "pattern": "livecycle",- "weight": 10,- "name": "LiveCycle form producer"+ "text": "site plan",+ "weight": 12},{- "field": "title",- "pattern": "\\bform\\b",- "weight": 8,- "name": "Form in title"+ "text": "conservation area",+ "weight": 10},{- "field": "title",- "pattern": "planning (application|permission)|zoning",- "weight": 12,- "name": "Planning in PDF title"+ "text": "setback",+ "weight": 8}],"negatives": [@@ -13761,21 +10550,62 @@"name": "Alcohol licensing"}],- "structural": [+ "regexes": [+ {+ "pattern": "omb\\s+(no\\.?|control\\s+no\\.?|control\\s+number)\\s*:?\\s*\\d{4}-\\d{4}",+ "weight": 24,+ "name": "OMB control number",+ "where": "first"+ },+ {+ "pattern": "\\bform\\s+[a-z]{1,4}[- ]?\\d{1,4}[a-z]?\\b",+ "weight": 14,+ "name": "Agency form number"+ },+ {+ "pattern": "\\b(department|bureau|ministry|office) of (health|state|motor vehicles|public safety|homeland security|veterans affairs|vital statistics|revenue|labor|labour|transportation|transport|human services|social services|home affairs|the interior|consular affairs)\\b",+ "weight": 14,+ "name": "Government agency letterhead",+ "where": "first"+ },+ {+ "pattern": "application\\s+(no\\.?|number|ref(erence)?)\\s*:?\\s*\\d{2}\\/\\d{4,5}\\/[a-z]{2,6}",+ "weight": 24,+ "name": "UK planning reference"+ },+ {+ "pattern": "(grant|refuse|approve)\\s+(full\\s+)?planning\\s+permission",+ "weight": 22,+ "name": "Planning decision wording"+ },+ {+ "pattern": "parcel\\s+(id|number|no\\.?)",+ "weight": 14,+ "name": "Parcel identifier"+ },+ {+ "pattern": "\\bzon(ed|ing)\\s+(district|classification)\\b",+ "weight": 14,+ "name": "Zoning district"+ }+ ],+ "metadata": [{- "signal": "form_like",- "weight": 12+ "field": "title",+ "pattern": "\\bform\\b",+ "weight": 8,+ "name": "Form in title"},{- "signal": "address_block",- "weight": 3+ "field": "title",+ "pattern": "planning (application|permission)|zoning",+ "weight": 12,+ "name": "Planning in PDF title"}]},{"id": "government-notice",- "name": "Government notice",- "emit": true,"phrases": [{"text": "quote this reference",@@ -14017,208 +10847,27 @@},{"text": "successful tenderer",- "weight": 22- },- {- "text": "successful bidder",- "weight": 20- },- {- "text": "has been awarded to",- "weight": 20- },- {- "text": "award of contract",- "weight": 16- },- {- "text": "total value of the contract",- "weight": 14- },- {- "text": "debriefing",- "weight": 8- }- ],- "regexes": [- {- "pattern": "(our|your)\\s+ref(erence)?\\s*[:.]\\s*[a-z0-9][a-z0-9\\/\\-]{3,}",- "weight": 12,- "name": "Reference number field"- },- {- "pattern": "5\\s*u\\.?s\\.?c\\.?\\s*(§|section)?\\s*552",- "weight": 24,- "name": "5 USC 552 citation"- },- {- "pattern": "\\bfoia?\\b",- "weight": 16,- "name": "FOI/FOIA abbreviation"- },- {- "pattern": "section\\s+\\d{1,2}(\\(\\d\\))?(\\([a-z]\\))?\\s+of the freedom of information act",- "weight": 24,- "name": "FOI exemption citation"- },- {- "pattern": "exemption\\s+(b\\s*)?\\(?[b(]\\s*\\d\\)?",- "weight": 14,- "name": "FOIA (b) exemption"- },- {- "pattern": "(request|reference)\\s+(number|no\\.?)\\s*:?\\s*(foi|foia|epa|doj)[-\\s]?[a-z0-9-]{2,}",- "weight": 20,- "name": "FOI request reference"- },- {- "pattern": "consultation\\s+(closes|ends|period\\s+closes)\\s+(at|on)",- "weight": 22,- "name": "Consultation close date"- },- {- "pattern": "comments\\s+must\\s+be\\s+(received|submitted)\\s+(on\\s+or\\s+before|by|no\\s+later\\s+than)",- "weight": 18,- "name": "Comment deadline"- },- {- "pattern": "question\\s+\\d{1,2}\\s*[:.]\\s*(do|should|to\\s+what|how|what)",- "weight": 16,- "name": "Numbered consultation question"- },- {- "pattern": "circular\\s+(no\\.?\\s*)?\\d{1,3}\\/\\d{2,4}",- "weight": 26,- "name": "Circular number"- },- {- "pattern": "\\bomb\\s+circular\\s+(no\\.?\\s*)?a-\\d{2,3}\\b",- "weight": 26,- "name": "OMB circular"- },- {- "pattern": "supersedes\\s+(circular|directive|memorandum|guidance)",- "weight": 22,- "name": "Supersession line"- },- {- "pattern": "\\bm-\\d{2}-\\d{2}\\b",- "weight": 16,- "name": "OMB memorandum number"- },- {- "pattern": "ocds-[a-z0-9]{6}-[a-z0-9]{1,12}",- "weight": 20,- "name": "OCDS notice id"- },- {- "pattern": "unsuccessful (?:tenderers|bidders|proposers|offerors)",- "weight": 16,- "name": "Unsuccessful parties notice"- },- {- "pattern": "number of (?:tenders|bids|proposals) received\\s*:?\\s*\\d{1,4}",- "weight": 14,- "name": "Tender count line"- }- ],- "filenames": [- {- "pattern": "(gov|council|federal|ministry|dwp|home[-_ ]?office)[-_ ]?letter",- "weight": 18,- "name": "Government letter filename"- },- {- "pattern": "electoral",- "weight": 15,- "name": "Electoral correspondence filename"- },- {- "pattern": "foia?[-_ ]?(request|response|reply)",- "weight": 28,- "name": "FOI request/response filename"- },- {- "pattern": "public[-_ ]?records[-_ ]?request",- "weight": 24,- "name": "Public records request filename"- },- {- "pattern": "(^|[^a-z])foia?([^a-z]|$)",- "weight": 18,- "name": "FOI in filename"- },- {- "pattern": "consultation",- "weight": 26,- "name": "Consultation filename"- },- {- "pattern": "green[-_ ]?paper",- "weight": 22,- "name": "Green paper filename"- },- {- "pattern": "call[-_ ]?for[-_ ]?evidence",- "weight": 20,- "name": "Call for evidence filename"- },- {- "pattern": "circular",- "weight": 26,- "name": "Circular filename"- },- {- "pattern": "directive",- "weight": 18,- "name": "Directive filename"- },- {- "pattern": "award[-_ ]?notice|notice[-_ ]?of[-_ ]?award|intent[-_ ]?to[-_ ]?award",- "weight": 28,- "name": "Award notice filename"- },- {- "pattern": "contract[-_ ]?award",- "weight": 26,- "name": "Contract award filename"- },- {- "pattern": "\\bnoia\\b",- "weight": 15,- "name": "NOIA filename"- }- ],- "metadata": [+ "weight": 22+ },{- "field": "any",- "pattern": "gov\\.uk",- "weight": 10,- "name": "gov.uk in metadata"+ "text": "successful bidder",+ "weight": 20},{- "field": "title",- "pattern": "freedom of information|foia",- "weight": 14,- "name": "FOI in PDF title"+ "text": "has been awarded to",+ "weight": 20},{- "field": "title",- "pattern": "consultation|green paper",- "weight": 14,- "name": "Consultation in PDF title"+ "text": "award of contract",+ "weight": 16},{- "field": "title",- "pattern": "circular|directive",- "weight": 14,- "name": "Circular in PDF title"+ "text": "total value of the contract",+ "weight": 14},{- "field": "title",- "pattern": "award notice|notice of (?:intent to )?award",- "weight": 16,- "name": "Award notice in PDF title"+ "text": "debriefing",+ "weight": 8}],"negatives": [@@ -14313,33 +10962,112 @@"name": "Federal grant award markers"}],- "structural": [+ "regexes": [{- "signal": "address_block",- "weight": 6+ "pattern": "(our|your)\\s+ref(erence)?\\s*[:.]\\s*[a-z0-9][a-z0-9\\/\\-]{3,}",+ "weight": 12,+ "name": "Reference number field"},{- "signal": "signature_block",- "weight": 4+ "pattern": "5\\s*u\\.?s\\.?c\\.?\\s*(§|section)?\\s*552",+ "weight": 24,+ "name": "5 USC 552 citation"},{- "signal": "short_doc",- "weight": 4+ "pattern": "\\bfoia?\\b",+ "weight": 16,+ "name": "FOI/FOIA abbreviation"+ },+ {+ "pattern": "section\\s+\\d{1,2}(\\(\\d\\))?(\\([a-z]\\))?\\s+of the freedom of information act",+ "weight": 24,+ "name": "FOI exemption citation"+ },+ {+ "pattern": "exemption\\s+(b\\s*)?\\(?[b(]\\s*\\d\\)?",+ "weight": 14,+ "name": "FOIA (b) exemption"+ },+ {+ "pattern": "(request|reference)\\s+(number|no\\.?)\\s*:?\\s*(foi|foia|epa|doj)[-\\s]?[a-z0-9-]{2,}",+ "weight": 20,+ "name": "FOI request reference"+ },+ {+ "pattern": "consultation\\s+(closes|ends|period\\s+closes)\\s+(at|on)",+ "weight": 22,+ "name": "Consultation close date"+ },+ {+ "pattern": "comments\\s+must\\s+be\\s+(received|submitted)\\s+(on\\s+or\\s+before|by|no\\s+later\\s+than)",+ "weight": 18,+ "name": "Comment deadline"+ },+ {+ "pattern": "question\\s+\\d{1,2}\\s*[:.]\\s*(do|should|to\\s+what|how|what)",+ "weight": 16,+ "name": "Numbered consultation question"+ },+ {+ "pattern": "circular\\s+(no\\.?\\s*)?\\d{1,3}\\/\\d{2,4}",+ "weight": 26,+ "name": "Circular number"+ },+ {+ "pattern": "\\bomb\\s+circular\\s+(no\\.?\\s*)?a-\\d{2,3}\\b",+ "weight": 26,+ "name": "OMB circular"+ },+ {+ "pattern": "supersedes\\s+(circular|directive|memorandum|guidance)",+ "weight": 22,+ "name": "Supersession line"+ },+ {+ "pattern": "ocds-[a-z0-9]{6}-[a-z0-9]{1,12}",+ "weight": 20,+ "name": "OCDS notice id"+ },+ {+ "pattern": "unsuccessful (?:tenderers|bidders|proposers|offerors)",+ "weight": 16,+ "name": "Unsuccessful parties notice"+ },+ {+ "pattern": "number of (?:tenders|bids|proposals) received\\s*:?\\s*\\d{1,4}",+ "weight": 14,+ "name": "Tender count line"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "freedom of information|foia",+ "weight": 14,+ "name": "FOI in PDF title"+ },+ {+ "field": "title",+ "pattern": "consultation|green paper",+ "weight": 14,+ "name": "Consultation in PDF title"},{- "signal": "bullet_heavy",- "weight": 3+ "field": "title",+ "pattern": "circular|directive",+ "weight": 14,+ "name": "Circular in PDF title"},{- "signal": "url_heavy",- "weight": 3+ "field": "title",+ "pattern": "award notice|notice of (?:intent to )?award",+ "weight": 16,+ "name": "Award notice in PDF title"}]},{"id": "visa-document",- "name": "Visa document",- "emit": true,"phrases": [{"text": "u.s. citizenship and immigration services",@@ -14400,63 +11128,6 @@"weight": 26}],- "regexes": [- {- "pattern": "\\b(eac|wac|lin|src|msc|ioe|nbc|ysc)[-\\s]?\\d{2}[-\\s]?\\d{3}[-\\s]?\\d{5}\\b",- "weight": 25,- "name": "USCIS receipt number"- },- {- "pattern": "\\bform\\s+i-\\d{2,3}[a-z]?\\b",- "weight": 22,- "name": "USCIS I-series form"- },- {- "pattern": "\\bds-(11|82|160|260)\\b",- "weight": 20,- "name": "State Dept DS form"- },- {- "pattern": "\\b(h-1b|h-2a|l-1|f-1|j-1|o-1|e-2|tn)\\s+(visa|status|classification|petition)\\b",- "weight": 18,- "name": "Visa classification"- },- {- "pattern": "\\ba#\\s*\\d{2,3}[- ]?\\d{3}[- ]?\\d{3}\\b",- "weight": 18,- "name": "Alien number"- }- ],- "filenames": [- {- "pattern": "visa|uscis|immigration",- "weight": 24,- "name": "Visa/immigration filename"- },- {- "pattern": "\\bi-?(20|94|129|130|485|539|765|797)",- "weight": 20,- "name": "I-series form filename"- },- {- "pattern": "passport",- "weight": 18,- "name": "Passport filename"- },- {- "pattern": "home[-_ ]?office",- "weight": 16,- "name": "Home Office filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "visa|uscis|immigration",- "weight": 14,- "name": "Immigration title"- }- ],"negatives": [{"text": "boarding pass",@@ -14479,17 +11150,29 @@"name": "Travel e-ticket"}],- "structural": [+ "regexes": [+ {+ "pattern": "\\bform\\s+i-\\d{2,3}[a-z]?\\b",+ "weight": 22,+ "name": "USCIS I-series form"+ },+ {+ "pattern": "\\b(h-1b|h-2a|l-1|f-1|j-1|o-1|e-2|tn)\\s+(visa|status|classification|petition)\\b",+ "weight": 18,+ "name": "Visa classification"+ }+ ],+ "metadata": [{- "signal": "short_doc",- "weight": 3+ "field": "title",+ "pattern": "visa|uscis|immigration",+ "weight": 14,+ "name": "Immigration title"}]},{"id": "license",- "name": "License",- "emit": true,"phrases": [{"text": "licence number",@@ -14549,33 +11232,6 @@"weight": 8}],- "regexes": [- {- "pattern": "(licence|license|permit)\\s+(no\\.?|number|#)\\s*:?\\s*[a-z0-9][a-z0-9\\/\\-]{2,}",- "weight": 16,- "name": "License/permit number"- }- ],- "filenames": [- {- "pattern": "licen[cs]e|permit",- "weight": 20,- "name": "License/permit filename"- },- {- "pattern": "dvla",- "weight": 20,- "name": "DVLA filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "licen[cs]e|permit",- "weight": 12,- "name": "License/permit title"- }- ],"negatives": [{"text": "end user license agreement",@@ -14603,21 +11259,24 @@"name": "Diploma/certificate wording"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 5- },+ "pattern": "(licence|license|permit)\\s+(no\\.?|number|#)\\s*:?\\s*[a-z0-9][a-z0-9\\/\\-]{2,}",+ "weight": 16,+ "name": "License/permit number"+ }+ ],+ "metadata": [{- "signal": "signature_block",- "weight": 3+ "field": "title",+ "pattern": "licen[cs]e|permit",+ "weight": 12,+ "name": "License/permit title"}]},{"id": "public-notice",- "name": "Public notice",- "emit": true,"phrases": [{"text": "the london gazette",@@ -14669,49 +11328,7 @@},{"text": "notice of intent",- "weight": 8- }- ],- "regexes": [- {- "pattern": "gazette\\s+(issue|no\\.?|number)\\s*:?\\s*\\d+",- "weight": 22,- "name": "Gazette issue number"- },- {- "pattern": "notice\\s+(no\\.?|number|id)\\s*:?\\s*\\d{4,}",- "weight": 14,- "name": "Notice number"- },- {- "pattern": "published\\s+in\\s+the\\s+[a-z ]{3,30}\\s+(gazette|herald|tribune|times|journal)",- "weight": 16,- "name": "Publication in named paper"- }- ],- "filenames": [- {- "pattern": "gazette",- "weight": 26,- "name": "Gazette filename"- },- {- "pattern": "public[-_ ]?notice",- "weight": 24,- "name": "Public notice filename"- },- {- "pattern": "notice[-_ ]?of[-_ ]?hearing",- "weight": 20,- "name": "Notice of hearing filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "gazette|public notice",- "weight": 14,- "name": "Gazette/notice in PDF title"+ "weight": 8}],"negatives": [@@ -14736,17 +11353,34 @@"name": "Court case number"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 4+ "pattern": "gazette\\s+(issue|no\\.?|number)\\s*:?\\s*\\d+",+ "weight": 22,+ "name": "Gazette issue number"+ },+ {+ "pattern": "notice\\s+(no\\.?|number|id)\\s*:?\\s*\\d{4,}",+ "weight": 14,+ "name": "Notice number"+ },+ {+ "pattern": "published\\s+in\\s+the\\s+[a-z ]{3,30}\\s+(gazette|herald|tribune|times|journal)",+ "weight": 16,+ "name": "Publication in named paper"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "gazette|public notice",+ "weight": 14,+ "name": "Gazette/notice in PDF title"}]},{"id": "analytics-report",- "name": "Analytics report",- "emit": true,"phrases": [{"text": "statistical bulletin",@@ -14803,48 +11437,6 @@"weight": 10}],- "regexes": [- {- "pattern": "\\b(increased|decreased|rose|fell)\\s+(by\\s+)?\\d{1,2}(\\.\\d)?\\s?(per\\s?cent|percent|percentage\\s+points|%)",- "weight": 16,- "name": "Percent change wording"- },- {- "pattern": "\\bq[1-4]\\s+20\\d{2}\\b",- "weight": 12,- "name": "Quarter reference"- },- {- "pattern": "(three\\s+months|quarter)\\s+(to|ending)\\s+[a-z]+\\s+20\\d{2}",- "weight": 16,- "name": "Reference period"- }- ],- "filenames": [- {- "pattern": "statistical[-_ ]?(release|bulletin)",- "weight": 28,- "name": "Statistical release filename"- },- {- "pattern": "(^|[^a-z])(ons|bls|cpi|gdp)([^a-z]|$)",- "weight": 18,- "name": "Stats agency/series filename"- },- {- "pattern": "labou?r[-_ ]?market|unemployment",- "weight": 16,- "name": "Labour market filename"- }- ],- "metadata": [- {- "field": "any",- "pattern": "office for national statistics|census bureau|bureau of labor statistics",- "weight": 14,- "name": "Stats agency metadata"- }- ],"negatives": [{"text": "consolidated financial statements",@@ -14872,17 +11464,21 @@"name": "Company reporting period"}],- "structural": [+ "regexes": [{- "signal": "number_table",- "weight": 8+ "pattern": "\\b(increased|decreased|rose|fell)\\s+(by\\s+)?\\d{1,2}(\\.\\d)?\\s?(per\\s?cent|percent|percentage\\s+points|%)",+ "weight": 16,+ "name": "Percent change wording"+ },+ {+ "pattern": "(three\\s+months|quarter)\\s+(to|ending)\\s+[a-z]+\\s+20\\d{2}",+ "weight": 16,+ "name": "Reference period"}]},{"id": "grant-agreement",- "name": "Grant agreement",- "emit": true,"phrases": [{"text": "notice of award",@@ -14939,6 +11535,28 @@"weight": 10}],+ "negatives": [+ {+ "text": "scholarship",+ "weight": 16,+ "name": "Education scholarship award"+ },+ {+ "text": "purchase order",+ "weight": 14,+ "name": "Procurement document"+ },+ {+ "text": "invoice number",+ "weight": 14,+ "name": "Invoice"+ },+ {+ "text": "universal credit",+ "weight": 14,+ "name": "Benefits statement"+ }+ ],"regexes": [{"pattern": "\\bcfda\\s+(no\\.?|number)?\\s*:?\\s*\\d{2}\\.\\d{3}\\b",@@ -14961,23 +11579,6 @@"name": "Award/grant number"}],- "filenames": [- {- "pattern": "notice[-_ ]?of[-_ ]?award",- "weight": 28,- "name": "Notice of award filename"- },- {- "pattern": "grant[-_ ]?(award|offer|agreement|letter)",- "weight": 24,- "name": "Grant letter filename"- },- {- "pattern": "(^|[^a-z])noa([^a-z]|$)",- "weight": 15,- "name": "NoA abbreviation filename"- }- ],"metadata": [{"field": "title",@@ -14985,44 +11586,10 @@"weight": 14,"name": "Award in PDF title"}- ],- "negatives": [- {- "text": "scholarship",- "weight": 16,- "name": "Education scholarship award"- },- {- "text": "purchase order",- "weight": 14,- "name": "Procurement document"- },- {- "text": "invoice number",- "weight": 14,- "name": "Invoice"- },- {- "text": "universal credit",- "weight": 14,- "name": "Benefits statement"- }- ],- "structural": [- {- "signal": "currency_heavy",- "weight": 5- },- {- "signal": "signature_block",- "weight": 3- }]},{"id": "tender-document",- "name": "Tender document",- "emit": true,"phrases": [{"text": "invitation to tender",@@ -15076,6 +11643,33 @@"weight": 10}],+ "negatives": [+ {+ "text": "we are pleased to submit",+ "weight": 18,+ "name": "Bidder submission language"+ },+ {+ "text": "in response to your invitation",+ "weight": 18,+ "name": "Bid response opener"+ },+ {+ "text": "has been awarded to",+ "weight": 14,+ "name": "Award notice language"+ },+ {+ "text": "our proposed approach",+ "weight": 14,+ "name": "Seller proposal language"+ },+ {+ "text": "this quotation is valid",+ "weight": 12,+ "name": "Quote validity language"+ }+ ],"regexes": [{"pattern": "\\b(?:itt|rfp|rfq|rft)\\s*(?:no\\.?|ref(?:erence)?|#)?\\s*[:#-]?\\s*\\d{2,6}\\b",@@ -15108,23 +11702,6 @@"name": "Sealed submissions"}],- "filenames": [- {- "pattern": "invitation[-_ ]?to[-_ ]?tender|request[-_ ]?for[-_ ]?(?:proposal|quotation|tender)s?",- "weight": 28,- "name": "ITT/RFP/RFQ filename"- },- {- "pattern": "\\b(?:itt|rfp|rfq|rft|pqq)\\b(?![-_ ]?(?:response|reply|submission|return))",- "weight": 22,- "name": "Solicitation acronym filename"- },- {- "pattern": "tender(?![-_ ]?(?:response|return|submission))",- "weight": 16,- "name": "Tender filename"- }- ],"metadata": [{"field": "title",@@ -15132,49 +11709,10 @@"weight": 16,"name": "Solicitation in PDF title"}- ],- "negatives": [- {- "text": "we are pleased to submit",- "weight": 18,- "name": "Bidder submission language"- },- {- "text": "in response to your invitation",- "weight": 18,- "name": "Bid response opener"- },- {- "text": "has been awarded to",- "weight": 14,- "name": "Award notice language"- },- {- "text": "our proposed approach",- "weight": 14,- "name": "Seller proposal language"- },- {- "text": "this quotation is valid",- "weight": 12,- "name": "Quote validity language"- }- ],- "structural": [- {- "signal": "toc",- "weight": 4- },- {- "signal": "long_doc",- "weight": 3- }]},{"id": "sales-proposal",- "name": "Sales proposal",- "emit": true,"phrases": [{"text": "in response to your invitation",@@ -15222,53 +11760,6 @@"weight": 8}],- "regexes": [- {- "pattern": "in response to (?:your |the )?(?:itt|rfp|rfq|rft|invitation to tender|request for (?:proposal|quotation|tender)s?)",- "weight": 22,- "name": "Response to solicitation"- },- {- "pattern": "(?:technical|cost|price|pricing) (?:proposal|volume|envelope)",- "weight": 12,- "name": "Bid volume naming"- },- {- "pattern": "comply\\b.{0,40}partially comply",- "weight": 16,- "name": "Compliance matrix headings"- },- {- "pattern": "(?:tender|bid|offer) (?:remains|is|shall remain) (?:open|valid)",- "weight": 12,- "name": "Tender validity commitment"- }- ],- "filenames": [- {- "pattern": "(?:tender|bid|rfp|itt)[-_ ]?(?:response|submission|return)",- "weight": 28,- "name": "Tender response filename"- },- {- "pattern": "response[-_ ]?to[-_ ]?(?:tender|rfp|itt|rfq)",- "weight": 26,- "name": "Response-to-solicitation filename"- },- {- "pattern": "compliance[-_ ]?matrix",- "weight": 18,- "name": "Compliance matrix filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "tender response|bid response|technical proposal",- "weight": 14,- "name": "Bid response in PDF title"- }- ],"negatives": [{"text": "instructions to tenderers",@@ -15291,35 +11782,49 @@"name": "Purchase order language"},{- "text": "sequence of operations",- "weight": 14,- "name": "Standalone method statement (RAMS)"+ "text": "sequence of operations",+ "weight": 14,+ "name": "Standalone method statement (RAMS)"+ },+ {+ "pattern": "\\brams\\b|risk assessment and method statement",+ "weight": 14,+ "name": "RAMS document markers"+ }+ ],+ "regexes": [+ {+ "pattern": "in response to (?:your |the )?(?:itt|rfp|rfq|rft|invitation to tender|request for (?:proposal|quotation|tender)s?)",+ "weight": 22,+ "name": "Response to solicitation"+ },+ {+ "pattern": "(?:technical|cost|price|pricing) (?:proposal|volume|envelope)",+ "weight": 12,+ "name": "Bid volume naming"+ },+ {+ "pattern": "comply\\b.{0,40}partially comply",+ "weight": 16,+ "name": "Compliance matrix headings"},{- "pattern": "\\brams\\b|risk assessment and method statement",- "weight": 14,- "name": "RAMS document markers"+ "pattern": "(?:tender|bid|offer) (?:remains|is|shall remain) (?:open|valid)",+ "weight": 12,+ "name": "Tender validity commitment"}],- "structural": [- {- "signal": "toc",- "weight": 3- },- {- "signal": "signature_block",- "weight": 3- },+ "metadata": [{- "signal": "currency_heavy",- "weight": 2+ "field": "title",+ "pattern": "tender response|bid response|technical proposal",+ "weight": 14,+ "name": "Bid response in PDF title"}]},{"id": "supply-order",- "name": "Supply order",- "emit": true,"phrases": [{"text": "purchase requisition",@@ -15368,53 +11873,6 @@"weight": 10}],- "regexes": [- {- "pattern": "\\breq(?:uisition)?\\.?\\s*(?:no\\.?|number|#)\\s*:?\\s*[a-z0-9][a-z0-9/-]{1,14}",- "weight": 18,- "name": "Requisition number field"- },- {- "pattern": "cost cent(?:re|er)\\s*:?\\s*[a-z0-9]",- "weight": 12,- "name": "Cost centre code"- },- {- "pattern": "justification\\s*(?:for (?:purchase|request))?\\s*:",- "weight": 14,- "name": "Justification field"- },- {- "pattern": "\\bpr[-#]?\\d{4,8}\\b",- "weight": 12,- "name": "PR number reference"- }- ],- "filenames": [- {- "pattern": "requisition",- "weight": 28,- "name": "Requisition filename"- },- {- "pattern": "purchase[-_ ]?req",- "weight": 22,- "name": "Purchase req filename"- },- {- "pattern": "\\bpr[-_]?\\d{4,8}",- "weight": 15,- "name": "PR number filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "requisition",- "weight": 16,- "name": "Requisition in PDF title"- }- ],"negatives": [{"text": "purchase order number",@@ -15437,25 +11895,34 @@"name": "Invoice language"}],- "structural": [+ "regexes": [{- "signal": "form_like",- "weight": 8+ "pattern": "\\breq(?:uisition)?\\.?\\s*(?:no\\.?|number|#)\\s*:?\\s*[a-z0-9][a-z0-9/-]{1,14}",+ "weight": 18,+ "name": "Requisition number field"},{- "signal": "short_doc",- "weight": 5+ "pattern": "cost cent(?:re|er)\\s*:?\\s*[a-z0-9]",+ "weight": 12,+ "name": "Cost centre code"},{- "signal": "number_table",- "weight": 3+ "pattern": "justification\\s*(?:for (?:purchase|request))?\\s*:",+ "weight": 14,+ "name": "Justification field"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "requisition",+ "weight": 16,+ "name": "Requisition in PDF title"}]},{"id": "grant-application",- "name": "Grant application",- "emit": true,"phrases": [{"text": "grant application",@@ -15509,43 +11976,6 @@"weight": 12}],- "regexes": [- {- "pattern": "(?:amount|funding|total) (?:requested|sought)\\s*:?\\s*[$£€]?\\s*[\\d.,]{1,12}",- "weight": 16,- "name": "Requested amount field"- },- {- "pattern": "\\bsf-?424\\b|grants\\.gov|funding opportunity (?:number|announcement|title)",- "weight": 22,- "name": "US federal grant application markers"- },- {- "pattern": "charity (?:no\\.?|number)\\s*:?\\s*\\d{6,8}",- "weight": 12,- "name": "UK charity number"- }- ],- "filenames": [- {- "pattern": "grant[-_ ]?application|funding[-_ ]?application|application[-_ ]?for[-_ ]?funding",- "weight": 28,- "name": "Grant application filename"- },- {- "pattern": "\\bsf[-_]?424",- "weight": 22,- "name": "SF-424 filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "grant application|application for funding",- "weight": 14,- "name": "Grant application in PDF title"- }- ],"negatives": [{"text": "your application has been successful",@@ -15573,17 +12003,34 @@"name": "Business plan language"}],- "structural": [+ "regexes": [{- "signal": "form_like",- "weight": 5+ "pattern": "(?:amount|funding|total) (?:requested|sought)\\s*:?\\s*[$£€]?\\s*[\\d.,]{1,12}",+ "weight": 16,+ "name": "Requested amount field"+ },+ {+ "pattern": "\\bsf-?424\\b|grants\\.gov|funding opportunity (?:number|announcement|title)",+ "weight": 22,+ "name": "US federal grant application markers"+ },+ {+ "pattern": "charity (?:no\\.?|number)\\s*:?\\s*\\d{6,8}",+ "weight": 12,+ "name": "UK charity number"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "grant application|application for funding",+ "weight": 14,+ "name": "Grant application in PDF title"}]},{"id": "technical-drawing",- "name": "Technical drawing",- "emit": true,"phrases": [{"text": "do not scale",@@ -15622,69 +12069,6 @@"weight": 6}],- "regexes": [- {- "pattern": "\\b(dwg|drg|drawing)\\s?(no\\.?|number|#)\\s?:?\\s?[a-z0-9][a-z0-9/_.-]{2,24}",- "flags": "gi",- "weight": 20,- "name": "drawing number"- },- {- "pattern": "all\\s?dimensions\\s?(are\\s?)?in\\s?(mm|millimet|inches)",- "flags": "gi",- "weight": 22,- "name": "dimensions in mm note"- },- {- "pattern": "\\bscale\\s?:?\\s?\\d{1,2}\\s?:\\s?\\d{1,4}\\b",- "flags": "gi",- "weight": 18,- "name": "scale ratio"- },- {- "pattern": "\\bsheet\\s?\\d{1,3}\\s?of\\s?\\d{1,3}\\b",- "flags": "gi",- "weight": 12,- "name": "sheet x of y"- },- {- "pattern": "[ø⌀]\\s?\\d{1,3}(\\.\\d{1,2})?",- "flags": "gi",- "weight": 12,- "name": "diameter callout"- }- ],- "filenames": [- {- "pattern": "(^|[^a-z0-9])(dwg|drg)([^a-z0-9]|$)",- "weight": 20,- "name": "dwg abbreviation"- },- {- "pattern": "drawing",- "weight": 15,- "name": "drawing keyword"- },- {- "pattern": "general[\\s_-]?arrangement|(^|[^a-z0-9])ga[\\s_-]?plan",- "weight": 16,- "name": "ga plan filename"- }- ],- "metadata": [- {- "field": "producer",- "pattern": "autocad|dwg to pdf|solidworks|revit|microstation|inventor|draftsight|bricscad",- "weight": 20,- "name": "cad producer"- },- {- "field": "creator",- "pattern": "autocad|solidworks|revit|catia|creo|archicad|tekla|vectorworks",- "weight": 18,- "name": "cad creator"- }- ],"negatives": [{"text": "absolute maximum ratings",@@ -15712,17 +12096,35 @@"name": "manual or spec toc"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 8+ "pattern": "\\b(dwg|drg|drawing)\\s?(no\\.?|number|#)\\s?:?\\s?[a-z0-9][a-z0-9/_.-]{2,24}",+ "flags": "gi",+ "weight": 20,+ "name": "drawing number"+ },+ {+ "pattern": "all\\s?dimensions\\s?(are\\s?)?in\\s?(mm|millimet|inches)",+ "flags": "gi",+ "weight": 22,+ "name": "dimensions in mm note"+ },+ {+ "pattern": "\\bscale\\s?:?\\s?\\d{1,2}\\s?:\\s?\\d{1,4}\\b",+ "flags": "gi",+ "weight": 18,+ "name": "scale ratio"+ },+ {+ "pattern": "\\bsheet\\s?\\d{1,3}\\s?of\\s?\\d{1,3}\\b",+ "flags": "gi",+ "weight": 12,+ "name": "sheet x of y"}]},{"id": "bill-of-materials",- "name": "Bill of materials",- "emit": true,"phrases": [{"text": "bill of quantities",@@ -15800,71 +12202,6 @@"weight": 8}],- "regexes": [- {- "pattern": "\\b(smm7|nrm\\s?[12]|cesmm\\s?\\d?)\\b",- "flags": "gi",- "weight": 22,- "name": "measurement standard"- },- {- "pattern": "description\\s+(unit\\s+)?(qty|quantity)\\s+(unit\\s+)?rate\\s+(£\\s+)?amount",- "flags": "gi",- "weight": 20,- "name": "boq column header"- },- {- "pattern": "\\bmpn\\b|mfr\\.?\\s?p/?n|mfg\\.?\\s?part\\s?(no\\.?|number)",- "flags": "gi",- "weight": 16,- "name": "mpn abbreviation"- },- {- "pattern": "\\b[rcldqu]\\d{1,3}\\s?,\\s?[rcldqu]\\d{1,3}\\b",- "flags": "gi",- "weight": 16,- "name": "reference designator list"- },- {- "pattern": "\\bdnp\\b",- "flags": "gi",- "weight": 12,- "name": "dnp marker"- }- ],- "filenames": [- {- "pattern": "(^|[^a-z0-9])boq([^a-z0-9]|$)",- "weight": 24,- "name": "boq abbreviation"- },- {- "pattern": "bill[\\s_-]*of[\\s_-]*quantities",- "weight": 26,- "name": "boq filename"- },- {- "pattern": "pricing[\\s_-]?document|tender[\\s_-]?sum",- "weight": 15,- "name": "tender pricing filename"- },- {- "pattern": "(^|[^a-z0-9])bom([^a-z0-9]|$)",- "weight": 24,- "name": "bom abbreviation"- },- {- "pattern": "bill[\\s_-]*of[\\s_-]*materials?",- "weight": 24,- "name": "bom filename"- },- {- "pattern": "parts[\\s_-]?list",- "weight": 18,- "name": "parts list filename"- }- ],- "metadata": [],"negatives": [{"text": "packing slip",@@ -15882,25 +12219,35 @@"name": "shipping address"}],- "structural": [+ "regexes": [{- "signal": "currency_heavy",- "weight": 8+ "pattern": "\\b(smm7|nrm\\s?[12]|cesmm\\s?\\d?)\\b",+ "flags": "gi",+ "weight": 22,+ "name": "measurement standard"},{- "signal": "number_table",- "weight": 6+ "pattern": "description\\s+(unit\\s+)?(qty|quantity)\\s+(unit\\s+)?rate\\s+(£\\s+)?amount",+ "flags": "gi",+ "weight": 20,+ "name": "boq column header"},{- "signal": "long_doc",- "weight": 4+ "pattern": "\\bmpn\\b|mfr\\.?\\s?p/?n|mfg\\.?\\s?part\\s?(no\\.?|number)",+ "flags": "gi",+ "weight": 16,+ "name": "mpn abbreviation"+ },+ {+ "pattern": "\\b[rcldqu]\\d{1,3}\\s?,\\s?[rcldqu]\\d{1,3}\\b",+ "flags": "gi",+ "weight": 16,+ "name": "reference designator list"}]},{"id": "safety-procedure",- "name": "Safety procedure",- "emit": true,"phrases": [{"text": "method statement",@@ -15952,49 +12299,6 @@"weight": 30}],- "regexes": [- {- "pattern": "\\brams\\b",- "flags": "gi",- "weight": 16,- "name": "rams acronym"- },- {- "pattern": "(likelihood|probability)\\s?[x×*]\\s?(severity|consequence)",- "flags": "gi",- "weight": 18,- "name": "risk matrix formula"- },- {- "pattern": "\\bppe\\b",- "flags": "gi",- "weight": 10,- "name": "ppe acronym"- }- ],- "filenames": [- {- "pattern": "method[\\s_-]?statement",- "weight": 26,- "name": "method statement filename"- },- {- "pattern": "(^|[^a-z0-9])rams([^a-z0-9]|$)",- "weight": 20,- "name": "rams filename"- },- {- "pattern": "(^|[^a-z0-9])ms[-_ ]?\\d{2,4}",- "weight": 15,- "name": "ms number filename"- },- {- "pattern": "standard[-_ ]?operating[-_ ]?procedure|\\bsop\\b",- "weight": 16,- "name": "SOP filename"- }- ],- "metadata": [],"negatives": [{"text": "information security",@@ -16022,21 +12326,23 @@"name": "security policy"}],- "structural": [+ "regexes": [{- "signal": "bullet_heavy",- "weight": 6+ "pattern": "\\brams\\b",+ "flags": "gi",+ "weight": 16,+ "name": "rams acronym"},{- "signal": "toc",- "weight": 4+ "pattern": "(likelihood|probability)\\s?[x×*]\\s?(severity|consequence)",+ "flags": "gi",+ "weight": 18,+ "name": "risk matrix formula"}]},{"id": "test-report",- "name": "Test report",- "emit": true,"phrases": [{"text": "material test certificate",@@ -16149,25 +12455,35 @@"weight": 8}],- "regexes": [+ "negatives": [{- "pattern": "en\\s?10204",- "flags": "gi",- "weight": 25,- "name": "en 10204 reference"+ "text": "patient",+ "weight": 24,+ "name": "medical lab report"+ },+ {+ "text": "reference range",+ "weight": 20,+ "name": "medical lab values"+ },+ {+ "text": "sole responsibility",+ "weight": 14,+ "name": "declaration of conformity"},+ {+ "text": "calibration",+ "weight": 14,+ "name": "calibration cert"+ }+ ],+ "regexes": [{"pattern": "\\b3\\.[12]\\s?(certificate|cert)\\b|certificate\\s?(type\\s?)?3\\.[12]","flags": "gi","weight": 16,"name": "type 3.1 certificate"},- {- "pattern": "\\b\\d{3,4}\\s?(n/mm2|n/mm²|mpa)\\b",- "flags": "gi",- "weight": 14,- "name": "strength units"- },{"pattern": "\\bheat\\s?no\\.?\\b","flags": "gi",@@ -16186,101 +12502,16 @@"weight": 22,"name": "coverage factor k=2"},- {- "pattern": "iso\\s?/?\\s?(iec\\s?)?17025",- "flags": "gi",- "weight": 22,- "name": "iso 17025"- },{"pattern": "\\b(ukas|nist|npl|ptb|nabl|dakks)\\b","flags": "gi","weight": 14,"name": "national metrology body"}- ],- "filenames": [- {- "pattern": "mill[\\s_-]?(test[\\s_-]?)?cert",- "weight": 24,- "name": "mill cert filename"- },- {- "pattern": "(^|[^a-z0-9])mtc([^a-z0-9]|$)",- "weight": 20,- "name": "mtc abbreviation"- },- {- "pattern": "test[\\s_-]?cert",- "weight": 18,- "name": "test cert filename"- },- {- "pattern": "(^|[^a-z0-9])3\\.1([^a-z0-9]|$)",- "weight": 15,- "name": "3.1 in filename"- },- {- "pattern": "cal[\\s_-]?cert",- "weight": 22,- "name": "cal cert filename"- },- {- "pattern": "calibration",- "weight": 22,- "name": "calibration keyword"- },- {- "pattern": "(^|[^a-z0-9])cal[-_ ]?\\d{3,}",- "weight": 15,- "name": "cal number filename"- }- ],- "metadata": [- {- "field": "producer",- "pattern": "met/?cal|procal|indysoft|gagetrak",- "weight": 14,- "name": "calibration software"- }- ],- "negatives": [- {- "text": "patient",- "weight": 24,- "name": "medical lab report"- },- {- "text": "reference range",- "weight": 20,- "name": "medical lab values"- },- {- "text": "sole responsibility",- "weight": 14,- "name": "declaration of conformity"- },- {- "text": "calibration",- "weight": 14,- "name": "calibration cert"- }- ],- "structural": [- {- "signal": "number_table",- "weight": 8- },- {- "signal": "short_doc",- "weight": 4- }]},{"id": "quality-report",- "name": "Quality report",- "emit": true,"phrases": [{"text": "first article inspection",@@ -16334,56 +12565,6 @@"weight": 10}],- "regexes": [- {- "pattern": "\\bncr[- ]?\\d{2,6}\\b",- "flags": "gi",- "weight": 20,- "name": "ncr number"- },- {- "pattern": "\\baql\\b",- "flags": "gi",- "weight": 16,- "name": "aql"- },- {- "pattern": "nominal\\s+(actual|measured)|nominal\\s+\\d+(\\.\\d+)?\\s+measured",- "flags": "gi",- "weight": 16,- "name": "nominal vs actual columns"- },- {- "pattern": "accept(ed)?\\s?/\\s?reject(ed)?",- "flags": "gi",- "weight": 14,- "name": "accept reject column"- },- {- "pattern": "non[- ]?conform(ance|ing|ity|ities)",- "flags": "gi",- "weight": 14,- "name": "nonconformance variants"- }- ],- "filenames": [- {- "pattern": "(incoming|final|first[\\s_-]?article)[\\s_-]?inspection",- "weight": 24,- "name": "inspection stage filename"- },- {- "pattern": "(^|[^a-z0-9])(fai|ncr)([^a-z0-9]|$)",- "weight": 18,- "name": "fai or ncr abbreviation"- },- {- "pattern": "inspection[\\s_-]?report",- "weight": 15,- "name": "inspection report filename"- }- ],- "metadata": [],"negatives": [{"text": "home inspection",@@ -16411,21 +12592,29 @@"name": "mill cert field"}],- "structural": [+ "regexes": [{- "signal": "number_table",- "weight": 8+ "pattern": "nominal\\s+(actual|measured)|nominal\\s+\\d+(\\.\\d+)?\\s+measured",+ "flags": "gi",+ "weight": 16,+ "name": "nominal vs actual columns"},{- "signal": "form_like",- "weight": 4+ "pattern": "accept(ed)?\\s?/\\s?reject(ed)?",+ "flags": "gi",+ "weight": 14,+ "name": "accept reject column"+ },+ {+ "pattern": "non[- ]?conform(ance|ing|ity|ities)",+ "flags": "gi",+ "weight": 14,+ "name": "nonconformance variants"}]},{"id": "itinerary",- "name": "Itinerary",- "emit": true,"phrases": [{"text": "travel itinerary",@@ -16482,65 +12671,8 @@"weight": 10},{- "text": "passenger details",- "weight": 6- }- ],- "regexes": [- {- "pattern": "\\((?!USD|EUR|GBP|CHF|JPY|CAD|AUD|VAT|LLC|LTD|INC|FAQ|PDF|USA)[A-Z]{3}\\)",- "flags": "g",- "weight": 10,- "name": "IATA airport code in parentheses (currency/legal codes excluded)"- },- {- "pattern": "\\b\\d{1,2}h\\s?\\d{2}m\\b",- "flags": "gi",- "weight": 12,- "name": "duration like 2h 45m"- },- {- "pattern": "(?:depart|departure)s?\\s*:?\\s*\\d{1,2}:\\d{2}",- "flags": "gi",- "weight": 14,- "name": "departure time field"- },- {- "pattern": "(?:arrive|arrival)s?\\s*:?\\s*\\d{1,2}:\\d{2}",- "flags": "gi",- "weight": 12,- "name": "arrival time field"- },- {- "pattern": "travell?er details",- "flags": "gi",- "weight": 14,- "name": "traveler/traveller details (US+UK)"- }- ],- "filenames": [- {- "pattern": "itinerar",- "weight": 28,- "name": "itinerary in filename"- },- {- "pattern": "trip[-_ ]?(?:plan|details|summary)",- "weight": 20,- "name": "trip plan/details/summary"- },- {- "pattern": "travel[-_ ]?plan",- "weight": 18,- "name": "travel plan"- }- ],- "metadata": [- {- "field": "title",- "pattern": "itinerar",- "weight": 14,- "name": "itinerary in PDF title"+ "text": "passenger details",+ "weight": 6}],"negatives": [@@ -16570,21 +12702,37 @@"name": "hotel confirmation field"}],- "structural": [+ "regexes": [{- "signal": "number_table",- "weight": 4+ "pattern": "(?:depart|departure)s?\\s*:?\\s*\\d{1,2}:\\d{2}",+ "flags": "gi",+ "weight": 14,+ "name": "departure time field"},{- "signal": "short_doc",- "weight": 3+ "pattern": "(?:arrive|arrival)s?\\s*:?\\s*\\d{1,2}:\\d{2}",+ "flags": "gi",+ "weight": 12,+ "name": "arrival time field"+ },+ {+ "pattern": "travell?er details",+ "flags": "gi",+ "weight": 14,+ "name": "traveler/traveller details (US+UK)"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "itinerar",+ "weight": 14,+ "name": "itinerary in PDF title"}]},{"id": "ticket",- "name": "Ticket",- "emit": true,"phrases": [{"text": "boarding pass",@@ -16752,6 +12900,33 @@"weight": 6}],+ "negatives": [+ {+ "text": "check-out date",+ "weight": 12,+ "name": "hotel confirmation field"+ },+ {+ "text": "invoice",+ "weight": 10,+ "name": "invoice wording"+ },+ {+ "text": "room type",+ "weight": 12,+ "name": "hotel confirmation field"+ },+ {+ "text": "flight",+ "weight": 12,+ "name": "Flight (travel)"+ },+ {+ "text": "itinerary",+ "weight": 15,+ "name": "Itinerary (travel)"+ }+ ],"regexes": [{"pattern": "seat\\s*:?\\s*\\d{1,2}[a-k]\\b",@@ -16783,24 +12958,12 @@"weight": 22,"name": "ticket number field with 13 digits"},- {- "pattern": "\\b\\d{3}[- ]?\\d{10}\\b",- "flags": "g",- "weight": 12,- "name": "13-digit ticket number"- },{"pattern": "\\b(?:etkt|e-tkt)\\b","flags": "gi","weight": 18,"name": "ETKT marker"},- {- "pattern": "\\bnuc\\s?\\d{1,6}(?:\\.\\d{1,2})?\\b",- "flags": "gi",- "weight": 18,- "name": "NUC amount in fare calculation"- },{"pattern": "sec(tion)?\\W{0,4}[a-z0-9]{1,6}\\W{1,12}row\\W{0,4}[a-z0-9]{1,4}\\W{1,12}seats?\\W{0,4}[a-z0-9]{1,4}","flags": "gi",@@ -16826,33 +12989,6 @@"name": "Print-at-home ticket"}],- "filenames": [- {- "pattern": "boarding",- "weight": 26,- "name": "boarding in filename"- },- {- "pattern": "e[-_]?ticket|etkt",- "weight": 28,- "name": "e-ticket filename"- },- {- "pattern": "ticket[-_ ]?receipt",- "weight": 22,- "name": "ticket receipt filename"- },- {- "pattern": "ticket",- "weight": 18,- "name": "Ticket in filename"- },- {- "pattern": "ticketmaster|eventbrite|axs|seetickets|dice[_\\- ]",- "weight": 26,- "name": "Ticketing platform in filename"- }- ],"metadata": [{"field": "title",@@ -16865,66 +13001,11 @@"pattern": "e-?ticket|electronic ticket|itinerary receipt","weight": 16,"name": "e-ticket in PDF title"- },- {- "field": "any",- "pattern": "amadeus|sabre|travelport|galileo",- "weight": 8,- "name": "GDS software in metadata"- },- {- "field": "any",- "pattern": "ticketmaster|eventbrite|axs tickets|see tickets",- "weight": 15,- "name": "Ticketing platform metadata"- }- ],- "negatives": [- {- "text": "check-out date",- "weight": 12,- "name": "hotel confirmation field"- },- {- "text": "invoice",- "weight": 10,- "name": "invoice wording"- },- {- "text": "room type",- "weight": 12,- "name": "hotel confirmation field"- },- {- "text": "flight",- "weight": 12,- "name": "Flight (travel)"- },- {- "text": "itinerary",- "weight": 15,- "name": "Itinerary (travel)"- }- ],- "structural": [- {- "signal": "short_doc",- "weight": 10- },- {- "signal": "form_like",- "weight": 3- },- {- "signal": "currency_heavy",- "weight": 3}]},{"id": "booking-confirmation",- "name": "Booking confirmation",- "emit": true,"phrases": [{"text": "booking confirmation",@@ -16989,6 +13070,33 @@"weight": 10}],+ "negatives": [+ {+ "text": "boarding pass",+ "weight": 18,+ "name": "boarding pass heading"+ },+ {+ "text": "boarding time",+ "weight": 16,+ "name": "boarding pass field"+ },+ {+ "text": "fare basis",+ "weight": 14,+ "name": "e-ticket fare basis"+ },+ {+ "text": "security deposit",+ "weight": 14,+ "name": "lease agreement wording"+ },+ {+ "text": "order confirmation",+ "weight": 16,+ "name": "retail order confirmation heading"+ }+ ],"regexes": [{"pattern": "check[- ]?in\\s*:?\\s*(?:mon|tue|wed|thu|fri|sat|sun|\\d{1,2}[/.-])",@@ -17027,23 +13135,6 @@"name": "pick-up/drop-off field (car rental)"}],- "filenames": [- {- "pattern": "booking[-_ ]?confirmation",- "weight": 30,- "name": "booking confirmation filename"- },- {- "pattern": "confirmation",- "weight": 16,- "name": "confirmation in filename"- },- {- "pattern": "hotel|reservation|booking",- "weight": 16,- "name": "hotel/reservation/booking in filename"- }- ],"metadata": [{"field": "title",@@ -17051,53 +13142,10 @@"weight": 12,"name": "booking in PDF title"}- ],- "negatives": [- {- "text": "boarding pass",- "weight": 18,- "name": "boarding pass heading"- },- {- "text": "boarding time",- "weight": 16,- "name": "boarding pass field"- },- {- "text": "fare basis",- "weight": 14,- "name": "e-ticket fare basis"- },- {- "text": "security deposit",- "weight": 14,- "name": "lease agreement wording"- },- {- "text": "order confirmation",- "weight": 16,- "name": "retail order confirmation heading"- }- ],- "structural": [- {- "signal": "address_block",- "weight": 5- },- {- "signal": "currency_heavy",- "weight": 3- },- {- "signal": "short_doc",- "weight": 3- }]},{"id": "utility-bill",- "name": "Utility bill",- "emit": true,"phrases": [{"text": "meter reading",@@ -17217,25 +13265,25 @@"weight": 12}],- "regexes": [+ "negatives": [{- "pattern": "\\b\\d[\\d,]{0,6}(\\.\\d{1,3})?\\s*kwh\\b",- "flags": "gi",- "weight": 15,- "name": "kWh amount"+ "text": "patient",+ "weight": 14,+ "name": "medical bill vocabulary"},+ {+ "text": "policy number",+ "weight": 12,+ "name": "insurance vocabulary"+ }+ ],+ "regexes": [{"pattern": "(previous|present|current)\\s+reading","flags": "gi","weight": 12,"name": "meter reading row"},- {- "pattern": "\\bmp[ar]n\\b",- "flags": "gi",- "weight": 20,- "name": "UK meter point number (MPAN/MPRN)"- },{"pattern": "\\b\\d{1,6}\\s*(ccf|hcf|therms)\\b","flags": "gi",@@ -17273,33 +13321,6 @@"name": "talk text and data"}],- "filenames": [- {- "pattern": "(electric|gas|water|energy|utility|utilities|power)[-_ ]?(bill|statement)",- "weight": 25,- "name": "utility bill filename"- },- {- "pattern": "(british[-_ ]?gas|octopus[-_ ]?energy|thames[-_ ]?water|scottish[-_ ]?power|national[-_ ]?grid|duke[-_ ]?energy|con[-_ ]?edison)",- "weight": 18,- "name": "utility provider filename"- },- {- "pattern": "(pg&e|pacific[-_ ]?gas|eon[-_ ]?next|e\\.on|sse[-_ ]?energy|edf[-_ ]?energy|severn[-_ ]?trent|united[-_ ]?utilities|american[-_ ]?water|centerpoint[-_ ]?energy)",- "weight": 18,- "name": "utility provider filename (extended)"- },- {- "pattern": "(phone|mobile|broadband|wireless|telecom|cell)[-_ ]?(bill|statement|invoice)",- "weight": 25,- "name": "telecom bill filename"- },- {- "pattern": "(verizon|vodafone|t-?mobile|at&t|xfinity|comcast|spectrum[-_ ]?bill|virgin[-_ ]?media|o2[-_ ]?bill|ee[-_ ]?bill|sky[-_ ]?bill|three[-_ ]?bill|giffgaff|mint[-_ ]?mobile)",- "weight": 18,- "name": "telecom provider filename"- }- ],"metadata": [{"field": "title",@@ -17308,55 +13329,15 @@"name": "utility bill title"},{- "field": "author",- "pattern": "(british gas|octopus energy|edf energy|e\\.on|duke energy|con edison|national grid|thames water|pacific gas)",- "weight": 12,- "name": "utility provider author"- },- {- "field": "title",- "pattern": "(phone|mobile|wireless|broadband|telecom)\\s*(bill|statement)",- "weight": 14,- "name": "telecom bill title"- },- {- "field": "author",- "pattern": "(verizon|vodafone|at&t|t-mobile|comcast|xfinity|virgin media|bt group)",- "weight": 12,- "name": "telecom provider author"- }- ],- "negatives": [- {- "text": "patient",- "weight": 14,- "name": "medical bill vocabulary"- },- {- "text": "policy number",- "weight": 12,- "name": "insurance vocabulary"- }- ],- "structural": [- {- "signal": "currency_heavy",- "weight": 4- },- {- "signal": "number_table",- "weight": 5- },- {- "signal": "address_block",- "weight": 4+ "field": "title",+ "pattern": "(phone|mobile|wireless|broadband|telecom)\\s*(bill|statement)",+ "weight": 14,+ "name": "telecom bill title"}]},{"id": "subscription-confirmation",- "name": "Subscription confirmation",- "emit": true,"phrases": [{"text": "next billing date",@@ -17411,6 +13392,33 @@"weight": 10}],+ "negatives": [+ {+ "text": "policy number",+ "weight": 15,+ "name": "insurance renewal"+ },+ {+ "text": "insured",+ "weight": 12,+ "name": "insurance vocabulary"+ },+ {+ "text": "kwh",+ "weight": 10,+ "name": "utility usage"+ },+ {+ "text": "minutes used",+ "weight": 10,+ "name": "telecom usage"+ },+ {+ "text": "roaming",+ "weight": 10,+ "name": "telecom roaming"+ }+ ],"regexes": [{"pattern": "(monthly|annual|yearly)\\s+(subscription|membership|plan)",@@ -17449,84 +13457,17 @@"name": "cancel/manage your subscription"}],- "filenames": [- {- "pattern": "subscription",- "weight": 20,- "name": "subscription filename"- },- {- "pattern": "(netflix|spotify|patreon|hulu|audible|crunchyroll|disney[-_ ]?plus|disneyplus)",- "weight": 18,- "name": "subscription service filename"- },- {- "pattern": "(adobe|dropbox|icloud)[-_ ]?(receipt|invoice|renewal|subscription)",- "weight": 20,- "name": "software subscription receipt filename"- },- {- "pattern": "(apple|itunes|google[-_ ]?play|app[-_ ]?store)[-_ ]?(receipt|invoice|order)",- "weight": 20,- "name": "app store receipt filename"- }- ],"metadata": [{"field": "title","pattern": "subscription","weight": 12,"name": "subscription title"- },- {- "field": "author",- "pattern": "(stripe|paddle|recurly|chargebee|fastspring)",- "weight": 10,- "name": "billing platform author"- }- ],- "negatives": [- {- "text": "policy number",- "weight": 15,- "name": "insurance renewal"- },- {- "text": "insured",- "weight": 12,- "name": "insurance vocabulary"- },- {- "text": "kwh",- "weight": 10,- "name": "utility usage"- },- {- "text": "minutes used",- "weight": 10,- "name": "telecom usage"- },- {- "text": "roaming",- "weight": 10,- "name": "telecom roaming"- }- ],- "structural": [- {- "signal": "short_doc",- "weight": 6- },- {- "signal": "currency_heavy",- "weight": 3}]},{"id": "waybill",- "name": "Waybill",- "emit": true,"phrases": [{"text": "shipping label",@@ -17603,64 +13544,6 @@"where": "title"}],- "regexes": [- {- "pattern": "\\b1z[\\s-]?[0-9a-z]{3}[\\s-]?[0-9a-z]{3}[\\s-]?[0-9a-z]{2}[\\s-]?[0-9a-z]{4}[\\s-]?[0-9a-z]{4}\\b",- "weight": 24,- "name": "UPS tracking number"- },- {- "pattern": "\\b9[1-5]\\d{2}[\\s-]?\\d{4}[\\s-]?\\d{4}[\\s-]?\\d{4}[\\s-]?\\d{4}(?:[\\s-]?\\d{2})?\\b",- "weight": 20,- "name": "USPS tracking number"- },- {- "pattern": "\\b[a-z]{2}\\s?\\d{4}\\s?\\d{4}\\s?\\d\\s?gb\\b",- "weight": 18,- "name": "Royal Mail tracking number"- },- {- "pattern": "\\b(?:wt|wgt|weight)[:\\s]+\\d+(?:\\.\\d+)?\\s?(?:lbs?|kg|oz)\\b",- "weight": 6,- "name": "Package weight line"- }- ],- "filenames": [- {- "pattern": "shipping[-_ ]?label",- "weight": 28,- "name": "shipping label filename"- },- {- "pattern": "(ups|usps|fedex|dhl|evri|dpd|hermes|royal[-_ ]?mail)[-_ ]?(shipping[-_ ]?)?label",- "weight": 26,- "name": "carrier label filename"- },- {- "pattern": "(^|[\\\\/])labels?( ?\\(\\d+\\))?\\.pdf$",- "weight": 16,- "name": "label.pdf filename"- },- {- "pattern": "way[-_ ]?bill|bill[-_ ]?of[-_ ]?lading|\\bawb\\b",- "weight": 18,- "name": "waybill / bill of lading filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "shipping label",- "weight": 14,- "name": "shipping label in title"- },- {- "field": "any",- "pattern": "shipstation|endicia|stamps\\.com|pirate ?ship|easypost|shippo|click ?& ?drop|sendcloud|packlink",- "weight": 15,- "name": "label platform producer"- }- ],"negatives": [{"text": "return label",@@ -17698,21 +13581,24 @@"name": "delivery note doc"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 10- },+ "pattern": "\\b(?:wt|wgt|weight)[:\\s]+\\d+(?:\\.\\d+)?\\s?(?:lbs?|kg|oz)\\b",+ "weight": 6,+ "name": "Package weight line"+ }+ ],+ "metadata": [{- "signal": "address_block",- "weight": 6+ "field": "title",+ "pattern": "shipping label",+ "weight": 14,+ "name": "shipping label in title"}]},{"id": "packing-slip",- "name": "Packing slip",- "emit": true,"phrases": [{"text": "packing slip",@@ -17775,38 +13661,6 @@"where": "first"}],- "regexes": [- {- "pattern": "\\b\\d{3}-\\d{7}-\\d{7}\\b",- "weight": 10,- "name": "Amazon order ID"- }- ],- "filenames": [- {- "pattern": "packing[-_ ]?slip",- "weight": 28,- "name": "packing slip filename"- },- {- "pattern": "packing[-_ ]?list",- "weight": 24,- "name": "packing list filename"- },- {- "pattern": "pack[-_ ]?slip",- "weight": 20,- "name": "packslip filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "packing (slip|list)",- "weight": 14,- "name": "packing slip in title"- }- ],"negatives": [{"text": "amount due",@@ -17844,21 +13698,17 @@"name": "POD doc"}],- "structural": [- {- "signal": "number_table",- "weight": 6- },+ "metadata": [{- "signal": "short_doc",- "weight": 5+ "field": "title",+ "pattern": "packing (slip|list)",+ "weight": 14,+ "name": "packing slip in title"}]},{"id": "customs-declaration",- "name": "Customs declaration",- "emit": true,"phrases": [{"text": "customs declaration",@@ -17915,12 +13765,24 @@"weight": 14}],- "regexes": [+ "negatives": [{- "pattern": "\\bcn\\s?2[23]\\b",- "weight": 25,- "name": "CN22/CN23 form code"+ "text": "amount due",+ "weight": 10,+ "name": "payment invoice"+ },+ {+ "text": "remittance advice",+ "weight": 12,+ "name": "remittance doc"},+ {+ "text": "packing list",+ "weight": 10,+ "name": "export packing list doc"+ }+ ],+ "regexes": [{"pattern": "\\beori\\b","weight": 18,@@ -17935,28 +13797,6 @@"pattern": "harmoni[sz]ed\\s+(?:system|tariff|code|commodity)","weight": 16,"name": "Harmonized system mention"- },- {- "pattern": "\\b\\d{4}\\.\\d{2}(?:\\.\\d{2,4})?\\b",- "weight": 6,- "name": "HS code format"- }- ],- "filenames": [- {- "pattern": "cn[-_ ]?2[23]",- "weight": 28,- "name": "CN22/CN23 filename"- },- {- "pattern": "customs",- "weight": 24,- "name": "customs filename"- },- {- "pattern": "commercial[-_ ]?invoice",- "weight": 24,- "name": "commercial invoice filename"}],"metadata": [@@ -17966,39 +13806,10 @@"weight": 12,"name": "customs in title"}- ],- "negatives": [- {- "text": "amount due",- "weight": 10,- "name": "payment invoice"- },- {- "text": "remittance advice",- "weight": 12,- "name": "remittance doc"- },- {- "text": "packing list",- "weight": 10,- "name": "export packing list doc"- }- ],- "structural": [- {- "signal": "form_like",- "weight": 8- },- {- "signal": "number_table",- "weight": 4- }]},{"id": "delivery-note",- "name": "Delivery note",- "emit": true,"phrases": [{"text": "delivery note",@@ -18043,65 +13854,23 @@},{"text": "goods received",- "weight": 18- },- {- "text": "signed for by",- "weight": 22- },- {- "text": "signature of recipient",- "weight": 20- },- {- "text": "waybill number",- "weight": 12- },- {- "text": "consignment",- "weight": 8- }- ],- "regexes": [- {- "pattern": "\\bpod\\s?(?:no\\.?|number|#)\\b",- "weight": 15,- "name": "POD number"- },- {- "pattern": "delivered\\s(?:on\\s)?\\d{1,2}[/.-]\\d{1,2}[/.-]\\d{2,4}",- "weight": 14,- "name": "Delivered date line"- }- ],- "filenames": [- {- "pattern": "delivery[-_ ]?note",- "weight": 28,- "name": "delivery note filename"+ "weight": 18},{- "pattern": "proof[-_ ]?of[-_ ]?delivery",- "weight": 26,- "name": "proof of delivery filename"+ "text": "signed for by",+ "weight": 22},{- "pattern": "(^|[\\\\/_-])pod[_-]?\\d+",- "weight": 20,- "name": "POD number filename"+ "text": "signature of recipient",+ "weight": 20},{- "pattern": "de?spatch[-_ ]?note",- "weight": 22,- "name": "despatch note filename"- }- ],- "metadata": [+ "text": "waybill number",+ "weight": 12+ },{- "field": "title",- "pattern": "delivery note|proof of delivery",- "weight": 12,- "name": "delivery note in title"+ "text": "consignment",+ "weight": 8}],"negatives": [@@ -18121,25 +13890,29 @@"name": "priced line items"}],- "structural": [+ "regexes": [{- "signal": "signature_block",- "weight": 10+ "pattern": "\\bpod\\s?(?:no\\.?|number|#)\\b",+ "weight": 15,+ "name": "POD number"},{- "signal": "short_doc",- "weight": 5- },+ "pattern": "delivered\\s(?:on\\s)?\\d{1,2}[/.-]\\d{1,2}[/.-]\\d{2,4}",+ "weight": 14,+ "name": "Delivered date line"+ }+ ],+ "metadata": [{- "signal": "address_block",- "weight": 4+ "field": "title",+ "pattern": "delivery note|proof of delivery",+ "weight": 12,+ "name": "delivery note in title"}]},{"id": "return-authorization",- "name": "Return authorization",- "emit": true,"phrases": [{"text": "return label",@@ -18195,38 +13968,33 @@"weight": 14}],- "regexes": [+ "negatives": [{- "pattern": "\\brma\\s?(?:number|no\\.?|#)?[-\\s#:]*\\d{4,12}\\b",- "weight": 22,- "name": "RMA number"+ "text": "tax return",+ "weight": 25,+ "name": "tax document"},{- "pattern": "\\breturns? ?cent(?:er|re)\\b",+ "text": "return on investment","weight": 14,- "name": "Returns center/centre"+ "name": "business ROI doc"},{- "pattern": "\\b(?:1z[0-9a-z]{16}|9[1-5]\\d{20})\\b",- "weight": 12,- "name": "Carrier tracking number"+ "text": "annual return",+ "weight": 14,+ "name": "companies house filing"}],- "filenames": [- {- "pattern": "returns?[-_ ]?(mailing[-_ ]?)?(shipping[-_ ]?)?label",- "weight": 30,- "name": "return label filename"- },+ "regexes": [{- "pattern": "(^|[\\\\/_-])rma[_-]?\\d+",- "weight": 24,- "name": "RMA filename"+ "pattern": "\\brma\\s?(?:number|no\\.?|#)?[-\\s#:]*\\d{4,12}\\b",+ "weight": 22,+ "name": "RMA number"},{- "pattern": "returns?[-_ ]?auth",- "weight": 24,- "name": "return authorization filename"+ "pattern": "\\breturns? ?cent(?:er|re)\\b",+ "weight": 14,+ "name": "Returns center/centre"}],"metadata": [@@ -18236,35 +14004,10 @@"weight": 12,"name": "return label in title"}- ],- "negatives": [- {- "text": "tax return",- "weight": 25,- "name": "tax document"- },- {- "text": "return on investment",- "weight": 14,- "name": "business ROI doc"- },- {- "text": "annual return",- "weight": 14,- "name": "companies house filing"- }- ],- "structural": [- {- "signal": "short_doc",- "weight": 8- }]},{"id": "proposal",- "name": "Proposal",- "emit": true,"phrases": [{"text": "proposal for",@@ -18321,43 +14064,6 @@"weight": 8}],- "regexes": [- {- "pattern": "proposal\\s*(?:no\\.?|number|#|ref)\\s*[:#]?\\s*[a-z0-9/-]{2,20}",- "weight": 16,- "name": "Proposal reference number"- },- {- "pattern": "(?:proposal|offer) (?:is |remains )?valid (?:for|until)",- "weight": 10,- "name": "Proposal validity period"- }- ],- "filenames": [- {- "pattern": "proposal",- "weight": 26,- "name": "'proposal' in filename"- },- {- "pattern": "\\bsow\\b|statement[-_ ]of[-_ ]work",- "weight": 18,- "name": "Statement of work filename"- },- {- "pattern": "rfp[-_ ]?(?:response|reply)",- "weight": 20,- "name": "RFP response filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "proposal",- "weight": 14,- "name": "Proposal in PDF title"- }- ],"negatives": [{"text": "quotation",@@ -18380,21 +14086,29 @@"name": "Purchase order language"}],- "structural": [+ "regexes": [{- "signal": "currency_heavy",- "weight": 3+ "pattern": "proposal\\s*(?:no\\.?|number|#|ref)\\s*[:#]?\\s*[a-z0-9/-]{2,20}",+ "weight": 16,+ "name": "Proposal reference number"},{- "signal": "signature_block",- "weight": 3+ "pattern": "(?:proposal|offer) (?:is |remains )?valid (?:for|until)",+ "weight": 10,+ "name": "Proposal validity period"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "proposal",+ "weight": 14,+ "name": "Proposal in PDF title"}]},{"id": "presentation",- "name": "Presentation",- "emit": true,"phrases": [{"text": "agenda",@@ -18426,50 +14140,6 @@"weight": 16}],- "regexes": [- {- "pattern": "\\bslide\\s+\\d{1,3}\\b",- "weight": 10,- "name": "Slide numbering"- }- ],- "filenames": [- {- "pattern": "slides|deck|presentation",- "weight": 22,- "name": "Slides/deck in filename"- },- {- "pattern": "\\.pptx?|powerpoint|keynote",- "weight": 24,- "name": "Exported presentation file"- },- {- "pattern": "webinar",- "weight": 14,- "name": "Webinar filename"- }- ],- "metadata": [- {- "field": "any",- "pattern": "powerpoint",- "weight": 18,- "name": "PowerPoint metadata"- },- {- "field": "creator",- "pattern": "keynote|impress|google slides",- "weight": 15,- "name": "Presentation software creator"- },- {- "field": "producer",- "pattern": "slides|keynote|impress",- "weight": 12,- "name": "Presentation software producer"- }- ],"negatives": [{"text": "minutes of the meeting",@@ -18482,17 +14152,16 @@"name": "Report-style ToC"}],- "structural": [+ "regexes": [{- "signal": "bullet_heavy",- "weight": 9+ "pattern": "\\bslide\\s+\\d{1,3}\\b",+ "weight": 10,+ "name": "Slide numbering"}]},{"id": "press-release",- "name": "Press release",- "emit": true,"phrases": [{"text": "for immediate release",@@ -18542,6 +14211,18 @@"weight": 12}],+ "negatives": [+ {+ "text": "in this issue",+ "weight": 16,+ "name": "Newsletter language"+ },+ {+ "text": "unsubscribe",+ "weight": 12,+ "name": "Newsletter footer"+ }+ ],"regexes": [{"pattern": "\\((?:nasdaq|nyse|lse|tsx|asx|euronext|aim)\\s*:\\s*[a-z.]{1,6}\\)",@@ -18559,18 +14240,6 @@"name": "Wire service name"}],- "filenames": [- {- "pattern": "press[-_ ]?release",- "weight": 28,- "name": "Press release filename"- },- {- "pattern": "\\bpr[-_]\\d{2,6}",- "weight": 12,- "name": "Numbered PR filename"- }- ],"metadata": [{"field": "title",@@ -18578,30 +14247,10 @@"weight": 16,"name": "Press release in title"}- ],- "negatives": [- {- "text": "in this issue",- "weight": 16,- "name": "Newsletter language"- },- {- "text": "unsubscribe",- "weight": 12,- "name": "Newsletter footer"- }- ],- "structural": [- {- "signal": "short_doc",- "weight": 4- }]},{"id": "newsletter",- "name": "Newsletter",- "emit": true,"phrases": [{"text": "in this issue",@@ -18653,6 +14302,18 @@"weight": 20}],+ "negatives": [+ {+ "text": "for immediate release",+ "weight": 20,+ "name": "Press release header"+ },+ {+ "text": "invoice",+ "weight": 10,+ "name": "Billing language"+ }+ ],"regexes": [{"pattern": "vol(?:ume|\\.)?\\s*\\d{1,3}[,.]?\\s*(?:issue|no\\.?|number)\\s*\\d{1,3}",@@ -18665,18 +14326,6 @@"name": "Issue with season/month"}],- "filenames": [- {- "pattern": "newsletter",- "weight": 28,- "name": "Newsletter filename"- },- {- "pattern": "bulletin",- "weight": 16,- "name": "Bulletin filename"- }- ],"metadata": [{"field": "title",@@ -18684,30 +14333,10 @@"weight": 14,"name": "Newsletter in title"}- ],- "negatives": [- {- "text": "for immediate release",- "weight": 20,- "name": "Press release header"- },- {- "text": "invoice",- "weight": 10,- "name": "Billing language"- }- ],- "structural": [- {- "signal": "url_heavy",- "weight": 3- }]},{"id": "brochure",- "name": "Brochure",- "emit": true,"phrases": [{"text": "contact us today",@@ -18752,40 +14381,20 @@{"text": "book your free","weight": 18- },- {- "text": "bring this flyer",- "weight": 24- },- {- "text": "visit our website",- "weight": 6- },- {- "text": "follow us on",- "weight": 6- }- ],- "regexes": [- {- "pattern": "(?:\\d{1,2}% off|free (?:day pass|trial|estimate|gift|tour)|offer ends|no joining fee|grand opening)",- "weight": 12,- "name": "Promotional offer"- }- ],- "filenames": [+ },{- "pattern": "brochure|flyer|flier|leaflet|pamphlet",- "weight": 26,- "name": "Brochure/flyer filename"+ "text": "bring this flyer",+ "weight": 24},{- "pattern": "one[-_ ]?pager",- "weight": 16,- "name": "One-pager filename"+ "text": "visit our website",+ "weight": 6+ },+ {+ "text": "follow us on",+ "weight": 6}],- "metadata": [],"negatives": [{"text": "for immediate release",@@ -18803,25 +14412,16 @@"name": "Property listing language"}],- "structural": [- {- "signal": "short_doc",- "weight": 8- },- {- "signal": "url_heavy",- "weight": 3- },+ "regexes": [{- "signal": "address_block",- "weight": 3+ "pattern": "(?:\\d{1,2}% off|free (?:day pass|trial|estimate|gift|tour)|offer ends|no joining fee|grand opening)",+ "weight": 12,+ "name": "Promotional offer"}]},{"id": "meeting-minutes",- "name": "Meeting minutes",- "emit": true,"phrases": [{"text": "minutes of the meeting",@@ -18878,6 +14478,18 @@"weight": 16}],+ "negatives": [+ {+ "pattern": "plaintiff|defendant",+ "weight": 14,+ "name": "Court filing parties"+ },+ {+ "text": "for immediate release",+ "weight": 12,+ "name": "Press release header"+ }+ ],"regexes": [{"pattern": "present:\\s*[a-z]",@@ -18900,18 +14512,6 @@"name": "Old/new business section"}],- "filenames": [- {- "pattern": "minutes",- "weight": 24,- "name": "Minutes filename"- },- {- "pattern": "\\bmom[-_]|minutes[-_ ]of[-_ ]meeting",- "weight": 14,- "name": "Minutes-of-meeting filename"- }- ],"metadata": [{"field": "title",@@ -18919,30 +14519,10 @@"weight": 12,"name": "Minutes in title"}- ],- "negatives": [- {- "pattern": "plaintiff|defendant",- "weight": 14,- "name": "Court filing parties"- },- {- "text": "for immediate release",- "weight": 12,- "name": "Press release header"- }- ],- "structural": [- {- "signal": "short_doc",- "weight": 3- }]},{"id": "memo",- "name": "Memo",- "emit": true,"phrases": [{"text": "memorandum",@@ -19025,69 +14605,6 @@"weight": 14}],- "regexes": [- {- "pattern": "\\bto:\\s*\\S[\\s\\S]{0,120}?\\bfrom:\\s*\\S[\\s\\S]{0,160}?\\b(?:date|re|subject):",- "weight": 18,- "name": "To/From/Re header block"- },- {- "pattern": "memo\\s*(?:no\\.?|number|#)\\s*[:#]?\\s*[a-z0-9-]{2,15}",- "weight": 14,- "name": "Memo number"- },- {- "pattern": "\\bbluf\\b",- "weight": 12,- "name": "BLUF abbreviation"- },- {- "pattern": "decision\\s+(?:requested|required)\\s+by",- "weight": 16,- "name": "decision required by"- },- {- "pattern": "recommend(?:ation)?:\\s",- "weight": 10,- "name": "recommendation label"- }- ],- "filenames": [- {- "pattern": "memo(?:randum)?(?:[-_ .0-9]|$)",- "weight": 22,- "name": "Memo filename"- },- {- "pattern": "executive[-_ ]?briefing",- "weight": 28,- "name": "executive briefing filename"- },- {- "pattern": "exec[-_ ]?summary",- "weight": 24,- "name": "exec summary filename"- },- {- "pattern": "board[-_ ]?brief",- "weight": 20,- "name": "board brief filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "memo(randum)?",- "weight": 12,- "name": "Memo in title"- },- {- "field": "title",- "pattern": "executive briefing|briefing note",- "weight": 14,- "name": "executive briefing in PDF title"- }- ],"negatives": [{"text": "memorandum of understanding",@@ -19145,21 +14662,50 @@"name": "business plan market term"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 6+ "pattern": "\\bto:\\s*\\S[\\s\\S]{0,120}?\\bfrom:\\s*\\S[\\s\\S]{0,160}?\\b(?:date|re|subject):",+ "weight": 18,+ "name": "To/From/Re header block"},{- "signal": "bullet_heavy",- "weight": 4+ "pattern": "memo\\s*(?:no\\.?|number|#)\\s*[:#]?\\s*[a-z0-9-]{2,15}",+ "weight": 14,+ "name": "Memo number"+ },+ {+ "pattern": "\\bbluf\\b",+ "weight": 12,+ "name": "BLUF abbreviation"+ },+ {+ "pattern": "decision\\s+(?:requested|required)\\s+by",+ "weight": 16,+ "name": "decision required by"+ },+ {+ "pattern": "recommend(?:ation)?:\\s",+ "weight": 10,+ "name": "recommendation label"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "memo(randum)?",+ "weight": 12,+ "name": "Memo in title"+ },+ {+ "field": "title",+ "pattern": "executive briefing|briefing note",+ "weight": 14,+ "name": "executive briefing in PDF title"}]},{"id": "business-plan",- "name": "Business plan",- "emit": true,"phrases": [{"text": "business plan",@@ -19266,69 +14812,6 @@"weight": 18}],- "regexes": [- {- "pattern": "year\\s*(?:one|two|three|1|2|3)\\s*(?:revenue|turnover|sales)",- "weight": 12,- "name": "Year-by-year projection"- },- {- "pattern": "start[- ]?up (?:costs|funding|capital)",- "weight": 12,- "name": "Startup costs language"- },- {- "pattern": "\\b\\d{1,2}[- ]year strategic plan",- "weight": 18,- "name": "N-year strategic plan"- },- {- "pattern": "strategy\\s+20\\d{2}\\s*[-–]\\s*20\\d{2}",- "weight": 16,- "name": "strategy year range"- }- ],- "filenames": [- {- "pattern": "business[-_ ]?plan",- "weight": 28,- "name": "Business plan filename"- },- {- "pattern": "bizplan",- "weight": 20,- "name": "Bizplan filename"- },- {- "pattern": "strategic[-_ ]?plan",- "weight": 28,- "name": "strategic plan filename"- },- {- "pattern": "corporate[-_ ]?strategy",- "weight": 24,- "name": "corporate strategy filename"- },- {- "pattern": "strategy[-_ ]?20\\d{2}",- "weight": 18,- "name": "strategy year filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "business plan",- "weight": 16,- "name": "Business plan in title"- },- {- "field": "title",- "pattern": "strategic plan|corporate strategy",- "weight": 16,- "name": "strategic plan in PDF title"- }- ],"negatives": [{"text": "consolidated financial statements",@@ -19361,29 +14844,45 @@"name": "proposal investment term"}],- "structural": [+ "regexes": [{- "signal": "toc",- "weight": 5+ "pattern": "year\\s*(?:one|two|three|1|2|3)\\s*(?:revenue|turnover|sales)",+ "weight": 12,+ "name": "Year-by-year projection"+ },+ {+ "pattern": "start[- ]?up (?:costs|funding|capital)",+ "weight": 12,+ "name": "Startup costs language"},{- "signal": "currency_heavy",- "weight": 3+ "pattern": "\\b\\d{1,2}[- ]year strategic plan",+ "weight": 18,+ "name": "N-year strategic plan"},{- "signal": "long_doc",- "weight": 3+ "pattern": "strategy\\s+20\\d{2}\\s*[-–]\\s*20\\d{2}",+ "weight": 16,+ "name": "strategy year range"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "business plan",+ "weight": 16,+ "name": "Business plan in title"},{- "signal": "bullet_heavy",- "weight": 5+ "field": "title",+ "pattern": "strategic plan|corporate strategy",+ "weight": 16,+ "name": "strategic plan in PDF title"}]},{"id": "white-paper",- "name": "White paper",- "emit": true,"phrases": [{"text": "white paper",@@ -19432,44 +14931,12 @@"weight": 12},{- "text": "the findings",- "weight": 6- },- {- "text": "in partnership with",- "weight": 6- }- ],- "regexes": [- {- "pattern": "\\b\\d{2,3}% of (?:respondents|organi[sz]ations|companies|businesses|leaders)",- "weight": 16,- "name": "Survey percentage finding"- },- {- "pattern": "surveyed\\s+[\\d,]{3,6}\\s+",- "weight": 12,- "name": "Survey sample size"- }- ],- "filenames": [- {- "pattern": "white[-_ ]?paper",- "weight": 28,- "name": "Whitepaper filename"- },- {- "pattern": "state[-_ ]of[-_ ]|industry[-_ ]report|research[-_ ]report",- "weight": 16,- "name": "Industry report filename"- }- ],- "metadata": [+ "text": "the findings",+ "weight": 6+ },{- "field": "title",- "pattern": "white\\s?paper",- "weight": 16,- "name": "White paper in title"+ "text": "in partnership with",+ "weight": 6}],"negatives": [@@ -19499,21 +14966,29 @@"name": "Statutory accounts language"}],- "structural": [+ "regexes": [{- "signal": "toc",- "weight": 5+ "pattern": "\\b\\d{2,3}% of (?:respondents|organi[sz]ations|companies|businesses|leaders)",+ "weight": 16,+ "name": "Survey percentage finding"},{- "signal": "long_doc",- "weight": 4+ "pattern": "surveyed\\s+[\\d,]{3,6}\\s+",+ "weight": 12,+ "name": "Survey sample size"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "white\\s?paper",+ "weight": 16,+ "name": "White paper in title"}]},{"id": "case-study",- "name": "Case study",- "emit": true,"phrases": [{"text": "case study",@@ -19573,33 +15048,6 @@"weight": 6}],- "regexes": [- {- "pattern": "\\d{1,3}%\\s+(?:increase|reduction|decrease|improvement)\\s+in",- "weight": 14,- "name": "Quantified outcome"- }- ],- "filenames": [- {- "pattern": "case[-_ ]?study",- "weight": 28,- "name": "Case study filename"- },- {- "pattern": "success[-_ ]?story",- "weight": 20,- "name": "Success story filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "case study",- "weight": 16,- "name": "Case study in title"- }- ],"negatives": [{"text": "the patient",@@ -19617,17 +15065,24 @@"name": "Academic DOI"}],- "structural": [+ "regexes": [+ {+ "pattern": "\\d{1,3}%\\s+(?:increase|reduction|decrease|improvement)\\s+in",+ "weight": 14,+ "name": "Quantified outcome"+ }+ ],+ "metadata": [{- "signal": "short_doc",- "weight": 3+ "field": "title",+ "pattern": "case study",+ "weight": 16,+ "name": "Case study in title"}]},{"id": "organization-chart",- "name": "Organization chart",- "emit": true,"phrases": [{"text": "organizational chart",@@ -19677,43 +15132,6 @@"weight": 12}],- "regexes": [- {- "pattern": "org(?:ani[sz]ational)?\\s*chart",- "weight": 16,- "name": "org chart variant"- },- {- "pattern": "reports?\\s+to\\s+(?:the\\s+)?(?:ceo|cfo|coo|cto|vp|director|head of|chief)",- "weight": 14,- "name": "reports to executive role"- }- ],- "filenames": [- {- "pattern": "org(?:anizational|anisational)?[-_ ]?chart",- "weight": 30,- "name": "org chart filename"- },- {- "pattern": "reporting[-_ ]?structure",- "weight": 20,- "name": "reporting structure filename"- },- {- "pattern": "leadership[-_ ]?structure",- "weight": 16,- "name": "leadership structure filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "organi[sz]ational chart|org chart",- "weight": 14,- "name": "org chart in PDF title"- }- ],"negatives": [{"text": "essential duties and responsibilities",@@ -19736,21 +15154,29 @@"name": "job description term"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 6+ "pattern": "org(?:ani[sz]ational)?\\s*chart",+ "weight": 16,+ "name": "org chart variant"},{- "signal": "bullet_heavy",- "weight": 4+ "pattern": "reports?\\s+to\\s+(?:the\\s+)?(?:ceo|cfo|coo|cto|vp|director|head of|chief)",+ "weight": 14,+ "name": "reports to executive role"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "organi[sz]ational chart|org chart",+ "weight": 14,+ "name": "org chart in PDF title"}]},{"id": "meeting-agenda",- "name": "Meeting agenda",- "emit": true,"phrases": [{"text": "meeting agenda",@@ -19807,38 +15233,6 @@"weight": 8}],- "regexes": [- {- "pattern": "\\bitem\\s+\\d{1,2}\\s*[.:)]",- "weight": 10,- "name": "numbered agenda items"- },- {- "pattern": "agenda\\s+item\\s+requests?",- "weight": 14,- "name": "agenda item requests"- }- ],- "filenames": [- {- "pattern": "meeting[-_ ]?agenda",- "weight": 30,- "name": "meeting agenda filename"- },- {- "pattern": "agenda",- "weight": 26,- "name": "agenda in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "agenda",- "weight": 14,- "name": "agenda in PDF title"- }- ],"negatives": [{"text": "motion carried",@@ -19866,21 +15260,29 @@"name": "minutes recorder credit"}],- "structural": [+ "regexes": [{- "signal": "bullet_heavy",- "weight": 6+ "pattern": "\\bitem\\s+\\d{1,2}\\s*[.:)]",+ "weight": 10,+ "name": "numbered agenda items"},{- "signal": "short_doc",- "weight": 4+ "pattern": "agenda\\s+item\\s+requests?",+ "weight": 14,+ "name": "agenda item requests"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "agenda",+ "weight": 14,+ "name": "agenda in PDF title"}]},{"id": "statement-of-work",- "name": "Statement of work",- "emit": true,"phrases": [{"text": "statement of work",@@ -19932,44 +15334,6 @@"weight": 8}],- "regexes": [- {- "pattern": "statement of work\\s*(?:no\\.?|number|#)\\s*\\d{1,4}",- "weight": 20,- "name": "SOW number"- },- {- "pattern": "statement of work\\s*\\(\\s*[\"']?sow[\"']?\\s*\\)",- "weight": 22,- "name": "SOW defined-term clause"- },- {- "pattern": "\\bmsa\\b",- "flags": "g",- "weight": 8,- "name": "MSA abbreviation"- }- ],- "filenames": [- {- "pattern": "statement[-_ ]?of[-_ ]?work",- "weight": 30,- "name": "statement of work filename"- },- {- "pattern": "(^|[^a-z])sow[-_ ]?\\d{0,3}([^a-z0-9]|$)",- "weight": 20,- "name": "SOW in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "statement of work|\\bsow\\b",- "weight": 14,- "name": "SOW in PDF title"- }- ],"negatives": [{"text": "we are pleased to submit",@@ -19997,21 +15361,29 @@"name": "general contract execution clause"}],- "structural": [+ "regexes": [{- "signal": "number_table",- "weight": 4+ "pattern": "statement of work\\s*(?:no\\.?|number|#)\\s*\\d{1,4}",+ "weight": 20,+ "name": "SOW number"},{- "signal": "signature_block",- "weight": 3+ "pattern": "statement of work\\s*\\(\\s*[\"']?sow[\"']?\\s*\\)",+ "weight": 22,+ "name": "SOW defined-term clause"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "statement of work|\\bsow\\b",+ "weight": 14,+ "name": "SOW in PDF title"}]},{"id": "user-guide",- "name": "User guide",- "emit": true,"phrases": [{"text": "owner's manual",@@ -20077,89 +15449,59 @@"weight": 24}],- "regexes": [- {- "pattern": "model\\s?(no\\.?|number|#)?\\s?:?\\s?[a-z]{0,4}-?[0-9][a-z0-9/-]{2,}",- "flags": "gi",- "weight": 12,- "name": "model number"- },- {- "pattern": "(do not|never)\\s(disassemble|immerse|attempt to repair|expose this)",- "flags": "gi",- "weight": 14,- "name": "safety warning"- },- {- "pattern": "owner[’']?s\\s(manual|guide)",- "flags": "gi",- "weight": 18,- "name": "owners manual apostrophe variants"- }- ],- "filenames": [- {- "pattern": "(user|owner'?s?|instruction|operating)[\\s_-]*(manual|guide|instructions)",- "weight": 26,- "name": "manual filename"- },+ "negatives": [{- "pattern": "manual",- "weight": 15,- "name": "manual keyword"+ "text": "safety data sheet",+ "weight": 28,+ "name": "sds heading"},{- "pattern": "quick[\\s_-]*start",+ "text": "absolute maximum ratings","weight": 16,- "name": "quick start filename"+ "name": "datasheet section"},{- "pattern": "(^|[^a-z0-9])ifu([^a-z0-9]|$)|instructions[\\s_-]?for[\\s_-]?use",- "weight": 16,- "name": "instructions for use filename"- }- ],- "metadata": [+ "text": "api reference",+ "weight": 14,+ "name": "software docs"+ },{- "field": "title",- "pattern": "manual|user guide",+ "text": "release notes","weight": 12,- "name": "manual in title"+ "name": "software release notes"}],- "negatives": [- {- "text": "safety data sheet",- "weight": 28,- "name": "sds heading"- },+ "regexes": [{- "text": "absolute maximum ratings",- "weight": 16,- "name": "datasheet section"+ "pattern": "model\\s?(no\\.?|number|#)?\\s?:?\\s?[a-z]{0,4}-?[0-9][a-z0-9/-]{2,}",+ "flags": "gi",+ "weight": 12,+ "name": "model number"},{- "text": "api reference",+ "pattern": "(do not|never)\\s(disassemble|immerse|attempt to repair|expose this)",+ "flags": "gi","weight": 14,- "name": "software docs"+ "name": "safety warning"},{- "text": "release notes",- "weight": 12,- "name": "software release notes"+ "pattern": "owner[’']?s\\s(manual|guide)",+ "flags": "gi",+ "weight": 18,+ "name": "owners manual apostrophe variants"}],- "structural": [+ "metadata": [{- "signal": "toc",- "weight": 6+ "field": "title",+ "pattern": "manual|user guide",+ "weight": 12,+ "name": "manual in title"}]},{"id": "datasheet",- "name": "Datasheet",- "emit": true,"phrases": [{"text": "absolute maximum ratings",@@ -20220,56 +15562,6 @@"weight": 18}],- "regexes": [- {- "pattern": "\\b\\d+(\\.\\d+)?\\s?(mv|µa|ua|pf|nf|µf|uf|mhz|khz|ghz|kω|mω|vdc|vac)",- "flags": "gi",- "weight": 14,- "name": "electrical units"- },- {- "pattern": "[-–]\\s?\\d{1,3}\\s?°?\\s?c?\\s?(to|~)\\s?\\+?\\d{1,3}\\s?°\\s?c",- "flags": "gi",- "weight": 14,- "name": "temperature range"- }- ],- "filenames": [- {- "pattern": "datasheet",- "weight": 24,- "name": "datasheet filename"- },- {- "pattern": "spec[\\s_-]?sheet",- "weight": 18,- "name": "spec sheet filename"- },- {- "pattern": "(^|[^a-z0-9])tds([^a-z0-9]|$)",- "weight": 16,- "name": "tds filename"- },- {- "pattern": "(^|[^a-z0-9])ds\\d{4,}",- "weight": 15,- "name": "vendor ds-number filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "datasheet|data sheet",- "weight": 12,- "name": "datasheet title"- },- {- "field": "any",- "pattern": "texas instruments|stmicroelectronics|analog devices|nxp semiconductors|infineon|microchip technology|onsemi|renesas|vishay|rohm",- "weight": 14,- "name": "semiconductor vendor"- }- ],"negatives": [{"text": "safety data sheet",@@ -20287,17 +15579,25 @@"name": "sds section 2"}],- "structural": [+ "regexes": [{- "signal": "number_table",- "weight": 8+ "pattern": "[-–]\\s?\\d{1,3}\\s?°?\\s?c?\\s?(to|~)\\s?\\+?\\d{1,3}\\s?°\\s?c",+ "flags": "gi",+ "weight": 14,+ "name": "temperature range"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "datasheet|data sheet",+ "weight": 12,+ "name": "datasheet title"}]},{"id": "technical-specification",- "name": "Technical specification",- "emit": true,"phrases": [{"text": "technical specification",@@ -20358,51 +15658,6 @@"weight": 10}],- "regexes": [- {- "pattern": "the\\s(system|software|application|device|product|supplier|contractor|equipment|installation)\\sshall\\b",- "flags": "gi",- "weight": 16,- "name": "shall requirement"- },- {- "pattern": "\\b(req|srs|nfr)[-_]\\d{1,4}\\b",- "flags": "gi",- "weight": 16,- "name": "requirement id"- },- {- "pattern": "\\b(iso|iec|astm|ansi|bs en)\\s?\\d{2,5}\\b",- "flags": "gi",- "weight": 12,- "name": "standards reference"- }- ],- "filenames": [- {- "pattern": "(technical|functional|requirements?|system)[\\s_-]?spec",- "weight": 22,- "name": "spec filename"- },- {- "pattern": "specification",- "weight": 15,- "name": "specification keyword"- },- {- "pattern": "(^|[^a-z0-9])srs([^a-z0-9]|$)",- "weight": 16,- "name": "srs filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "specification|requirements",- "weight": 10,- "name": "specification title"- }- ],"negatives": [{"text": "in witness whereof",@@ -20420,21 +15675,31 @@"name": "datasheet section"}],- "structural": [+ "regexes": [{- "signal": "toc",- "weight": 5+ "pattern": "the\\s(system|software|application|device|product|supplier|contractor|equipment|installation)\\sshall\\b",+ "flags": "gi",+ "weight": 16,+ "name": "shall requirement"},{- "signal": "long_doc",- "weight": 3+ "pattern": "\\b(iso|iec|astm|ansi|bs en)\\s?\\d{2,5}\\b",+ "flags": "gi",+ "weight": 12,+ "name": "standards reference"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "specification|requirements",+ "weight": 10,+ "name": "specification title"}]},{"id": "patent",- "name": "Patent",- "emit": true,"phrases": [{"text": "united states patent",@@ -20497,64 +15762,19 @@"weight": 14}],- "regexes": [- {- "pattern": "\\bus\\s?\\d{1,2},\\d{3},\\d{3}\\s?[ab]\\d?\\b",- "flags": "gi",- "weight": 20,- "name": "us patent number"- },- {- "pattern": "\\bus\\s?\\d{4}/\\d{7}\\s?a\\d\\b",- "flags": "gi",- "weight": 18,- "name": "us publication number"- },+ "negatives": [{- "pattern": "\\bep\\s?\\d[\\s.]?\\d{3}[\\s.]?\\d{3}\\s?[ab]\\d\\b",- "flags": "gi",+ "text": "in witness whereof","weight": 18,- "name": "ep publication number"- },- {- "pattern": "\\bwo\\s?\\d{4}/\\d{5,6}(\\s?a\\d)?\\b",- "flags": "gi",- "weight": 14,- "name": "wo publication number"- },+ "name": "patent license contract"+ }+ ],+ "regexes": [{"pattern": "(of|according to)\\sclaim\\s\\d{1,3}","flags": "gi","weight": 18,"name": "claim reference"- },- {- "pattern": "int\\.?\\s?cl\\.?\\s?:?\\s?[a-h]\\d{2}[a-z]",- "flags": "gi",- "weight": 18,- "name": "ipc classification"- }- ],- "filenames": [- {- "pattern": "patent",- "weight": 22,- "name": "patent keyword"- },- {- "pattern": "(^|[^a-z0-9])us\\d{7,8}[ab]?\\d?",- "weight": 20,- "name": "us patent number filename"- },- {- "pattern": "(^|[^a-z0-9])ep\\d{6,7}",- "weight": 18,- "name": "ep number filename"- },- {- "pattern": "(^|[^a-z0-9])wo\\d{4}",- "weight": 16,- "name": "wo publication filename"}],"metadata": [@@ -20564,29 +15784,10 @@"weight": 12,"name": "patent in title"}- ],- "negatives": [- {- "text": "in witness whereof",- "weight": 18,- "name": "patent license contract"- }- ],- "structural": [- {- "signal": "long_doc",- "weight": 3- },- {- "signal": "references_section",- "weight": 3- }]},{"id": "api-documentation",- "name": "API documentation",- "emit": true,"phrases": [{"text": "api reference",@@ -20649,6 +15850,18 @@"weight": 8}],+ "negatives": [+ {+ "text": "important safety instructions",+ "weight": 16,+ "name": "hardware manual"+ },+ {+ "text": "safety data sheet",+ "weight": 20,+ "name": "sds heading"+ }+ ],"regexes": [{"pattern": "\\b(get|post|put|delete|patch)\\s/[a-z0-9_{}/.:-]{3,}",@@ -20667,66 +15880,11 @@"flags": "g","weight": 12,"name": "json snippet"- },- {- "pattern": "\\bv\\d+\\.\\d+\\.\\d+\\b",- "flags": "gi",- "weight": 12,- "name": "semantic version"- }- ],- "filenames": [- {- "pattern": "(api|developer|dev|admin)[\\s_-]?(reference|guide|docs|documentation)",- "weight": 24,- "name": "api guide filename"- },- {- "pattern": "release[\\s_-]?notes|changelog",- "weight": 22,- "name": "release notes filename"- },- {- "pattern": "readme",- "weight": 16,- "name": "readme filename"- }- ],- "metadata": [- {- "field": "any",- "pattern": "sphinx|mkdocs|doxygen|gitbook|asciidoctor|docusaurus",- "weight": 14,- "name": "docs generator"- }- ],- "negatives": [- {- "text": "important safety instructions",- "weight": 16,- "name": "hardware manual"- },- {- "text": "safety data sheet",- "weight": 20,- "name": "sds heading"- }- ],- "structural": [- {- "signal": "url_heavy",- "weight": 6- },- {- "signal": "toc",- "weight": 3}]},{"id": "safety-data-sheet",- "name": "Safety data sheet",- "emit": true,"phrases": [{"text": "safety data sheet",@@ -20780,56 +15938,10 @@{"text": "signal word","weight": 22- },- {- "text": "flash point",- "weight": 14- }- ],- "regexes": [- {- "pattern": "\\b\\d{2,7}-\\d{2}-\\d\\b",- "flags": "g",- "weight": 14,- "name": "cas number"- },- {- "pattern": "\\b[hp][1-5]\\d{2}\\b",- "flags": "gi",- "weight": 12,- "name": "ghs hazard code"- },- {- "pattern": "regulation\\s\\(ec\\)\\s?no\\.?\\s?1907/2006",- "flags": "gi",- "weight": 20,- "name": "reach regulation"- },- {- "pattern": "\\bun\\s?\\d{4}\\b",- "flags": "gi",- "weight": 12,- "name": "un number"- }- ],- "filenames": [- {- "pattern": "(^|[^a-z0-9])m?sds([^a-z0-9]|$)",- "weight": 26,- "name": "sds filename"- },- {- "pattern": "safety[\\s_-]?data[\\s_-]?sheet",- "weight": 28,- "name": "safety data sheet filename"- }- ],- "metadata": [+ },{- "field": "title",- "pattern": "safety data sheet|msds",- "weight": 16,- "name": "sds title"+ "text": "flash point",+ "weight": 14}],"negatives": [@@ -20849,17 +15961,25 @@"name": "appliance manual heading"}],- "structural": [+ "regexes": [+ {+ "pattern": "regulation\\s\\(ec\\)\\s?no\\.?\\s?1907/2006",+ "flags": "gi",+ "weight": 20,+ "name": "reach regulation"+ }+ ],+ "metadata": [{- "signal": "number_table",- "weight": 3+ "field": "title",+ "pattern": "safety data sheet|msds",+ "weight": 16,+ "name": "sds title"}]},{"id": "warranty-document",- "name": "Warranty document",- "emit": true,"phrases": [{"text": "warranty certificate",@@ -20920,38 +16040,6 @@"weight": 12}],- "regexes": [- {- "pattern": "\\b\\d{1,2}[- ]year(?:s)?\\s+(?:limited\\s+)?(?:warranty|guarantee)",- "weight": 18,- "name": "N-year warranty"- },- {- "pattern": "warrant(?:y|ies)\\s+(?:is|are)\\s+void",- "weight": 14,- "name": "warranty void clause"- }- ],- "filenames": [- {- "pattern": "warranty",- "weight": 28,- "name": "warranty in filename"- },- {- "pattern": "guarantee",- "weight": 18,- "name": "guarantee in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "warranty|guarantee",- "weight": 12,- "name": "warranty in PDF title"- }- ],"negatives": [{"text": "policy number",@@ -20979,17 +16067,29 @@"name": "manual TOC"}],- "structural": [+ "regexes": [+ {+ "pattern": "\\b\\d{1,2}[- ]year(?:s)?\\s+(?:limited\\s+)?(?:warranty|guarantee)",+ "weight": 18,+ "name": "N-year warranty"+ },+ {+ "pattern": "warrant(?:y|ies)\\s+(?:is|are)\\s+void",+ "weight": 14,+ "name": "warranty void clause"+ }+ ],+ "metadata": [{- "signal": "short_doc",- "weight": 4+ "field": "title",+ "pattern": "warranty|guarantee",+ "weight": 12,+ "name": "warranty in PDF title"}]},{"id": "license-agreement",- "name": "License agreement",- "emit": true,"phrases": [{"text": "license certificate",@@ -21045,49 +16145,6 @@"weight": 6}],- "regexes": [- {- "pattern": "\\b[a-z0-9]{4,5}(?:-[a-z0-9]{4,5}){3,6}\\b",- "flags": "gi",- "weight": 14,- "name": "hyphenated product key"- },- {- "pattern": "(?:license|licence|product|activation)\\s*(?:key|code)\\s*:?\\s*[a-z0-9][a-z0-9-]{9,39}",- "weight": 18,- "name": "license key field"- }- ],- "filenames": [- {- "pattern": "licen[cs]e[-_ ]?key",- "weight": 28,- "name": "license key filename"- },- {- "pattern": "licen[cs]e[-_ ]?certificate",- "weight": 26,- "name": "license certificate filename"- },- {- "pattern": "product[-_ ]?key",- "weight": 24,- "name": "product key filename"- },- {- "pattern": "activation",- "weight": 16,- "name": "activation in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "license (certificate|key)",- "weight": 14,- "name": "license certificate in PDF title"- }- ],"negatives": [{"text": "end user license agreement",@@ -21110,21 +16167,24 @@"name": "T&C legal doc"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 8- },+ "pattern": "(?:license|licence|product|activation)\\s*(?:key|code)\\s*:?\\s*[a-z0-9][a-z0-9-]{9,39}",+ "weight": 18,+ "name": "license key field"+ }+ ],+ "metadata": [{- "signal": "form_like",- "weight": 3+ "field": "title",+ "pattern": "license (certificate|key)",+ "weight": 14,+ "name": "license certificate in PDF title"}]},{"id": "email-thread",- "name": "Email thread",- "emit": true,"phrases": [{"text": "original message",@@ -21151,6 +16211,18 @@"weight": 8}],+ "negatives": [+ {+ "text": "memorandum",+ "weight": 18,+ "name": "Memo heading"+ },+ {+ "text": "for immediate release",+ "weight": 20,+ "name": "Press release wording"+ }+ ],"regexes": [{"pattern": "from:\\s?[^\\n]{0,60}@[a-z0-9.\\-]+",@@ -21171,12 +16243,6 @@"weight": 22,"name": "Re:/Fwd: subject header"},- {- "pattern": "<[a-z0-9._%+\\-]+@[a-z0-9.\\-]+\\.[a-z]{2,}>",- "flags": "gi",- "weight": 8,- "name": "Angle-bracket email address"- },{"pattern": "\\bon [a-z]{3}, (\\d{1,2} [a-z]{3}|[a-z]{3} \\d{1,2}),? \\d{4}[^\\n]{0,60}wrote:","flags": "gi",@@ -21190,30 +16256,7 @@"name": "Mobile signature"}],- "filenames": [- {- "pattern": "^gmail - ",- "weight": 26,- "name": "Gmail print filename"- },- {- "pattern": "(^|[\\\\/])(fw|fwd|re)[_ ]",- "weight": 16,- "name": "FW/RE filename prefix"- },- {- "pattern": "email",- "weight": 14,- "name": "Email in filename"- }- ],"metadata": [- {- "field": "creator",- "pattern": "outlook|thunderbird",- "weight": 14,- "name": "Mail client creator"- },{"field": "title","pattern": "^(re|fw|fwd):",@@ -21226,29 +16269,10 @@"weight": 16,"name": "Gmail print title"}- ],- "negatives": [- {- "text": "memorandum",- "weight": 18,- "name": "Memo heading"- },- {- "text": "for immediate release",- "weight": 20,- "name": "Press release wording"- }- ],- "structural": [- {- "signal": "email_headers",- "weight": 12- }]},{"id": "recipe",- "name": "Recipe","phrases": [{"text": "ingredients",@@ -21297,6 +16321,18 @@"where": "title"}],+ "negatives": [+ {+ "text": "safety data sheet",+ "weight": 20,+ "name": "SDS ingredients section"+ },+ {+ "text": "please inform your server",+ "weight": 15,+ "name": "Menu wording"+ }+ ],"regexes": [{"pattern": "\\b\\d+ ?(cups?|tablespoons?|teaspoons?|tbsp|tsp)\\b",@@ -21323,13 +16359,6 @@"name": "Bring to a boil/simmer"}],- "filenames": [- {- "pattern": "recipe",- "weight": 25,- "name": "Recipe in filename"- }- ],"metadata": [{"field": "title",@@ -21337,34 +16366,10 @@"weight": 12,"name": "Recipe in PDF title"}- ],- "negatives": [- {- "text": "safety data sheet",- "weight": 20,- "name": "SDS ingredients section"- },- {- "text": "please inform your server",- "weight": 15,- "name": "Menu wording"- }- ],- "structural": [- {- "signal": "short_doc",- "weight": 4- },- {- "signal": "bullet_heavy",- "weight": 4- }- ],- "emit": false+ ]},{"id": "menu",- "name": "Menu","phrases": [{"text": "starters",@@ -21424,35 +16429,6 @@"weight": 8}],- "regexes": [- {- "pattern": "\\((v|vg|ve|gf)\\)",- "flags": "g",- "weight": 10,- "name": "Dietary marker (v)/(vg)"- },- {- "pattern": "\\.{3,} ?(£|\\$|€)?\\d{1,3}(\\.\\d{2})?",- "flags": "g",- "weight": 12,- "name": "Dotted price leader"- }- ],- "filenames": [- {- "pattern": "menu",- "weight": 24,- "name": "Menu in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "menu",- "weight": 12,- "name": "Menu in PDF title"- }- ],"negatives": [{"pattern": "\\b\\d+ ?(cups?|tablespoons?|teaspoons?|tbsp|tsp)\\b",@@ -21471,21 +16447,17 @@"name": "Receipt field"}],- "structural": [- {- "signal": "currency_heavy",- "weight": 6- },+ "metadata": [{- "signal": "short_doc",- "weight": 4+ "field": "title",+ "pattern": "menu",+ "weight": 12,+ "name": "Menu in PDF title"}- ],- "emit": false+ ]},{"id": "book-ebook",- "name": "Book / eBook","phrases": [{"text": "no part of this publication may be reproduced",@@ -21537,50 +16509,16 @@},{"text": "epilogue",- "weight": 14- },- {- "text": "all rights reserved",- "weight": 6,- "where": "first"- },- {- "text": "table of contents",- "weight": 5- }- ],- "regexes": [- {- "pattern": "isbn(-1[03])?:? ?[0-9][0-9\\- ]{8,16}[0-9x]",- "flags": "gi",- "weight": 24,- "name": "ISBN"- },- {- "pattern": "\\bchapter (one|two|three|\\d{1,2})\\b",- "flags": "gi",- "weight": 10,- "name": "Chapter heading"- }- ],- "filenames": [- {- "pattern": "ebook|e-book",- "weight": 22,- "name": "eBook in filename"+ "weight": 14},{- "pattern": "(^|[^a-z])book([^a-z]|$)",- "weight": 10,- "name": "Book in filename"- }- ],- "metadata": [+ "text": "all rights reserved",+ "weight": 6,+ "where": "first"+ },{- "field": "producer",- "pattern": "calibre",- "weight": 18,- "name": "calibre producer (ebook tool)"+ "text": "table of contents",+ "weight": 5}],"negatives": [@@ -21606,21 +16544,23 @@"name": "DOI (academic paper)"}],- "structural": [+ "regexes": [{- "signal": "long_doc",- "weight": 12+ "pattern": "isbn(-1[03])?:? ?[0-9][0-9\\- ]{8,16}[0-9x]",+ "flags": "gi",+ "weight": 24,+ "name": "ISBN"},{- "signal": "toc",- "weight": 5+ "pattern": "\\bchapter (one|two|three|\\d{1,2})\\b",+ "flags": "gi",+ "weight": 10,+ "name": "Chapter heading"}- ],- "emit": false+ ]},{"id": "magazine-article",- "name": "Magazine article","phrases": [{"text": "continued on page",@@ -21659,40 +16599,6 @@"weight": 16}],- "regexes": [- {- "pattern": "\\bissue \\d{1,3}\\b",- "flags": "gi",- "weight": 8,- "name": "Issue number"- },- {- "pattern": "vol\\.? ?\\d{1,3},? (no\\.? ?\\d{1,3}|issue \\d{1,3})",- "flags": "gi",- "weight": 8,- "name": "Volume/issue"- }- ],- "filenames": [- {- "pattern": "magazine",- "weight": 20,- "name": "Magazine in filename"- },- {- "pattern": "article|feature",- "weight": 10,- "name": "Article/feature in filename"- }- ],- "metadata": [- {- "field": "creator",- "pattern": "indesign",- "weight": 8,- "name": "InDesign creator"- }- ],"negatives": [{"pattern": "doi:? ?10\\.\\d{4}",@@ -21716,13 +16622,23 @@"name": "Newsletter"}],- "structural": [],- "emit": false+ "regexes": [+ {+ "pattern": "\\bissue \\d{1,3}\\b",+ "flags": "gi",+ "weight": 8,+ "name": "Issue number"+ },+ {+ "pattern": "vol\\.? ?\\d{1,3},? (no\\.? ?\\d{1,3}|issue \\d{1,3})",+ "flags": "gi",+ "weight": 8,+ "name": "Volume/issue"+ }+ ]},{"id": "form",- "name": "Form",- "emit": true,"phrases": [{"text": "please print clearly",@@ -21781,51 +16697,6 @@"weight": 5}],- "regexes": [- {- "pattern": "_{6,}",- "flags": "g",- "weight": 12,- "name": "Fill-in blanks"- },- {- "pattern": "☐|❏|❑|\\[ ?\\]",- "flags": "g",- "weight": 12,- "name": "Checkbox marks"- },- {- "pattern": "_{2,} ?\\/ ?_{2,}",- "flags": "g",- "weight": 12,- "name": "Date fill-in blank"- }- ],- "filenames": [- {- "pattern": "permission[_\\- ]slip|consent[_\\- ]form",- "weight": 24,- "name": "Permission/consent form filename"- },- {- "pattern": "form",- "weight": 12,- "name": "Form in filename"- },- {- "pattern": "application",- "weight": 10,- "name": "Application in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "\\bform\\b",- "weight": 8,- "name": "Form in PDF title"- }- ],"negatives": [{"pattern": "omb (approval )?(control )?(no\\.?|number|#):? ?\\d{4}-\\d{4}",@@ -21881,21 +16752,17 @@"name": "Official agency form number"}],- "structural": [- {- "signal": "form_like",- "weight": 12- },+ "metadata": [{- "signal": "short_doc",- "weight": 3+ "field": "title",+ "pattern": "\\bform\\b",+ "weight": 8,+ "name": "Form in PDF title"}]},{"id": "invitation",- "name": "Invitation",- "emit": true,"phrases": [{"text": "you are cordially invited",@@ -21951,43 +16818,6 @@"weight": 10}],- "regexes": [- {- "pattern": "rsvp\\s+(?:by|to|at|before)",- "weight": 16,- "name": "RSVP by/to"- },- {- "pattern": "black[- ]tie",- "weight": 12,- "name": "black tie dress code"- }- ],- "filenames": [- {- "pattern": "invitation",- "weight": 26,- "name": "invitation in filename"- },- {- "pattern": "save[-_ ]?the[-_ ]?date",- "weight": 26,- "name": "save the date filename"- },- {- "pattern": "invite",- "weight": 16,- "name": "invite in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "invitation|save the date",- "weight": 12,- "name": "invitation in PDF title"- }- ],"negatives": [{"text": "admit one",@@ -22015,17 +16845,29 @@"name": "retail order heading"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 8+ "pattern": "rsvp\\s+(?:by|to|at|before)",+ "weight": 16,+ "name": "RSVP by/to"+ },+ {+ "pattern": "black[- ]tie",+ "weight": 12,+ "name": "black tie dress code"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "invitation|save the date",+ "weight": 12,+ "name": "invitation in PDF title"}]},{"id": "gift-certificate",- "name": "Gift certificate",- "emit": true,"phrases": [{"text": "gift voucher",@@ -22076,43 +16918,6 @@"weight": 10}],- "regexes": [- {- "pattern": "(?:gift\\s*card|voucher|certificate)\\s*(?:number|no\\.?|code|#)\\s*:?\\s*[a-z0-9][a-z0-9 -]{5,24}",- "weight": 16,- "name": "gift card/voucher code field"- },- {- "pattern": "(?:check|view)\\s+your\\s+balance",- "weight": 12,- "name": "check your balance"- }- ],- "filenames": [- {- "pattern": "gift[-_ ]?card",- "weight": 28,- "name": "gift card filename"- },- {- "pattern": "gift[-_ ]?certificate",- "weight": 26,- "name": "gift certificate filename"- },- {- "pattern": "voucher",- "weight": 24,- "name": "voucher in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "gift (card|certificate|voucher)",- "weight": 12,- "name": "gift card in PDF title"- }- ],"negatives": [{"text": "boarding pass",@@ -22140,17 +16945,29 @@"name": "subscription context"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 8+ "pattern": "(?:gift\\s*card|voucher|certificate)\\s*(?:number|no\\.?|code|#)\\s*:?\\s*[a-z0-9][a-z0-9 -]{5,24}",+ "weight": 16,+ "name": "gift card/voucher code field"+ },+ {+ "pattern": "(?:check|view)\\s+your\\s+balance",+ "weight": 12,+ "name": "check your balance"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "gift (card|certificate|voucher)",+ "weight": 12,+ "name": "gift card in PDF title"}]},{"id": "confirmation-letter",- "name": "Confirmation letter",- "emit": true,"phrases": [{"text": "appointment confirmation",@@ -22203,43 +17020,6 @@"weight": 12}],- "regexes": [- {- "pattern": "appointment\\s*(?:date|time|ref(?:erence)?)\\s*:?",- "weight": 10,- "name": "appointment field labels"- },- {- "pattern": "(?:cancel|change|reschedule)\\s+your\\s+appointment",- "weight": 16,- "name": "cancel/reschedule your appointment"- },- {- "pattern": "please arrive\\s+\\d{1,2}\\s+minutes",- "weight": 14,- "name": "arrive N minutes early"- }- ],- "filenames": [- {- "pattern": "appointment",- "weight": 28,- "name": "appointment in filename"- },- {- "pattern": "appt",- "weight": 18,- "name": "appt abbreviation in filename"- }- ],- "metadata": [- {- "field": "title",- "pattern": "appointment",- "weight": 14,- "name": "appointment in PDF title"- }- ],"negatives": [{"text": "check-out date",@@ -22267,86 +17047,65 @@"name": "referral letter wording"}],- "structural": [+ "regexes": [{- "signal": "short_doc",- "weight": 8+ "pattern": "appointment\\s*(?:date|time|ref(?:erence)?)\\s*:?",+ "weight": 10,+ "name": "appointment field labels"},{- "signal": "address_block",- "weight": 4+ "pattern": "(?:cancel|change|reschedule)\\s+your\\s+appointment",+ "weight": 16,+ "name": "cancel/reschedule your appointment"+ },+ {+ "pattern": "please arrive\\s+\\d{1,2}\\s+minutes",+ "weight": 14,+ "name": "arrive N minutes early"+ }+ ],+ "metadata": [+ {+ "field": "title",+ "pattern": "appointment",+ "weight": 14,+ "name": "appointment in PDF title"}]}],- "priors": {- "resume": [1, 6],- "cover-letter": [1, 3],- "letter": [1, 5],- "memo": [1, 5],- "ticket": [1, 4],- "invitation": [1, 3],- "receipt": [1, 3],- "invoice": [1, 6],- "quote": [1, 10],- "purchase-order": [1, 8],- "remittance-advice": [1, 3],- "payslip": [1, 3],- "tax-form": [1, 10],- "tax-statement": [1, 8],- "subscription-confirmation": [1, 3],- "order-confirmation": [1, 4],- "donation-receipt": [1, 2],- "confirmation-letter": [1, 2],- "gift-certificate": [1, 2],- "waybill": [1, 2],- "return-authorization": [1, 2],- "packing-slip": [1, 3],- "delivery-note": [1, 3],- "prescription": [1, 2],- "referral-letter": [1, 3],- "immunization-record": [1, 4],- "medical-invoice": [1, 6],- "certificate": [1, 2],- "insurance-certificate": [1, 4],- "license": [1, 5],- "utility-bill": [1, 10],- "benefits-summary": [1, 8],- "government-notice": [1, 6],- "hoa-document": [1, 5],- "legal-notice": [1, 6],- "menu": [1, 8],- "recipe": [1, 6],- "timesheet": [1, 3],- "organization-chart": [1, 5],- "meeting-agenda": [1, 5],- "job-description": [1, 6],- "offer-letter": [1, 5],- "reference-letter": [1, 3],- "email-thread": [1, 8],- "nda": [1, 12],- "affidavit": [1, 8],- "investment-summary": [1, 12],- "letter-of-intent": [1, 15],- "credit-note": [1, 3],- "public-notice": [1, 4],- "subpoena": [1, 6],- "service-agreement": [1, 6],- "consent-form": [1, 4],- "discharge-summary": [1, 6],- "grade-report": [1, 4],- "registration-form": [1, 6],- "supply-order": [1, 3],- "grant-agreement": [1, 4],- "technical-drawing": [1, 12],- "compliance-document": [1, 3],- "test-report": [1, 4],- "book-ebook": [30, null],- "thesis": [20, null],- "regulatory-filing": [12, null],- "audit-report": [10, null],- "business-plan": [8, null],- "user-guide": [5, null],- "employee-handbook": [8, null]+ "patterns": {+ "toc": [+ {+ "pattern": "table of contents"+ }+ ],+ "signature": [+ {+ "pattern": "\\b(signature|signed by|authorized signature|/s/)\\b"+ }+ ],+ "signature_form": [+ {+ "pattern": "_{6,}\\s*\\n\\s*(date|name|sign)",+ "flags": "i"+ }+ ],+ "references": [+ {+ "pattern": "\\b(references|bibliography)\\b"+ }+ ],+ "email_from": [+ {+ "pattern": "\\bfrom:\\s.+\\n(.*\\n){0,3}?\\s*(to|sent|date):\\s",+ "flags": "i"+ }+ ],+ "email_subject": [+ {+ "pattern": "subject:\\s"+ }+ ]}}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/es.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/es.jsonnew file mode 100644index 0000000000..e437c4d197--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/es.json@@ -0,0 +1,648 @@+{+ "version": 2,+ "language": "es",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "factura", "weight": 24, "where": "title" },+ { "text": "impuesto al valor agregado", "weight": 8 },+ { "text": "número de factura", "weight": 22, "where": "first" },+ { "text": "fecha de factura", "weight": 16, "where": "first" },+ { "text": "fecha de vencimiento", "weight": 16 },+ { "text": "base imponible", "weight": 18 },+ { "text": "total a pagar", "weight": 18 },+ { "text": "importe total", "weight": 14 },+ { "text": "forma de pago", "weight": 8 },+ { "text": "iva", "weight": 10 },+ { "text": "nif", "weight": 10 },+ { "text": "cif", "weight": 10 }+ ],+ "negatives": [+ { "text": "albarán", "weight": 14 },+ { "text": "presupuesto", "weight": 14 },+ { "text": "extracto bancario", "weight": 12 }+ ]+ },+ {+ "id": "receipt",+ "phrases": [+ { "text": "recibo", "weight": 22, "where": "title" },+ { "text": "justificante de pago", "weight": 20 },+ { "text": "pago recibido", "weight": 16 },+ { "text": "gracias por su compra", "weight": 16 },+ { "text": "ticket de compra", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "purchase-order",+ "phrases": [+ { "text": "orden de compra", "weight": 20, "where": "title" },+ { "text": "número de pedido", "weight": 18 }+ ]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "recibo", "weight": 20, "where": "title" }]+ },+ {+ "id": "payslip",+ "phrases": [+ { "text": "nómina", "weight": 22, "where": "title" },+ { "text": "salario bruto", "weight": 18 },+ { "text": "líquido a percibir", "weight": 20 },+ { "text": "seguridad social", "weight": 14 },+ { "text": "irpf", "weight": 18 },+ { "text": "devengos", "weight": 16 }+ ]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "gasto", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "estados financieros", "weight": 20, "where": "title" },+ { "text": "balance general", "weight": 12 }+ ]+ },+ {+ "id": "tax-return",+ "phrases": [+ { "text": "declaración de la renta", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "tax-form",+ "phrases": [+ { "text": "declaración de la renta", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "contract",+ "phrases": [+ { "text": "contrato", "weight": 12, "where": "title" },+ { "text": "las partes", "weight": 14 },+ { "text": "ambas partes acuerdan", "weight": 16 },+ { "text": "duración del contrato", "weight": 14 },+ { "text": "rescisión", "weight": 12 },+ { "text": "firmado en", "weight": 10 }+ ]+ },+ {+ "id": "employment-contract",+ "phrases": [+ {+ "text": "contrato individual de trabajo",+ "weight": 24,+ "where": "title"+ },+ { "text": "contrato de trabajo", "weight": 30, "where": "title" },+ { "text": "periodo de prueba", "weight": 18 },+ { "text": "vacaciones", "weight": 12 },+ { "text": "convenio colectivo", "weight": 14 }+ ]+ },+ {+ "id": "lease-agreement",+ "phrases": [+ { "text": "fianza", "weight": 10 },+ { "text": "contrato de arrendamiento", "weight": 30, "where": "title" },+ { "text": "arrendador", "weight": 14 },+ { "text": "arrendatario", "weight": 12 },+ { "text": "renta mensual", "weight": 16 }+ ]+ },+ {+ "id": "nda",+ "phrases": [+ {+ "text": "acuerdo de confidencialidad",+ "weight": 24,+ "where": "title"+ },+ { "text": "información confidencial", "weight": 12 }+ ]+ },+ {+ "id": "terms-and-conditions",+ "phrases": [+ {+ "text": "términos y condiciones de uso",+ "weight": 22,+ "where": "title"+ },+ { "text": "condiciones generales", "weight": 26, "where": "title" },+ { "text": "términos y condiciones", "weight": 26, "where": "title" }+ ]+ },+ {+ "id": "privacy-policy",+ "phrases": [+ { "text": "política de privacidad", "weight": 24, "where": "title" },+ { "text": "rgpd", "weight": 14 },+ { "text": "datos personales", "weight": 12 },+ { "text": "responsable del tratamiento", "weight": 18 }+ ]+ },+ {+ "id": "affidavit",+ "phrases": [+ { "text": "declaración jurada", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "will",+ "phrases": [{ "text": "testamento", "weight": 20, "where": "title" }]+ },+ {+ "id": "deed",+ "phrases": [{ "text": "deed", "weight": 16, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [+ { "text": "crédito hipotecario", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "insurance-policy",+ "phrases": [+ { "text": "deducible", "weight": 8 },+ { "text": "póliza de seguro", "weight": 28, "where": "title" },+ { "text": "número de póliza", "weight": 16 },+ { "text": "cobertura", "weight": 12 },+ { "text": "franquicia", "weight": 14 },+ { "text": "prima", "weight": 10 }+ ]+ },+ {+ "id": "resume",+ "phrases": [+ { "text": "résumé", "weight": 20, "where": "title" },+ { "text": "currículum vitae", "weight": 24, "where": "title" },+ { "text": "currículum", "weight": 20, "where": "title" },+ { "text": "experiencia profesional", "weight": 20 },+ { "text": "datos personales", "weight": 10 },+ { "text": "idiomas", "weight": 12 }+ ]+ },+ {+ "id": "cover-letter",+ "phrases": [+ { "text": "carta de presentación", "weight": 20, "where": "title" },+ { "text": "me dirijo a ustedes", "weight": 18 },+ { "text": "atentamente", "weight": 10 }+ ],+ "negatives": [{ "text": "experiencia profesional", "weight": 12 }]+ },+ {+ "id": "reference-letter",+ "phrases": [+ { "text": "carta de recomendación", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "certificate",+ "phrases": [{ "text": "diploma", "weight": 16, "where": "title" }]+ },+ {+ "id": "research-paper",+ "phrases": [{ "text": "editorial académica", "weight": 10 }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "patente", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "receta médica", "weight": 20, "where": "title" },+ { "text": "farmacia", "weight": 10 },+ { "text": "posología", "weight": 18 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [+ { "text": "historia clínica", "weight": 18, "where": "title" },+ { "text": "diagnóstico", "weight": 10 },+ { "text": "informe médico", "weight": 24, "where": "title" },+ { "text": "anamnesis", "weight": 18 }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "vacunación", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "cuestionario", "weight": 20, "where": "title" }]+ },+ {+ "id": "warranty-document",+ "phrases": [{ "text": "garantía", "weight": 18, "where": "title" }]+ },+ {+ "id": "user-guide",+ "phrases": [+ { "text": "manual de usuario", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ {+ "text": "ficha de datos de seguridad",+ "weight": 24,+ "where": "title"+ }+ ]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "dibujo técnico", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [+ { "text": "comunicado de prensa", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "newsletter",+ "phrases": [+ { "text": "boletín informativo", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "díptico", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "plan de negocio", "weight": 20, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "libro blanco", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-minutes",+ "phrases": [+ { "text": "acta de una reunión", "weight": 18, "where": "title" },+ { "text": "acta de la reunión", "weight": 26, "where": "title" },+ { "text": "asistentes", "weight": 10 }+ ]+ },+ {+ "id": "meeting-agenda",+ "phrases": [+ { "text": "agenda", "weight": 16, "where": "title" },+ { "text": "orden del día", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "memorándum", "weight": 16, "where": "title" }]+ },+ {+ "id": "ticket",+ "phrases": [+ { "text": "billete", "weight": 18, "where": "title" },+ { "text": "tarjeta de embarque", "weight": 26, "where": "title" }+ ]+ },+ {+ "id": "waybill",+ "phrases": [+ { "text": "guía de embarque", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "visa", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [+ { "text": "medidor de consumo eléctrico", "weight": 12 },+ { "text": "factura de la luz", "weight": 26, "where": "title" },+ { "text": "lectura del contador", "weight": 20 },+ { "text": "consumo", "weight": 12 },+ { "text": "kwh", "weight": 12 }+ ]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "menú", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [+ { "text": "receta culinaria", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "presentation",+ "phrases": [{ "text": "presentación", "weight": 12, "where": "title" }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "informe", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "carta", "weight": 8, "where": "title" }]+ },+ {+ "id": "form",+ "phrases": [{ "text": "formulario", "weight": 10, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "licencia", "weight": 12, "where": "title" }]+ },+ {+ "id": "legal-notice",+ "phrases": [{ "text": "cese y desista", "weight": 18, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "auditoría", "weight": 12 }]+ },+ {+ "id": "risk-assessment",+ "phrases": [+ { "text": "evaluación de riesgo", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "inspection-report",+ "phrases": [{ "text": "inspección", "weight": 10 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "inmueble", "weight": 8 }]+ },+ {+ "id": "grant-agreement",+ "phrases": [{ "text": "subvención", "weight": 12 }]+ },+ {+ "id": "tender-document",+ "phrases": [{ "text": "licitación", "weight": 18, "where": "title" }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "suscripción", "weight": 10 }]+ },+ {+ "id": "donation-receipt",+ "phrases": [{ "text": "donación", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "correo electrónico", "weight": 8 }]+ },+ {+ "id": "book-ebook",+ "phrases": [{ "text": "sumario", "weight": 6 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "revista", "weight": 10 }]+ },+ {+ "id": "course-syllabus",+ "phrases": [{ "text": "plan docente", "weight": 20, "where": "title" }]+ },+ {+ "id": "lesson-plan",+ "phrases": [+ { "text": "unidad didáctica", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "performance-review",+ "phrases": [+ { "text": "evaluación del desempeño", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "reclutamiento", "weight": 8 }]+ },+ {+ "id": "statement-of-work",+ "phrases": [+ { "text": "enunciado de trabajo", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "service-agreement",+ "phrases": [+ {+ "text": "acuerdo de nivel de servicio",+ "weight": 18,+ "where": "title"+ }+ ]+ },+ {+ "id": "purchase-agreement",+ "phrases": [+ { "text": "contrato de compraventa", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "loan-agreement",+ "phrases": [+ { "text": "contrato de mutuo", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "shareholder-agreement",+ "phrases": [+ { "text": "pacto parasocial", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "settlement-agreement",+ "phrases": [{ "text": "avenencia", "weight": 18, "where": "title" }]+ },+ {+ "id": "consent-form",+ "phrases": [+ { "text": "consentimiento informado", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "lab-report",+ "phrases": [{ "text": "laboratorio clínico", "weight": 12 }]+ },+ {+ "id": "referral-letter",+ "phrases": [+ { "text": "derivación sanitaria", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "seguro", "weight": 20, "where": "title" }]+ },+ {+ "id": "regulatory-filing",+ "phrases": [{ "text": "cumplimiento normativo", "weight": 10 }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "control de calidad", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "calibración", "weight": 12 }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "seguridad y salud laboral", "weight": 10 }]+ },+ {+ "id": "datasheet",+ "phrases": [{ "text": "ficha técnica", "weight": 18, "where": "title" }]+ },+ {+ "id": "technical-specification",+ "phrases": [{ "text": "especificación", "weight": 16, "where": "title" }]+ },+ {+ "id": "proposal",+ "phrases": [+ { "text": "solicitud de propuestas", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "presupuesto", "weight": 14, "where": "title" }]+ },+ {+ "id": "gift-certificate",+ "phrases": [{ "text": "tarjeta regalo", "weight": 16, "where": "title" }]+ },+ {+ "id": "return-authorization",+ "phrases": [{ "text": "devolución", "weight": 16, "where": "title" }]+ },+ {+ "id": "organization-chart",+ "phrases": [{ "text": "organigrama", "weight": 20, "where": "title" }]+ },+ {+ "id": "case-study",+ "phrases": [{ "text": "estudio de caso", "weight": 16, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "consejo de administración", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "inversión", "weight": 8 }]+ },+ {+ "id": "letter-of-intent",+ "phrases": [+ { "text": "carta de intención", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "análisis web", "weight": 10 }]+ },+ {+ "id": "appraisal-report",+ "phrases": [+ { "text": "valoración urbanística", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "benefits-summary",+ "phrases": [{ "text": "beneficios laborales", "weight": 14 }]+ },+ {+ "id": "hoa-document",+ "phrases": [+ { "text": "comunidad de propietarios", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "trabajo escolar", "weight": 12 }]+ },+ {+ "id": "quote",+ "phrases": [+ { "text": "presupuesto", "weight": 26, "where": "title" },+ { "text": "número de presupuesto", "weight": 20 },+ { "text": "válido hasta", "weight": 16 }+ ],+ "negatives": [{ "text": "número de factura", "weight": 14 }]+ },+ {+ "id": "order-confirmation",+ "phrases": [+ { "text": "confirmación de pedido", "weight": 26, "where": "title" },+ { "text": "gracias por su pedido", "weight": 16 }+ ]+ },+ {+ "id": "delivery-note",+ "phrases": [+ { "text": "albarán de entrega", "weight": 28, "where": "title" },+ { "text": "albarán", "weight": 24, "where": "title" },+ { "text": "dirección de entrega", "weight": 10 }+ ]+ },+ {+ "id": "bank-statement",+ "phrases": [+ { "text": "extracto bancario", "weight": 28, "where": "title" },+ { "text": "extracto de cuenta", "weight": 26, "where": "title" },+ { "text": "saldo anterior", "weight": 18 },+ { "text": "saldo actual", "weight": 18 },+ { "text": "fecha valor", "weight": 16 },+ { "text": "número de cuenta", "weight": 12 }+ ]+ },+ {+ "id": "booking-confirmation",+ "phrases": [+ { "text": "confirmación de reserva", "weight": 26, "where": "title" },+ { "text": "número de reserva", "weight": 18 }+ ]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "[íi]ndice" }],+ "references": [{ "pattern": "\\\\b(bibliograf[íi]a|referencias)\\\\b" }],+ "signature": [{ "pattern": "\\\\b(firma|firmado|fdo)\\\\b" }],+ "signature_form": [+ { "pattern": "_{6,}\\\\s*\\\\n\\\\s*(fecha|nombre|firma)", "flags": "i" }+ ],+ "email_from": [+ {+ "pattern": "\\\\bde\\\\s?:\\\\s.+\\\\n(.*\\\\n){0,3}?\\\\s*(para|enviado|fecha)\\\\s?:\\\\s",+ "flags": "i"+ }+ ],+ "email_subject": [{ "pattern": "asunto\\\\s?:\\\\s" }],+ "currency": [{ "pattern": "\\\\d[\\\\d .,]*\\\\s?(eur|€)|€\\\\s?\\\\d" }],+ "form_label": [+ {+ "pattern": "^[A-Za-zÁÉÍÓÚÜÑáéíóúüñ][A-Za-zÁÉÍÓÚÜÑáéíóúüñ /()&'.-]{2,30}\\\\s?:\\\\s*$",+ "flags": "m"+ }+ ]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/eu.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/eu.jsonnew file mode 100644index 0000000000..b7431a21e5--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/eu.json@@ -0,0 +1,290 @@+{+ "version": 2,+ "language": "eu",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "faktura", "weight": 24, "where": "title" },+ { "text": "balio erantsiaren gaineko zerga", "weight": 8 }+ ]+ },+ {+ "id": "receipt",+ "phrases": [{ "text": "ordainagiri", "weight": 22, "where": "title" }]+ },+ {+ "id": "credit-note",+ "phrases": [{ "text": "kreditu-agiri", "weight": 22, "where": "title" }]+ },+ {+ "id": "purchase-order",+ "phrases": [{ "text": "erosketa agindu", "weight": 20, "where": "title" }]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "ordainagiri", "weight": 20, "where": "title" }]+ },+ {+ "id": "payslip",+ "phrases": [{ "text": "soldata orri", "weight": 22, "where": "title" }]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "gastu", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "urteko kontuak", "weight": 20, "where": "title" },+ { "text": "balantze-orri", "weight": 12 }+ ]+ },+ {+ "id": "tax-return",+ "phrases": [+ { "text": "errenta aitorpen", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "tax-form",+ "phrases": [+ { "text": "errenta aitorpen", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "kontratu", "weight": 12, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [{ "text": "lan-kontratu", "weight": 24, "where": "title" }]+ },+ {+ "id": "privacy-policy",+ "phrases": [+ { "text": "pribatutasun-politika", "weight": 24, "where": "title" },+ { "text": "datuak babesteko erregelamendu orokorra", "weight": 10 }+ ]+ },+ {+ "id": "will",+ "phrases": [{ "text": "testamentu", "weight": 20, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [+ { "text": "hipoteka-mailegu", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "insurance-policy",+ "phrases": [{ "text": "aseguru-poliza", "weight": 22, "where": "title" }]+ },+ {+ "id": "resume",+ "phrases": [{ "text": "cv labur", "weight": 20, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [{ "text": "diploma", "weight": 16, "where": "title" }]+ },+ {+ "id": "transcript",+ "phrases": [{ "text": "noten agiri", "weight": 18, "where": "title" }]+ },+ {+ "id": "thesis",+ "phrases": [{ "text": "tesi", "weight": 20, "where": "title" }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "patente", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [{ "text": "farmazia", "weight": 10 }]+ },+ {+ "id": "medical-report",+ "phrases": [+ { "text": "historia kliniko", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "txertaketa", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "galdetegi", "weight": 20, "where": "title" }]+ },+ {+ "id": "technical-drawing",+ "phrases": [+ { "text": "marrazketa tekniko", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "newsletter",+ "phrases": [{ "text": "buletin", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "negozio-plan", "weight": 20, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "liburu zuri", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-minutes",+ "phrases": [{ "text": "akta", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-agenda",+ "phrases": [{ "text": "gai zerrenda", "weight": 16, "where": "title" }]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "memorandum", "weight": 16, "where": "title" }]+ },+ {+ "id": "customs-declaration",+ "phrases": [{ "text": "aduana-aitorpen", "weight": 22, "where": "title" }]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "bisa", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "wattordugailu", "weight": 12 }]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "menu", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [{ "text": "errezeta", "weight": 18, "where": "title" }]+ },+ {+ "id": "presentation",+ "phrases": [{ "text": "aurkezpen", "weight": 12, "where": "title" }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "txosten", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "eskutitz", "weight": 8, "where": "title" }]+ },+ {+ "id": "form",+ "phrases": [{ "text": "formulario", "weight": 10, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "kontu-ikuskaritza", "weight": 12 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "ondasun higiezin", "weight": 8 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "posta elektroniko", "weight": 8 }]+ },+ {+ "id": "book-ebook",+ "phrases": [{ "text": "aurkibide", "weight": 6 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "aldizkari", "weight": 10 }]+ },+ {+ "id": "lesson-plan",+ "phrases": [+ { "text": "unitate didaktiko", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "hautapen-prozesu", "weight": 8 }]+ },+ {+ "id": "purchase-agreement",+ "phrases": [+ { "text": "salerosketa kontratu", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "consent-form",+ "phrases": [+ { "text": "baimen informatu", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "lab-report",+ "phrases": [{ "text": "proba analitiko", "weight": 12 }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "aseguru", "weight": 20, "where": "title" }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "laneko segurtasun eta osasuna", "weight": 10 }]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "aurrekontu", "weight": 14, "where": "title" }]+ },+ {+ "id": "order-confirmation",+ "phrases": [+ { "text": "salmenta-eskaera", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "application-form",+ "phrases": [{ "text": "enplegu-eskaera", "weight": 14, "where": "title" }]+ },+ {+ "id": "organization-chart",+ "phrases": [{ "text": "organigrama", "weight": 20, "where": "title" }]+ },+ {+ "id": "case-study",+ "phrases": [{ "text": "kasu azterketa", "weight": 16, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "administrazio kontseilu", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "inbestimendu", "weight": 8 }]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "web-analitika", "weight": 10 }]+ },+ {+ "id": "hoa-document",+ "phrases": [{ "text": "jabeen erkidego", "weight": 18, "where": "title" }]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "etxeko lan", "weight": 12 }]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "aurkibide" }],+ "references": [{ "pattern": "bibliografia" }],+ "signature": [{ "pattern": "sinadura" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/fa.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/fa.jsonnew file mode 100644index 0000000000..b701540b85--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/fa.json@@ -0,0 +1,425 @@+{+ "version": 2,+ "language": "fa",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "فاکتور", "weight": 24, "where": "title" },+ { "text": "مالیات بر ارزش افزوده", "weight": 8 }+ ]+ },+ {+ "id": "receipt",+ "phrases": [{ "text": "برگ خرید", "weight": 22, "where": "title" }]+ },+ {+ "id": "purchase-order",+ "phrases": [{ "text": "سفارش خرید", "weight": 20, "where": "title" }]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "برگ خرید", "weight": 20, "where": "title" }]+ },+ {+ "id": "bank-statement",+ "phrases": [{ "text": "گواهی تمکن مالی", "weight": 24, "where": "title" }]+ },+ {+ "id": "payslip",+ "phrases": [{ "text": "حقوق و دستمزد", "weight": 22, "where": "title" }]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "برآمد", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "صورت مالی", "weight": 20, "where": "title" },+ { "text": "ترازنامه", "weight": 12 }+ ]+ },+ {+ "id": "tax-return",+ "phrases": [+ { "text": "اظهارنامه مالیاتی", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "tax-form",+ "phrases": [+ { "text": "اظهارنامه مالیاتی", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "قرارداد", "weight": 12, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [{ "text": "قرارداد کاری", "weight": 24, "where": "title" }]+ },+ {+ "id": "lease-agreement",+ "phrases": [+ { "text": "واسپاری", "weight": 18, "where": "title" },+ { "text": "صاحبخانه", "weight": 8 }+ ]+ },+ {+ "id": "nda",+ "phrases": [+ { "text": "پیماننامه عدم افشا", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "terms-and-conditions",+ "phrases": [+ { "text": "شرایط و مقررات سرویسدهی", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "will",+ "phrases": [{ "text": "وصیتنامه", "weight": 20, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [{ "text": "وام مسکن", "weight": 18, "where": "title" }]+ },+ {+ "id": "insurance-policy",+ "phrases": [{ "text": "خودپرداخت", "weight": 8 }]+ },+ {+ "id": "resume",+ "phrases": [{ "text": "رزومه", "weight": 24, "where": "title" }]+ },+ {+ "id": "cover-letter",+ "phrases": [{ "text": "نامه پوششی", "weight": 20, "where": "title" }]+ },+ {+ "id": "timesheet",+ "phrases": [{ "text": "کارت آمدوشد", "weight": 20, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [+ { "text": "مدرک تحصیلی", "weight": 16, "where": "title" },+ { "text": "دیپلم", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "thesis",+ "phrases": [{ "text": "پایاننامه", "weight": 20, "where": "title" }]+ },+ {+ "id": "research-paper",+ "phrases": [{ "text": "نشر دانشگاهی", "weight": 10 }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "ثبت اختراع", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "نسخه پزشک", "weight": 20, "where": "title" },+ { "text": "داروسازی", "weight": 10 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [+ { "text": "مدارک پزشکی", "weight": 18, "where": "title" },+ { "text": "تشخیص", "weight": 10 }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "واکسیناسیون", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "پرسشنامه", "weight": 20, "where": "title" }]+ },+ {+ "id": "warranty-document",+ "phrases": [{ "text": "ضمانتنامه", "weight": 18, "where": "title" }]+ },+ {+ "id": "user-guide",+ "phrases": [{ "text": "راهنمای کاربر", "weight": 22, "where": "title" }]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ { "text": "برگ اطلاعات ایمنی", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "ترسیم فنی", "weight": 20, "where": "title" }]+ },+ {+ "id": "bill-of-materials",+ "phrases": [+ { "text": "فهرست مواد اولیه", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "press-release",+ "phrases": [{ "text": "اعلامیه مطبوعاتی", "weight": 22, "where": "title" }]+ },+ {+ "id": "newsletter",+ "phrases": [{ "text": "خبرنامه", "weight": 16, "where": "title" }]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "دفترک", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "طرح کسبوکار", "weight": 20, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "اوراق سفید", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-minutes",+ "phrases": [{ "text": "صورتجلسه", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-agenda",+ "phrases": [{ "text": "دستور کار", "weight": 16, "where": "title" }]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "تفهیمنامه", "weight": 16, "where": "title" }]+ },+ {+ "id": "invitation",+ "phrases": [{ "text": "کارت دعوت", "weight": 14, "where": "title" }]+ },+ {+ "id": "ticket",+ "phrases": [{ "text": "بلیت", "weight": 18, "where": "title" }]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "روادید", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "کنتور", "weight": 12 }]+ },+ {+ "id": "recipe",+ "phrases": [{ "text": "دستور غذا", "weight": 18, "where": "title" }]+ },+ {+ "id": "presentation",+ "phrases": [{ "text": "ارائه", "weight": 12, "where": "title" }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "گزارش", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "نامه", "weight": 8, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "مجوز", "weight": 12, "where": "title" }]+ },+ {+ "id": "legal-notice",+ "phrases": [{ "text": "توقف و انصراف", "weight": 18, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "حسابرسی", "weight": 12 }]+ },+ {+ "id": "risk-assessment",+ "phrases": [{ "text": "ارزیابی ریسک", "weight": 20, "where": "title" }]+ },+ {+ "id": "inspection-report",+ "phrases": [{ "text": "بازرسی", "weight": 10 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "املاک و مستغلات", "weight": 8 }]+ },+ {+ "id": "grant-agreement",+ "phrases": [{ "text": "کمکهزینه", "weight": 12 }]+ },+ {+ "id": "tender-document",+ "phrases": [{ "text": "مناقصه", "weight": 18, "where": "title" }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "آبونمان", "weight": 10 }]+ },+ {+ "id": "donation-receipt",+ "phrases": [{ "text": "کمک مالی", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "ایمیل", "weight": 8 }]+ },+ {+ "id": "book-ebook",+ "phrases": [{ "text": "فهرست مطالب", "weight": 6 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "مجله", "weight": 10 }]+ },+ {+ "id": "course-syllabus",+ "phrases": [{ "text": "سیلابس", "weight": 20, "where": "title" }]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "نیرویابی", "weight": 8 }]+ },+ {+ "id": "statement-of-work",+ "phrases": [{ "text": "بیانیه کار", "weight": 20, "where": "title" }]+ },+ {+ "id": "service-agreement",+ "phrases": [+ { "text": "موافقتنامه سطح خدمات", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "purchase-agreement",+ "phrases": [{ "text": "عقد بیع", "weight": 18, "where": "title" }]+ },+ {+ "id": "legal-opinion",+ "phrases": [{ "text": "نظر حقوقی", "weight": 18, "where": "title" }]+ },+ {+ "id": "consent-form",+ "phrases": [{ "text": "رضایت آگاهانه", "weight": 18, "where": "title" }]+ },+ {+ "id": "discharge-summary",+ "phrases": [+ { "text": "مراقبت از بیمار بستری", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "lab-report",+ "phrases": [{ "text": "علوم آزمایشگاهی", "weight": 12 }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "بیمه", "weight": 20, "where": "title" }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "کنترل کیفیت", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "کالیبراسیون", "weight": 12 }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "ایمنی و بهداشت حرفهای", "weight": 10 }]+ },+ {+ "id": "datasheet",+ "phrases": [{ "text": "دیتاشیت", "weight": 18, "where": "title" }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "واسط برنامهنویسی کاربردی", "weight": 8 }]+ },+ {+ "id": "license-agreement",+ "phrases": [+ { "text": "توافقنامه مجوز کاربر نهایی", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "sales-proposal",+ "phrases": [{ "text": "پیشنهاد تجاری", "weight": 16, "where": "title" }]+ },+ {+ "id": "proposal",+ "phrases": [+ { "text": "درخواست طرح پیشنهادی", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "بودجه", "weight": 14, "where": "title" }]+ },+ {+ "id": "statement-of-account",+ "phrases": [{ "text": "گواهی تمکن مالی", "weight": 18, "where": "title" }]+ },+ {+ "id": "gift-certificate",+ "phrases": [{ "text": "گیفت کارت", "weight": 16, "where": "title" }]+ },+ {+ "id": "organization-chart",+ "phrases": [{ "text": "چارت سازمانی", "weight": 20, "where": "title" }]+ },+ {+ "id": "case-study",+ "phrases": [{ "text": "مطالعه موردی", "weight": 16, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "هیئتمدیره", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "سرمایهگذاری", "weight": 8 }]+ },+ {+ "id": "letter-of-intent",+ "phrases": [{ "text": "استعلام بها", "weight": 20, "where": "title" }]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "آنالیز وب", "weight": 10 }]+ },+ {+ "id": "appraisal-report",+ "phrases": [{ "text": "ارزیابی املاک", "weight": 18, "where": "title" }]+ },+ {+ "id": "benefits-summary",+ "phrases": [{ "text": "مزایای شغلی", "weight": 14 }]+ },+ {+ "id": "grade-report",+ "phrases": [{ "text": "کارنامه", "weight": 20, "where": "title" }]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "کار در خانه", "weight": 12 }]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "فهرست\\ مطالب" }],+ "references": [{ "pattern": "کتابشناسی" }],+ "signature": [{ "pattern": "امضا" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/fr.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/fr.jsonnew file mode 100644index 0000000000..fd52a62604--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/fr.json@@ -0,0 +1,642 @@+{+ "version": 2,+ "language": "fr",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "facture", "weight": 24, "where": "title" },+ { "text": "taxe sur la valeur ajoutée", "weight": 8 },+ { "text": "numéro de facture", "weight": 22, "where": "first" },+ { "text": "facture n", "weight": 18, "where": "first" },+ { "text": "date de facture", "weight": 16, "where": "first" },+ { "text": "date d'échéance", "weight": 16 },+ { "text": "total ttc", "weight": 18 },+ { "text": "total ht", "weight": 18 },+ { "text": "net à payer", "weight": 18 },+ { "text": "montant total", "weight": 12 },+ { "text": "conditions de paiement", "weight": 8 },+ { "text": "règlement à réception", "weight": 16 },+ { "text": "tva", "weight": 10 }+ ],+ "negatives": [+ { "text": "bon de livraison", "weight": 14 },+ { "text": "devis", "weight": 14 },+ { "text": "relevé de compte", "weight": 12 },+ { "text": "avoir", "weight": 10 }+ ]+ },+ {+ "id": "receipt",+ "phrases": [+ { "text": "reçu", "weight": 22, "where": "title" },+ { "text": "ticket de caisse", "weight": 22, "where": "title" },+ { "text": "justificatif de paiement", "weight": 20 },+ { "text": "paiement reçu", "weight": 16 },+ { "text": "merci de votre achat", "weight": 16 }+ ]+ },+ {+ "id": "credit-note",+ "phrases": [{ "text": "extourne", "weight": 22, "where": "title" }]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "reçu", "weight": 20, "where": "title" }]+ },+ {+ "id": "bank-statement",+ "phrases": [+ { "text": "relevé de compte", "weight": 24, "where": "title" },+ { "text": "relevé bancaire", "weight": 26, "where": "title" },+ { "text": "solde précédent", "weight": 18 },+ { "text": "nouveau solde", "weight": 18 },+ { "text": "date de valeur", "weight": 16 },+ { "text": "numéro de compte", "weight": 12 }+ ]+ },+ {+ "id": "payslip",+ "phrases": [+ { "text": "bulletin de salaire", "weight": 22, "where": "title" },+ { "text": "bulletin de paie", "weight": 28, "where": "title" },+ { "text": "salaire brut", "weight": 18 },+ { "text": "net imposable", "weight": 18 },+ { "text": "cotisations sociales", "weight": 16 },+ { "text": "urssaf", "weight": 18 }+ ]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "comptes annuels", "weight": 20, "where": "title" },+ { "text": "état de la situation financière", "weight": 12 }+ ]+ },+ {+ "id": "tax-return",+ "phrases": [+ { "text": "déclaration de revenus", "weight": 22, "where": "title" },+ { "text": "avis d'imposition", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "tax-form",+ "phrases": [+ { "text": "déclaration de revenus", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "contract",+ "phrases": [+ { "text": "contrat", "weight": 12, "where": "title" },+ { "text": "entre les parties", "weight": 16 },+ { "text": "les parties conviennent", "weight": 16 },+ { "text": "durée du contrat", "weight": 14 },+ { "text": "résiliation", "weight": 12 },+ { "text": "fait à", "weight": 10 }+ ]+ },+ {+ "id": "employment-contract",+ "phrases": [+ { "text": "contrat de travail", "weight": 24, "where": "title" },+ { "text": "période d'essai", "weight": 18 },+ { "text": "congés payés", "weight": 14 },+ { "text": "rémunération", "weight": 12 }+ ]+ },+ {+ "id": "lease-agreement",+ "phrases": [+ { "text": "bail à rente", "weight": 18, "where": "title" },+ { "text": "landlord", "weight": 8 },+ { "text": "contrat de bail", "weight": 30, "where": "title" },+ { "text": "bail d'habitation", "weight": 26, "where": "title" },+ { "text": "dépôt de garantie", "weight": 18 },+ { "text": "loyer", "weight": 16 },+ { "text": "bailleur", "weight": 14 },+ { "text": "locataire", "weight": 12 }+ ]+ },+ {+ "id": "nda",+ "phrases": [+ { "text": "accord de non-divulgation", "weight": 24, "where": "title" },+ { "text": "accord de confidentialité", "weight": 30, "where": "title" },+ { "text": "clause de confidentialité", "weight": 20 }+ ]+ },+ {+ "id": "privacy-policy",+ "phrases": [+ {+ "text": "politique de confidentialité",+ "weight": 24,+ "where": "title"+ },+ { "text": "rgpd", "weight": 14 },+ { "text": "données personnelles", "weight": 12 }+ ]+ },+ {+ "id": "affidavit",+ "phrases": [+ { "text": "déclaration sous serment", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "will",+ "phrases": [{ "text": "testament", "weight": 20, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [+ { "text": "crédit hypothécaire", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "insurance-policy",+ "phrases": [+ { "text": "police d'assurance", "weight": 22, "where": "title" },+ { "text": "franchise", "weight": 8 },+ { "text": "contrat d'assurance", "weight": 26, "where": "title" },+ { "text": "garanties", "weight": 12 },+ { "text": "numéro de contrat", "weight": 12 }+ ]+ },+ {+ "id": "resume",+ "phrases": [+ { "text": "curriculum vitæ", "weight": 24, "where": "title" },+ { "text": "expérience professionnelle", "weight": 20 },+ { "text": "compétences", "weight": 12 },+ { "text": "formation", "weight": 10 }+ ]+ },+ {+ "id": "cover-letter",+ "phrases": [+ { "text": "lettre de motivation", "weight": 20, "where": "title" },+ { "text": "candidature au poste", "weight": 20 },+ { "text": "je vous prie d'agréer", "weight": 16 },+ { "text": "madame, monsieur", "weight": 12 }+ ],+ "negatives": [{ "text": "expérience professionnelle", "weight": 12 }]+ },+ {+ "id": "certificate",+ "phrases": [{ "text": "diplôme", "weight": 16, "where": "title" }]+ },+ {+ "id": "thesis",+ "phrases": [{ "text": "thèse", "weight": 20, "where": "title" }]+ },+ {+ "id": "patent",+ "phrases": [+ { "text": "brevet d'invention", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "prescription", "weight": 20, "where": "title" },+ { "text": "pharmacie", "weight": 10 },+ { "text": "ordonnance", "weight": 22, "where": "title" },+ { "text": "posologie", "weight": 18 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [+ { "text": "dossier médical", "weight": 18, "where": "title" },+ { "text": "compte rendu médical", "weight": 24, "where": "title" },+ { "text": "diagnostic", "weight": 12 }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "vaccination", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "questionnaire", "weight": 20, "where": "title" }]+ },+ {+ "id": "user-guide",+ "phrases": [{ "text": "mode d'emploi", "weight": 22, "where": "title" }]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ {+ "text": "fiche de données de sécurité",+ "weight": 24,+ "where": "title"+ }+ ]+ },+ {+ "id": "technical-drawing",+ "phrases": [+ { "text": "dessin technique", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "bill-of-materials",+ "phrases": [{ "text": "nomenclature", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [+ { "text": "communiqué de presse", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "newsletter",+ "phrases": [+ { "text": "lettre d'information", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "brochure", "weight": 16, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "livre blanc", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-minutes",+ "phrases": [+ { "text": "compte rendu de réunion", "weight": 18, "where": "title" },+ { "text": "procès-verbal", "weight": 24, "where": "title" },+ { "text": "présents", "weight": 10 }+ ]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "mémorandum", "weight": 16, "where": "title" }]+ },+ {+ "id": "ticket",+ "phrases": [+ { "text": "place de spectacle", "weight": 18, "where": "title" },+ { "text": "carte d'embarquement", "weight": 26, "where": "title" },+ { "text": "billet", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "waybill",+ "phrases": [+ { "text": "lettre de voiture", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "visa", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [+ { "text": "compteur électrique", "weight": 12 },+ { "text": "facture d'électricité", "weight": 26, "where": "title" },+ { "text": "facture de gaz", "weight": 26, "where": "title" },+ { "text": "relevé de compteur", "weight": 20 },+ { "text": "consommation", "weight": 12 },+ { "text": "kwh", "weight": 12 }+ ]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "menu", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [+ { "text": "recette de cuisine", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "presentation",+ "phrases": [{ "text": "présentation", "weight": 12, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "courrier", "weight": 8, "where": "title" }]+ },+ {+ "id": "form",+ "phrases": [{ "text": "formulaire", "weight": 10, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "licence", "weight": 12, "where": "title" }]+ },+ {+ "id": "public-notice",+ "phrases": [{ "text": "annonce légale", "weight": 16, "where": "title" }]+ },+ {+ "id": "legal-notice",+ "phrases": [{ "text": "mise en demeure", "weight": 18, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "audit", "weight": 12 }]+ },+ {+ "id": "risk-assessment",+ "phrases": [+ { "text": "évaluation des risques", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "bien immobilier", "weight": 8 }]+ },+ {+ "id": "grant-agreement",+ "phrases": [{ "text": "subvention", "weight": 12 }]+ },+ {+ "id": "tender-document",+ "phrases": [{ "text": "appel d'offres", "weight": 18, "where": "title" }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "abonnement", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "courrier électronique", "weight": 8 }]+ },+ {+ "id": "book-ebook",+ "phrases": [{ "text": "sommaire", "weight": 6 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "magazine", "weight": 10 }]+ },+ {+ "id": "course-syllabus",+ "phrases": [{ "text": "syllabus", "weight": 20, "where": "title" }]+ },+ {+ "id": "performance-review",+ "phrases": [+ { "text": "entretien d'évaluation", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "recrutement", "weight": 8 }]+ },+ {+ "id": "loan-agreement",+ "phrases": [{ "text": "contrat de prêt", "weight": 20, "where": "title" }]+ },+ {+ "id": "shareholder-agreement",+ "phrases": [+ {+ "text": "convention entre actionnaires",+ "weight": 20,+ "where": "title"+ }+ ]+ },+ {+ "id": "legal-opinion",+ "phrases": [+ {+ "text": "motivation des décisions de justice",+ "weight": 18,+ "where": "title"+ }+ ]+ },+ {+ "id": "subpoena",+ "phrases": [{ "text": "subpoena", "weight": 20, "where": "title" }]+ },+ {+ "id": "consent-form",+ "phrases": [+ {+ "text": "consentement libre et éclairé",+ "weight": 18,+ "where": "title"+ }+ ]+ },+ {+ "id": "discharge-summary",+ "phrases": [{ "text": "hospitalisation", "weight": 20, "where": "title" }]+ },+ {+ "id": "lab-report",+ "phrases": [{ "text": "laboratoire de biologie médicale", "weight": 12 }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "assurance", "weight": 20, "where": "title" }]+ },+ {+ "id": "regulatory-filing",+ "phrases": [{ "text": "conformité", "weight": 10 }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "contrôle qualité", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "étalonnage", "weight": 12 }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "sécurité au travail", "weight": 10 }]+ },+ {+ "id": "technical-specification",+ "phrases": [{ "text": "spécification", "weight": 16, "where": "title" }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "interface de programmation", "weight": 8 }]+ },+ {+ "id": "license-agreement",+ "phrases": [+ {+ "text": "conditions générales d'utilisation",+ "weight": 20,+ "where": "title"+ }+ ]+ },+ {+ "id": "proposal",+ "phrases": [{ "text": "appel d'offres", "weight": 16, "where": "title" }]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "budget", "weight": 14, "where": "title" }]+ },+ {+ "id": "remittance-advice",+ "phrases": [+ { "text": "avis de versement", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "statement-of-account",+ "phrases": [+ { "text": "relevé de compte", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "application-form",+ "phrases": [+ { "text": "demande d'emploi", "weight": 14, "where": "title" }+ ]+ },+ {+ "id": "registration-form",+ "phrases": [+ { "text": "university of new zealand", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "gift-certificate",+ "phrases": [{ "text": "carte cadeau", "weight": 16, "where": "title" }]+ },+ {+ "id": "organization-chart",+ "phrases": [{ "text": "organigramme", "weight": 20, "where": "title" }]+ },+ {+ "id": "case-study",+ "phrases": [{ "text": "étude de cas", "weight": 16, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "conseil d'administration", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "investissement", "weight": 8 }]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "audience d'un site web", "weight": 10 }]+ },+ {+ "id": "appraisal-report",+ "phrases": [+ { "text": "évaluation immobilière", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "hoa-document",+ "phrases": [+ { "text": "syndicat de copropriété", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "grade-report",+ "phrases": [+ { "text": "bulletin scolaire", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "devoir à la maison", "weight": 12 }]+ },+ {+ "id": "quote",+ "phrases": [+ { "text": "devis", "weight": 26, "where": "title" },+ { "text": "numéro de devis", "weight": 20 },+ { "text": "valable jusqu'au", "weight": 16 },+ { "text": "devis gratuit", "weight": 14 }+ ],+ "negatives": [{ "text": "numéro de facture", "weight": 14 }]+ },+ {+ "id": "purchase-order",+ "phrases": [+ { "text": "bon de commande", "weight": 26, "where": "title" },+ { "text": "numéro de commande", "weight": 18 }+ ]+ },+ {+ "id": "order-confirmation",+ "phrases": [+ { "text": "confirmation de commande", "weight": 26, "where": "title" },+ { "text": "accusé de réception de commande", "weight": 20 },+ { "text": "merci pour votre commande", "weight": 16 }+ ]+ },+ {+ "id": "delivery-note",+ "phrases": [+ { "text": "bon de livraison", "weight": 28, "where": "title" },+ { "text": "adresse de livraison", "weight": 10 }+ ]+ },+ {+ "id": "terms-and-conditions",+ "phrases": [+ {+ "text": "conditions générales de vente",+ "weight": 30,+ "where": "title"+ },+ { "text": "cgv", "weight": 16 }+ ]+ },+ {+ "id": "booking-confirmation",+ "phrases": [+ {+ "text": "confirmation de réservation",+ "weight": 26,+ "where": "title"+ },+ { "text": "numéro de réservation", "weight": 18 }+ ]+ },+ {+ "id": "meeting-agenda",+ "phrases": [{ "text": "ordre du jour", "weight": 20, "where": "title" }]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "table des mati[èe]res" }],+ "references": [{ "pattern": "\\\\b(bibliographie|r[ée]f[ée]rences)\\\\b" }],+ "signature": [+ { "pattern": "\\\\b(signature|sign[ée]|lu et approuv[ée])\\\\b" }+ ],+ "signature_form": [+ { "pattern": "_{6,}\\\\s*\\\\n\\\\s*(date|nom|signature)", "flags": "i" }+ ],+ "email_from": [+ {+ "pattern": "\\\\bde\\\\s?:\\\\s.+\\\\n(.*\\\\n){0,3}?\\\\s*(à|envoy[ée]|date)\\\\s?:\\\\s",+ "flags": "i"+ }+ ],+ "email_subject": [{ "pattern": "objet\\\\s?:\\\\s" }],+ "currency": [{ "pattern": "\\\\d[\\\\d .,]*\\\\s?(eur|€)|€\\\\s?\\\\d" }],+ "form_label": [+ {+ "pattern": "^[A-Za-zÀ-ÿ][A-Za-zÀ-ÿ /()&'.-]{2,30}\\\\s?:\\\\s*$",+ "flags": "m"+ }+ ]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/ga.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/ga.jsonnew file mode 100644index 0000000000..2ed5137370--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/ga.json@@ -0,0 +1,70 @@+{+ "version": 2,+ "language": "ga",+ "labels": [+ {+ "id": "invoice",+ "phrases": [{ "text": "cáin bhreisluacha", "weight": 8 }]+ },+ {+ "id": "financial-statement",+ "phrases": [{ "text": "clár comhardaithe", "weight": 12 }]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "conradh", "weight": 12, "where": "title" }]+ },+ {+ "id": "affidavit",+ "phrases": [{ "text": "mionnscríbhinn", "weight": 20, "where": "title" }]+ },+ {+ "id": "deed",+ "phrases": [{ "text": "gníomhas", "weight": 16, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [{ "text": "morgáiste", "weight": 18, "where": "title" }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "paitinn", "weight": 18, "where": "title" }]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "vacsaíniú", "weight": 12 }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "tuairisc", "weight": 8, "where": "title" }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "ríomhphost", "weight": 8 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "irisleabhar", "weight": 10 }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "árachas", "weight": 20, "where": "title" }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "calabrú", "weight": 12 }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "comhéadan feidhmchláir", "weight": 8 }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "bord stiúrthóirí", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "infheistíocht", "weight": 8 }]+ }+ ]+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/hi.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/hi.jsonnew file mode 100644index 0000000000..165515abfc--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/hi.json@@ -0,0 +1,237 @@+{+ "version": 2,+ "language": "hi",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "बीजक", "weight": 24, "where": "title" },+ { "text": "मूल्य वर्धित कर", "weight": 8 }+ ]+ },+ {+ "id": "bank-statement",+ "phrases": [{ "text": "बैंक स्टेटमेंट", "weight": 24, "where": "title" }]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "व्यय", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "वित्तीय विवरण", "weight": 20, "where": "title" },+ { "text": "तुलन पत्र", "weight": 12 }+ ]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "संविदा", "weight": 12, "where": "title" }]+ },+ {+ "id": "privacy-policy",+ "phrases": [{ "text": "सामान्य डाटा संरक्षण अधिनियम", "weight": 10 }]+ },+ {+ "id": "affidavit",+ "phrases": [{ "text": "शपथपत्र", "weight": 20, "where": "title" }]+ },+ {+ "id": "will",+ "phrases": [{ "text": "इच्छापत्र", "weight": 20, "where": "title" }]+ },+ {+ "id": "deed",+ "phrases": [{ "text": "विलेख", "weight": 16, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [{ "text": "बंधक ऋण", "weight": 18, "where": "title" }]+ },+ {+ "id": "insurance-policy",+ "phrases": [{ "text": "बीमा पॉलिसी", "weight": 22, "where": "title" }]+ },+ {+ "id": "resume",+ "phrases": [{ "text": "रिज़्यूम", "weight": 20, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [{ "text": "डिप्लोमा", "weight": 16, "where": "title" }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "पेटेण्ट", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "औषधनिर्देश पत्र", "weight": 20, "where": "title" },+ { "text": "औषधनिर्माण", "weight": 10 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [{ "text": "चिकित्सा अभिलेख", "weight": 18, "where": "title" }]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "टीकाकरण", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "प्रश्नावली", "weight": 20, "where": "title" }]+ },+ {+ "id": "warranty-document",+ "phrases": [{ "text": "वारंटी", "weight": 18, "where": "title" }]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "तकनीकी आरेख", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [{ "text": "प्रेस विज्ञप्ति", "weight": 22, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "व्यवसाय योजना", "weight": 20, "where": "title" }]+ },+ {+ "id": "meeting-minutes",+ "phrases": [{ "text": "कार्यवृत्त", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-agenda",+ "phrases": [{ "text": "कार्यसूची", "weight": 16, "where": "title" }]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "वीजा", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "विद्युत-मापी", "weight": 12 }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "रिपोर्ट", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "पत्र", "weight": 8, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "लाइसेंस", "weight": 12, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "लेखापरीक्षा", "weight": 12 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "स्थावर सम्पदा", "weight": 8 }]+ },+ {+ "id": "booking-confirmation",+ "phrases": [{ "text": "आरक्षण", "weight": 14, "where": "title" }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "ईमेल", "weight": 8 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "पत्रिका", "weight": 10 }]+ },+ {+ "id": "course-syllabus",+ "phrases": [{ "text": "पाठ्यक्रम", "weight": 20, "where": "title" }]+ },+ {+ "id": "lesson-plan",+ "phrases": [{ "text": "पाठ प्रस्तावना", "weight": 20, "where": "title" }]+ },+ {+ "id": "performance-review",+ "phrases": [{ "text": "निष्पादन-मूल्यांकन", "weight": 20, "where": "title" }]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "भर्ती", "weight": 8 }]+ },+ {+ "id": "discharge-summary",+ "phrases": [+ { "text": "आन्तरिक रोगी देखभाल", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "बीमा", "weight": 20, "where": "title" }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "गुणवत्ता नियंत्रण", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "अंशशोधन", "weight": 12 }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "व्यावसायिक संरक्षा एवं स्वास्थ्य", "weight": 10 }]+ },+ {+ "id": "technical-specification",+ "phrases": [{ "text": "विशिष्टि", "weight": 16, "where": "title" }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "एपीआई", "weight": 8 }]+ },+ {+ "id": "sales-proposal",+ "phrases": [{ "text": "प्रस्ताव", "weight": 16, "where": "title" }]+ },+ {+ "id": "statement-of-account",+ "phrases": [{ "text": "बैंक स्टेटमेंट", "weight": 18, "where": "title" }]+ },+ {+ "id": "application-form",+ "phrases": [{ "text": "रोजगार आवेदन पत्र", "weight": 14, "where": "title" }]+ },+ {+ "id": "organization-chart",+ "phrases": [{ "text": "संगठन चार्ट", "weight": 20, "where": "title" }]+ },+ {+ "id": "case-study",+ "phrases": [{ "text": "केस स्टडी", "weight": 16, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "निदेशकमंडल", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "निवेश", "weight": 8 }]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "वेब विश्लेषिकी", "weight": 10 }]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "गृहकार्य", "weight": 12 }]+ }+ ],+ "patterns": {+ "references": [{ "pattern": "ग्रंथसूची" }],+ "signature": [{ "pattern": "हस्ताक्षर" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/hr.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/hr.jsonnew file mode 100644index 0000000000..9e2002e668--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/hr.json@@ -0,0 +1,143 @@+{+ "version": 2,+ "language": "hr",+ "labels": [+ {+ "id": "invoice",+ "phrases": [{ "text": "porez na dodanu vrijednost", "weight": 8 }]+ },+ {+ "id": "financial-statement",+ "phrases": [{ "text": "bilanca", "weight": 12 }]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "ugovor", "weight": 12, "where": "title" }]+ },+ {+ "id": "privacy-policy",+ "phrases": [{ "text": "opća uredba o zaštiti podataka", "weight": 10 }]+ },+ {+ "id": "will",+ "phrases": [{ "text": "oporuka", "weight": 20, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [{ "text": "diploma", "weight": 16, "where": "title" }]+ },+ {+ "id": "research-paper",+ "phrases": [{ "text": "akademsko nakladništvo", "weight": 10 }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "patent", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "recept", "weight": 20, "where": "title" },+ { "text": "farmacija", "weight": 10 }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "cijepljenje", "weight": 12 }]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "tehnički crtež", "weight": 20, "where": "title" }]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "brošura", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "poslovni plan", "weight": 20, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "bijela knjiga", "weight": 18, "where": "title" }]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "memorandum", "weight": 16, "where": "title" }]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "vizni sustav", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "brojilo električne energije", "weight": 12 }]+ },+ {+ "id": "recipe",+ "phrases": [{ "text": "kuharski recept", "weight": 18, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "licencija", "weight": 12, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "financijska revizija", "weight": 12 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "nekretnina", "weight": 8 }]+ },+ {+ "id": "donation-receipt",+ "phrases": [{ "text": "donacija", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "elektronička pošta", "weight": 8 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "časopis", "weight": 10 }]+ },+ {+ "id": "consent-form",+ "phrases": [+ { "text": "informirani pristanak", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "osiguranje", "weight": 20, "where": "title" }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "kontrola kvalitete", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "umjeravanje", "weight": 12 }]+ },+ {+ "id": "license-agreement",+ "phrases": [{ "text": "eula", "weight": 20, "where": "title" }]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "proračun", "weight": 14, "where": "title" }]+ },+ {+ "id": "organization-chart",+ "phrases": [{ "text": "organigram", "weight": 20, "where": "title" }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "investicija", "weight": 8 }]+ }+ ],+ "patterns": {+ "references": [{ "pattern": "bibliografija" }],+ "signature": [{ "pattern": "potpis" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/hu.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/hu.jsonnew file mode 100644index 0000000000..f80369f992--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/hu.json@@ -0,0 +1,227 @@+{+ "version": 2,+ "language": "hu",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "számla", "weight": 24, "where": "title" },+ { "text": "általános forgalmi adó", "weight": 8 }+ ]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "éves beszámoló", "weight": 20, "where": "title" },+ { "text": "mérleg", "weight": 12 }+ ]+ },+ {+ "id": "tax-return",+ "phrases": [{ "text": "adóbevallás", "weight": 22, "where": "title" }]+ },+ {+ "id": "tax-form",+ "phrases": [{ "text": "adóbevallás", "weight": 18, "where": "title" }]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "szerződés", "weight": 12, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [{ "text": "munkaszerződés", "weight": 24, "where": "title" }]+ },+ {+ "id": "lease-agreement",+ "phrases": [+ { "text": "bérleti szerződés", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "privacy-policy",+ "phrases": [{ "text": "általános adatvédelmi rendelet", "weight": 10 }]+ },+ {+ "id": "will",+ "phrases": [{ "text": "végrendelet", "weight": 20, "where": "title" }]+ },+ {+ "id": "deed",+ "phrases": [{ "text": "okirat", "weight": 16, "where": "title" }]+ },+ {+ "id": "resume",+ "phrases": [{ "text": "önéletrajz", "weight": 24, "where": "title" }]+ },+ {+ "id": "cover-letter",+ "phrases": [+ { "text": "motivációs levél", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "szabadalom", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [{ "text": "gyógyszerészet", "weight": 10 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "kérdőív", "weight": 20, "where": "title" }]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ { "text": "biztonsági adatlap", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "műszaki rajz", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [{ "text": "sajtóközlemény", "weight": 22, "where": "title" }]+ },+ {+ "id": "newsletter",+ "phrases": [{ "text": "hírlevél", "weight": 16, "where": "title" }]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "brosúra", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "üzleti terv", "weight": 20, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "fehér könyv", "weight": 18, "where": "title" }]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "alapító okirat", "weight": 16, "where": "title" }]+ },+ {+ "id": "ticket",+ "phrases": [{ "text": "jegy", "weight": 18, "where": "title" }]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "vízum", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "villamos fogyasztásmérő", "weight": 12 }]+ },+ {+ "id": "recipe",+ "phrases": [{ "text": "recept", "weight": 18, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "licenc", "weight": 12, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "audit", "weight": 12 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "ingatlan", "weight": 8 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "e-mail", "weight": 8 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "magazin", "weight": 10 }]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "munkaerő-toborzás", "weight": 8 }]+ },+ {+ "id": "purchase-agreement",+ "phrases": [{ "text": "adásvétel", "weight": 18, "where": "title" }]+ },+ {+ "id": "subpoena",+ "phrases": [{ "text": "idézés", "weight": 20, "where": "title" }]+ },+ {+ "id": "discharge-summary",+ "phrases": [+ { "text": "fekvőbeteg-szakellátás", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "biztosítás", "weight": 20, "where": "title" }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "kalibrálás", "weight": 12 }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "munkavédelem", "weight": 10 }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "alkalmazásprogramozási felület", "weight": 8 }]+ },+ {+ "id": "license-agreement",+ "phrases": [+ {+ "text": "végfelhasználói licencszerződés",+ "weight": 20,+ "where": "title"+ }+ ]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "költségvetés", "weight": 14, "where": "title" }]+ },+ {+ "id": "application-form",+ "phrases": [{ "text": "pályázatíró", "weight": 14, "where": "title" }]+ },+ {+ "id": "gift-certificate",+ "phrases": [{ "text": "ajándékkártya", "weight": 16, "where": "title" }]+ },+ {+ "id": "organization-chart",+ "phrases": [{ "text": "organogram", "weight": 20, "where": "title" }]+ },+ {+ "id": "case-study",+ "phrases": [{ "text": "esettanulmány", "weight": 16, "where": "title" }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "beruházás", "weight": 8 }]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "webanalitika", "weight": 10 }]+ },+ {+ "id": "appraisal-report",+ "phrases": [+ { "text": "ingatlan-értékbecslés", "weight": 18, "where": "title" }+ ]+ }+ ],+ "patterns": {+ "references": [{ "pattern": "bibliográfia" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/id.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/id.jsonnew file mode 100644index 0000000000..f9734165e7--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/id.json@@ -0,0 +1,393 @@+{+ "version": 2,+ "language": "id",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "tagihan", "weight": 24, "where": "title" },+ { "text": "pajak pertambahan nilai", "weight": 8 }+ ]+ },+ {+ "id": "receipt",+ "phrases": [{ "text": "struk", "weight": 22, "where": "title" }]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "struk", "weight": 20, "where": "title" }]+ },+ {+ "id": "bank-statement",+ "phrases": [{ "text": "rekening koran", "weight": 24, "where": "title" }]+ },+ {+ "id": "payslip",+ "phrases": [{ "text": "slip gaji", "weight": 22, "where": "title" }]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "beban", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "laporan keuangan", "weight": 20, "where": "title" },+ { "text": "neraca", "weight": 12 }+ ]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "kontrak", "weight": 12, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [{ "text": "kontrak kerja", "weight": 24, "where": "title" }]+ },+ {+ "id": "lease-agreement",+ "phrases": [{ "text": "kosbas", "weight": 8 }]+ },+ {+ "id": "nda",+ "phrases": [+ { "text": "perjanjian kerahasiaan", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "terms-and-conditions",+ "phrases": [+ { "text": "ketentuan layanan", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "privacy-policy",+ "phrases": [+ { "text": "kebijakan privasi", "weight": 24, "where": "title" },+ { "text": "regulasi umum perlindungan data", "weight": 10 }+ ]+ },+ {+ "id": "will",+ "phrases": [{ "text": "surat wasiat", "weight": 20, "where": "title" }]+ },+ {+ "id": "deed",+ "phrases": [{ "text": "akta", "weight": 16, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [+ { "text": "kredit pemilikan rumah", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "insurance-policy",+ "phrases": [{ "text": "polis asuransi", "weight": 22, "where": "title" }]+ },+ {+ "id": "cover-letter",+ "phrases": [{ "text": "surat lamaran", "weight": 20, "where": "title" }]+ },+ {+ "id": "job-description",+ "phrases": [{ "text": "uraian jabatan", "weight": 20, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [+ { "text": "ijazah", "weight": 16, "where": "title" },+ { "text": "diploma", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "transcript",+ "phrases": [+ { "text": "transkrip akademik", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "thesis",+ "phrases": [{ "text": "tesis", "weight": 20, "where": "title" }]+ },+ {+ "id": "research-paper",+ "phrases": [{ "text": "penerbitan akademik", "weight": 10 }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "paten", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "resep dokter", "weight": 20, "where": "title" },+ { "text": "farmasi", "weight": 10 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [+ { "text": "rekam medis", "weight": 18, "where": "title" },+ { "text": "diagnosis", "weight": 10 }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "vaksinasi", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "angket", "weight": 20, "where": "title" }]+ },+ {+ "id": "user-guide",+ "phrases": [+ { "text": "panduan pengguna", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ {+ "text": "lembar data keselamatan bahan",+ "weight": 24,+ "where": "title"+ }+ ]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "gambar teknik", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [{ "text": "siaran pers", "weight": 22, "where": "title" }]+ },+ {+ "id": "newsletter",+ "phrases": [{ "text": "nawala", "weight": 16, "where": "title" }]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "brosur", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "rencana bisnis", "weight": 20, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "buku putih", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-minutes",+ "phrases": [{ "text": "notula", "weight": 18, "where": "title" }]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "memorandum", "weight": 16, "where": "title" }]+ },+ {+ "id": "invitation",+ "phrases": [{ "text": "kartu undangan", "weight": 14, "where": "title" }]+ },+ {+ "id": "waybill",+ "phrases": [+ { "text": "nota pengiriman muatan", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "customs-declaration",+ "phrases": [+ { "text": "deklarasi pabean", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "visa", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "meteran listrik", "weight": 12 }]+ },+ {+ "id": "recipe",+ "phrases": [{ "text": "resep masakan", "weight": 18, "where": "title" }]+ },+ {+ "id": "presentation",+ "phrases": [{ "text": "presentasi", "weight": 12, "where": "title" }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "laporan", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "surat", "weight": 8, "where": "title" }]+ },+ {+ "id": "form",+ "phrases": [{ "text": "formulir", "weight": 10, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "lisensi", "weight": 12, "where": "title" }]+ },+ {+ "id": "legal-notice",+ "phrases": [{ "text": "somasi", "weight": 18, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "audit", "weight": 12 }]+ },+ {+ "id": "inspection-report",+ "phrases": [{ "text": "inspeksi", "weight": 10 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "lahan yasan", "weight": 8 }]+ },+ {+ "id": "grant-agreement",+ "phrases": [{ "text": "dana hibah", "weight": 12 }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "model bisnis berlangganan", "weight": 10 }]+ },+ {+ "id": "donation-receipt",+ "phrases": [{ "text": "sumbangan", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "surel", "weight": 8 }]+ },+ {+ "id": "book-ebook",+ "phrases": [{ "text": "daftar isi", "weight": 6 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "majalah", "weight": 10 }]+ },+ {+ "id": "course-syllabus",+ "phrases": [{ "text": "silabus", "weight": 20, "where": "title" }]+ },+ {+ "id": "lesson-plan",+ "phrases": [+ {+ "text": "rencana pelaksanaan pembelajaran",+ "weight": 20,+ "where": "title"+ }+ ]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "perekrutan", "weight": 8 }]+ },+ {+ "id": "subpoena",+ "phrases": [+ { "text": "perintah yang memaksa", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "discharge-summary",+ "phrases": [{ "text": "rawat inap", "weight": 20, "where": "title" }]+ },+ {+ "id": "lab-report",+ "phrases": [{ "text": "laboratorium klinik", "weight": 12 }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "asuransi", "weight": 20, "where": "title" }]+ },+ {+ "id": "regulatory-filing",+ "phrases": [{ "text": "kepatuhan terhadap peraturan", "weight": 10 }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "pengendalian mutu", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "kalibrasi", "weight": 12 }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "kesehatan dan keselamatan kerja", "weight": 10 }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "antarmuka pemrograman aplikasi", "weight": 8 }]+ },+ {+ "id": "license-agreement",+ "phrases": [{ "text": "eula", "weight": 20, "where": "title" }]+ },+ {+ "id": "sales-proposal",+ "phrases": [{ "text": "usulan bisnis", "weight": 16, "where": "title" }]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "anggaran", "weight": 14, "where": "title" }]+ },+ {+ "id": "statement-of-account",+ "phrases": [{ "text": "rekening koran", "weight": 18, "where": "title" }]+ },+ {+ "id": "return-authorization",+ "phrases": [+ { "text": "pengembalian produk", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "case-study",+ "phrases": [{ "text": "studi kasus", "weight": 16, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "dewan direksi", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "investasi", "weight": 8 }]+ },+ {+ "id": "appraisal-report",+ "phrases": [+ { "text": "penilaian real estat", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "benefits-summary",+ "phrases": [{ "text": "tunjangan karyawan", "weight": 14 }]+ },+ {+ "id": "grade-report",+ "phrases": [{ "text": "buku rapor", "weight": 20, "where": "title" }]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "pekerjaan rumah", "weight": 12 }]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "daftar\\ isi" }],+ "references": [{ "pattern": "daftar\\ pustaka" }],+ "signature": [{ "pattern": "tanda\\ tangan" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/it.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/it.jsonnew file mode 100644index 0000000000..6027a81d3a--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/it.json@@ -0,0 +1,578 @@+{+ "version": 2,+ "language": "it",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "fattura", "weight": 24, "where": "title" },+ { "text": "imposta sul valore aggiunto", "weight": 8 },+ { "text": "numero fattura", "weight": 22, "where": "first" },+ { "text": "data fattura", "weight": 16, "where": "first" },+ { "text": "fattura n", "weight": 18, "where": "first" },+ { "text": "imponibile", "weight": 18 },+ { "text": "totale documento", "weight": 16 },+ { "text": "totale fattura", "weight": 18 },+ { "text": "partita iva", "weight": 12 },+ { "text": "iva", "weight": 10 },+ { "text": "modalità di pagamento", "weight": 8 },+ { "text": "scadenza", "weight": 12 }+ ],+ "negatives": [+ { "text": "bolla di consegna", "weight": 14 },+ { "text": "preventivo", "weight": 14 },+ { "text": "estratto conto", "weight": 12 }+ ]+ },+ {+ "id": "receipt",+ "phrases": [+ { "text": "quietanza", "weight": 22, "where": "title" },+ { "text": "scontrino", "weight": 24, "where": "title" },+ { "text": "ricevuta di pagamento", "weight": 22, "where": "title" },+ { "text": "pagamento ricevuto", "weight": 16 },+ { "text": "grazie per l'acquisto", "weight": 16 }+ ]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "quietanza", "weight": 20, "where": "title" }]+ },+ {+ "id": "payslip",+ "phrases": [+ { "text": "busta paga", "weight": 22, "where": "title" },+ { "text": "cedolino", "weight": 26, "where": "title" },+ { "text": "retribuzione lorda", "weight": 18 },+ { "text": "netto in busta", "weight": 20 },+ { "text": "contributi", "weight": 14 },+ { "text": "inps", "weight": 18 }+ ]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "bilancio d'esercizio", "weight": 20, "where": "title" },+ { "text": "stato patrimoniale", "weight": 12 }+ ]+ },+ {+ "id": "tax-return",+ "phrases": [+ { "text": "dichiarazione dei redditi", "weight": 22, "where": "title" },+ { "text": "modello unico", "weight": 20 }+ ]+ },+ {+ "id": "tax-form",+ "phrases": [+ { "text": "dichiarazione dei redditi", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "contract",+ "phrases": [+ { "text": "contratto", "weight": 12, "where": "title" },+ { "text": "le parti", "weight": 14 },+ { "text": "le parti convengono", "weight": 16 },+ { "text": "durata del contratto", "weight": 14 },+ { "text": "recesso", "weight": 12 },+ { "text": "risoluzione", "weight": 12 }+ ]+ },+ {+ "id": "employment-contract",+ "phrases": [+ { "text": "contratto di lavoro", "weight": 24, "where": "title" },+ { "text": "periodo di prova", "weight": 18 },+ { "text": "ferie", "weight": 12 },+ { "text": "ccnl", "weight": 16 }+ ]+ },+ {+ "id": "lease-agreement",+ "phrases": [+ { "text": "leasing", "weight": 18, "where": "title" },+ { "text": "locatore", "weight": 8 },+ { "text": "contratto di locazione", "weight": 30, "where": "title" },+ { "text": "canone di locazione", "weight": 20 },+ { "text": "cauzione", "weight": 18 },+ { "text": "conduttore", "weight": 12 }+ ]+ },+ {+ "id": "nda",+ "phrases": [+ {+ "text": "accordo di non divulgazione",+ "weight": 24,+ "where": "title"+ },+ { "text": "accordo di riservatezza", "weight": 30, "where": "title" },+ { "text": "informazioni riservate", "weight": 12 }+ ]+ },+ {+ "id": "terms-and-conditions",+ "phrases": [+ { "text": "termini di servizio", "weight": 22, "where": "title" },+ { "text": "condizioni generali", "weight": 26, "where": "title" },+ { "text": "termini e condizioni", "weight": 26, "where": "title" }+ ]+ },+ {+ "id": "affidavit",+ "phrases": [{ "text": "affidavit", "weight": 20, "where": "title" }]+ },+ {+ "id": "will",+ "phrases": [{ "text": "testamento", "weight": 20, "where": "title" }]+ },+ {+ "id": "deed",+ "phrases": [{ "text": "deed", "weight": 16, "where": "title" }]+ },+ {+ "id": "insurance-policy",+ "phrases": [+ { "text": "polizza", "weight": 22, "where": "title" },+ { "text": "franchigia", "weight": 8 },+ { "text": "numero di polizza", "weight": 16 },+ { "text": "massimale", "weight": 16 },+ { "text": "premio", "weight": 10 }+ ]+ },+ {+ "id": "resume",+ "phrases": [+ { "text": "curriculum vitae", "weight": 24, "where": "title" },+ { "text": "esperienza professionale", "weight": 20 },+ { "text": "istruzione", "weight": 10 },+ { "text": "competenze", "weight": 12 }+ ]+ },+ {+ "id": "cover-letter",+ "phrases": [+ { "text": "lettera di candidatura", "weight": 20, "where": "title" },+ { "text": "lettera di presentazione", "weight": 26, "where": "title" },+ { "text": "mi candido per", "weight": 18 },+ { "text": "cordiali saluti", "weight": 10 }+ ],+ "negatives": [{ "text": "esperienza professionale", "weight": 12 }]+ },+ {+ "id": "job-description",+ "phrases": [+ { "text": "descrizione di posizione", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "certificate",+ "phrases": [{ "text": "diploma", "weight": 16, "where": "title" }]+ },+ {+ "id": "thesis",+ "phrases": [{ "text": "tesi di laurea", "weight": 20, "where": "title" }]+ },+ {+ "id": "research-paper",+ "phrases": [{ "text": "editoria accademica", "weight": 10 }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "brevetto", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "ricetta", "weight": 20, "where": "title" },+ { "text": "farmacia", "weight": 10 },+ { "text": "ricetta medica", "weight": 24, "where": "title" },+ { "text": "posologia", "weight": 18 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [+ { "text": "cartella clinica", "weight": 18, "where": "title" },+ { "text": "diagnosi", "weight": 10 },+ { "text": "referto", "weight": 24, "where": "title" },+ { "text": "anamnesi", "weight": 18 }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "vaccinazione", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "questionario", "weight": 20, "where": "title" }]+ },+ {+ "id": "warranty-document",+ "phrases": [{ "text": "garanzia", "weight": 18, "where": "title" }]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ { "text": "scheda di sicurezza", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "disegno tecnico", "weight": 20, "where": "title" }]+ },+ {+ "id": "bill-of-materials",+ "phrases": [{ "text": "distinta base", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [+ { "text": "comunicato stampa", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "newsletter",+ "phrases": [{ "text": "newsletter", "weight": 16, "where": "title" }]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "opuscolo", "weight": 16, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "libro bianco", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-minutes",+ "phrases": [+ { "text": "verbale", "weight": 18, "where": "title" },+ { "text": "verbale di riunione", "weight": 26, "where": "title" },+ { "text": "presenti", "weight": 10 }+ ]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "memorandum", "weight": 16, "where": "title" }]+ },+ {+ "id": "ticket",+ "phrases": [+ { "text": "biglietto", "weight": 18, "where": "title" },+ { "text": "carta d'imbarco", "weight": 26, "where": "title" }+ ]+ },+ {+ "id": "waybill",+ "phrases": [+ { "text": "documento di trasporto", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "visa-document",+ "phrases": [+ { "text": "visto d'ingresso", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "utility-bill",+ "phrases": [+ { "text": "contatore elettrico", "weight": 12 },+ { "text": "bolletta", "weight": 24, "where": "title" },+ { "text": "lettura contatore", "weight": 20 },+ { "text": "consumo", "weight": 12 }+ ]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "menù", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [{ "text": "ricetta", "weight": 18, "where": "title" }]+ },+ {+ "id": "presentation",+ "phrases": [{ "text": "presentazione", "weight": 12, "where": "title" }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "relazione", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "lettera", "weight": 8, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "licenza", "weight": 12, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "audit", "weight": 12 }]+ },+ {+ "id": "risk-assessment",+ "phrases": [+ { "text": "valutazione del rischio", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "bene immobile", "weight": 8 }]+ },+ {+ "id": "tender-document",+ "phrases": [+ { "text": "evidenza pubblica", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "abbonamento", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "posta elettronica", "weight": 8 }]+ },+ {+ "id": "book-ebook",+ "phrases": [{ "text": "indice", "weight": 6 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "rivista", "weight": 10 }]+ },+ {+ "id": "performance-review",+ "phrases": [+ { "text": "valutazione del personale", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "selezione del personale", "weight": 8 }]+ },+ {+ "id": "service-agreement",+ "phrases": [+ { "text": "service level agreement", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "purchase-agreement",+ "phrases": [{ "text": "compravendita", "weight": 18, "where": "title" }]+ },+ {+ "id": "loan-agreement",+ "phrases": [{ "text": "mutuo", "weight": 20, "where": "title" }]+ },+ {+ "id": "shareholder-agreement",+ "phrases": [+ { "text": "patti parasociali", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "subpoena",+ "phrases": [{ "text": "sub poena", "weight": 20, "where": "title" }]+ },+ {+ "id": "consent-form",+ "phrases": [+ { "text": "consenso informato", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "lab-report",+ "phrases": [{ "text": "laboratorio di analisi", "weight": 12 }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "assicurazione", "weight": 20, "where": "title" }]+ },+ {+ "id": "regulatory-filing",+ "phrases": [{ "text": "compliance normativa", "weight": 10 }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "controllo della qualità", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "taratura", "weight": 12 }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "salute e sicurezza sul lavoro", "weight": 10 }]+ },+ {+ "id": "datasheet",+ "phrases": [{ "text": "datasheet", "weight": 18, "where": "title" }]+ },+ {+ "id": "technical-specification",+ "phrases": [+ { "text": "specifica tecnica", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "application programming interface", "weight": 8 }]+ },+ {+ "id": "license-agreement",+ "phrases": [{ "text": "eula", "weight": 20, "where": "title" }]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "budget", "weight": 14, "where": "title" }]+ },+ {+ "id": "registration-form",+ "phrases": [+ {+ "text": "università della nuova zelanda",+ "weight": 18,+ "where": "title"+ }+ ]+ },+ {+ "id": "gift-certificate",+ "phrases": [{ "text": "buono regalo", "weight": 16, "where": "title" }]+ },+ {+ "id": "organization-chart",+ "phrases": [{ "text": "organigramma", "weight": 20, "where": "title" }]+ },+ {+ "id": "case-study",+ "phrases": [{ "text": "caso di studio", "weight": 16, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "consiglio di amministrazione", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "investimento", "weight": 8 }]+ },+ {+ "id": "letter-of-intent",+ "phrases": [+ { "text": "lettera di intenti", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "appraisal-report",+ "phrases": [+ {+ "text": "valore di stima immobiliare",+ "weight": 18,+ "where": "title"+ }+ ]+ },+ {+ "id": "benefits-summary",+ "phrases": [{ "text": "fringe benefit", "weight": 14 }]+ },+ {+ "id": "grade-report",+ "phrases": [{ "text": "pagella", "weight": 20, "where": "title" }]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "compiti a casa", "weight": 12 }]+ },+ {+ "id": "quote",+ "phrases": [+ { "text": "preventivo", "weight": 26, "where": "title" },+ { "text": "offerta economica", "weight": 22, "where": "title" },+ { "text": "valido fino al", "weight": 16 }+ ],+ "negatives": [{ "text": "numero fattura", "weight": 14 }]+ },+ {+ "id": "purchase-order",+ "phrases": [+ { "text": "ordine di acquisto", "weight": 26, "where": "title" },+ { "text": "numero ordine", "weight": 18 }+ ]+ },+ {+ "id": "order-confirmation",+ "phrases": [+ { "text": "conferma d'ordine", "weight": 26, "where": "title" },+ { "text": "grazie per il suo ordine", "weight": 16 }+ ]+ },+ {+ "id": "delivery-note",+ "phrases": [+ { "text": "bolla di consegna", "weight": 28, "where": "title" },+ { "text": "documento di trasporto", "weight": 26, "where": "title" },+ { "text": "indirizzo di consegna", "weight": 10 }+ ]+ },+ {+ "id": "bank-statement",+ "phrases": [+ { "text": "estratto conto", "weight": 28, "where": "title" },+ { "text": "saldo iniziale", "weight": 18 },+ { "text": "saldo finale", "weight": 18 },+ { "text": "data valuta", "weight": 16 },+ { "text": "numero conto", "weight": 12 }+ ]+ },+ {+ "id": "privacy-policy",+ "phrases": [+ { "text": "informativa sulla privacy", "weight": 28, "where": "title" },+ { "text": "gdpr", "weight": 14 },+ { "text": "dati personali", "weight": 12 },+ { "text": "titolare del trattamento", "weight": 18 }+ ]+ },+ {+ "id": "booking-confirmation",+ "phrases": [+ { "text": "conferma di prenotazione", "weight": 26, "where": "title" },+ { "text": "numero di prenotazione", "weight": 18 }+ ]+ },+ {+ "id": "meeting-agenda",+ "phrases": [+ { "text": "ordine del giorno", "weight": 20, "where": "title" }+ ]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "indice" }],+ "references": [{ "pattern": "\\\\b(bibliografia|riferimenti)\\\\b" }],+ "signature": [{ "pattern": "\\\\b(firma|firmato|sottoscritto)\\\\b" }],+ "signature_form": [+ { "pattern": "_{6,}\\\\s*\\\\n\\\\s*(data|nome|firma)", "flags": "i" }+ ],+ "email_from": [+ {+ "pattern": "\\\\bda\\\\s?:\\\\s.+\\\\n(.*\\\\n){0,3}?\\\\s*(a|inviato|data)\\\\s?:\\\\s",+ "flags": "i"+ }+ ],+ "email_subject": [{ "pattern": "oggetto\\\\s?:\\\\s" }],+ "currency": [{ "pattern": "\\\\d[\\\\d .,]*\\\\s?(eur|€)|€\\\\s?\\\\d" }],+ "form_label": [+ {+ "pattern": "^[A-Za-zÀÈÉÌÒÙàèéìòù][A-Za-zÀÈÉÌÒÙàèéìòù /()&'.-]{2,30}\\\\s?:\\\\s*$",+ "flags": "m"+ }+ ]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/ja.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/ja.jsonnew file mode 100644index 0000000000..3157669014--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/ja.json@@ -0,0 +1,422 @@+{+ "version": 2,+ "language": "ja",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "送り状", "weight": 24, "where": "title" },+ { "text": "付加価値税", "weight": 8 },+ { "text": "請求書", "weight": 26, "where": "title" }+ ]+ },+ {+ "id": "receipt",+ "phrases": [{ "text": "領収書", "weight": 22, "where": "title" }]+ },+ {+ "id": "purchase-order",+ "phrases": [{ "text": "発注書", "weight": 20, "where": "title" }]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "領収書", "weight": 20, "where": "title" }]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "支出", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "財務諸表", "weight": 20, "where": "title" },+ { "text": "貸借対照表", "weight": 12 }+ ]+ },+ {+ "id": "tax-return",+ "phrases": [{ "text": "確定申告", "weight": 22, "where": "title" }]+ },+ {+ "id": "tax-form",+ "phrases": [{ "text": "確定申告", "weight": 18, "where": "title" }]+ },+ {+ "id": "contract",+ "phrases": [+ { "text": "契約", "weight": 12, "where": "title" },+ { "text": "契約書", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "employment-contract",+ "phrases": [{ "text": "労働契約", "weight": 24, "where": "title" }]+ },+ {+ "id": "lease-agreement",+ "phrases": [+ { "text": "賃貸借", "weight": 18, "where": "title" },+ { "text": "敷金", "weight": 10 }+ ]+ },+ {+ "id": "nda",+ "phrases": [{ "text": "秘密保持契約", "weight": 24, "where": "title" }]+ },+ {+ "id": "privacy-policy",+ "phrases": [+ { "text": "プライバシーポリシー", "weight": 24, "where": "title" },+ { "text": "eu一般データ保護規則", "weight": 10 }+ ]+ },+ {+ "id": "will",+ "phrases": [{ "text": "遺言", "weight": 20, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [{ "text": "住宅ローン", "weight": 18, "where": "title" }]+ },+ {+ "id": "resume",+ "phrases": [+ { "text": "履歴書", "weight": 24, "where": "title" },+ { "text": "職務経歴書", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "cover-letter",+ "phrases": [{ "text": "送付状", "weight": 20, "where": "title" }]+ },+ {+ "id": "reference-letter",+ "phrases": [{ "text": "推薦状", "weight": 20, "where": "title" }]+ },+ {+ "id": "job-description",+ "phrases": [{ "text": "職務記述書", "weight": 20, "where": "title" }]+ },+ {+ "id": "timesheet",+ "phrases": [{ "text": "タイムシート", "weight": 20, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [+ { "text": "履修証明", "weight": 16, "where": "title" },+ { "text": "ディプロマ", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "thesis",+ "phrases": [{ "text": "学位論文", "weight": 20, "where": "title" }]+ },+ {+ "id": "research-paper",+ "phrases": [{ "text": "学術出版", "weight": 10 }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "特許", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "処方箋", "weight": 20, "where": "title" },+ { "text": "薬学", "weight": 10 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [{ "text": "診療録", "weight": 18, "where": "title" }]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "予防接種", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "アンケート", "weight": 20, "where": "title" }]+ },+ {+ "id": "warranty-document",+ "phrases": [{ "text": "担保責任", "weight": 18, "where": "title" }]+ },+ {+ "id": "user-guide",+ "phrases": [{ "text": "マニュアル", "weight": 22, "where": "title" }]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ { "text": "安全データシート", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "製図", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [{ "text": "プレスリリース", "weight": 22, "where": "title" }]+ },+ {+ "id": "newsletter",+ "phrases": [{ "text": "ニューズレター", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "事業計画", "weight": 20, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "白書", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-minutes",+ "phrases": [{ "text": "議事録", "weight": 18, "where": "title" }]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "覚書", "weight": 16, "where": "title" }]+ },+ {+ "id": "invitation",+ "phrases": [{ "text": "結婚式招待状", "weight": 14, "where": "title" }]+ },+ {+ "id": "ticket",+ "phrases": [{ "text": "切符", "weight": 18, "where": "title" }]+ },+ {+ "id": "waybill",+ "phrases": [{ "text": "貨物引換証", "weight": 20, "where": "title" }]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "査証", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "電力量計", "weight": 12 }]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "メニュー", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [{ "text": "レシピ", "weight": 18, "where": "title" }]+ },+ {+ "id": "presentation",+ "phrases": [+ { "text": "プレゼンテーション", "weight": 12, "where": "title" }+ ]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "手紙", "weight": 8, "where": "title" }]+ },+ {+ "id": "form",+ "phrases": [{ "text": "帳票", "weight": 10, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "ライセンス", "weight": 12, "where": "title" }]+ },+ {+ "id": "public-notice",+ "phrases": [{ "text": "公告", "weight": 16, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "監査", "weight": 12 }]+ },+ {+ "id": "risk-assessment",+ "phrases": [+ { "text": "リスクアセスメント", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "不動産", "weight": 8 }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "サブスクリプション", "weight": 10 }]+ },+ {+ "id": "donation-receipt",+ "phrases": [{ "text": "寄付", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "電子メール", "weight": 8 }]+ },+ {+ "id": "book-ebook",+ "phrases": [{ "text": "目次", "weight": 6 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "雑誌", "weight": 10 }]+ },+ {+ "id": "course-syllabus",+ "phrases": [{ "text": "シラバス", "weight": 20, "where": "title" }]+ },+ {+ "id": "performance-review",+ "phrases": [{ "text": "人事評価", "weight": 20, "where": "title" }]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "求人", "weight": 8 }]+ },+ {+ "id": "statement-of-work",+ "phrases": [{ "text": "作業明細書", "weight": 20, "where": "title" }]+ },+ {+ "id": "service-agreement",+ "phrases": [+ { "text": "サービス水準合意", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "purchase-agreement",+ "phrases": [{ "text": "売買", "weight": 18, "where": "title" }]+ },+ {+ "id": "loan-agreement",+ "phrases": [+ { "text": "金銭消費貸借契約", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "settlement-agreement",+ "phrases": [{ "text": "裁判上の和解", "weight": 18, "where": "title" }]+ },+ {+ "id": "subpoena",+ "phrases": [{ "text": "召喚令状", "weight": 20, "where": "title" }]+ },+ {+ "id": "consent-form",+ "phrases": [+ { "text": "インフォームド・コンセント", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "lab-report",+ "phrases": [{ "text": "衛生検査所", "weight": 12 }]+ },+ {+ "id": "referral-letter",+ "phrases": [{ "text": "紹介", "weight": 18, "where": "title" }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "保険", "weight": 20, "where": "title" }]+ },+ {+ "id": "regulatory-filing",+ "phrases": [{ "text": "企業コンプライアンス", "weight": 10 }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "品質管理", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "較正", "weight": 12 }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "労働安全衛生", "weight": 10 }]+ },+ {+ "id": "technical-specification",+ "phrases": [{ "text": "仕様", "weight": 16, "where": "title" }]+ },+ {+ "id": "api-documentation",+ "phrases": [+ { "text": "アプリケーションプログラミングインタフェース", "weight": 8 }+ ]+ },+ {+ "id": "license-agreement",+ "phrases": [+ { "text": "ソフトウェア利用許諾契約", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "proposal",+ "phrases": [{ "text": "提案依頼書", "weight": 16, "where": "title" }]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "予算", "weight": 14, "where": "title" }]+ },+ {+ "id": "application-form",+ "phrases": [+ { "text": "エントリーシート", "weight": 14, "where": "title" }+ ]+ },+ {+ "id": "registration-form",+ "phrases": [+ { "text": "ニュージーランド大学", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "gift-certificate",+ "phrases": [{ "text": "ギフトカード", "weight": 16, "where": "title" }]+ },+ {+ "id": "case-study",+ "phrases": [+ { "text": "ケーススタディー", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "取締役会", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "投資", "weight": 8 }]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "アクセス解析", "weight": 10 }]+ },+ {+ "id": "benefits-summary",+ "phrases": [{ "text": "福利厚生", "weight": 14 }]+ },+ {+ "id": "hoa-document",+ "phrases": [{ "text": "管理規約", "weight": 18, "where": "title" }]+ },+ {+ "id": "grade-report",+ "phrases": [{ "text": "通知表", "weight": 20, "where": "title" }]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "宿題", "weight": 12 }]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "目次" }],+ "references": [{ "pattern": "書誌学" }],+ "signature": [{ "pattern": "署名" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/ko.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/ko.jsonnew file mode 100644index 0000000000..338edf33d5--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/ko.json@@ -0,0 +1,430 @@+{+ "version": 2,+ "language": "ko",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "송장", "weight": 24, "where": "title" },+ { "text": "부가가치세", "weight": 8 }+ ]+ },+ {+ "id": "receipt",+ "phrases": [{ "text": "영수증", "weight": 22, "where": "title" }]+ },+ {+ "id": "purchase-order",+ "phrases": [{ "text": "구매 주문서", "weight": 20, "where": "title" }]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "영수증", "weight": 20, "where": "title" }]+ },+ {+ "id": "payslip",+ "phrases": [{ "text": "페이롤", "weight": 14, "where": "title" }]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "비용", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "재무제표", "weight": 20, "where": "title" },+ { "text": "재무상태표", "weight": 12 }+ ]+ },+ {+ "id": "tax-return",+ "phrases": [{ "text": "연말정산", "weight": 22, "where": "title" }]+ },+ {+ "id": "tax-form",+ "phrases": [{ "text": "연말정산", "weight": 18, "where": "title" }]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "계약", "weight": 12, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [{ "text": "고용계약", "weight": 24, "where": "title" }]+ },+ {+ "id": "lease-agreement",+ "phrases": [+ { "text": "리스", "weight": 18, "where": "title" },+ { "text": "보증금", "weight": 10 }+ ]+ },+ {+ "id": "nda",+ "phrases": [{ "text": "기밀유지 협약", "weight": 24, "where": "title" }]+ },+ {+ "id": "terms-and-conditions",+ "phrases": [{ "text": "이용 약관", "weight": 22, "where": "title" }]+ },+ {+ "id": "privacy-policy",+ "phrases": [+ { "text": "개인정보처리방침", "weight": 24, "where": "title" },+ { "text": "일반 데이터 보호 규칙", "weight": 10 }+ ]+ },+ {+ "id": "will",+ "phrases": [{ "text": "유언", "weight": 20, "where": "title" }]+ },+ {+ "id": "deed",+ "phrases": [{ "text": "부동산 양도문서", "weight": 16, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [{ "text": "모기지 론", "weight": 18, "where": "title" }]+ },+ {+ "id": "insurance-policy",+ "phrases": [{ "text": "보험계약", "weight": 22, "where": "title" }]+ },+ {+ "id": "resume",+ "phrases": [+ { "text": "커리큘럼 비타이", "weight": 24, "where": "title" },+ { "text": "이력서", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "cover-letter",+ "phrases": [{ "text": "자기소개서", "weight": 20, "where": "title" }]+ },+ {+ "id": "reference-letter",+ "phrases": [{ "text": "추천서", "weight": 20, "where": "title" }]+ },+ {+ "id": "job-description",+ "phrases": [{ "text": "직무기술서", "weight": 20, "where": "title" }]+ },+ {+ "id": "timesheet",+ "phrases": [{ "text": "타임시트", "weight": 20, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [+ { "text": "졸업장", "weight": 16, "where": "title" },+ { "text": "디플로마", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "thesis",+ "phrases": [{ "text": "학위논문", "weight": 20, "where": "title" }]+ },+ {+ "id": "research-paper",+ "phrases": [{ "text": "학술 출판", "weight": 10 }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "특허", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "처방전", "weight": 20, "where": "title" },+ { "text": "약학", "weight": 10 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [{ "text": "진료 기록", "weight": 18, "where": "title" }]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "예방접종", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "설문지", "weight": 20, "where": "title" }]+ },+ {+ "id": "warranty-document",+ "phrases": [{ "text": "워런티", "weight": 18, "where": "title" }]+ },+ {+ "id": "user-guide",+ "phrases": [{ "text": "사용 설명서", "weight": 22, "where": "title" }]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ { "text": "물질 안전 보건 자료", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "제도", "weight": 20, "where": "title" }]+ },+ {+ "id": "bill-of-materials",+ "phrases": [{ "text": "자재 명세서", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [{ "text": "보도자료", "weight": 22, "where": "title" }]+ },+ {+ "id": "newsletter",+ "phrases": [{ "text": "소식지", "weight": 16, "where": "title" }]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "브로슈어", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "사업계획서", "weight": 20, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "백서", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-minutes",+ "phrases": [{ "text": "회의록", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-agenda",+ "phrases": [{ "text": "회의 의제", "weight": 16, "where": "title" }]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "비망록", "weight": 16, "where": "title" }]+ },+ {+ "id": "invitation",+ "phrases": [{ "text": "청첩장", "weight": 14, "where": "title" }]+ },+ {+ "id": "ticket",+ "phrases": [{ "text": "입장권", "weight": 18, "where": "title" }]+ },+ {+ "id": "waybill",+ "phrases": [{ "text": "웨이빌", "weight": 20, "where": "title" }]+ },+ {+ "id": "customs-declaration",+ "phrases": [{ "text": "세관신고서", "weight": 22, "where": "title" }]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "사증", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "전력량계", "weight": 12 }]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "차림표", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [{ "text": "요리법", "weight": 18, "where": "title" }]+ },+ {+ "id": "presentation",+ "phrases": [{ "text": "프레젠테이션", "weight": 12, "where": "title" }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "보고서", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "편지", "weight": 8, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "면허", "weight": 12, "where": "title" }]+ },+ {+ "id": "legal-notice",+ "phrases": [{ "text": "정지명령", "weight": 18, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "감사", "weight": 12 }]+ },+ {+ "id": "risk-assessment",+ "phrases": [{ "text": "리스크 평가제도", "weight": 20, "where": "title" }]+ },+ {+ "id": "inspection-report",+ "phrases": [{ "text": "점검", "weight": 10 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "부동산", "weight": 8 }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "구독 사업 모형", "weight": 10 }]+ },+ {+ "id": "donation-receipt",+ "phrases": [{ "text": "기부", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "전자우편", "weight": 8 }]+ },+ {+ "id": "book-ebook",+ "phrases": [{ "text": "목차", "weight": 6 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "잡지", "weight": 10 }]+ },+ {+ "id": "course-syllabus",+ "phrases": [{ "text": "강의계획서", "weight": 20, "where": "title" }]+ },+ {+ "id": "lesson-plan",+ "phrases": [{ "text": "수업계획", "weight": 20, "where": "title" }]+ },+ {+ "id": "performance-review",+ "phrases": [{ "text": "인사고과", "weight": 20, "where": "title" }]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "채용", "weight": 8 }]+ },+ {+ "id": "service-agreement",+ "phrases": [+ { "text": "서비스 수준 협약서", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "purchase-agreement",+ "phrases": [{ "text": "매매", "weight": 18, "where": "title" }]+ },+ {+ "id": "shareholder-agreement",+ "phrases": [{ "text": "주주협약", "weight": 20, "where": "title" }]+ },+ {+ "id": "settlement-agreement",+ "phrases": [{ "text": "소송상 합의", "weight": 18, "where": "title" }]+ },+ {+ "id": "subpoena",+ "phrases": [{ "text": "소환", "weight": 20, "where": "title" }]+ },+ {+ "id": "consent-form",+ "phrases": [{ "text": "사전동의", "weight": 18, "where": "title" }]+ },+ {+ "id": "lab-report",+ "phrases": [{ "text": "임상검사실", "weight": 12 }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "보험", "weight": 20, "where": "title" }]+ },+ {+ "id": "regulatory-filing",+ "phrases": [{ "text": "컴플라이언스", "weight": 10 }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "품질 관리", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "교정", "weight": 12 }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "직업안전보건", "weight": 10 }]+ },+ {+ "id": "datasheet",+ "phrases": [{ "text": "데이터시트", "weight": 18, "where": "title" }]+ },+ {+ "id": "technical-specification",+ "phrases": [{ "text": "시방서", "weight": 16, "where": "title" }]+ },+ {+ "id": "license-agreement",+ "phrases": [+ { "text": "소프트웨어 사용권 동의", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "sales-proposal",+ "phrases": [{ "text": "주식공개매수", "weight": 16, "where": "title" }]+ },+ {+ "id": "proposal",+ "phrases": [{ "text": "제안요청서", "weight": 16, "where": "title" }]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "예산", "weight": 14, "where": "title" }]+ },+ {+ "id": "gift-certificate",+ "phrases": [{ "text": "기프트 카드", "weight": 16, "where": "title" }]+ },+ {+ "id": "organization-chart",+ "phrases": [{ "text": "조직도", "weight": 20, "where": "title" }]+ },+ {+ "id": "case-study",+ "phrases": [{ "text": "사례 연구", "weight": 16, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "이사회", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "투자", "weight": 8 }]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "웹 애널리틱스", "weight": 10 }]+ },+ {+ "id": "benefits-summary",+ "phrases": [{ "text": "복리 후생", "weight": 14 }]+ },+ {+ "id": "grade-report",+ "phrases": [{ "text": "성적표", "weight": 20, "where": "title" }]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "숙제", "weight": 12 }]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "목차" }],+ "references": [{ "pattern": "서지학" }],+ "signature": [{ "pattern": "서명" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/ml.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/ml.jsonnew file mode 100644index 0000000000..75d7a6b315--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/ml.json@@ -0,0 +1,92 @@+{+ "version": 2,+ "language": "ml",+ "labels": [+ {+ "id": "invoice",+ "phrases": [{ "text": "മൂല്യവർദ്ധിത നികുതി", "weight": 8 }]+ },+ {+ "id": "privacy-policy",+ "phrases": [{ "text": "ജെനറൽ ഡാറ്റ പ്രൊട്ടക്ഷൻ റെഗുലേഷൻ", "weight": 10 }]+ },+ {+ "id": "affidavit",+ "phrases": [{ "text": "സത്യവാങ്മൂലം", "weight": 20, "where": "title" }]+ },+ {+ "id": "will",+ "phrases": [{ "text": "വിൽപ്പത്രം", "weight": 20, "where": "title" }]+ },+ {+ "id": "resume",+ "phrases": [{ "text": "റെസ്യൂമെ", "weight": 20, "where": "title" }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "നിർമ്മാണാവകാശം", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [{ "text": "ഫാർമസി", "weight": 10 }]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "വാക്സിനേഷൻ", "weight": 12 }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "ധവളപത്രം", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-agenda",+ "phrases": [{ "text": "അജൻഡ", "weight": 16, "where": "title" }]+ },+ {+ "id": "invitation",+ "phrases": [{ "text": "വിവാഹ ക്ഷണക്കത്ത്", "weight": 14, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "വൈദ്യുതോർജ്ജമാപിനി", "weight": 12 }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "കത്ത്", "weight": 8, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "ഓഡിറ്റിങ്", "weight": 12 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "ഇ-മെയിൽ", "weight": 8 }]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "റിക്രൂട്ട്മെന്റ്", "weight": 8 }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "ഇൻഷുറൻസ്", "weight": 20, "where": "title" }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "ആപ്ലിക്കേഷൻ പ്രോഗ്രാമിങ് ഇന്റർഫേസ്", "weight": 8 }]+ },+ {+ "id": "license-agreement",+ "phrases": [+ { "text": "എൻഡ്-യൂസർ ലൈസൻസ് എഗ്രിമെന്റ്", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "ബഡ്ജറ്റ്", "weight": 14, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "ഡയറക്ടർ ബോർഡ്", "weight": 10 }]+ }+ ]+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/nl.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/nl.jsonnew file mode 100644index 0000000000..c20088f3d8--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/nl.json@@ -0,0 +1,600 @@+{+ "version": 2,+ "language": "nl",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "factuur", "weight": 24, "where": "title" },+ { "text": "omzetbelasting", "weight": 8 },+ { "text": "factuurnummer", "weight": 22, "where": "first" },+ { "text": "factuurdatum", "weight": 16, "where": "first" },+ { "text": "vervaldatum", "weight": 16 },+ { "text": "totaalbedrag", "weight": 16 },+ { "text": "te betalen", "weight": 16 },+ { "text": "btw-nummer", "weight": 14 },+ { "text": "btw", "weight": 10 },+ { "text": "betalingstermijn", "weight": 8 },+ { "text": "bedrag excl", "weight": 14 }+ ],+ "negatives": [+ { "text": "pakbon", "weight": 14 },+ { "text": "offerte", "weight": 14 },+ { "text": "rekeningafschrift", "weight": 12 }+ ]+ },+ {+ "id": "receipt",+ "phrases": [+ { "text": "kwitantie", "weight": 22, "where": "title" },+ { "text": "kassabon", "weight": 24, "where": "title" },+ { "text": "betalingsbewijs", "weight": 20, "where": "title" },+ { "text": "betaling ontvangen", "weight": 16 },+ { "text": "bedankt voor uw aankoop", "weight": 16 }+ ]+ },+ {+ "id": "credit-note",+ "phrases": [{ "text": "creditnota", "weight": 22, "where": "title" }]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "kwitantie", "weight": 20, "where": "title" }]+ },+ {+ "id": "bank-statement",+ "phrases": [+ { "text": "rekeningafschrift", "weight": 24, "where": "title" },+ { "text": "bankafschrift", "weight": 26, "where": "title" },+ { "text": "beginsaldo", "weight": 18 },+ { "text": "eindsaldo", "weight": 18 },+ { "text": "valutadatum", "weight": 16 },+ { "text": "rekeningnummer", "weight": 12 }+ ]+ },+ {+ "id": "payslip",+ "phrases": [+ { "text": "loonstrook", "weight": 22, "where": "title" },+ { "text": "salarisstrook", "weight": 26, "where": "title" },+ { "text": "brutoloon", "weight": 18 },+ { "text": "nettoloon", "weight": 18 },+ { "text": "loonheffing", "weight": 18 },+ { "text": "vakantiegeld", "weight": 14 }+ ]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "uitgaven", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "jaarrekening", "weight": 20, "where": "title" },+ { "text": "balans", "weight": 12 }+ ]+ },+ {+ "id": "tax-return",+ "phrases": [+ { "text": "aangiftebiljet", "weight": 22, "where": "title" },+ { "text": "belastingaangifte", "weight": 26, "where": "title" },+ {+ "text": "aangifte inkomstenbelasting",+ "weight": 26,+ "where": "title"+ }+ ]+ },+ {+ "id": "tax-form",+ "phrases": [{ "text": "aangiftebiljet", "weight": 18, "where": "title" }]+ },+ {+ "id": "contract",+ "phrases": [+ { "text": "overeenkomst", "weight": 12, "where": "title" },+ { "text": "de partijen", "weight": 14 },+ { "text": "partijen komen overeen", "weight": 16 },+ { "text": "looptijd", "weight": 12 },+ { "text": "opzegtermijn", "weight": 14 }+ ]+ },+ {+ "id": "employment-contract",+ "phrases": [+ { "text": "arbeidsovereenkomst", "weight": 24, "where": "title" },+ { "text": "proeftijd", "weight": 18 },+ { "text": "vakantiedagen", "weight": 14 },+ { "text": "cao", "weight": 12 }+ ]+ },+ {+ "id": "lease-agreement",+ "phrases": [+ { "text": "pacht", "weight": 18, "where": "title" },+ { "text": "huisbaas", "weight": 8 },+ { "text": "huurovereenkomst", "weight": 30, "where": "title" },+ { "text": "huurprijs", "weight": 18 },+ { "text": "waarborgsom", "weight": 18 },+ { "text": "verhuurder", "weight": 14 },+ { "text": "huurder", "weight": 12 }+ ]+ },+ {+ "id": "nda",+ "phrases": [+ { "text": "geheimhoudingsverklaring", "weight": 24, "where": "title" },+ {+ "text": "geheimhoudingsovereenkomst",+ "weight": 30,+ "where": "title"+ },+ { "text": "vertrouwelijke informatie", "weight": 12 }+ ]+ },+ {+ "id": "terms-and-conditions",+ "phrases": [+ { "text": "gebruiksvoorwaarden", "weight": 22, "where": "title" },+ { "text": "algemene voorwaarden", "weight": 30, "where": "title" }+ ]+ },+ {+ "id": "privacy-policy",+ "phrases": [+ { "text": "algemene verordening gegevensbescherming", "weight": 10 },+ { "text": "privacyverklaring", "weight": 28, "where": "title" },+ { "text": "avg", "weight": 12 },+ { "text": "persoonsgegevens", "weight": 12 },+ { "text": "verwerkingsverantwoordelijke", "weight": 18 }+ ]+ },+ {+ "id": "will",+ "phrases": [{ "text": "testament", "weight": 20, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [+ { "text": "hypothecaire lening", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "insurance-policy",+ "phrases": [+ { "text": "verzekeringspolis", "weight": 22, "where": "title" },+ { "text": "eigen risico", "weight": 8 },+ { "text": "polisblad", "weight": 26, "where": "title" },+ { "text": "polisnummer", "weight": 16 },+ { "text": "dekking", "weight": 12 },+ { "text": "premie", "weight": 10 }+ ]+ },+ {+ "id": "resume",+ "phrases": [+ { "text": "curriculum vitae", "weight": 24, "where": "title" },+ { "text": "werkervaring", "weight": 20 },+ { "text": "opleiding", "weight": 12 },+ { "text": "vaardigheden", "weight": 12 }+ ]+ },+ {+ "id": "cover-letter",+ "phrases": [+ { "text": "sollicitatiebrief", "weight": 20, "where": "title" },+ { "text": "solliciteer ik", "weight": 18 },+ { "text": "met vriendelijke groet", "weight": 10 }+ ],+ "negatives": [{ "text": "werkervaring", "weight": 12 }]+ },+ {+ "id": "reference-letter",+ "phrases": [{ "text": "referentie", "weight": 20, "where": "title" }]+ },+ {+ "id": "job-description",+ "phrases": [+ { "text": "functieomschrijving", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "certificate",+ "phrases": [{ "text": "diploma", "weight": 16, "where": "title" }]+ },+ {+ "id": "thesis",+ "phrases": [{ "text": "scriptie", "weight": 20, "where": "title" }]+ },+ {+ "id": "research-paper",+ "phrases": [{ "text": "wetenschappelijke uitgeverij", "weight": 10 }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "octrooi", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "doktersrecept", "weight": 20, "where": "title" },+ { "text": "farmacie", "weight": 10 },+ { "text": "recept", "weight": 20, "where": "title" },+ { "text": "dosering", "weight": 18 },+ { "text": "apotheek", "weight": 12 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [+ { "text": "medisch dossier", "weight": 18, "where": "title" },+ { "text": "medisch verslag", "weight": 24, "where": "title" },+ { "text": "diagnose", "weight": 12 }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "inenting", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "vragenlijst", "weight": 20, "where": "title" }]+ },+ {+ "id": "warranty-document",+ "phrases": [{ "text": "garantie", "weight": 18, "where": "title" }]+ },+ {+ "id": "user-guide",+ "phrases": [{ "text": "handleiding", "weight": 22, "where": "title" }]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ { "text": "veiligheidsinformatieblad", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "technical-drawing",+ "phrases": [+ { "text": "technisch tekenen", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "bill-of-materials",+ "phrases": [{ "text": "stuklijst", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [{ "text": "persbericht", "weight": 22, "where": "title" }]+ },+ {+ "id": "newsletter",+ "phrases": [{ "text": "nieuwsbrief", "weight": 16, "where": "title" }]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "brochure", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [+ { "text": "ondernemingsplan", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "witboek", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-minutes",+ "phrases": [+ { "text": "notulen", "weight": 18, "where": "title" },+ { "text": "aanwezig", "weight": 10 }+ ]+ },+ {+ "id": "meeting-agenda",+ "phrases": [{ "text": "agenda", "weight": 16, "where": "title" }]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "memo", "weight": 16, "where": "title" }]+ },+ {+ "id": "ticket",+ "phrases": [+ { "text": "toegangsbewijs", "weight": 18, "where": "title" },+ { "text": "instapkaart", "weight": 26, "where": "title" },+ { "text": "vervoersbewijs", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "waybill",+ "phrases": [{ "text": "vrachtbrief", "weight": 20, "where": "title" }]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "visum", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [+ { "text": "kilowattuurmeter", "weight": 12 },+ { "text": "energierekening", "weight": 26, "where": "title" },+ { "text": "meterstand", "weight": 20 },+ { "text": "verbruik", "weight": 12 },+ { "text": "kwh", "weight": 12 }+ ]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "menukaart", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [{ "text": "recept", "weight": 18, "where": "title" }]+ },+ {+ "id": "presentation",+ "phrases": [{ "text": "presentatie", "weight": 12, "where": "title" }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "rapport", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "brief", "weight": 8, "where": "title" }]+ },+ {+ "id": "form",+ "phrases": [{ "text": "formulier", "weight": 10, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "licentie", "weight": 12, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "auditing", "weight": 12 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "vastgoed", "weight": 8 }]+ },+ {+ "id": "tender-document",+ "phrases": [{ "text": "aanbesteding", "weight": 18, "where": "title" }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "abonnement", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "e-mail", "weight": 8 }]+ },+ {+ "id": "book-ebook",+ "phrases": [{ "text": "inhoudsopgave", "weight": 6 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "tijdschrift", "weight": 10 }]+ },+ {+ "id": "course-syllabus",+ "phrases": [{ "text": "syllabus", "weight": 20, "where": "title" }]+ },+ {+ "id": "employee-handbook",+ "phrases": [+ { "text": "arbeidsreglement", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "performance-review",+ "phrases": [+ { "text": "functioneringsgesprek", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "werving en selectie", "weight": 8 }]+ },+ {+ "id": "service-agreement",+ "phrases": [+ { "text": "service level agreement", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "purchase-agreement",+ "phrases": [+ { "text": "koopovereenkomst", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "settlement-agreement",+ "phrases": [{ "text": "schikking", "weight": 18, "where": "title" }]+ },+ {+ "id": "consent-form",+ "phrases": [+ { "text": "geïnformeerde toestemming", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "referral-letter",+ "phrases": [{ "text": "verwijzing", "weight": 18, "where": "title" }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "verzekering", "weight": 20, "where": "title" }]+ },+ {+ "id": "regulatory-filing",+ "phrases": [{ "text": "compliance", "weight": 10 }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "kwaliteitsbewaking", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "kalibreren", "weight": 12 }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "arbeidsomstandigheden", "weight": 10 }]+ },+ {+ "id": "datasheet",+ "phrases": [{ "text": "datablad", "weight": 18, "where": "title" }]+ },+ {+ "id": "technical-specification",+ "phrases": [+ { "text": "ontwerpspecificatie", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "application programming interface", "weight": 8 }]+ },+ {+ "id": "sales-proposal",+ "phrases": [{ "text": "offerte", "weight": 16, "where": "title" }]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "begroting", "weight": 14, "where": "title" }]+ },+ {+ "id": "statement-of-account",+ "phrases": [+ { "text": "rekeningafschrift", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "application-form",+ "phrases": [{ "text": "sollicitatie", "weight": 14, "where": "title" }]+ },+ {+ "id": "gift-certificate",+ "phrases": [{ "text": "cadeaubon", "weight": 16, "where": "title" }]+ },+ {+ "id": "organization-chart",+ "phrases": [+ { "text": "organisatieschema", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "case-study",+ "phrases": [{ "text": "gevalsstudie", "weight": 16, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "raad van bestuur", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "investering", "weight": 8 }]+ },+ {+ "id": "letter-of-intent",+ "phrases": [+ { "text": "intentieovereenkomst", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "webanalyse", "weight": 10 }]+ },+ {+ "id": "benefits-summary",+ "phrases": [{ "text": "emolumenten", "weight": 14 }]+ },+ {+ "id": "hoa-document",+ "phrases": [+ { "text": "vereniging van eigenaren", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "grade-report",+ "phrases": [{ "text": "schoolrapport", "weight": 20, "where": "title" }]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "huiswerk", "weight": 12 }]+ },+ {+ "id": "quote",+ "phrases": [+ { "text": "offerte", "weight": 26, "where": "title" },+ { "text": "prijsopgave", "weight": 24, "where": "title" },+ { "text": "geldig tot", "weight": 16 }+ ],+ "negatives": [{ "text": "factuurnummer", "weight": 14 }]+ },+ {+ "id": "purchase-order",+ "phrases": [+ { "text": "inkooporder", "weight": 26, "where": "title" },+ { "text": "bestelnummer", "weight": 18 }+ ]+ },+ {+ "id": "order-confirmation",+ "phrases": [+ { "text": "orderbevestiging", "weight": 28, "where": "title" },+ { "text": "bedankt voor uw bestelling", "weight": 16 }+ ]+ },+ {+ "id": "delivery-note",+ "phrases": [+ { "text": "pakbon", "weight": 28, "where": "title" },+ { "text": "afleveradres", "weight": 12 }+ ]+ },+ {+ "id": "booking-confirmation",+ "phrases": [+ { "text": "boekingsbevestiging", "weight": 28, "where": "title" },+ { "text": "boekingsnummer", "weight": 18 }+ ]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "inhoudsopgave" }],+ "references": [{ "pattern": "\\\\b(bibliografie|literatuurlijst)\\\\b" }],+ "signature": [+ { "pattern": "\\\\b(handtekening|ondertekend|getekend)\\\\b" }+ ],+ "signature_form": [+ {+ "pattern": "_{6,}\\\\s*\\\\n\\\\s*(datum|naam|handtekening)",+ "flags": "i"+ }+ ],+ "email_from": [+ {+ "pattern": "\\\\bvan\\\\s?:\\\\s.+\\\\n(.*\\\\n){0,3}?\\\\s*(aan|verzonden|datum)\\\\s?:\\\\s",+ "flags": "i"+ }+ ],+ "email_subject": [{ "pattern": "betreft\\\\s?:\\\\s" }],+ "currency": [{ "pattern": "\\\\d[\\\\d .,]*\\\\s?(eur|€)|€\\\\s?\\\\d" }],+ "form_label": [+ {+ "pattern": "^[A-Za-zëéïöü][A-Za-zëéïöü /()&'.-]{2,30}\\\\s?:\\\\s*$",+ "flags": "m"+ }+ ]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/no.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/no.jsonnew file mode 100644index 0000000000..470315cea0--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/no.json@@ -0,0 +1,288 @@+{+ "version": 2,+ "language": "no",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "faktura", "weight": 24, "where": "title" },+ { "text": "merverdiavgift", "weight": 8 }+ ]+ },+ {+ "id": "receipt",+ "phrases": [{ "text": "kvittering", "weight": 22, "where": "title" }]+ },+ {+ "id": "credit-note",+ "phrases": [{ "text": "kreditnota", "weight": 22, "where": "title" }]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "kvittering", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "finansregnskap", "weight": 20, "where": "title" },+ { "text": "balanse", "weight": 12 }+ ]+ },+ {+ "id": "tax-return",+ "phrases": [{ "text": "skattemelding", "weight": 22, "where": "title" }]+ },+ {+ "id": "tax-form",+ "phrases": [{ "text": "skattemelding", "weight": 18, "where": "title" }]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "avtale", "weight": 12, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [{ "text": "arbeidsavtale", "weight": 24, "where": "title" }]+ },+ {+ "id": "lease-agreement",+ "phrases": [{ "text": "depositum", "weight": 10 }]+ },+ {+ "id": "privacy-policy",+ "phrases": [{ "text": "personvernforordningen", "weight": 10 }]+ },+ {+ "id": "affidavit",+ "phrases": [{ "text": "affidavit", "weight": 20, "where": "title" }]+ },+ {+ "id": "will",+ "phrases": [{ "text": "testament", "weight": 20, "where": "title" }]+ },+ {+ "id": "deed",+ "phrases": [{ "text": "bekjentgjørelse", "weight": 16, "where": "title" }]+ },+ {+ "id": "insurance-policy",+ "phrases": [{ "text": "polise", "weight": 22, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [{ "text": "diplom", "weight": 16, "where": "title" }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "patent", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "resept", "weight": 20, "where": "title" },+ { "text": "farmasi", "weight": 10 }+ ]+ },+ {+ "id": "warranty-document",+ "phrases": [{ "text": "garanti", "weight": 18, "where": "title" }]+ },+ {+ "id": "user-guide",+ "phrases": [{ "text": "bruksanvisning", "weight": 22, "where": "title" }]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ { "text": "sikkerhetsdatablad", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "teknisk tegning", "weight": 20, "where": "title" }]+ },+ {+ "id": "bill-of-materials",+ "phrases": [{ "text": "stykkliste", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [{ "text": "pressemelding", "weight": 22, "where": "title" }]+ },+ {+ "id": "newsletter",+ "phrases": [{ "text": "nyhetsbrev", "weight": 16, "where": "title" }]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "brosjyre", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "forretningsplan", "weight": 20, "where": "title" }]+ },+ {+ "id": "meeting-agenda",+ "phrases": [{ "text": "dagsorden", "weight": 16, "where": "title" }]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "promemoria", "weight": 16, "where": "title" }]+ },+ {+ "id": "ticket",+ "phrases": [{ "text": "billett", "weight": 18, "where": "title" }]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "visum", "weight": 18, "where": "title" }]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "meny", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [{ "text": "oppskrift", "weight": 18, "where": "title" }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "rapport", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "brev", "weight": 8, "where": "title" }]+ },+ {+ "id": "form",+ "phrases": [{ "text": "skjema", "weight": 10, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "lisens", "weight": 12, "where": "title" }]+ },+ {+ "id": "public-notice",+ "phrases": [{ "text": "bulletin", "weight": 16, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "revisjon", "weight": 12 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "fast eiendom", "weight": 8 }]+ },+ {+ "id": "grant-agreement",+ "phrases": [{ "text": "legat", "weight": 12 }]+ },+ {+ "id": "tender-document",+ "phrases": [{ "text": "anbud", "weight": 18, "where": "title" }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "abonnement", "weight": 10 }]+ },+ {+ "id": "donation-receipt",+ "phrases": [{ "text": "donasjon", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "e-post", "weight": 8 }]+ },+ {+ "id": "book-ebook",+ "phrases": [{ "text": "innholdsfortegnelse", "weight": 6 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "tidsskrift", "weight": 10 }]+ },+ {+ "id": "course-syllabus",+ "phrases": [{ "text": "syllabus", "weight": 20, "where": "title" }]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "rekruttering", "weight": 8 }]+ },+ {+ "id": "service-agreement",+ "phrases": [+ { "text": "tjenestenivåavtale", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "settlement-agreement",+ "phrases": [{ "text": "forlik", "weight": 18, "where": "title" }]+ },+ {+ "id": "consent-form",+ "phrases": [+ { "text": "informert samtykke", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "forsikring", "weight": 20, "where": "title" }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "arbeidsmiljø", "weight": 10 }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "programmeringsgrensesnitt", "weight": 8 }]+ },+ {+ "id": "license-agreement",+ "phrases": [+ { "text": "sluttbrukeravtale", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "budsjett", "weight": 14, "where": "title" }]+ },+ {+ "id": "application-form",+ "phrases": [{ "text": "arbeidssøknad", "weight": 14, "where": "title" }]+ },+ {+ "id": "gift-certificate",+ "phrases": [{ "text": "gavekort", "weight": 16, "where": "title" }]+ },+ {+ "id": "case-study",+ "phrases": [{ "text": "tilfellestudie", "weight": 16, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "styre", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "investering", "weight": 8 }]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "webanalyse", "weight": 10 }]+ },+ {+ "id": "benefits-summary",+ "phrases": [{ "text": "frynsegode", "weight": 14 }]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "lekser", "weight": 12 }]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "innholdsfortegnelse" }],+ "references": [{ "pattern": "bibliografi" }],+ "signature": [{ "pattern": "signatur" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/pl.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/pl.jsonnew file mode 100644index 0000000000..d9f82f30e5--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/pl.json@@ -0,0 +1,591 @@+{+ "version": 2,+ "language": "pl",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "faktura", "weight": 24, "where": "title" },+ { "text": "podatek od towarów i usług", "weight": 8 },+ { "text": "faktura vat", "weight": 26, "where": "title" },+ { "text": "numer faktury", "weight": 22, "where": "first" },+ { "text": "data wystawienia", "weight": 16, "where": "first" },+ { "text": "termin płatności", "weight": 18 },+ { "text": "do zapłaty", "weight": 18 },+ { "text": "razem do zapłaty", "weight": 20 },+ { "text": "nip", "weight": 12 },+ { "text": "nabywca", "weight": 12 },+ { "text": "sprzedawca", "weight": 12 },+ { "text": "sposób płatności", "weight": 8 }+ ],+ "negatives": [+ { "text": "wydanie zewnętrzne", "weight": 14 },+ { "text": "oferta", "weight": 12 },+ { "text": "wyciąg bankowy", "weight": 12 }+ ]+ },+ {+ "id": "receipt",+ "phrases": [+ { "text": "paragon", "weight": 22, "where": "title" },+ { "text": "paragon fiskalny", "weight": 24, "where": "title" },+ { "text": "potwierdzenie zapłaty", "weight": 20, "where": "title" },+ { "text": "dziękujemy za zakupy", "weight": 16 }+ ]+ },+ {+ "id": "credit-note",+ "phrases": [{ "text": "nota kredytowa", "weight": 22, "where": "title" }]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "paragon", "weight": 20, "where": "title" }]+ },+ {+ "id": "bank-statement",+ "phrases": [+ { "text": "wyciąg bankowy", "weight": 24, "where": "title" },+ { "text": "saldo początkowe", "weight": 18 },+ { "text": "saldo końcowe", "weight": 18 },+ { "text": "data księgowania", "weight": 16 },+ { "text": "numer rachunku", "weight": 12 }+ ]+ },+ {+ "id": "payslip",+ "phrases": [+ { "text": "lista płac", "weight": 22, "where": "title" },+ { "text": "pasek wynagrodzeń", "weight": 26, "where": "title" },+ { "text": "wynagrodzenie brutto", "weight": 18 },+ { "text": "do wypłaty", "weight": 18 },+ { "text": "zus", "weight": 16 }+ ]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "nakłady", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "sprawozdanie finansowe", "weight": 20, "where": "title" },+ { "text": "bilans", "weight": 12 }+ ]+ },+ {+ "id": "tax-return",+ "phrases": [+ { "text": "deklaracja podatkowa", "weight": 22, "where": "title" },+ { "text": "zeznanie podatkowe", "weight": 26, "where": "title" },+ { "text": "deklaracja pit", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "tax-form",+ "phrases": [+ { "text": "deklaracja podatkowa", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "contract",+ "phrases": [+ { "text": "umowa", "weight": 12, "where": "title" },+ { "text": "strony umowy", "weight": 16 },+ { "text": "strony ustalają", "weight": 16 },+ { "text": "okres obowiązywania", "weight": 14 },+ { "text": "wypowiedzenie", "weight": 12 }+ ]+ },+ {+ "id": "employment-contract",+ "phrases": [+ { "text": "umowa o pracę", "weight": 24, "where": "title" },+ { "text": "okres próbny", "weight": 18 },+ { "text": "urlop wypoczynkowy", "weight": 14 }+ ]+ },+ {+ "id": "nda",+ "phrases": [+ {+ "text": "umowa o zachowaniu poufności",+ "weight": 24,+ "where": "title"+ },+ { "text": "informacje poufne", "weight": 12 }+ ]+ },+ {+ "id": "privacy-policy",+ "phrases": [+ { "text": "polityka prywatności", "weight": 24, "where": "title" },+ { "text": "ogólne rozporządzenie o ochronie danych", "weight": 10 },+ { "text": "rodo", "weight": 16 },+ { "text": "dane osobowe", "weight": 12 },+ { "text": "administrator danych", "weight": 18 }+ ]+ },+ {+ "id": "will",+ "phrases": [{ "text": "testament", "weight": 20, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [+ { "text": "kredyt hipoteczny", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "insurance-policy",+ "phrases": [+ { "text": "polisa", "weight": 22, "where": "title" },+ { "text": "franszyza", "weight": 8 },+ { "text": "polisa ubezpieczeniowa", "weight": 28, "where": "title" },+ { "text": "numer polisy", "weight": 16 },+ { "text": "suma ubezpieczenia", "weight": 16 },+ { "text": "składka", "weight": 12 }+ ]+ },+ {+ "id": "resume",+ "phrases": [+ { "text": "życiorys", "weight": 20, "where": "title" },+ { "text": "doświadczenie zawodowe", "weight": 20 },+ { "text": "wykształcenie", "weight": 12 },+ { "text": "umiejętności", "weight": 12 }+ ]+ },+ {+ "id": "cover-letter",+ "phrases": [+ { "text": "list motywacyjny", "weight": 20, "where": "title" },+ { "text": "szanowni państwo", "weight": 12 },+ { "text": "z poważaniem", "weight": 10 }+ ],+ "negatives": [{ "text": "doświadczenie zawodowe", "weight": 12 }]+ },+ {+ "id": "reference-letter",+ "phrases": [{ "text": "referencje", "weight": 20, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [{ "text": "świadectwo", "weight": 16, "where": "title" }]+ },+ {+ "id": "transcript",+ "phrases": [{ "text": "indeks", "weight": 18, "where": "title" }]+ },+ {+ "id": "thesis",+ "phrases": [{ "text": "praca dyplomowa", "weight": 20, "where": "title" }]+ },+ {+ "id": "research-paper",+ "phrases": [{ "text": "podręcznik akademicki", "weight": 10 }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "patent", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "recepta", "weight": 20, "where": "title" },+ { "text": "farmacja", "weight": 10 },+ { "text": "dawkowanie", "weight": 18 },+ { "text": "apteka", "weight": 12 }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "szczepienie ochronne", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "kwestionariusz", "weight": 20, "where": "title" }]+ },+ {+ "id": "warranty-document",+ "phrases": [{ "text": "rękojmia", "weight": 18, "where": "title" }]+ },+ {+ "id": "user-guide",+ "phrases": [+ { "text": "instrukcja obsługi", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ { "text": "karta charakterystyki", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "technical-drawing",+ "phrases": [+ { "text": "rysunek techniczny", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "press-release",+ "phrases": [+ { "text": "komunikat prasowy", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "newsletter",+ "phrases": [{ "text": "newsletter", "weight": 16, "where": "title" }]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "broszura", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "biznesplan", "weight": 20, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "biała księga", "weight": 18, "where": "title" }]+ },+ {+ "id": "invitation",+ "phrases": [+ { "text": "zaproszenia ślubne", "weight": 14, "where": "title" }+ ]+ },+ {+ "id": "ticket",+ "phrases": [+ { "text": "bilet", "weight": 18, "where": "title" },+ { "text": "karta pokładowa", "weight": 26, "where": "title" }+ ]+ },+ {+ "id": "customs-declaration",+ "phrases": [+ { "text": "zgłoszenie celne", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "wiza", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [+ { "text": "licznik energii elektrycznej", "weight": 12 },+ { "text": "faktura za energię", "weight": 26, "where": "title" },+ { "text": "odczyt licznika", "weight": 20 },+ { "text": "zużycie", "weight": 12 },+ { "text": "kwh", "weight": 12 }+ ]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "jadłospis", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [+ { "text": "przepis kulinarny", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "presentation",+ "phrases": [{ "text": "prezentacja", "weight": 12, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "list", "weight": 8, "where": "title" }]+ },+ {+ "id": "form",+ "phrases": [{ "text": "formularz", "weight": 10, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "licencja", "weight": 12, "where": "title" }]+ },+ {+ "id": "public-notice",+ "phrases": [{ "text": "biuletyn", "weight": 16, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "audyt", "weight": 12 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "nieruchomość", "weight": 8 }]+ },+ {+ "id": "grant-agreement",+ "phrases": [{ "text": "grant", "weight": 12 }]+ },+ {+ "id": "tender-document",+ "phrases": [{ "text": "przetarg", "weight": 18, "where": "title" }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "abonament", "weight": 10 }]+ },+ {+ "id": "donation-receipt",+ "phrases": [{ "text": "donacja", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "poczta elektroniczna", "weight": 8 }]+ },+ {+ "id": "book-ebook",+ "phrases": [{ "text": "spis treści", "weight": 6 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "czasopismo", "weight": 10 }]+ },+ {+ "id": "employee-handbook",+ "phrases": [{ "text": "regulamin pracy", "weight": 20, "where": "title" }]+ },+ {+ "id": "performance-review",+ "phrases": [+ { "text": "ocena pracowników", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "rekrutacja", "weight": 8 }]+ },+ {+ "id": "service-agreement",+ "phrases": [+ { "text": "service level agreement", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "purchase-agreement",+ "phrases": [{ "text": "umowa sprzedaży", "weight": 18, "where": "title" }]+ },+ {+ "id": "loan-agreement",+ "phrases": [{ "text": "umowa pożyczki", "weight": 20, "where": "title" }]+ },+ {+ "id": "settlement-agreement",+ "phrases": [{ "text": "ugoda", "weight": 18, "where": "title" }]+ },+ {+ "id": "legal-opinion",+ "phrases": [{ "text": "opinia prawna", "weight": 18, "where": "title" }]+ },+ {+ "id": "discharge-summary",+ "phrases": [{ "text": "hospitalizacja", "weight": 20, "where": "title" }]+ },+ {+ "id": "referral-letter",+ "phrases": [{ "text": "skierowanie", "weight": 18, "where": "title" }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "ubezpieczenie", "weight": 20, "where": "title" }]+ },+ {+ "id": "regulatory-filing",+ "phrases": [{ "text": "compliance", "weight": 10 }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "kontrola jakości", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "wzorcowanie", "weight": 12 }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "bezpieczeństwo i higiena pracy", "weight": 10 }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "interfejs programowania aplikacji", "weight": 8 }]+ },+ {+ "id": "license-agreement",+ "phrases": [{ "text": "eula", "weight": 20, "where": "title" }]+ },+ {+ "id": "sales-proposal",+ "phrases": [{ "text": "oferta", "weight": 16, "where": "title" }]+ },+ {+ "id": "proposal",+ "phrases": [+ { "text": "zapytanie ofertowe", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "budżet", "weight": 14, "where": "title" }]+ },+ {+ "id": "statement-of-account",+ "phrases": [{ "text": "wyciąg bankowy", "weight": 18, "where": "title" }]+ },+ {+ "id": "registration-form",+ "phrases": [+ { "text": "uniwersytet nowej zelandii", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "organization-chart",+ "phrases": [+ { "text": "schemat organizacyjny", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "rada dyrektorów", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "inwestycja", "weight": 8 }]+ },+ {+ "id": "letter-of-intent",+ "phrases": [{ "text": "list intencyjny", "weight": 20, "where": "title" }]+ },+ {+ "id": "appraisal-report",+ "phrases": [+ { "text": "wycena nieruchomości", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "tax-statement",+ "phrases": [{ "text": "taksator", "weight": 18, "where": "title" }]+ },+ {+ "id": "benefits-summary",+ "phrases": [{ "text": "benefit", "weight": 14 }]+ },+ {+ "id": "hoa-document",+ "phrases": [+ { "text": "wspólnota mieszkaniowa", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "grade-report",+ "phrases": [+ { "text": "świadectwo szkolne", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "praca domowa", "weight": 12 }]+ },+ {+ "id": "quote",+ "phrases": [+ { "text": "oferta handlowa", "weight": 26, "where": "title" },+ { "text": "wycena", "weight": 22, "where": "title" },+ { "text": "ważna do", "weight": 16 }+ ],+ "negatives": [{ "text": "numer faktury", "weight": 14 }]+ },+ {+ "id": "purchase-order",+ "phrases": [+ { "text": "zamówienie", "weight": 22, "where": "title" },+ { "text": "numer zamówienia", "weight": 18 }+ ]+ },+ {+ "id": "order-confirmation",+ "phrases": [+ { "text": "potwierdzenie zamówienia", "weight": 28, "where": "title" },+ { "text": "dziękujemy za zamówienie", "weight": 16 }+ ]+ },+ {+ "id": "delivery-note",+ "phrases": [+ { "text": "wydanie zewnętrzne", "weight": 26, "where": "title" },+ { "text": "dokument wz", "weight": 24, "where": "title" },+ { "text": "adres dostawy", "weight": 10 }+ ]+ },+ {+ "id": "lease-agreement",+ "phrases": [+ { "text": "umowa najmu", "weight": 30, "where": "title" },+ { "text": "czynsz", "weight": 18 },+ { "text": "kaucja", "weight": 18 },+ { "text": "wynajmujący", "weight": 14 },+ { "text": "najemca", "weight": 12 }+ ]+ },+ {+ "id": "terms-and-conditions",+ "phrases": [+ { "text": "regulamin", "weight": 22, "where": "title" },+ { "text": "ogólne warunki", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [+ { "text": "opis badania", "weight": 22, "where": "title" },+ { "text": "rozpoznanie", "weight": 16 }+ ]+ },+ {+ "id": "booking-confirmation",+ "phrases": [+ { "text": "potwierdzenie rezerwacji", "weight": 28, "where": "title" },+ { "text": "numer rezerwacji", "weight": 18 }+ ]+ },+ {+ "id": "meeting-minutes",+ "phrases": [+ { "text": "protokół ze spotkania", "weight": 26, "where": "title" },+ { "text": "obecni", "weight": 10 }+ ]+ },+ {+ "id": "meeting-agenda",+ "phrases": [{ "text": "porządek obrad", "weight": 20, "where": "title" }]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "spis tre[śs]ci" }],+ "references": [{ "pattern": "\\\\b(bibliografia|literatura)\\\\b" }],+ "signature": [{ "pattern": "\\\\b(podpis|podpisano)\\\\b" }],+ "signature_form": [+ { "pattern": "_{6,}\\\\s*\\\\n\\\\s*(data|imi[ęe]|podpis)", "flags": "i" }+ ],+ "email_from": [+ {+ "pattern": "\\\\bod\\\\s?:\\\\s.+\\\\n(.*\\\\n){0,3}?\\\\s*(do|wys[łl]ano|data)\\\\s?:\\\\s",+ "flags": "i"+ }+ ],+ "email_subject": [{ "pattern": "temat\\\\s?:\\\\s" }],+ "currency": [{ "pattern": "\\\\d[\\\\d .,]*\\\\s?(pln|z[łl])" }],+ "form_label": [+ {+ "pattern": "^[A-Za-ząćęłńóśźż][A-Za-ząćęłńóśźż /()&'.-]{2,30}\\\\s?:\\\\s*$",+ "flags": "m"+ }+ ]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/pt.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/pt.jsonnew file mode 100644index 0000000000..736753b1c3--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/pt.json@@ -0,0 +1,584 @@+{+ "version": 2,+ "language": "pt",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "fatura", "weight": 24, "where": "title" },+ { "text": "imposto sobre o valor acrescentado", "weight": 8 },+ { "text": "número da fatura", "weight": 22, "where": "first" },+ { "text": "data de emissão", "weight": 16, "where": "first" },+ { "text": "nota fiscal", "weight": 24, "where": "title" },+ { "text": "data de vencimento", "weight": 16 },+ { "text": "valor total", "weight": 16 },+ { "text": "total a pagar", "weight": 18 },+ { "text": "forma de pagamento", "weight": 8 },+ { "text": "nif", "weight": 10 },+ { "text": "cnpj", "weight": 12 }+ ],+ "negatives": [+ { "text": "guia de remessa", "weight": 14 },+ { "text": "orçamento", "weight": 14 },+ { "text": "extrato bancário", "weight": 12 }+ ]+ },+ {+ "id": "receipt",+ "phrases": [+ { "text": "nota fiscal", "weight": 22, "where": "title" },+ { "text": "comprovante de pagamento", "weight": 22, "where": "title" },+ { "text": "pagamento recebido", "weight": 16 },+ { "text": "obrigado pela sua compra", "weight": 16 }+ ]+ },+ {+ "id": "credit-note",+ "phrases": [{ "text": "nota de crédito", "weight": 22, "where": "title" }]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "nota fiscal", "weight": 20, "where": "title" }]+ },+ {+ "id": "bank-statement",+ "phrases": [+ { "text": "extrato", "weight": 24, "where": "title" },+ { "text": "extrato bancário", "weight": 28, "where": "title" },+ { "text": "extrato de conta", "weight": 26, "where": "title" },+ { "text": "saldo anterior", "weight": 18 },+ { "text": "saldo final", "weight": 18 },+ { "text": "data valor", "weight": 16 },+ { "text": "número da conta", "weight": 12 }+ ]+ },+ {+ "id": "payslip",+ "phrases": [+ { "text": "holerite", "weight": 22, "where": "title" },+ { "text": "folha de pagamento", "weight": 14, "where": "title" },+ { "text": "recibo de vencimento", "weight": 28, "where": "title" },+ { "text": "salário bruto", "weight": 18 },+ { "text": "descontos", "weight": 12 },+ { "text": "inss", "weight": 16 }+ ]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "custo", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "demonstração financeira", "weight": 20, "where": "title" },+ { "text": "balanço patrimonial", "weight": 12 }+ ]+ },+ {+ "id": "contract",+ "phrases": [+ { "text": "contrato", "weight": 12, "where": "title" },+ { "text": "as partes", "weight": 14 },+ { "text": "as partes acordam", "weight": 16 },+ { "text": "prazo do contrato", "weight": 14 },+ { "text": "rescisão", "weight": 12 }+ ]+ },+ {+ "id": "employment-contract",+ "phrases": [+ { "text": "contrato de trabalho", "weight": 24, "where": "title" },+ { "text": "período experimental", "weight": 18 },+ { "text": "férias", "weight": 12 }+ ]+ },+ {+ "id": "lease-agreement",+ "phrases": [+ { "text": "arrendamento", "weight": 18, "where": "title" },+ { "text": "senhorio", "weight": 8 },+ { "text": "contrato de arrendamento", "weight": 28, "where": "title" },+ { "text": "contrato de aluguel", "weight": 28, "where": "title" },+ { "text": "caução", "weight": 18 },+ { "text": "locador", "weight": 14 },+ { "text": "inquilino", "weight": 12 }+ ]+ },+ {+ "id": "nda",+ "phrases": [+ { "text": "acordo de não-divulgação", "weight": 24, "where": "title" },+ {+ "text": "acordo de confidencialidade",+ "weight": 30,+ "where": "title"+ },+ { "text": "informação confidencial", "weight": 12 }+ ]+ },+ {+ "id": "terms-and-conditions",+ "phrases": [+ { "text": "termos de uso", "weight": 22, "where": "title" },+ { "text": "termos e condições", "weight": 26, "where": "title" },+ { "text": "condições gerais", "weight": 26, "where": "title" }+ ]+ },+ {+ "id": "privacy-policy",+ "phrases": [+ { "text": "política de privacidade", "weight": 24, "where": "title" },+ { "text": "lgpd", "weight": 16 },+ { "text": "rgpd", "weight": 14 },+ { "text": "dados pessoais", "weight": 12 }+ ]+ },+ {+ "id": "affidavit",+ "phrases": [{ "text": "depoimento", "weight": 20, "where": "title" }]+ },+ {+ "id": "will",+ "phrases": [{ "text": "testamento", "weight": 20, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [+ { "text": "empréstimo hipotecário", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "insurance-policy",+ "phrases": [+ { "text": "apólice", "weight": 22, "where": "title" },+ { "text": "apólice de seguro", "weight": 28, "where": "title" },+ { "text": "número da apólice", "weight": 16 },+ { "text": "cobertura", "weight": 12 },+ { "text": "franquia", "weight": 14 },+ { "text": "prémio", "weight": 10 }+ ]+ },+ {+ "id": "resume",+ "phrases": [+ { "text": "curriculum vitæ", "weight": 24, "where": "title" },+ { "text": "resumo curricular", "weight": 20, "where": "title" },+ { "text": "curriculum vitae", "weight": 24, "where": "title" },+ { "text": "experiência profissional", "weight": 20 },+ { "text": "formação académica", "weight": 16 },+ { "text": "competências", "weight": 12 }+ ]+ },+ {+ "id": "cover-letter",+ "phrases": [+ { "text": "carta de apresentação", "weight": 20, "where": "title" },+ { "text": "venho por este meio", "weight": 18 },+ { "text": "atenciosamente", "weight": 10 }+ ],+ "negatives": [{ "text": "experiência profissional", "weight": 12 }]+ },+ {+ "id": "certificate",+ "phrases": [{ "text": "diploma", "weight": 16, "where": "title" }]+ },+ {+ "id": "transcript",+ "phrases": [+ { "text": "histórico escolar", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "thesis",+ "phrases": [{ "text": "tese", "weight": 20, "where": "title" }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "patente", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "prescrição médica", "weight": 20, "where": "title" },+ { "text": "farmácia", "weight": 10 },+ { "text": "receita médica", "weight": 24, "where": "title" },+ { "text": "posologia", "weight": 18 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [+ { "text": "prontuário médico", "weight": 18, "where": "title" },+ { "text": "relatório médico", "weight": 24, "where": "title" },+ { "text": "diagnóstico", "weight": 12 }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "vacinação", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "questionário", "weight": 20, "where": "title" }]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [{ "text": "msds", "weight": 24, "where": "title" }]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "desenho técnico", "weight": 20, "where": "title" }]+ },+ {+ "id": "bill-of-materials",+ "phrases": [+ { "text": "estrutura de produtos", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "press-release",+ "phrases": [+ { "text": "comunicado de imprensa", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "newsletter",+ "phrases": [+ { "text": "boletim informativo", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "business-plan",+ "phrases": [+ { "text": "plano de negócios", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "livro branco", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-minutes",+ "phrases": [+ { "text": "ata de reunião", "weight": 18, "where": "title" },+ { "text": "presentes", "weight": 10 }+ ]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "memorando", "weight": 16, "where": "title" }]+ },+ {+ "id": "ticket",+ "phrases": [+ { "text": "ingresso", "weight": 18, "where": "title" },+ { "text": "cartão de embarque", "weight": 26, "where": "title" },+ { "text": "bilhete", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "visto", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [+ { "text": "medidor de energia elétrica", "weight": 12 },+ { "text": "fatura de eletricidade", "weight": 26, "where": "title" },+ { "text": "leitura do contador", "weight": 20 },+ { "text": "consumo", "weight": 12 },+ { "text": "kwh", "weight": 12 }+ ]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "cardápio", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [{ "text": "receita", "weight": 18, "where": "title" }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "relatório", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "carta", "weight": 8, "where": "title" }]+ },+ {+ "id": "form",+ "phrases": [{ "text": "formulário", "weight": 10, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "licença", "weight": 12, "where": "title" }]+ },+ {+ "id": "public-notice",+ "phrases": [{ "text": "edital", "weight": 16, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "auditoria", "weight": 12 }]+ },+ {+ "id": "risk-assessment",+ "phrases": [+ { "text": "cálculo de risco", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "imóvel", "weight": 8 }]+ },+ {+ "id": "grant-agreement",+ "phrases": [{ "text": "subvenção", "weight": 12 }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "modelo de assinatura", "weight": 10 }]+ },+ {+ "id": "donation-receipt",+ "phrases": [{ "text": "doação", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "e-mail", "weight": 8 }]+ },+ {+ "id": "book-ebook",+ "phrases": [{ "text": "índice de conteúdo", "weight": 6 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "revista", "weight": 10 }]+ },+ {+ "id": "course-syllabus",+ "phrases": [{ "text": "ementa", "weight": 20, "where": "title" }]+ },+ {+ "id": "performance-review",+ "phrases": [+ { "text": "avaliação de desempenho", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "recrutamento", "weight": 8 }]+ },+ {+ "id": "service-agreement",+ "phrases": [+ { "text": "acordo de nível de serviço", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "purchase-agreement",+ "phrases": [+ { "text": "contrato de compra e venda", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "loan-agreement",+ "phrases": [+ { "text": "contrato de mútuo", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "settlement-agreement",+ "phrases": [{ "text": "acordo", "weight": 18, "where": "title" }]+ },+ {+ "id": "legal-opinion",+ "phrases": [+ { "text": "parecer jurídico", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "consent-form",+ "phrases": [+ { "text": "consentimento informado", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "discharge-summary",+ "phrases": [{ "text": "internação", "weight": 20, "where": "title" }]+ },+ {+ "id": "lab-report",+ "phrases": [{ "text": "laboratório médico", "weight": 12 }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "seguro", "weight": 20, "where": "title" }]+ },+ {+ "id": "regulatory-filing",+ "phrases": [{ "text": "compliance", "weight": 10 }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "controle de qualidade", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "calibração", "weight": 12 }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "segurança e saúde ocupacionais", "weight": 10 }]+ },+ {+ "id": "datasheet",+ "phrases": [{ "text": "datasheet", "weight": 18, "where": "title" }]+ },+ {+ "id": "api-documentation",+ "phrases": [+ { "text": "interface de programação de aplicações", "weight": 8 }+ ]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "orçamento", "weight": 14, "where": "title" }]+ },+ {+ "id": "statement-of-account",+ "phrases": [{ "text": "extrato", "weight": 18, "where": "title" }]+ },+ {+ "id": "gift-certificate",+ "phrases": [{ "text": "vale-presente", "weight": 16, "where": "title" }]+ },+ {+ "id": "organization-chart",+ "phrases": [{ "text": "organograma", "weight": 20, "where": "title" }]+ },+ {+ "id": "case-study",+ "phrases": [{ "text": "caso de estudo", "weight": 16, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "conselho de administração", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "investimento", "weight": 8 }]+ },+ {+ "id": "appraisal-report",+ "phrases": [+ { "text": "estimativa imobiliária", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "tax-statement",+ "phrases": [+ { "text": "avaliação fiscal", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "benefits-summary",+ "phrases": [{ "text": "benefícios trabalhistas", "weight": 14 }]+ },+ {+ "id": "hoa-document",+ "phrases": [+ {+ "text": "associação de proprietários de imóveis",+ "weight": 18,+ "where": "title"+ }+ ]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "lição de casa", "weight": 12 }]+ },+ {+ "id": "quote",+ "phrases": [+ { "text": "orçamento", "weight": 26, "where": "title" },+ { "text": "proposta comercial", "weight": 22, "where": "title" },+ { "text": "válido até", "weight": 16 }+ ],+ "negatives": [{ "text": "número da fatura", "weight": 14 }]+ },+ {+ "id": "purchase-order",+ "phrases": [+ { "text": "ordem de compra", "weight": 26, "where": "title" },+ { "text": "número do pedido", "weight": 18 }+ ]+ },+ {+ "id": "order-confirmation",+ "phrases": [+ { "text": "confirmação de pedido", "weight": 26, "where": "title" },+ { "text": "obrigado pelo seu pedido", "weight": 16 }+ ]+ },+ {+ "id": "delivery-note",+ "phrases": [+ { "text": "guia de remessa", "weight": 28, "where": "title" },+ { "text": "nota de entrega", "weight": 24, "where": "title" },+ { "text": "endereço de entrega", "weight": 10 }+ ]+ },+ {+ "id": "tax-return",+ "phrases": [+ { "text": "declaração de irs", "weight": 26, "where": "title" },+ { "text": "imposto de renda", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "booking-confirmation",+ "phrases": [+ { "text": "confirmação de reserva", "weight": 26, "where": "title" },+ { "text": "número da reserva", "weight": 18 }+ ]+ },+ {+ "id": "meeting-agenda",+ "phrases": [+ { "text": "ordem de trabalhos", "weight": 20, "where": "title" }+ ]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "[íi]ndice" }],+ "signature": [{ "pattern": "\\\\b(assinatura|assinado)\\\\b" }],+ "signature_form": [+ {+ "pattern": "_{6,}\\\\s*\\\\n\\\\s*(data|nome|assinatura)",+ "flags": "i"+ }+ ],+ "references": [{ "pattern": "\\\\b(bibliografia|refer[êe]ncias)\\\\b" }],+ "email_from": [+ {+ "pattern": "\\\\bde\\\\s?:\\\\s.+\\\\n(.*\\\\n){0,3}?\\\\s*(para|enviado|data)\\\\s?:\\\\s",+ "flags": "i"+ }+ ],+ "email_subject": [{ "pattern": "assunto\\\\s?:\\\\s" }],+ "currency": [+ {+ "pattern": "\\\\d[\\\\d .,]*\\\\s?(eur|brl|€|r\\\\$)|(€|r\\\\$)\\\\s?\\\\d"+ }+ ],+ "form_label": [+ {+ "pattern": "^[A-Za-zÁÂÃÀÇÉÊÍÓÔÕÚáâãàçéêíóôõú][A-Za-zÁÂÃÀÇÉÊÍÓÔÕÚáâãàçéêíóôõú /()&'.-]{2,30}\\\\s?:\\\\s*$",+ "flags": "m"+ }+ ]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/ro.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/ro.jsonnew file mode 100644index 0000000000..a542dfbd19--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/ro.json@@ -0,0 +1,264 @@+{+ "version": 2,+ "language": "ro",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "factură", "weight": 24, "where": "title" },+ { "text": "taxă pe valoarea adăugată", "weight": 8 }+ ]+ },+ {+ "id": "receipt",+ "phrases": [{ "text": "chitanță", "weight": 22, "where": "title" }]+ },+ {+ "id": "purchase-order",+ "phrases": [+ { "text": "comandă de achiziție", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "chitanță", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "situație financiară", "weight": 20, "where": "title" },+ { "text": "bilanț", "weight": 12 }+ ]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "contract", "weight": 12, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [+ { "text": "contract de muncă", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "lease-agreement",+ "phrases": [{ "text": "leasing", "weight": 18, "where": "title" }]+ },+ {+ "id": "terms-and-conditions",+ "phrases": [+ { "text": "termeni de utilizare", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "privacy-policy",+ "phrases": [+ {+ "text": "politică de confidențialitate",+ "weight": 24,+ "where": "title"+ },+ {+ "text": "regulamentul general privind protecția datelor",+ "weight": 10+ }+ ]+ },+ {+ "id": "will",+ "phrases": [{ "text": "testament", "weight": 20, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [{ "text": "credit ipotecar", "weight": 18, "where": "title" }]+ },+ {+ "id": "job-description",+ "phrases": [{ "text": "fișa postului", "weight": 20, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [{ "text": "diplomă", "weight": 16, "where": "title" }]+ },+ {+ "id": "thesis",+ "phrases": [{ "text": "teză", "weight": 20, "where": "title" }]+ },+ {+ "id": "research-paper",+ "phrases": [{ "text": "publicație academică", "weight": 10 }]+ },+ {+ "id": "patent",+ "phrases": [+ { "text": "brevet de invenție", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "prescripție medicală", "weight": 20, "where": "title" },+ { "text": "farmacie", "weight": 10 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [{ "text": "diagnostic", "weight": 10 }]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "vaccinare", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "chestionar", "weight": 20, "where": "title" }]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ { "text": "fișă cu date de securitate", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "desen tehnic", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [+ { "text": "comunicat de presă", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "broșură", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "plan de afaceri", "weight": 20, "where": "title" }]+ },+ {+ "id": "invitation",+ "phrases": [+ { "text": "invitație la nuntă", "weight": 14, "where": "title" }+ ]+ },+ {+ "id": "ticket",+ "phrases": [+ { "text": "bilet de intrare", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "viză", "weight": 18, "where": "title" }]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "meniu", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [{ "text": "rețetă culinară", "weight": 18, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "scrisoare", "weight": 8, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "audit", "weight": 12 }]+ },+ {+ "id": "risk-assessment",+ "phrases": [+ { "text": "evaluarea riscului", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "proprietate imobiliară", "weight": 8 }]+ },+ {+ "id": "grant-agreement",+ "phrases": [{ "text": "grant", "weight": 12 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "e-mail", "weight": 8 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "revistă", "weight": 10 }]+ },+ {+ "id": "loan-agreement",+ "phrases": [+ { "text": "contract de împrumut", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "legal-opinion",+ "phrases": [{ "text": "opinie juridică", "weight": 18, "where": "title" }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "asigurare", "weight": 20, "where": "title" }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "securitate și sănătate în muncă", "weight": 10 }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "application programming interface", "weight": 8 }]+ },+ {+ "id": "license-agreement",+ "phrases": [{ "text": "eula", "weight": 20, "where": "title" }]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "buget", "weight": 14, "where": "title" }]+ },+ {+ "id": "gift-certificate",+ "phrases": [{ "text": "card cadou", "weight": 16, "where": "title" }]+ },+ {+ "id": "organization-chart",+ "phrases": [{ "text": "organigramă", "weight": 20, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "consiliu de administrație", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "investiție", "weight": 8 }]+ },+ {+ "id": "letter-of-intent",+ "phrases": [+ { "text": "scrisoare de intenție", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "appraisal-report",+ "phrases": [+ {+ "text": "evaluarea proprietăților imobiliare",+ "weight": 18,+ "where": "title"+ }+ ]+ },+ {+ "id": "benefits-summary",+ "phrases": [{ "text": "beneficiu în natură", "weight": 14 }]+ }+ ],+ "patterns": {+ "references": [{ "pattern": "bibliografie" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/ru.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/ru.jsonnew file mode 100644index 0000000000..9c8778064a--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/ru.json@@ -0,0 +1,533 @@+{+ "version": 2,+ "language": "ru",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "инвойс", "weight": 24, "where": "title" },+ { "text": "налог на добавленную стоимость", "weight": 8 },+ { "text": "счёт-фактура", "weight": 24, "where": "title" },+ { "text": "счёт на оплату", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "receipt",+ "phrases": [{ "text": "квитанция", "weight": 22, "where": "title" }]+ },+ {+ "id": "credit-note",+ "phrases": [{ "text": "сторно", "weight": 22, "where": "title" }]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "квитанция", "weight": 20, "where": "title" }]+ },+ {+ "id": "bank-statement",+ "phrases": [+ { "text": "выписка из банка по счёту", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "payslip",+ "phrases": [+ { "text": "расчётный лист", "weight": 22, "where": "title" },+ {+ "text": "расчётно-платёжная ведомость",+ "weight": 14,+ "where": "title"+ }+ ]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "расходы", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "финансовая отчётность", "weight": 20, "where": "title" },+ { "text": "бухгалтерский баланс", "weight": 12 }+ ]+ },+ {+ "id": "tax-return",+ "phrases": [+ { "text": "налоговая декларация", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "tax-form",+ "phrases": [+ { "text": "налоговая декларация", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "договор", "weight": 12, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [+ { "text": "трудовой договор", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "lease-agreement",+ "phrases": [{ "text": "обеспечительный платёж", "weight": 10 }]+ },+ {+ "id": "nda",+ "phrases": [+ { "text": "соглашение о неразглашении", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "terms-and-conditions",+ "phrases": [+ { "text": "условия использования", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "privacy-policy",+ "phrases": [{ "text": "общий регламент по защите данных", "weight": 10 }]+ },+ {+ "id": "affidavit",+ "phrases": [{ "text": "аффидевит", "weight": 20, "where": "title" }]+ },+ {+ "id": "will",+ "phrases": [{ "text": "завещание", "weight": 20, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [+ { "text": "ипотечный кредит", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "insurance-policy",+ "phrases": [+ { "text": "страховой полис", "weight": 22, "where": "title" },+ { "text": "франшиза", "weight": 8 }+ ]+ },+ {+ "id": "resume",+ "phrases": [{ "text": "резюме", "weight": 20, "where": "title" }]+ },+ {+ "id": "cover-letter",+ "phrases": [+ { "text": "сопроводительное письмо", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "job-description",+ "phrases": [+ { "text": "должностная инструкция", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "timesheet",+ "phrases": [{ "text": "таймшит", "weight": 20, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [+ { "text": "аттестат", "weight": 16, "where": "title" },+ { "text": "диплом", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "transcript",+ "phrases": [{ "text": "зачётная книжка", "weight": 18, "where": "title" }]+ },+ {+ "id": "thesis",+ "phrases": [+ { "text": "дипломная работа", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "патент", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "рецепт", "weight": 20, "where": "title" },+ { "text": "фармация", "weight": 10 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [+ { "text": "медицинская карта", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "вакцинация", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [+ { "text": "метод анкетирования", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "user-guide",+ "phrases": [+ { "text": "руководство пользователя", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ {+ "text": "паспорт безопасности химической продукции",+ "weight": 24,+ "where": "title"+ }+ ]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "чертёж", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [{ "text": "пресс-релиз", "weight": 22, "where": "title" }]+ },+ {+ "id": "newsletter",+ "phrases": [+ { "text": "информационный бюллетень", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "брошюра", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [+ { "text": "бизнес-планирование", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "белая книга", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-minutes",+ "phrases": [+ { "text": "протокол собрания", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "меморандум", "weight": 16, "where": "title" }]+ },+ {+ "id": "invitation",+ "phrases": [+ { "text": "свадебные пригласительные", "weight": 14, "where": "title" }+ ]+ },+ {+ "id": "ticket",+ "phrases": [{ "text": "билет", "weight": 18, "where": "title" }]+ },+ {+ "id": "waybill",+ "phrases": [+ {+ "text": "товарно-транспортная накладная",+ "weight": 20,+ "where": "title"+ }+ ]+ },+ {+ "id": "customs-declaration",+ "phrases": [+ {+ "text": "грузовая таможенная декларация",+ "weight": 22,+ "where": "title"+ }+ ]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "виза", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "счётчик электрической энергии", "weight": 12 }]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "меню", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [+ { "text": "кулинарный рецепт", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "presentation",+ "phrases": [{ "text": "презентация", "weight": 12, "where": "title" }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "доклад", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "письмо", "weight": 8, "where": "title" }]+ },+ {+ "id": "form",+ "phrases": [{ "text": "бланк", "weight": 10, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "лицензия", "weight": 12, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "аудит", "weight": 12 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "недвижимость", "weight": 8 }]+ },+ {+ "id": "grant-agreement",+ "phrases": [{ "text": "грант", "weight": 12 }]+ },+ {+ "id": "tender-document",+ "phrases": [{ "text": "тендер", "weight": 18, "where": "title" }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "подписка", "weight": 10 }]+ },+ {+ "id": "donation-receipt",+ "phrases": [{ "text": "пожертвование", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "электронная почта", "weight": 8 }]+ },+ {+ "id": "book-ebook",+ "phrases": [{ "text": "оглавление", "weight": 6 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "журнал", "weight": 10 }]+ },+ {+ "id": "course-syllabus",+ "phrases": [+ { "text": "учебная программа", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "performance-review",+ "phrases": [+ { "text": "оценка персонала", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "подбор персонала", "weight": 8 }]+ },+ {+ "id": "service-agreement",+ "phrases": [+ { "text": "соглашение об уровне услуг", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "purchase-agreement",+ "phrases": [+ { "text": "договор купли-продажи", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "loan-agreement",+ "phrases": [{ "text": "договор займа", "weight": 20, "where": "title" }]+ },+ {+ "id": "shareholder-agreement",+ "phrases": [+ { "text": "акционерное соглашение", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "settlement-agreement",+ "phrases": [+ { "text": "мировое соглашение", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "subpoena",+ "phrases": [{ "text": "повестка", "weight": 20, "where": "title" }]+ },+ {+ "id": "consent-form",+ "phrases": [+ {+ "text": "информированное добровольное согласие",+ "weight": 18,+ "where": "title"+ }+ ]+ },+ {+ "id": "referral-letter",+ "phrases": [+ { "text": "реферативная практика", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "страхование", "weight": 20, "where": "title" }]+ },+ {+ "id": "government-notice",+ "phrases": [{ "text": "административный акт", "weight": 14 }]+ },+ {+ "id": "regulatory-filing",+ "phrases": [{ "text": "комплаенс", "weight": 10 }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "отдел технического контроля", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "калибровка", "weight": 12 }]+ },+ {+ "id": "technical-specification",+ "phrases": [{ "text": "спецификация", "weight": 16, "where": "title" }]+ },+ {+ "id": "license-agreement",+ "phrases": [+ {+ "text": "пользовательское соглашение",+ "weight": 20,+ "where": "title"+ }+ ]+ },+ {+ "id": "proposal",+ "phrases": [+ { "text": "запрос предложения", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "бюджет", "weight": 14, "where": "title" }]+ },+ {+ "id": "remittance-advice",+ "phrases": [{ "text": "авизо", "weight": 20, "where": "title" }]+ },+ {+ "id": "statement-of-account",+ "phrases": [+ { "text": "выписка из банка по счёту", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "registration-form",+ "phrases": [+ { "text": "университет новой зеландии", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "gift-certificate",+ "phrases": [+ { "text": "подарочный сертификат", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "совет директоров", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "инвестиции", "weight": 8 }]+ },+ {+ "id": "letter-of-intent",+ "phrases": [+ { "text": "письмо о намерениях", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "quarterly-report",+ "phrases": [+ {+ "text": "ежеквартальный отчёт эмитента",+ "weight": 18,+ "where": "title"+ }+ ]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "веб-аналитика", "weight": 10 }]+ },+ {+ "id": "appraisal-report",+ "phrases": [+ { "text": "оценка недвижимости", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "benefits-summary",+ "phrases": [{ "text": "социальный пакет", "weight": 14 }]+ },+ {+ "id": "hoa-document",+ "phrases": [+ {+ "text": "товарищество собственников жилья",+ "weight": 18,+ "where": "title"+ }+ ]+ },+ {+ "id": "grade-report",+ "phrases": [+ { "text": "табель успеваемости", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "домашнее задание", "weight": 12 }]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "оглавление" }],+ "references": [{ "pattern": "библиография" }],+ "signature": [{ "pattern": "подпись" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/sk.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/sk.jsonnew file mode 100644index 0000000000..346044060a--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/sk.json@@ -0,0 +1,203 @@+{+ "version": 2,+ "language": "sk",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "faktúra", "weight": 24, "where": "title" },+ { "text": "daň z pridanej hodnoty", "weight": 8 }+ ]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "náklad", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "účtovná závierka", "weight": 20, "where": "title" },+ { "text": "súvaha", "weight": 12 }+ ]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "zmluva", "weight": 12, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [{ "text": "pracovná zmluva", "weight": 24, "where": "title" }]+ },+ {+ "id": "nda",+ "phrases": [+ { "text": "zmluva o mlčanlivosti", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "privacy-policy",+ "phrases": [+ { "text": "všeobecné nariadenie o ochrane údajov", "weight": 10 }+ ]+ },+ {+ "id": "will",+ "phrases": [{ "text": "závet", "weight": 20, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [+ { "text": "hypotekárny úver", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "resume",+ "phrases": [{ "text": "rezumé", "weight": 20, "where": "title" }]+ },+ {+ "id": "thesis",+ "phrases": [{ "text": "diplomová práca", "weight": 20, "where": "title" }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "patent", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "lekársky predpis", "weight": 20, "where": "title" },+ { "text": "farmácia", "weight": 10 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [+ { "text": "zdravotná dokumentácia", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "očkovanie", "weight": 12 }]+ },+ {+ "id": "technical-drawing",+ "phrases": [+ { "text": "technický výkres", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "press-release",+ "phrases": [{ "text": "tlačová správa", "weight": 22, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [+ { "text": "podnikateľský plán", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "vízum", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "elektromer", "weight": 12 }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "výkaz", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "list", "weight": 8, "where": "title" }]+ },+ {+ "id": "public-notice",+ "phrases": [{ "text": "bulletin", "weight": 16, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "audit", "weight": 12 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "nehnuteľnosť", "weight": 8 }]+ },+ {+ "id": "grant-agreement",+ "phrases": [{ "text": "grant", "weight": 12 }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "abonovanie", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "e-mail", "weight": 8 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "časopis", "weight": 10 }]+ },+ {+ "id": "course-syllabus",+ "phrases": [{ "text": "sylabus", "weight": 20, "where": "title" }]+ },+ {+ "id": "service-agreement",+ "phrases": [+ {+ "text": "dohoda o úrovni poskytovaných služieb",+ "weight": 18,+ "where": "title"+ }+ ]+ },+ {+ "id": "purchase-agreement",+ "phrases": [{ "text": "kúpna zmluva", "weight": 18, "where": "title" }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "poistenie", "weight": 20, "where": "title" }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "riadenie kvality", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "kalibrácia", "weight": 12 }]+ },+ {+ "id": "technical-specification",+ "phrases": [{ "text": "špecifikácia", "weight": 16, "where": "title" }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "application programming interface", "weight": 8 }]+ },+ {+ "id": "case-study",+ "phrases": [+ { "text": "prípadová štúdia", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "analýza webu", "weight": 10 }]+ },+ {+ "id": "grade-report",+ "phrases": [{ "text": "vysvedčenie", "weight": 20, "where": "title" }]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "domáca úloha", "weight": 12 }]+ }+ ],+ "patterns": {+ "references": [{ "pattern": "bibliografia" }],+ "signature": [{ "pattern": "podpis" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/sl.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/sl.jsonnew file mode 100644index 0000000000..d125860ce7--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/sl.json@@ -0,0 +1,181 @@+{+ "version": 2,+ "language": "sl",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "račun", "weight": 24, "where": "title" },+ { "text": "davek na dodano vrednost", "weight": 8 }+ ]+ },+ {+ "id": "financial-statement",+ "phrases": [{ "text": "bilanca stanja", "weight": 12 }]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "pogodba", "weight": 12, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [+ { "text": "pogodba o zaposlitvi", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "nda",+ "phrases": [+ {+ "text": "pogodba o nerazkritju informacij",+ "weight": 24,+ "where": "title"+ }+ ]+ },+ {+ "id": "privacy-policy",+ "phrases": [{ "text": "splošna uredba o varstvu podatkov", "weight": 10 }]+ },+ {+ "id": "will",+ "phrases": [{ "text": "oporoka", "weight": 20, "where": "title" }]+ },+ {+ "id": "cover-letter",+ "phrases": [+ { "text": "motivacijsko pismo", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "reference-letter",+ "phrases": [{ "text": "priporočilo", "weight": 20, "where": "title" }]+ },+ {+ "id": "job-description",+ "phrases": [+ { "text": "opis delovnega mesta", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "certificate",+ "phrases": [{ "text": "diploma", "weight": 16, "where": "title" }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "patent", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "zdravniški recept", "weight": 20, "where": "title" },+ { "text": "farmacija", "weight": 10 }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "cepljenje", "weight": 12 }]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [{ "text": "varnostni list", "weight": 24, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [+ { "text": "izjava za javnost", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "poslovni načrt", "weight": 20, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "bela knjiga", "weight": 18, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [{ "text": "kuharski recept", "weight": 18, "where": "title" }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "poročilo", "weight": 8, "where": "title" }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "nepremičnina", "weight": 8 }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "abonma", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "elektronska pošta", "weight": 8 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "revija", "weight": 10 }]+ },+ {+ "id": "performance-review",+ "phrases": [{ "text": "letni razgovor", "weight": 20, "where": "title" }]+ },+ {+ "id": "consent-form",+ "phrases": [+ { "text": "informirano soglasje", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "discharge-summary",+ "phrases": [{ "text": "hospitalizacija", "weight": 20, "where": "title" }]+ },+ {+ "id": "lab-report",+ "phrases": [{ "text": "laboratorijska diagnostika", "weight": 12 }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "varnost in zdravje pri delu", "weight": 10 }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "vmesnik za namensko programiranje", "weight": 8 }]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "proračun", "weight": 14, "where": "title" }]+ },+ {+ "id": "application-form",+ "phrases": [+ { "text": "prijava na delovno mesto", "weight": 14, "where": "title" }+ ]+ },+ {+ "id": "organization-chart",+ "phrases": [+ { "text": "organizacijska shema", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "case-study",+ "phrases": [{ "text": "študija primera", "weight": 16, "where": "title" }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "investicija", "weight": 8 }]+ },+ {+ "id": "appraisal-report",+ "phrases": [+ { "text": "cenitev nepremičnin", "weight": 18, "where": "title" }+ ]+ }+ ],+ "patterns": {+ "references": [{ "pattern": "bibliografija" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/sr.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/sr.jsonnew file mode 100644index 0000000000..88c00145fe--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/sr.json@@ -0,0 +1,226 @@+{+ "version": 2,+ "language": "sr",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "фактура", "weight": 24, "where": "title" },+ { "text": "порез на додату вредност", "weight": 8 }+ ]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "финансијски извештај", "weight": 20, "where": "title" },+ { "text": "bilans stanja", "weight": 12 }+ ]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "ugovor", "weight": 12, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [{ "text": "уговор о делу", "weight": 24, "where": "title" }]+ },+ {+ "id": "nda",+ "phrases": [+ {+ "text": "уговор о поверљивости података",+ "weight": 24,+ "where": "title"+ }+ ]+ },+ {+ "id": "privacy-policy",+ "phrases": [+ { "text": "zaštita podataka", "weight": 24, "where": "title" },+ { "text": "opšta uredba o zaštiti podataka", "weight": 10 }+ ]+ },+ {+ "id": "will",+ "phrases": [{ "text": "тестамент", "weight": 20, "where": "title" }]+ },+ {+ "id": "deed",+ "phrases": [{ "text": "књига тапија", "weight": 16, "where": "title" }]+ },+ {+ "id": "resume",+ "phrases": [{ "text": "резиме", "weight": 20, "where": "title" }]+ },+ {+ "id": "cover-letter",+ "phrases": [{ "text": "propratno pismo", "weight": 20, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [{ "text": "диплома", "weight": 16, "where": "title" }]+ },+ {+ "id": "research-paper",+ "phrases": [{ "text": "академско издаваштво", "weight": 10 }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "патент", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "recipe", "weight": 20, "where": "title" },+ { "text": "фармација", "weight": 10 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [{ "text": "дијагноза", "weight": 10 }]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "вакцинација", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "анкета", "weight": 20, "where": "title" }]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ { "text": "bezbednosni list", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "kotiranje", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [{ "text": "саопштење", "weight": 22, "where": "title" }]+ },+ {+ "id": "newsletter",+ "phrases": [{ "text": "годишњак", "weight": 16, "where": "title" }]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "брошура", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "бизнис план", "weight": 20, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "bela knjiga", "weight": 18, "where": "title" }]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "виза", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "струјомер", "weight": 12 }]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "јеловник", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [{ "text": "куварски рецепт", "weight": 18, "where": "title" }]+ },+ {+ "id": "presentation",+ "phrases": [{ "text": "презентација", "weight": 12, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "писмо", "weight": 8, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "лиценца", "weight": 12, "where": "title" }]+ },+ {+ "id": "risk-assessment",+ "phrases": [{ "text": "процена ризика", "weight": 20, "where": "title" }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "некретнина", "weight": 8 }]+ },+ {+ "id": "grant-agreement",+ "phrases": [{ "text": "грант", "weight": 12 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "електронска пошта", "weight": 8 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "часопис", "weight": 10 }]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "regrutacija", "weight": 8 }]+ },+ {+ "id": "purchase-agreement",+ "phrases": [+ { "text": "ugovor o prodaji robe", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "осигурање", "weight": 20, "where": "title" }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "контрола квалитета", "weight": 10 }]+ },+ {+ "id": "license-agreement",+ "phrases": [+ { "text": "ugovor o licenci", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "буџет", "weight": 14, "where": "title" }]+ },+ {+ "id": "remittance-advice",+ "phrases": [{ "text": "авиза", "weight": 20, "where": "title" }]+ },+ {+ "id": "case-study",+ "phrases": [{ "text": "студија случаја", "weight": 16, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "управни одбор", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "улагање", "weight": 8 }]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "веб аналитика", "weight": 10 }]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "домаћи задатак", "weight": 12 }]+ }+ ],+ "patterns": {+ "references": [{ "pattern": "библиографија" }],+ "signature": [{ "pattern": "потпис" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/sv.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/sv.jsonnew file mode 100644index 0000000000..1b4422f711--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/sv.json@@ -0,0 +1,364 @@+{+ "version": 2,+ "language": "sv",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "faktura", "weight": 24, "where": "title" },+ { "text": "mervärdesskatt", "weight": 8 }+ ]+ },+ {+ "id": "receipt",+ "phrases": [{ "text": "kvitto", "weight": 22, "where": "title" }]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "kvitto", "weight": 20, "where": "title" }]+ },+ {+ "id": "payslip",+ "phrases": [+ { "text": "lönespecifikation", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "kostnad", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "årsredovisning", "weight": 20, "where": "title" },+ { "text": "balansräkning", "weight": 12 }+ ]+ },+ {+ "id": "tax-return",+ "phrases": [+ { "text": "självdeklaration", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "tax-form",+ "phrases": [+ { "text": "självdeklaration", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "avtal", "weight": 12, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [+ { "text": "anställningsavtal", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "lease-agreement",+ "phrases": [+ { "text": "hyreskontrakt", "weight": 18, "where": "title" },+ { "text": "hyresvärd", "weight": 8 }+ ]+ },+ {+ "id": "nda",+ "phrases": [{ "text": "sekretessavtal", "weight": 24, "where": "title" }]+ },+ {+ "id": "privacy-policy",+ "phrases": [{ "text": "dataskyddsförordningen", "weight": 10 }]+ },+ {+ "id": "affidavit",+ "phrases": [{ "text": "affidavit", "weight": 20, "where": "title" }]+ },+ {+ "id": "will",+ "phrases": [{ "text": "testamente", "weight": 20, "where": "title" }]+ },+ {+ "id": "deed",+ "phrases": [{ "text": "urkund", "weight": 16, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [{ "text": "bostadslån", "weight": 18, "where": "title" }]+ },+ {+ "id": "insurance-policy",+ "phrases": [{ "text": "självrisk", "weight": 8 }]+ },+ {+ "id": "cover-letter",+ "phrases": [{ "text": "personligt brev", "weight": 20, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [{ "text": "examensbevis", "weight": 16, "where": "title" }]+ },+ {+ "id": "thesis",+ "phrases": [{ "text": "examensarbete", "weight": 20, "where": "title" }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "patent", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "recept", "weight": 20, "where": "title" },+ { "text": "farmaci", "weight": 10 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [{ "text": "patientjournal", "weight": 18, "where": "title" }]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "vaccination", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "enkät", "weight": 20, "where": "title" }]+ },+ {+ "id": "warranty-document",+ "phrases": [{ "text": "garanti", "weight": 18, "where": "title" }]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ { "text": "säkerhetsdatablad", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "teknisk ritning", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [{ "text": "pressmeddelande", "weight": 22, "where": "title" }]+ },+ {+ "id": "newsletter",+ "phrases": [{ "text": "nyhetsbrev", "weight": 16, "where": "title" }]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "broschyr", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "affärsplan", "weight": 20, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "vitbok", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-minutes",+ "phrases": [{ "text": "mötesprotokoll", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-agenda",+ "phrases": [{ "text": "dagordning", "weight": 16, "where": "title" }]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "promemoria", "weight": 16, "where": "title" }]+ },+ {+ "id": "ticket",+ "phrases": [{ "text": "biljett", "weight": 18, "where": "title" }]+ },+ {+ "id": "waybill",+ "phrases": [{ "text": "fraktsedel", "weight": 20, "where": "title" }]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "visum", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "elmätare", "weight": 12 }]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "restaurangmeny", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [{ "text": "recept", "weight": 18, "where": "title" }]+ },+ {+ "id": "presentation",+ "phrases": [{ "text": "föredragning", "weight": 12, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "brev", "weight": 8, "where": "title" }]+ },+ {+ "id": "form",+ "phrases": [{ "text": "formulär", "weight": 10, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "licens", "weight": 12, "where": "title" }]+ },+ {+ "id": "public-notice",+ "phrases": [{ "text": "bulletin", "weight": 16, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "revision", "weight": 12 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "fastighet", "weight": 8 }]+ },+ {+ "id": "grant-agreement",+ "phrases": [{ "text": "anslag", "weight": 12 }]+ },+ {+ "id": "tender-document",+ "phrases": [{ "text": "entreprenad", "weight": 18, "where": "title" }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "abonnemang", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "e-post", "weight": 8 }]+ },+ {+ "id": "book-ebook",+ "phrases": [{ "text": "innehållsförteckning", "weight": 6 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "tidskrift", "weight": 10 }]+ },+ {+ "id": "course-syllabus",+ "phrases": [{ "text": "kursplan", "weight": 20, "where": "title" }]+ },+ {+ "id": "performance-review",+ "phrases": [+ { "text": "utvecklingssamtal", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "rekrytering", "weight": 8 }]+ },+ {+ "id": "shareholder-agreement",+ "phrases": [{ "text": "aktieägaravtal", "weight": 20, "where": "title" }]+ },+ {+ "id": "settlement-agreement",+ "phrases": [{ "text": "förlikning", "weight": 18, "where": "title" }]+ },+ {+ "id": "discharge-summary",+ "phrases": [{ "text": "slutenvård", "weight": 20, "where": "title" }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "försäkring", "weight": 20, "where": "title" }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "kvalitetskontroll", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "kalibrering", "weight": 12 }]+ },+ {+ "id": "api-documentation",+ "phrases": [+ { "text": "applikationsprogrammeringsgränssnitt", "weight": 8 }+ ]+ },+ {+ "id": "license-agreement",+ "phrases": [+ { "text": "slutanvändaravtal", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "sales-proposal",+ "phrases": [{ "text": "anbud", "weight": 16, "where": "title" }]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "budget", "weight": 14, "where": "title" }]+ },+ {+ "id": "registration-form",+ "phrases": [+ { "text": "university of new zealand", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "gift-certificate",+ "phrases": [{ "text": "presentkort", "weight": 16, "where": "title" }]+ },+ {+ "id": "organization-chart",+ "phrases": [+ { "text": "organisationsschema", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "case-study",+ "phrases": [{ "text": "fallstudie", "weight": 16, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "styrelse", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "investering", "weight": 8 }]+ },+ {+ "id": "letter-of-intent",+ "phrases": [+ { "text": "avsiktsförklaring", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "quarterly-report",+ "phrases": [{ "text": "kvartalsrapport", "weight": 18, "where": "title" }]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "webbanalys", "weight": 10 }]+ },+ {+ "id": "benefits-summary",+ "phrases": [{ "text": "löneförmån", "weight": 14 }]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "läxa", "weight": 12 }]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "innehållsförteckning" }],+ "references": [{ "pattern": "bibliografi" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/th.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/th.jsonnew file mode 100644index 0000000000..c9ec504d40--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/th.json@@ -0,0 +1,215 @@+{+ "version": 2,+ "language": "th",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "ใบแจ้งหนี้", "weight": 24, "where": "title" },+ { "text": "ภาษีมูลค่าเพิ่ม", "weight": 8 }+ ]+ },+ {+ "id": "receipt",+ "phrases": [{ "text": "ใบเสร็จรับเงิน", "weight": 22, "where": "title" }]+ },+ {+ "id": "credit-note",+ "phrases": [{ "text": "ใบลดหนี้", "weight": 22, "where": "title" }]+ },+ {+ "id": "purchase-order",+ "phrases": [{ "text": "ใบสั่งซื้อ", "weight": 20, "where": "title" }]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "ใบเสร็จรับเงิน", "weight": 20, "where": "title" }]+ },+ {+ "id": "payslip",+ "phrases": [{ "text": "เช็คเงินค่าจ้าง", "weight": 22, "where": "title" }]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "ค่าใช้จ่าย", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "งบการเงิน", "weight": 20, "where": "title" },+ { "text": "งบดุล", "weight": 12 }+ ]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "สัญญา", "weight": 12, "where": "title" }]+ },+ {+ "id": "lease-agreement",+ "phrases": [{ "text": "สัญญาเช่า", "weight": 18, "where": "title" }]+ },+ {+ "id": "terms-and-conditions",+ "phrases": [+ { "text": "ข้อกำหนดในการให้บริการ", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "privacy-policy",+ "phrases": [+ { "text": "นโยบายความเป็นส่วนตัว", "weight": 24, "where": "title" },+ { "text": "ระเบียบการคุ้มครองข้อมูลทั่วไป", "weight": 10 }+ ]+ },+ {+ "id": "will",+ "phrases": [{ "text": "พินัยกรรม", "weight": 20, "where": "title" }]+ },+ {+ "id": "resume",+ "phrases": [{ "text": "เรซูเม", "weight": 20, "where": "title" }]+ },+ {+ "id": "cover-letter",+ "phrases": [{ "text": "จดหมายแนะนำตัว", "weight": 20, "where": "title" }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "สิทธิบัตร", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "ใบสั่งยา", "weight": 20, "where": "title" },+ { "text": "เภสัชกรรม", "weight": 10 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [{ "text": "เวชระเบียน", "weight": 18, "where": "title" }]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "การให้วัคซีน", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "แบบสอบถาม", "weight": 20, "where": "title" }]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ { "text": "เอกสารข้อมูลความปลอดภัย", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "press-release",+ "phrases": [{ "text": "ข่าวประชาสัมพันธ์", "weight": 22, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "แผนธุรกิจ", "weight": 20, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "สมุดปกขาว", "weight": 18, "where": "title" }]+ },+ {+ "id": "ticket",+ "phrases": [{ "text": "ตั๋ว", "weight": 18, "where": "title" }]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "การตรวจลงตรา", "weight": 18, "where": "title" }]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "รายการอาหาร", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [{ "text": "สูตรอาหาร", "weight": 18, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "จดหมาย", "weight": 8, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "สัญญาอนุญาต", "weight": 12, "where": "title" }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "อสังหาริมทรัพย์", "weight": 8 }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "แบบจำลองธุรกิจบอกรับเป็นสมาชิก", "weight": 10 }]+ },+ {+ "id": "donation-receipt",+ "phrases": [{ "text": "การบริจาค", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "อีเมล", "weight": 8 }]+ },+ {+ "id": "book-ebook",+ "phrases": [{ "text": "สารบัญ", "weight": 6 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "นิตยสาร", "weight": 10 }]+ },+ {+ "id": "course-syllabus",+ "phrases": [{ "text": "ประมวลรายวิชา", "weight": 20, "where": "title" }]+ },+ {+ "id": "lesson-plan",+ "phrases": [{ "text": "แผนการสอน", "weight": 20, "where": "title" }]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "การสรรหาบุคลากร", "weight": 8 }]+ },+ {+ "id": "lab-report",+ "phrases": [{ "text": "ห้องปฏิบัติการทางการแพทย์", "weight": 12 }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "การประกันภัย", "weight": 20, "where": "title" }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "อาชีวอนามัยและความปลอดภัย", "weight": 10 }]+ },+ {+ "id": "technical-specification",+ "phrases": [{ "text": "ข้อกำหนดทางเทคนิค", "weight": 16, "where": "title" }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "ส่วนต่อประสานโปรแกรมประยุกต์", "weight": 8 }]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "งบประมาณ", "weight": 14, "where": "title" }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "การลงทุน", "weight": 8 }]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "การบ้าน", "weight": 12 }]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "สารบัญ" }],+ "references": [{ "pattern": "บรรณานุกรม" }],+ "signature": [{ "pattern": "ลายมือชื่อ" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/tr.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/tr.jsonnew file mode 100644index 0000000000..6dad802333--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/tr.json@@ -0,0 +1,322 @@+{+ "version": 2,+ "language": "tr",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "fatura", "weight": 24, "where": "title" },+ { "text": "katma değer vergisi", "weight": 8 }+ ]+ },+ {+ "id": "receipt",+ "phrases": [{ "text": "makbuz", "weight": 22, "where": "title" }]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "makbuz", "weight": 20, "where": "title" }]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "gider", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "mali bilanço", "weight": 20, "where": "title" },+ { "text": "bilanço", "weight": 12 }+ ]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "sözleşme", "weight": 12, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [{ "text": "i̇ş sözleşmesi", "weight": 24, "where": "title" }]+ },+ {+ "id": "nda",+ "phrases": [+ { "text": "gizlilik sözleşmesi", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "privacy-policy",+ "phrases": [{ "text": "genel veri koruma tüzüğü", "weight": 10 }]+ },+ {+ "id": "will",+ "phrases": [{ "text": "vasiyet", "weight": 20, "where": "title" }]+ },+ {+ "id": "deed",+ "phrases": [{ "text": "senet", "weight": 16, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [{ "text": "mortgage", "weight": 18, "where": "title" }]+ },+ {+ "id": "insurance-policy",+ "phrases": [{ "text": "poliçe", "weight": 22, "where": "title" }]+ },+ {+ "id": "resume",+ "phrases": [{ "text": "öz geçmiş", "weight": 20, "where": "title" }]+ },+ {+ "id": "reference-letter",+ "phrases": [{ "text": "ön mektup", "weight": 20, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [+ { "text": "akademik sertifika", "weight": 16, "where": "title" },+ { "text": "diploma", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "transcript",+ "phrases": [{ "text": "transkript", "weight": 18, "where": "title" }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "patent", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "reçete", "weight": 20, "where": "title" },+ { "text": "eczacılık", "weight": 10 }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "aşılama", "weight": 12 }]+ },+ {+ "id": "warranty-document",+ "phrases": [{ "text": "garanti belgesi", "weight": 18, "where": "title" }]+ },+ {+ "id": "user-guide",+ "phrases": [+ { "text": "kullanıcı kılavuzu", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ { "text": "güvenlik bilgi formu", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "teknik resim", "weight": 20, "where": "title" }]+ },+ {+ "id": "bill-of-materials",+ "phrases": [{ "text": "ürün ağacı", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [+ { "text": "basın açıklaması", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "broşür", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "i̇ş planı", "weight": 20, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "beyaz kitap", "weight": 18, "where": "title" }]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "muhtıra", "weight": 16, "where": "title" }]+ },+ {+ "id": "ticket",+ "phrases": [{ "text": "bilet", "weight": 18, "where": "title" }]+ },+ {+ "id": "waybill",+ "phrases": [{ "text": "taşıma makbuzu", "weight": 20, "where": "title" }]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "vize", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "elektrik sayacı", "weight": 12 }]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "menü", "weight": 16, "where": "title" }]+ },+ {+ "id": "presentation",+ "phrases": [{ "text": "sunum", "weight": 12, "where": "title" }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "rapor", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "mektup", "weight": 8, "where": "title" }]+ },+ {+ "id": "form",+ "phrases": [{ "text": "form", "weight": 10, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "yetki belgesi", "weight": 12, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "denetim", "weight": 12 }]+ },+ {+ "id": "risk-assessment",+ "phrases": [+ { "text": "risk kıymetlendirme", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "emlak", "weight": 8 }]+ },+ {+ "id": "grant-agreement",+ "phrases": [{ "text": "hibe", "weight": 12 }]+ },+ {+ "id": "tender-document",+ "phrases": [{ "text": "i̇hale", "weight": 18, "where": "title" }]+ },+ {+ "id": "booking-confirmation",+ "phrases": [{ "text": "rezervasyon", "weight": 14, "where": "title" }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "abonelik iş modeli", "weight": 10 }]+ },+ {+ "id": "donation-receipt",+ "phrases": [{ "text": "bağış", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "e-posta", "weight": 8 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "dergi", "weight": 10 }]+ },+ {+ "id": "performance-review",+ "phrases": [+ { "text": "performans değerlendirme", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "i̇şe alım", "weight": 8 }]+ },+ {+ "id": "settlement-agreement",+ "phrases": [{ "text": "sulh", "weight": 18, "where": "title" }]+ },+ {+ "id": "consent-form",+ "phrases": [+ { "text": "aydınlatılmış rıza", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "lab-report",+ "phrases": [{ "text": "tıbbi laboratuvar", "weight": 12 }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "sigorta", "weight": 20, "where": "title" }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "kalite kontrolü", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "kalibrasyon", "weight": 12 }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "i̇ş sağlığı ve güvenliği", "weight": 10 }]+ },+ {+ "id": "technical-specification",+ "phrases": [{ "text": "şartname", "weight": 16, "where": "title" }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "uygulama programlama arayüzü", "weight": 8 }]+ },+ {+ "id": "license-agreement",+ "phrases": [+ {+ "text": "son kullanıcı lisans anlaşması",+ "weight": 20,+ "where": "title"+ }+ ]+ },+ {+ "id": "proposal",+ "phrases": [{ "text": "teklif talebi", "weight": 16, "where": "title" }]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "bütçe", "weight": 14, "where": "title" }]+ },+ {+ "id": "return-authorization",+ "phrases": [{ "text": "ürün iadesi", "weight": 16, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "yönetim kurulu", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "yatırım", "weight": 8 }]+ },+ {+ "id": "letter-of-intent",+ "phrases": [{ "text": "niyet mektubu", "weight": 20, "where": "title" }]+ },+ {+ "id": "grade-report",+ "phrases": [{ "text": "karne", "weight": 20, "where": "title" }]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "ödev", "weight": 12 }]+ }+ ],+ "patterns": {+ "references": [{ "pattern": "bibliyografya" }],+ "signature": [{ "pattern": "i̇mza" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/uk.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/uk.jsonnew file mode 100644index 0000000000..a41b73414f--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/uk.json@@ -0,0 +1,487 @@+{+ "version": 2,+ "language": "uk",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "інвойс", "weight": 24, "where": "title" },+ { "text": "податок на додану вартість", "weight": 8 }+ ]+ },+ {+ "id": "receipt",+ "phrases": [{ "text": "квитанція", "weight": 22, "where": "title" }]+ },+ {+ "id": "credit-note",+ "phrases": [{ "text": "сторно", "weight": 22, "where": "title" }]+ },+ {+ "id": "purchase-order",+ "phrases": [+ { "text": "замовлення на закупівлю", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "квитанція", "weight": 20, "where": "title" }]+ },+ {+ "id": "payslip",+ "phrases": [+ { "text": "платіжна відомість", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "видатки", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "фінансова звітність", "weight": 20, "where": "title" },+ { "text": "бухгалтерський баланс", "weight": 12 }+ ]+ },+ {+ "id": "tax-return",+ "phrases": [+ { "text": "податкова звітність", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "tax-form",+ "phrases": [+ { "text": "податкова звітність", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "договір", "weight": 12, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [+ { "text": "трудовий договір", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "nda",+ "phrases": [+ { "text": "угода про нерозголошення", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "privacy-policy",+ "phrases": [+ { "text": "загальний регламент про захист даних", "weight": 10 }+ ]+ },+ {+ "id": "affidavit",+ "phrases": [{ "text": "афідевіт", "weight": 20, "where": "title" }]+ },+ {+ "id": "will",+ "phrases": [{ "text": "заповіт", "weight": 20, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [+ { "text": "іпотечний житловий кредит", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "insurance-policy",+ "phrases": [+ { "text": "страховий сертифікат", "weight": 22, "where": "title" },+ { "text": "страхова франшиза", "weight": 8 }+ ]+ },+ {+ "id": "resume",+ "phrases": [{ "text": "резюме", "weight": 20, "where": "title" }]+ },+ {+ "id": "cover-letter",+ "phrases": [+ { "text": "мотиваційний лист", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "reference-letter",+ "phrases": [+ { "text": "рекомендаційний лист", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "job-description",+ "phrases": [+ { "text": "посадова інструкція", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "timesheet",+ "phrases": [{ "text": "таймшит", "weight": 20, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [+ { "text": "атестат", "weight": 16, "where": "title" },+ { "text": "диплом", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "transcript",+ "phrases": [{ "text": "залікова книжка", "weight": 18, "where": "title" }]+ },+ {+ "id": "thesis",+ "phrases": [{ "text": "дипломна робота", "weight": 20, "where": "title" }]+ },+ {+ "id": "research-paper",+ "phrases": [{ "text": "наукове видавництво", "weight": 10 }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "патент", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "рецепт", "weight": 20, "where": "title" },+ { "text": "фармація", "weight": 10 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [+ {+ "text": "медична карта стаціонарного хворого",+ "weight": 18,+ "where": "title"+ },+ { "text": "діагноз", "weight": 10 }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "вакцинація", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "анкетування", "weight": 20, "where": "title" }]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [+ {+ "text": "сертифікат безпечності матеріалу",+ "weight": 24,+ "where": "title"+ }+ ]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "креслення", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [{ "text": "пресреліз", "weight": 22, "where": "title" }]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "брошура", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "бізнес-план", "weight": 20, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "біла книга", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-agenda",+ "phrases": [{ "text": "порядок денний", "weight": 16, "where": "title" }]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "меморандум", "weight": 16, "where": "title" }]+ },+ {+ "id": "invitation",+ "phrases": [+ { "text": "весільні запрошення", "weight": 14, "where": "title" }+ ]+ },+ {+ "id": "ticket",+ "phrases": [{ "text": "квиток", "weight": 18, "where": "title" }]+ },+ {+ "id": "customs-declaration",+ "phrases": [+ { "text": "вантажна митна декларація", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "віза", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "лічильник електричної енергії", "weight": 12 }]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "меню", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [+ { "text": "кулінарний рецепт", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "presentation",+ "phrases": [{ "text": "презентація", "weight": 12, "where": "title" }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "звіт", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "лист", "weight": 8, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "ліцензія", "weight": 12, "where": "title" }]+ },+ {+ "id": "public-notice",+ "phrases": [+ { "text": "публічне повідомлення", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "аудит", "weight": 12 }]+ },+ {+ "id": "risk-assessment",+ "phrases": [+ { "text": "оцінювання ризиків", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "нерухомість", "weight": 8 }]+ },+ {+ "id": "grant-agreement",+ "phrases": [{ "text": "грант", "weight": 12 }]+ },+ {+ "id": "tender-document",+ "phrases": [{ "text": "тендер", "weight": 18, "where": "title" }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "бізнес-модель за підпискою", "weight": 10 }]+ },+ {+ "id": "donation-receipt",+ "phrases": [{ "text": "пожертва", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "електронна пошта", "weight": 8 }]+ },+ {+ "id": "book-ebook",+ "phrases": [{ "text": "зміст", "weight": 6 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "журнал", "weight": 10 }]+ },+ {+ "id": "course-syllabus",+ "phrases": [+ { "text": "навчальна програма", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "рекрутинг", "weight": 8 }]+ },+ {+ "id": "service-agreement",+ "phrases": [+ {+ "text": "угода про рівень обслуговування",+ "weight": 18,+ "where": "title"+ }+ ]+ },+ {+ "id": "purchase-agreement",+ "phrases": [+ { "text": "договір купівлі-продажу", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "shareholder-agreement",+ "phrases": [+ { "text": "акціонерна угода", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "settlement-agreement",+ "phrases": [{ "text": "мирова угода", "weight": 18, "where": "title" }]+ },+ {+ "id": "subpoena",+ "phrases": [{ "text": "повістка", "weight": 20, "where": "title" }]+ },+ {+ "id": "consent-form",+ "phrases": [+ { "text": "інформована згода пацієнта", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "referral-letter",+ "phrases": [+ { "text": "медичне направлення", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "страхування", "weight": 20, "where": "title" }]+ },+ {+ "id": "regulatory-filing",+ "phrases": [{ "text": "комплаєнс", "weight": 10 }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "контроль якості", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "калібрування", "weight": 12 }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "охорона праці", "weight": 10 }]+ },+ {+ "id": "datasheet",+ "phrases": [{ "text": "технічний опис", "weight": 18, "where": "title" }]+ },+ {+ "id": "technical-specification",+ "phrases": [{ "text": "специфікація", "weight": 16, "where": "title" }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "прикладний програмний інтерфейс", "weight": 8 }]+ },+ {+ "id": "license-agreement",+ "phrases": [+ {+ "text": "ліцензійна угода з кінцевим користувачем",+ "weight": 20,+ "where": "title"+ }+ ]+ },+ {+ "id": "grant-application",+ "phrases": [{ "text": "грантрайтинг", "weight": 12 }]+ },+ {+ "id": "sales-proposal",+ "phrases": [{ "text": "оферта", "weight": 16, "where": "title" }]+ },+ {+ "id": "proposal",+ "phrases": [+ {+ "text": "запит на комерційну пропозицію",+ "weight": 16,+ "where": "title"+ }+ ]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "бюджет", "weight": 14, "where": "title" }]+ },+ {+ "id": "remittance-advice",+ "phrases": [{ "text": "авізо", "weight": 20, "where": "title" }]+ },+ {+ "id": "gift-certificate",+ "phrases": [+ { "text": "подарунковий сертифікат", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "case-study",+ "phrases": [+ { "text": "ситуаційний аналіз", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "рада директорів", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "інвестиція", "weight": 8 }]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "вебаналітика", "weight": 10 }]+ },+ {+ "id": "appraisal-report",+ "phrases": [+ { "text": "оцінювання нерухомості", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "benefits-summary",+ "phrases": [{ "text": "соціальний пакет", "weight": 14 }]+ },+ {+ "id": "grade-report",+ "phrases": [+ {+ "text": "табель навчальних досягнень",+ "weight": 20,+ "where": "title"+ }+ ]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "домашня робота", "weight": 12 }]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "зміст" }],+ "references": [{ "pattern": "бібліографія" }],+ "signature": [{ "pattern": "підпис" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/vi.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/vi.jsonnew file mode 100644index 0000000000..fb931ff5a3--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/vi.json@@ -0,0 +1,284 @@+{+ "version": 2,+ "language": "vi",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "hóa đơn", "weight": 24, "where": "title" },+ { "text": "thuế giá trị gia tăng", "weight": 8 }+ ]+ },+ {+ "id": "purchase-order",+ "phrases": [{ "text": "đơn đặt hàng", "weight": 20, "where": "title" }]+ },+ {+ "id": "bank-statement",+ "phrases": [{ "text": "sao kê", "weight": 24, "where": "title" }]+ },+ {+ "id": "payslip",+ "phrases": [{ "text": "bảng lương", "weight": 14, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "báo cáo tài chính", "weight": 20, "where": "title" },+ { "text": "bảng cân đối kế toán", "weight": 12 }+ ]+ },+ {+ "id": "contract",+ "phrases": [{ "text": "hợp đồng", "weight": 12, "where": "title" }]+ },+ {+ "id": "employment-contract",+ "phrases": [+ { "text": "hợp đồng lao động", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "lease-agreement",+ "phrases": [+ { "text": "thuê dài hạn", "weight": 18, "where": "title" },+ { "text": "địa chủ", "weight": 8 }+ ]+ },+ {+ "id": "will",+ "phrases": [{ "text": "di chúc", "weight": 20, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [+ { "text": "cho vay thế chấp", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "insurance-policy",+ "phrases": [+ { "text": "hợp đồng bảo hiểm", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "resume",+ "phrases": [+ { "text": "hồ sơ ứng tuyển", "weight": 24, "where": "title" },+ { "text": "lý lịch trích ngang", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "cover-letter",+ "phrases": [{ "text": "thư xin việc", "weight": 20, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [{ "text": "bằng tốt nghiệp", "weight": 16, "where": "title" }]+ },+ {+ "id": "thesis",+ "phrases": [{ "text": "luận văn", "weight": 20, "where": "title" }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "bằng sáng chế", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [{ "text": "dược", "weight": 10 }]+ },+ {+ "id": "medical-report",+ "phrases": [+ { "text": "bệnh án", "weight": 18, "where": "title" },+ { "text": "chẩn đoán", "weight": 10 }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "tiêm chủng", "weight": 12 }]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "vẽ kỹ thuật", "weight": 20, "where": "title" }]+ },+ {+ "id": "bill-of-materials",+ "phrases": [+ { "text": "hóa đơn nguyên vật liệu", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "brochure",+ "phrases": [{ "text": "brochure", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [+ { "text": "kế hoạch kinh doanh", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "sách trắng", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-minutes",+ "phrases": [{ "text": "biên bản", "weight": 18, "where": "title" }]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "bản ghi nhớ", "weight": 16, "where": "title" }]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "thị thực", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "đồng hồ điện", "weight": 12 }]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "thực đơn", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [+ { "text": "công thức nấu ăn", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "presentation",+ "phrases": [{ "text": "thuyết trình", "weight": 12, "where": "title" }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "báo cáo", "weight": 8, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "giấy phép", "weight": 12, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "kiểm toán", "weight": 12 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "bất động sản", "weight": 8 }]+ },+ {+ "id": "tender-document",+ "phrases": [{ "text": "gọi thầu", "weight": 18, "where": "title" }]+ },+ {+ "id": "donation-receipt",+ "phrases": [{ "text": "quyên góp", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "thư điện tử", "weight": 8 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "tạp chí", "weight": 10 }]+ },+ {+ "id": "lesson-plan",+ "phrases": [{ "text": "giáo án", "weight": 20, "where": "title" }]+ },+ {+ "id": "performance-review",+ "phrases": [+ { "text": "đánh giá hiệu suất", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "tuyển dụng", "weight": 8 }]+ },+ {+ "id": "purchase-agreement",+ "phrases": [+ { "text": "hợp đồng bán hàng", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "lab-report",+ "phrases": [{ "text": "phòng thí nghiệm y tế", "weight": 12 }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "bảo hiểm", "weight": 20, "where": "title" }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "kiểm soát chất lượng", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "hiệu chuẩn", "weight": 12 }]+ },+ {+ "id": "license-agreement",+ "phrases": [{ "text": "eula", "weight": 20, "where": "title" }]+ },+ {+ "id": "sales-proposal",+ "phrases": [{ "text": "đề xuất", "weight": 16, "where": "title" }]+ },+ {+ "id": "proposal",+ "phrases": [+ { "text": "đề nghị mời thầu", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "ngân sách", "weight": 14, "where": "title" }]+ },+ {+ "id": "order-confirmation",+ "phrases": [+ { "text": "đơn đặt hàng người mua", "weight": 18, "where": "title" }+ ]+ },+ {+ "id": "statement-of-account",+ "phrases": [{ "text": "sao kê", "weight": 18, "where": "title" }]+ },+ {+ "id": "application-form",+ "phrases": [{ "text": "đơn xin việc", "weight": 14, "where": "title" }]+ },+ {+ "id": "gift-certificate",+ "phrases": [{ "text": "thẻ quà tặng", "weight": 16, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "ban giám đốc", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "đầu tư", "weight": 8 }]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "phân tích web", "weight": 10 }]+ },+ {+ "id": "benefits-summary",+ "phrases": [{ "text": "phúc lợi người lao động", "weight": 14 }]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "bài tập về nhà", "weight": 12 }]+ }+ ],+ "patterns": {+ "signature": [{ "pattern": "chữ\\ ký" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/rules/packs/zh.json b/frontend/editor/src/proprietary/services/heuristic/rules/packs/zh.jsonnew file mode 100644index 0000000000..b02786e464--- /dev/null+++ b/frontend/editor/src/proprietary/services/heuristic/rules/packs/zh.json@@ -0,0 +1,464 @@+{+ "version": 2,+ "language": "zh",+ "labels": [+ {+ "id": "invoice",+ "phrases": [+ { "text": "发票", "weight": 24, "where": "title" },+ { "text": "增值税", "weight": 8 },+ { "text": "發票", "weight": 24, "where": "title" }+ ]+ },+ {+ "id": "receipt",+ "phrases": [{ "text": "收據", "weight": 22, "where": "title" }]+ },+ {+ "id": "purchase-order",+ "phrases": [{ "text": "采购订单", "weight": 20, "where": "title" }]+ },+ {+ "id": "packing-slip",+ "phrases": [{ "text": "收據", "weight": 20, "where": "title" }]+ },+ {+ "id": "payslip",+ "phrases": [+ { "text": "薪資單", "weight": 22, "where": "title" },+ { "text": "工資單", "weight": 14, "where": "title" }+ ]+ },+ {+ "id": "expense-report",+ "phrases": [{ "text": "費用", "weight": 20, "where": "title" }]+ },+ {+ "id": "financial-statement",+ "phrases": [+ { "text": "財務報表", "weight": 20, "where": "title" },+ { "text": "資產負債表", "weight": 12 }+ ]+ },+ {+ "id": "tax-return",+ "phrases": [{ "text": "纳税申报表", "weight": 22, "where": "title" }]+ },+ {+ "id": "tax-form",+ "phrases": [{ "text": "纳税申报表", "weight": 18, "where": "title" }]+ },+ {+ "id": "contract",+ "phrases": [+ { "text": "契约", "weight": 12, "where": "title" },+ { "text": "合同", "weight": 22, "where": "title" },+ { "text": "合約", "weight": 22, "where": "title" }+ ]+ },+ {+ "id": "employment-contract",+ "phrases": [{ "text": "僱傭合約", "weight": 24, "where": "title" }]+ },+ {+ "id": "lease-agreement",+ "phrases": [+ { "text": "租賃契約", "weight": 18, "where": "title" },+ { "text": "土地主", "weight": 8 }+ ]+ },+ {+ "id": "nda",+ "phrases": [{ "text": "保密协议", "weight": 24, "where": "title" }]+ },+ {+ "id": "terms-and-conditions",+ "phrases": [{ "text": "服務條款", "weight": 22, "where": "title" }]+ },+ {+ "id": "privacy-policy",+ "phrases": [+ { "text": "隐私权政策", "weight": 24, "where": "title" },+ { "text": "一般資料保護規則", "weight": 10 }+ ]+ },+ {+ "id": "affidavit",+ "phrases": [{ "text": "宣誓书", "weight": 20, "where": "title" }]+ },+ {+ "id": "will",+ "phrases": [{ "text": "遺囑", "weight": 20, "where": "title" }]+ },+ {+ "id": "mortgage-document",+ "phrases": [{ "text": "房地產抵押", "weight": 18, "where": "title" }]+ },+ {+ "id": "insurance-policy",+ "phrases": [+ { "text": "保险合同", "weight": 22, "where": "title" },+ { "text": "自負額", "weight": 8 }+ ]+ },+ {+ "id": "resume",+ "phrases": [+ { "text": "簡歷", "weight": 24, "where": "title" },+ { "text": "履歷", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "cover-letter",+ "phrases": [{ "text": "求職信", "weight": 20, "where": "title" }]+ },+ {+ "id": "reference-letter",+ "phrases": [{ "text": "推荐信", "weight": 20, "where": "title" }]+ },+ {+ "id": "job-description",+ "phrases": [{ "text": "职位说明书", "weight": 20, "where": "title" }]+ },+ {+ "id": "timesheet",+ "phrases": [{ "text": "出勤卡", "weight": 20, "where": "title" }]+ },+ {+ "id": "certificate",+ "phrases": [+ { "text": "毕业证书", "weight": 16, "where": "title" },+ { "text": "文凭", "weight": 16, "where": "title" }+ ]+ },+ {+ "id": "transcript",+ "phrases": [{ "text": "成绩单", "weight": 18, "where": "title" }]+ },+ {+ "id": "thesis",+ "phrases": [{ "text": "學位論文", "weight": 20, "where": "title" }]+ },+ {+ "id": "research-paper",+ "phrases": [{ "text": "学术出版", "weight": 10 }]+ },+ {+ "id": "patent",+ "phrases": [{ "text": "专利", "weight": 18, "where": "title" }]+ },+ {+ "id": "prescription",+ "phrases": [+ { "text": "处方", "weight": 20, "where": "title" },+ { "text": "药学", "weight": 10 }+ ]+ },+ {+ "id": "medical-report",+ "phrases": [+ { "text": "病历", "weight": 18, "where": "title" },+ { "text": "診斷", "weight": 10 }+ ]+ },+ {+ "id": "immunization-record",+ "phrases": [{ "text": "疫苗接種", "weight": 12 }]+ },+ {+ "id": "questionnaire",+ "phrases": [{ "text": "問卷調查", "weight": 20, "where": "title" }]+ },+ {+ "id": "warranty-document",+ "phrases": [{ "text": "保用證", "weight": 18, "where": "title" }]+ },+ {+ "id": "user-guide",+ "phrases": [{ "text": "说明书", "weight": 22, "where": "title" }]+ },+ {+ "id": "safety-data-sheet",+ "phrases": [{ "text": "安全数据表", "weight": 24, "where": "title" }]+ },+ {+ "id": "technical-drawing",+ "phrases": [{ "text": "技术制图", "weight": 20, "where": "title" }]+ },+ {+ "id": "bill-of-materials",+ "phrases": [{ "text": "物料清单", "weight": 20, "where": "title" }]+ },+ {+ "id": "press-release",+ "phrases": [{ "text": "新聞稿", "weight": 22, "where": "title" }]+ },+ {+ "id": "newsletter",+ "phrases": [{ "text": "时事通讯", "weight": 16, "where": "title" }]+ },+ {+ "id": "business-plan",+ "phrases": [{ "text": "商业计划", "weight": 20, "where": "title" }]+ },+ {+ "id": "white-paper",+ "phrases": [{ "text": "白皮书", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-minutes",+ "phrases": [{ "text": "會議記錄", "weight": 18, "where": "title" }]+ },+ {+ "id": "meeting-agenda",+ "phrases": [{ "text": "議程", "weight": 16, "where": "title" }]+ },+ {+ "id": "memo",+ "phrases": [{ "text": "備忘錄", "weight": 16, "where": "title" }]+ },+ {+ "id": "invitation",+ "phrases": [{ "text": "喜帖", "weight": 14, "where": "title" }]+ },+ {+ "id": "ticket",+ "phrases": [{ "text": "門票", "weight": 18, "where": "title" }]+ },+ {+ "id": "waybill",+ "phrases": [{ "text": "运单", "weight": 20, "where": "title" }]+ },+ {+ "id": "customs-declaration",+ "phrases": [{ "text": "報關單", "weight": 22, "where": "title" }]+ },+ {+ "id": "visa-document",+ "phrases": [{ "text": "签证", "weight": 18, "where": "title" }]+ },+ {+ "id": "utility-bill",+ "phrases": [{ "text": "電度表", "weight": 12 }]+ },+ {+ "id": "menu",+ "phrases": [{ "text": "菜單", "weight": 16, "where": "title" }]+ },+ {+ "id": "recipe",+ "phrases": [{ "text": "食谱", "weight": 18, "where": "title" }]+ },+ {+ "id": "presentation",+ "phrases": [{ "text": "演示", "weight": 12, "where": "title" }]+ },+ {+ "id": "report",+ "phrases": [{ "text": "報告", "weight": 8, "where": "title" }]+ },+ {+ "id": "letter",+ "phrases": [{ "text": "书信", "weight": 8, "where": "title" }]+ },+ {+ "id": "form",+ "phrases": [{ "text": "表單", "weight": 10, "where": "title" }]+ },+ {+ "id": "license",+ "phrases": [{ "text": "授權", "weight": 12, "where": "title" }]+ },+ {+ "id": "legal-notice",+ "phrases": [{ "text": "停止并终止", "weight": 18, "where": "title" }]+ },+ {+ "id": "audit-report",+ "phrases": [{ "text": "審計學", "weight": 12 }]+ },+ {+ "id": "risk-assessment",+ "phrases": [{ "text": "风险评估", "weight": 20, "where": "title" }]+ },+ {+ "id": "inspection-report",+ "phrases": [{ "text": "檢驗", "weight": 10 }]+ },+ {+ "id": "property-listing",+ "phrases": [{ "text": "不動產", "weight": 8 }]+ },+ {+ "id": "grant-agreement",+ "phrases": [{ "text": "拨款", "weight": 12 }]+ },+ {+ "id": "tender-document",+ "phrases": [{ "text": "招标", "weight": 18, "where": "title" }]+ },+ {+ "id": "subscription-confirmation",+ "phrases": [{ "text": "訂閱", "weight": 10 }]+ },+ {+ "id": "donation-receipt",+ "phrases": [{ "text": "捐贈", "weight": 10 }]+ },+ {+ "id": "email-thread",+ "phrases": [{ "text": "电子邮件", "weight": 8 }]+ },+ {+ "id": "book-ebook",+ "phrases": [{ "text": "目次", "weight": 6 }]+ },+ {+ "id": "magazine-article",+ "phrases": [{ "text": "杂志", "weight": 10 }]+ },+ {+ "id": "course-syllabus",+ "phrases": [{ "text": "教學大綱", "weight": 20, "where": "title" }]+ },+ {+ "id": "lesson-plan",+ "phrases": [{ "text": "教案", "weight": 20, "where": "title" }]+ },+ {+ "id": "offer-letter",+ "phrases": [{ "text": "招聘", "weight": 8 }]+ },+ {+ "id": "statement-of-work",+ "phrases": [{ "text": "工作說明", "weight": 20, "where": "title" }]+ },+ {+ "id": "service-agreement",+ "phrases": [{ "text": "服务级别协议", "weight": 18, "where": "title" }]+ },+ {+ "id": "settlement-agreement",+ "phrases": [{ "text": "和解", "weight": 18, "where": "title" }]+ },+ {+ "id": "legal-opinion",+ "phrases": [{ "text": "法律意見書", "weight": 18, "where": "title" }]+ },+ {+ "id": "subpoena",+ "phrases": [{ "text": "傳票", "weight": 20, "where": "title" }]+ },+ {+ "id": "consent-form",+ "phrases": [{ "text": "知情同意", "weight": 18, "where": "title" }]+ },+ {+ "id": "discharge-summary",+ "phrases": [{ "text": "住院", "weight": 20, "where": "title" }]+ },+ {+ "id": "lab-report",+ "phrases": [{ "text": "检验科", "weight": 12 }]+ },+ {+ "id": "referral-letter",+ "phrases": [{ "text": "轉診", "weight": 18, "where": "title" }]+ },+ {+ "id": "insurance-claim",+ "phrases": [{ "text": "保險", "weight": 20, "where": "title" }]+ },+ {+ "id": "regulatory-filing",+ "phrases": [{ "text": "守规", "weight": 10 }]+ },+ {+ "id": "quality-report",+ "phrases": [{ "text": "质量控制", "weight": 10 }]+ },+ {+ "id": "test-report",+ "phrases": [{ "text": "校准", "weight": 12 }]+ },+ {+ "id": "safety-procedure",+ "phrases": [{ "text": "職業安全健康", "weight": 10 }]+ },+ {+ "id": "technical-specification",+ "phrases": [{ "text": "规范", "weight": 16, "where": "title" }]+ },+ {+ "id": "api-documentation",+ "phrases": [{ "text": "应用程序接口", "weight": 8 }]+ },+ {+ "id": "license-agreement",+ "phrases": [+ { "text": "最终用户许可协议", "weight": 20, "where": "title" }+ ]+ },+ {+ "id": "budget",+ "phrases": [{ "text": "預算", "weight": 14, "where": "title" }]+ },+ {+ "id": "remittance-advice",+ "phrases": [{ "text": "匯款通知書", "weight": 20, "where": "title" }]+ },+ {+ "id": "registration-form",+ "phrases": [{ "text": "纽西兰大学", "weight": 18, "where": "title" }]+ },+ {+ "id": "gift-certificate",+ "phrases": [{ "text": "禮品卡", "weight": 16, "where": "title" }]+ },+ {+ "id": "return-authorization",+ "phrases": [{ "text": "退貨", "weight": 16, "where": "title" }]+ },+ {+ "id": "organization-chart",+ "phrases": [{ "text": "組織結構圖", "weight": 20, "where": "title" }]+ },+ {+ "id": "case-study",+ "phrases": [{ "text": "案例研究", "weight": 16, "where": "title" }]+ },+ {+ "id": "board-report",+ "phrases": [{ "text": "董事会", "weight": 10 }]+ },+ {+ "id": "investment-summary",+ "phrases": [{ "text": "投资", "weight": 8 }]+ },+ {+ "id": "analytics-report",+ "phrases": [{ "text": "網站分析", "weight": 10 }]+ },+ {+ "id": "benefits-summary",+ "phrases": [{ "text": "員工福利", "weight": 14 }]+ },+ {+ "id": "hoa-document",+ "phrases": [{ "text": "房產所有者協會", "weight": 18, "where": "title" }]+ },+ {+ "id": "grade-report",+ "phrases": [{ "text": "學校成績表", "weight": 20, "where": "title" }]+ },+ {+ "id": "assignment-brief",+ "phrases": [{ "text": "功課", "weight": 12 }]+ }+ ],+ "patterns": {+ "toc": [{ "pattern": "目次" }],+ "references": [{ "pattern": "書目學" }],+ "signature": [{ "pattern": "签名" }]+ }+}diff --git a/frontend/editor/src/proprietary/services/heuristic/types.ts b/frontend/editor/src/proprietary/services/heuristic/types.tsindex 5170feccd5..a4360b85d0 100644--- a/frontend/editor/src/proprietary/services/heuristic/types.ts+++ b/frontend/editor/src/proprietary/services/heuristic/types.ts@@ -12,9 +12,22 @@ export interface HeuristicDoc {allZone: string;}-// "none" = no match or non-English; a real runtime value, not just a type state.+// "none" = no label cleared the floor; a real runtime value, not just a type state.export type HeuristicConfidence = ClassificationConfidence;+export interface LanguageCandidate {+ language: string;+ score: number;+}++export interface LanguageDetection {+ language: string | null;+ script: string | null;+ candidates: LanguageCandidate[];+ assumed: boolean;+ lowText: boolean;+}+/** One scored candidate label with the rule hits that produced its score (debug only). */export interface LabelScoreExplanation {id: string;@@ -27,9 +40,13 @@ export interface LabelScoreExplanation {/** Why a document scored the way it did; produced only when explain is requested. */export interface HeuristicExplanation {- isEnglish: boolean;+ language: string | null;+ script: string | null;+ assumed: boolean;lowText: boolean;- /** Top candidates by score, best first. Empty when rejected as non-English. */+ packs: string[];+ languageCandidates: LanguageCandidate[];+ /** Top candidates by score, best first. */candidates: LabelScoreExplanation[];}@@ -38,7 +55,8 @@ export interface HeuristicResult {labels: string[];confidence: HeuristicConfidence;score: number;- isEnglish: boolean;+ language: string | null;+ packs: string[];/** Present only when classify was called with `{ explain: true }`. */explain?: HeuristicExplanation;}