Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 4.09 KB

csv-output.md

File metadata and controls

49 lines (39 loc) · 4.09 KB

CSV output columns

The batch scanner writes CSV by default (use --json for the full structured report). Each row represents one suspicious passage within an article, or a summary/error row when no passage applies.

Row types

Row type When it appears
Passage row Article scanned successfully and at least one match was clustered into a passage
Article-only row Article scanned successfully but produced no passage clusters (rare; usually means no matches)
Error row Article could not be scanned (missing page, API failure, etc.)

Articles with multiple suspicious passages appear on multiple rows. When all eras are scanned (the default), the same article may also appear on multiple rows with different era values. Article-level columns (title, flagged, suspicion_score, etc.) are repeated on each passage row for that article–era combination.

Columns

Column Description
title Wikipedia article title
url Canonical URL to the article
era LLM era band for this row (gpt4, gpt4o, gpt5, generic, or all when no era had matches). By default each article is scanned against all eras; use --era to restrict to one
ai_tagged yes if the article wikitext contains {{AI-generated}} or `{{AI-generated
flagged True if the article met the flag threshold: suspicion_score ≥ --min-score (default 0.4) and at least 2 indicator matches. False otherwise. This is a triage hint, not proof of LLM authorship
suspicion_score Article-level score from 0.0 to 1.0, based on weighted indicator matches normalized by article length. Higher values mean more/coarser pattern hits
match_count Total number of indicator matches found anywhere in the article (across all passages)
text_length Length of the article's stripped plain-text prose, in characters
section Wikipedia section name where this passage appears (e.g. Lead, Legacy). Empty on article-only and error rows
passage_score Passage-level score from 0.0 to 1.0, based on the weight and density of matches within this clustered passage. Empty on article-only and error rows
passage_text Excerpt of article prose surrounding the matched indicators (~200 characters of context on each side). This is the primary column to review manually
indicators Semicolon-separated list of matched words/phrases in this passage (e.g. crucial role; underscore; highlighting)
indicator_types Semicolon-separated match types, parallel to indicators. Possible values: phrase (multi-word target phrase), vocab (single era vocabulary word), sentence_initial (e.g. Additionally, at sentence start), section_header (suspicious section title), title_case_heading (section heading uses title case instead of Wikipedia sentence case), punctuation (e.g. em dash —)
cautions Note when the article is already tagged with {{AI-generated}}. Empty otherwise
error Error message if the article failed to scan. Empty on successful rows

CLI options

Flag Description
--era Scan one era only: gpt4, gpt4o, gpt5, or generic (default: all eras)
--json Write JSON instead of CSV
--min-score Flag threshold 0.0–1.0 (default: 0.4); article must also have ≥2 matches
--delay Seconds between API requests (default: 0.5)

Usage notes

  • Review passage_text and indicators together; co-occurring era-appropriate vocabulary in the same section is stronger signal than an isolated hit.
  • Compare era values across rows for the same article — hits that align with one era but not others can help narrow when text was likely added.
  • A flagged value of False does not mean the article is clean — check rows with matches anyway if your search suggested the article was worth opening.
  • For full nested data (all matches with byte offsets, complete passage match lists, run summary), re-run with --json.