extract_dates
Extract all dates from legal contracts, classify each date's role (e.g., term end, notice), and compute deadlines from notice periods. Supports Gregorian and Hijri calendars with Arabic-Indic and Persian digits.
Instructions
Extract every date, classify what it is for, and compute the deadlines that follow from it. Handles Gregorian and Hijri, Arabic-Indic and Persian digits, and month names in the Egyptian and Gulf, Levantine and Iraqi, and Hijri naming traditions. Each date reports its calendar, an ISO value, the role it plays (execution, commencement, term_end, renewal, notice, payment, delivery, signature) and the wording that justified that role. Hijri dates are converted with the tabular civil calendar and labelled as such, and where the contract states its own Gregorian equivalent any divergence is reported rather than resolved. Also returns notice periods found in the text and, where a fixed date anchors them, computed deadlines such as the date by which notice of non-renewal must be given.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the document. Accepts .pdf, .docx or a plain text file (.txt, .md). Absolute paths are safest. The format is detected from the file content, not the extension. |