How we verify citations
Dadyar's AI answers are documented legal information. "Documented" here is not a marketing claim — it is a mandatory step on the path that produces the answer, described precisely below.
How a citation is produced
The model writes citations as structured tokens naming the code and article number, and those tokens can only be copied from the results of tools that searched the statute corpus — never from the model's own memory. The real article text was retrieved before the answer was written.
The search tools retrieve article text from Dadyar's corpus, and the model may only reproduce tokens it saw in those results. The separation is deliberate: the model's general knowledge may inform analysis, but it is not permitted to become a citation.
Verification after the answer is written
After the answer is written and before it reaches you, every citation token is resolved against the statute text again. Any citation that does not resolve to a real article is stripped, and the count is recorded on that message.
This step is not an optional review; it sits on the display path and cannot be bypassed. The count of stripped citations is retained per answer as a quality signal — if a model starts inventing articles, that number rises before the output reaches you.
When there is no legal basis
If the corpus search returns no relevant article, a predetermined "no legal basis found" response is shown. Dadyar does not invent an article in this situation, and does not fall back on the model's general knowledge.
This behaviour is deliberate and we accept its cost: no answer is more honest than an answer that cannot be traced back to statute. On consequential matters, this is also where a consultation with a licensed lawyer is offered.
Where statute text comes from, and how validity is tracked
Statute text is fetched and cleaned from Iran's national laws portal (qavanin.ir), and every code carries a validity status — in force, repealed, or spent. Law that is no longer operative is never presented as current law.
Repealed and spent law is down-weighted in retrieval and carries its status badge on display. Where an act's status is genuinely unclear, that uncertainty is stated rather than resolved by assuming it is in force.