fix(timeline): explicit Norwegian date format recognition in prompt
Add DD.MM.YY, D.M., diary-line format instructions so the model doesn't skip short Norwegian dates like 18.09.25 or 6.1. Two-digit years always treated as 20YY. Lines starting with date+colon are always events. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+14
-1
@@ -308,8 +308,21 @@ PROMPT;
|
||||
Build a chronological timeline from the pasted text in {$locale}.
|
||||
|
||||
Extract ALL dates, deadlines, milestones, and temporal references.{$focusInstruction}
|
||||
|
||||
IMPORTANT — Norwegian date formats to recognise:
|
||||
- DD.MM.YY (e.g. 18.09.25 = 2025-09-18, 09.04.25 = 2025-04-09)
|
||||
- D.M.YY (e.g. 6.1.25 = 2025-01-06)
|
||||
- DD.MM. (e.g. 18.09. — day and month without year; infer year from surrounding context)
|
||||
- D.M. (e.g. 6.1. — day and month only)
|
||||
- DD.MM.YYYY (e.g. 18.09.2025)
|
||||
- Two-digit years: always interpret as 20YY (25 → 2025, 24 → 2024).
|
||||
- Diary / log format: lines that begin with a date followed by a colon or space are ALWAYS events.
|
||||
Example: "18.09.25: Samtale med Davids lærer" → date 2025-09-18, event "Samtale med Davids lærer".
|
||||
Example: "6.1. Samtaler med David" → date unknown-year-01-06, event "Samtaler med David".
|
||||
- Do NOT skip a line just because the year is ambiguous — record what you can and set confidence accordingly.
|
||||
|
||||
For each temporal reference provide:
|
||||
- "date": ISO 8601 date (YYYY-MM-DD) if determinable, otherwise a human-readable description
|
||||
- "date": ISO 8601 date (YYYY-MM-DD) if determinable, otherwise a human-readable description such as "06 Jan (year unknown)"
|
||||
- "date_type": one of absolute | relative | recurring | conditional | period
|
||||
- "actor": person, institution, or party involved — or "unknown"
|
||||
- "event": concise description of what happened or is due
|
||||
|
||||
Reference in New Issue
Block a user