Chadwick: A Retrosheet and DiamondWare baseball data processor

Introduction

Chadwick is a suite of command-line tools for extracting statistics and play-by-play data from Retrosheet’s DiamondWare-format event and boxscore files (https://www.retrosheet.org).

Note

Getting Chadwick. Windows users can download ready-to-run binaries from the latest GitHub release. macOS/Linux users, and anyone building from source, should see Installation.

Author

Chadwick is written, maintained, and Copyright 2002-2026 by Dr T. L. Turocy (ted.turocy <aht> gmail <daht> com) at Chadwick Baseball Bureau (https://www.chadwick-bureau.com).

License

Chadwick is licensed under the terms of the GNU General Public License. If the GPL doesn’t meet your needs, contact the author for other licensing possibilities.

Command-line tools

Chadwick provides six command-line programs, each reading Retrosheet play-by-play or boxscore event files and extracting a specific kind of tabular data:

⚾ cwevent

Expanded event descriptor. Extracts detailed information about individual plays, replacing and extending DiamondWare’s BEVENT.

cwevent: Expanded event descriptor
🏟️ cwgame

Game information extractor. Extracts per-game summary and team totals, replacing and extending DiamondWare’s BGAME.

cwgame: Game information extractor
📋 cwbox

Boxscore generator. Produces a human-readable boxscore report, replacing and extending DiamondWare’s BOX.

cwbox: Boxscore generator
📅 cwdaily

Player game-by-game generator. Produces one record per player per game, with batting, pitching, and fielding totals. Unique to Chadwick.

cwdaily: Player game-by-game generator
🔄 cwsub

Player substitution descriptor. Extracts in-game substitutions, complementing cwevent. Unique to Chadwick.

cwsub: Player substitution descriptor
💬 cwcomment

Comment extractor. Extracts comment fields, including ejections and umpire changes. Unique to Chadwick.

cwcomment: Comment extractor

Development

Chadwick development can be found at https://github.com/chadwickbureau/chadwick.

Bugs in Chadwick should be reported to the issue tracker on github at https://github.com/chadwickbureau/chadwick/issues. Please be as specific as possible in reporting a bug, including the version of Chadwick you are using, the operating system(s) you’re using, and a detailed list of steps to reproduce the issue.

Acknowledgments

The author thanks Sports Reference, LLC, the Society for American Baseball Research, and XMLTeam, Inc. for support in the development of portions of Chadwick. The author also thanks David Smith of Retrosheet for his always-gracious assistance and guidance.