Current matching logic splits user input into individual words and matches them against relevant keywords. Therefore, user input should be formatted before passing it into relevant functions.
Everything should be lowercased
All punctuation deleted
Two word park names should be transformed into one with -
etc... (try to think of all cases)
Example input:
Can I ride a bike in Riegrovy Sady?
Example output:
can i ride a bike in riegrovy-sady
The same process should be repeated back, so for
can i ride a bike in riegrovy-sady the function should output Can I ride a bike in Riegrovy Sady
Current matching logic splits user input into individual words and matches them against relevant keywords. Therefore, user input should be formatted before passing it into relevant functions.
Example input:
Can I ride a bike in Riegrovy Sady?
Example output:can i ride a bike in riegrovy-sady
The same process should be repeated back, so for
can i ride a bike in riegrovy-sady
the function should outputCan I ride a bike in Riegrovy Sady