Skip to contents

Extract structured fields from an SIU director's-report text or URL.

Usage

morie_datasets_siu_report_fields(text_or_url)

Arguments

text_or_url

Character scalar; either the report text (re-used) or a PDF URL (fetched and parsed first).

Value

A named list with fields report_id, incident_date, conclusion, sections.

Examples

text <- paste0(
  "Report 24-OFD-001 incident dated January 5, 2024. ",
  "Director's Decision: no charges. Issued: later."
)
out <- morie_datasets_siu_report_fields(text)
out$report_id
#> [1] "24-OFD-001"
out$incident_date
#> [1] "January 5, 2024"