ahump20/baseball
Baseball fundamentals: rules and scoring, wOBA, wRC+, FIP and sample-size reliability computed by a tested script with FanGraphs constants, MLB and college run environments, and free data sources.
Compute and interpret baseball metrics correctly — wOBA, wRC+, FIP, BABIP, ISO, K%, BB%, ERA vs FIP gaps, sample-size reliability, park and era context — for MLB and college. Use when calculating or explaining a hitter's or pitcher's numbers, comparing players across seasons or leagues, judging whether a hot or cold stretch is real, or building NCAA league baselines from totals.
Pull MLB and college baseball data from free, keyless sources — MLB Stats API (schedules, live scores, standings, box scores, player season stats), Baseball Savant leaderboards and pitch-level Statcast CSVs, and the Lahman database — with the exact URLs, JSON paths and gotchas. Use when you need real numbers instead of remembered ones, or when building a pipeline.
Resolves baseball rules questions, umpire rulings and official-scoring decisions for MLB, NCAA, high school (NFHS) and WBC play, with rule citations and the edge cases models usually get wrong. Use when a question turns on a baseball rule, umpire ruling, official scoring decision, or MLB vs college rule difference — infield fly, dropped third strike, balk, obstruction, interference, appeals, fourth out, ground-rule double, overthrow awards, hit vs error, earned runs, RBI, saves, wins, pitch clock, ABS challenge, extra-innings runner, DH, mound visits, shift rules.