← Về thư mục
scripts/temporal_integrity_audit.py
- _date_to_interval · function · L93-L133 — def _date_to_interval(raw: str) -> tuple[str, str]
- _date_diff_days · function · L136-L140 — def _date_diff_days(a: str, b: str) -> int
- _sentence_around · function · L143-L153 — def _sentence_around(draft: str, char_pos: int) -> str
- _next_finding_id · function · L156-L159 — def _next_finding_id(findings: list[dict]) -> int
- _compute_line_number · function · L162-L166 — def _compute_line_number(draft: str, char_pos: int) -> int
- _provenance_confidence · function · L169-L185 — def _provenance_confidence(slug: str, citation_provenance: dict) -> str | None
- _pass_1_arithmetic · function · L188-L272 — def _pass_1_arithmetic(draft: str, findings: list[dict]) -> None
- _pass_2_anachronism · function · L275-L465 — def _pass_2_anachronism(draft: str, timeline: dict, citation_provenance: dict, findings: list[dict]) -> None
- _pass_3_comparator · function · L468-L556 — def _pass_3_comparator(draft: str, timeline: dict, findings: list[dict]) -> None
- _pass_4_causal · function · L559-L731 — def _pass_4_causal(draft: str, timeline: dict, citation_provenance: dict, findings: list[dict]) -> None
- _pass_5_deictic · function · L734-L763 — def _pass_5_deictic(draft: str, findings: list[dict]) -> None
- audit · function · L766-L783 — def audit(draft: str, timeline: dict, citation_provenance: dict, report_reference_date: str, audit_run_id: str) -> dict
- _render_markdown · function · L786-L811 — def _render_markdown(result: dict) -> str
- main · function · L814-L836 — def main(argv: list[str] | None = None) -> int