MLB-StatsAPI icon indicating copy to clipboard operation
MLB-StatsAPI copied to clipboard

Normalize diacritics in player lookup

Open ap-ack opened this issue 2 months ago • 6 comments

statsapi.lookup_player('Acuna') returns an empty list, not including Ronald Acuña Jr. because it is not a direct text match due to the diacritic on the n. This effectively makes the player lookup feature unusable for search queries coming from user input, as it may not be obvious to an end user that they need to use characters like this and they may not have easy access to these characters on their keyboard. Additionally, some MLB players like Emmanuel Ramirez don't use diacritics in their names, while others like José Ramírez do, and users won't know when they have to use the diacritics to get their expected search results.

ap-ack avatar Apr 28 '24 23:04 ap-ack