From 3a3db3f366d6c54f1f1bb46d1a13e3e3b788c692 Mon Sep 17 00:00:00 2001 From: AI Assistant Date: Tue, 10 Mar 2026 08:48:34 +0200 Subject: [PATCH] fix(registratura): lower subject template min length from 8 to 3 chars Co-Authored-By: Claude Opus 4.6 --- src/modules/registratura/services/subject-template-service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;