land_acknowledgement icon indicating copy to clipboard operation
land_acknowledgement copied to clipboard

Incorrect result (submitted data mis-interpreted; not a data problem)

Open jimcraner opened this issue 5 years ago • 1 comments

I submitted several test requests and got proper responses.

When I submitted "Peoria, IL" (no quotes), the returned result was:

In Prole, Iowa you are on Iowa land.

I tried the same request multiple times and always got the Prole, IA result.

For reference, "Peoria Heights, IL" (no quotes) did correctly return Peoria Heights and its associated land data.

To Reproduce:

  1. Submit Peoria, IL as a city to the land_acknowledgement test number
  2. Note result.

(BTW, this is a very awesome project, thanks to all of the contributors and participants!! :-)

jimcraner avatar Aug 06 '20 07:08 jimcraner

This is an interesting case where the megaphone-based fuzzy matching fails. The megaphones of PEORIAIL PROLEIA are a match.

postgres=# select metaphone('PEORIAIL', 10);
 metaphone
-----------
 PRL
(1 row)

postgres=# select metaphone('PROLEIA', 10);
 metaphone
-----------
 PRL
(1 row)

This is currently fixed by temporarily disabling fuzzy matching, but a better alternative would be to find a way to prefer exact matches or look for exact matches and only look for a fuzzy match if that fails.

mark-meyer avatar Aug 06 '20 15:08 mark-meyer