ecc521 / rivers.run

Water levels, notifications, search tools, and more, built to help paddlers.
https://rivers.run
6 stars 1 forks source link

Name matching with voice Action/Skill #134

Open ecc521 opened 2 years ago

ecc521 commented 2 years ago

Google mistakes things like "Youghiogheny" for "Yakageny" (huh?), and "Haw" for "Hall", which results in matching failures.

Phonetic matching should probably be used here - perhaps something like double-metaphone (npm)?

These words don't directly match though, even with double-metaphone.

So we would need to iterate through every river and pick the best match - probably a one character tolerance (so H vs HL, AKN vs AKJN, etc, work)

This will likely result in matching too many things though - something like "Yadkin" would then match "Youghiogheny". Probably better than the alternative (not matching), however.