# Shorewrit: method

## Position

Each directive and Member State gets one position, checked in this order:

- `not_yet_due`: The transposition deadline has not passed and nothing is notified yet.
- `measures_notified`: National measures are notified to EUR-Lex and no non-communication case is open. This does not mean transposition is complete.
- `overdue_nothing_notified`: The deadline has passed and no national measure is notified on EUR-Lex.
- `infringement_open`: The Commission has an open non-communication infringement case against this Member State for this directive.
- `infringement_closed`: The Commission opened a non-communication case and has since closed it, the nearest official signal that notification is now complete. It is not a finding that the law is correct.

Order of precedence: an open case first, then nothing notified after the deadline, then a closed case, then measures notified, then not yet due.

## Infringement stages

- `formal_notice`: Letter of formal notice
- `additional_formal_notice`: Additional letter of formal notice
- `reasoned_opinion`: Reasoned opinion
- `additional_reasoned_opinion`: Additional reasoned opinion
- `referral_to_court`: Referral to the Court of Justice
- `formal_notice_after_ruling`: Letter of formal notice after a Court ruling (Art. 260(2))
- `referral_after_ruling`: Second referral to the Court (Art. 260(2))
- `court_referral_withdrawn`: Court referral withdrawn
- `closed`: Case closed
- `other`: Other decision

## Tying a case to a directive

The register names the directive only in a free-text title. Shorewrit reads, in order: a CELEX number in the title; a directive number in any of the forms seen (Directive (EU) 2022/2555, Directive EU 2024/2839, Directive 2014/55/EU, 98/24/EC, a number in brackets), skipping a number that follows the word amending; then a short list of popular names, each checked at build time against the official title of the directive it points to. Names that cover more than one directive (the Listing Act, information exchange) are left unmapped and counted rather than guessed.

Popular names recognised: 27. Each case carries matched_by: number or name.

## History

Every refresh writes a dated snapshot per directive and Member State (measure count, newest notification, case stage) and keeps the first date Shorewrit saw each measure and each decision. A measure that disappears from EUR-Lex is recorded with the date it went. The position on a past date is rebuilt from source dates and compared with the nearest snapshot.