OpenOversight icon indicating copy to clipboard operation
OpenOversight copied to clipboard

Ignore whitespace in name search

Open brianmwaters opened this issue 4 years ago • 1 comments

In the NYPD data, some cops w/ two-word last names, have their names represented as one word. For example, Charles M. van Vooren is represented as "Carles M. VANVOOREN". A user who types "van vooren" into any of the search filters won't find him; they need to type "vanvooren". The fix is to ignore whitespace.

brianmwaters avatar Oct 22 '20 23:10 brianmwaters

Adding on to this, ignoring anything that isn't in the Latin alphabet (a-z) would probably be helpful. I just worked with a data set that had several first names that include ' as well as hyphenated last names. And I don't image a US police department ever use letters from other alphabets in names, so ignoring anything but a-z shouldn't have any negative consequences

abandoned-prototype avatar Jan 19 '21 03:01 abandoned-prototype