Files
baseball-db/normalization.toml
2025-04-18 08:14:37 -05:00

58 lines
1.1 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"
[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"