Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax game name matching when creating a table #41

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mavit
Copy link
Contributor

@mavit mavit commented Feb 11, 2021

Users are unlikely to have memorised the exact wording and orthography of the titles of games, so lets work harder to understand what they mean.

Some examples:

  • 6 nimmt!sixnimmt
  • Gaïagaia
  • Gear & Pistongearandpiston
  • The Voyages of Marco Polomarcopolo
  • Marco Polo II: In the Service of the Khanmarcopolotwo

Users are unlikely to have memorised the exact wording and orthography of the titles of games, so lets work harder to understand what they mean.

Some examples:
- `6 nimmt!` ↦ `sixnimmt`
- `Gaïa` ↦ `gaia`
- `Gear & Piston` ↦ `gearandpiston`
- `The Voyages of Marco Polo` ↦ `marcopolo`
- `Marco Polo II: In the Service of the Khan` ↦ `marcopolotwo`
@pocc
Copy link
Owner

pocc commented Feb 25, 2021

I like this idea. Can you add a bunch of test cases against your simplify_name() function and add them to a test.py? It may be helpful to have one of these so it's easier to check whether this name matching is working as we expect it to.

There are also a couple games that you're checking for that I'm not familiar with.

@mavit
Copy link
Contributor Author

mavit commented Feb 28, 2021

Tests added!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants