OpenOversight
OpenOversight copied to clipboard
Ignore whitespace in name search
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.
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