Files
baseball-db/normalization.toml
Anthony Correa 2a521e9016 Update calendar generation and data normalization; add read check command
- Add config file support for calendar colors and logos in generate_calendar
- Extend normalization mappings in normalization.toml for fields and teams
- Add 'read check' command to summarize game and field data from input files
- Fix normalization to correctly handle visitor field and value lookups
- Update launch configurations for new data and options
2025-08-26 16:42:19 -05:00

76 lines
1.5 KiB
TOML

# config.toml
[win]
potential_keys = ["w", "wins"]
[loss]
potential_keys = ["l", "losses"]
[tie]
potential_keys = ["t", "ties"]
[points]
potential_keys = ["pts.", "pts", "pt"]
[runs_for]
potential_keys = ["rf", "rs"]
[runs_against]
potential_keys = ["ra"]
[division]
potential_keys = ["div"]
[date]
potential_keys = ["Date", "EventDate"]
[time]
potential_keys = ["Time", "EventTime"]
[visitor]
potential_keys = ["Away"]
[field]
potential_keys = ["Field", "Location", "Venue"]
[[field.values]]
original = ["Winnemac"]
normalized = "Winnemac Park"
[[field.values]]
original = ["Taft HS"]
normalized = "Taft High School"
[[field.values]]
original = ["Southwest"]
normalized = "Southwest Park"
[[field.values]]
original = ["Comed", "COMED", "ComEd"]
normalized = "ComEd Recreation Center"
[[field.values]]
original = ["Laramie"]
normalized = "Laramie Park"
[[field.values]]
original = ["78"]
normalized = "The 78"
[[field.values]]
original = ["Kilbourn"]
normalized = "Kilbourn Park"
[results]
potential_keys = ["Final Score", "Score", "Result", "Outcome"]
# No potential_values specified for 'final_score' in this example
[[team.values]]
original = ["Hounds", "Chicago Hounds", "Winnemac Hounds", "Hound"]
normalized = "Hounds"
[[team.values]]
original = ["Chicago Red Sox"]
normalized = "Red Sox"
[[team.values]]
original = ["NorthSide White Sox"]
normalized = "North Side White Sox"
[[team.values]]
original = ["Chicago Rebels", "CHICAGO REBELS"]
normalized = "Rebels"
[[team.values]]
original = ["Lombard Expors", "LOMBARD EXPORS"]
normalized = "Lombard Expos"