From 41496b6beae98209ea06910941f98301457c25ac Mon Sep 17 00:00:00 2001 From: Trey t Date: Sat, 10 Jan 2026 09:35:21 -0600 Subject: [PATCH] feat(03-01): add NFL team abbreviation aliases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add NFL entries to TEAM_ABBREV_ALIASES dict: - Historical relocations: OAK→LV, SD→LAC, STL→LAR - Common 3-letter variations: JAC, GNB, KAN, NWE, NOR, TAM, SFO - Direct match for WAS included for completeness Co-Authored-By: Claude Opus 4.5 --- Scripts/canonicalize_games.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Scripts/canonicalize_games.py b/Scripts/canonicalize_games.py index 4baecc1..771600d 100644 --- a/Scripts/canonicalize_games.py +++ b/Scripts/canonicalize_games.py @@ -84,6 +84,19 @@ TEAM_ABBREV_ALIASES = { ('NHL', 'SJ'): 'team_nhl_sjs', # San Jose ('NHL', 'LA'): 'team_nhl_lak', # Los Angeles Kings ('NHL', 'MON'): 'team_nhl_mtl', # Montreal + + # NFL + ('NFL', 'JAC'): 'team_nfl_jax', # Jacksonville (JAC vs JAX) + ('NFL', 'OAK'): 'team_nfl_lv', # Oakland → Las Vegas Raiders (moved 2020) + ('NFL', 'SD'): 'team_nfl_lac', # San Diego → Los Angeles Chargers (moved 2017) + ('NFL', 'STL'): 'team_nfl_lar', # St. Louis → Los Angeles Rams (moved 2016) + ('NFL', 'GNB'): 'team_nfl_gb', # Green Bay alternate + ('NFL', 'KAN'): 'team_nfl_kc', # Kansas City alternate + ('NFL', 'NWE'): 'team_nfl_ne', # New England alternate + ('NFL', 'NOR'): 'team_nfl_no', # New Orleans alternate + ('NFL', 'TAM'): 'team_nfl_tb', # Tampa Bay alternate + ('NFL', 'SFO'): 'team_nfl_sf', # San Francisco alternate + ('NFL', 'WAS'): 'team_nfl_was', # Washington (direct match but include for completeness) }