diff --git a/src/modules/registratura/services/subject-template-service.ts b/src/modules/registratura/services/subject-template-service.ts index 21b72c0..3880682 100644 --- a/src/modules/registratura/services/subject-template-service.ts +++ b/src/modules/registratura/services/subject-template-service.ts @@ -166,7 +166,7 @@ export function extractTemplates(subjects: string[]): SubjectTemplate[] { for (const subj of unique) { // Skip very short subjects (no useful template) - if (subj.length < 8) continue; + if (subj.length < 3) continue; const tokens = tokenize(subj); const fields = tokens.filter((t) => t.type === "field"); @@ -189,7 +189,7 @@ export function extractTemplates(subjects: string[]): SubjectTemplate[] { // duplicates from the full input array) const fullCounts = new Map(); for (const subj of subjects) { - if (subj.length < 8) continue; + if (subj.length < 3) continue; const tokens = tokenize(subj); const fields = tokens.filter((t) => t.type === "field"); if (fields.length === 0) continue;