ShelterApp / AddResources

http://shelterapp.org/
11 stars 10 forks source link

Issue 5 remaining bits and Dupe-Checking #10

Closed hkuffel closed 3 years ago

hkuffel commented 3 years ago

Relevant issue : Issue 5

In this pull request, I have:

To accomplish that last bullet, I've added functions that create a string of space delimited ngrams which, when established as a text index, allow for something like partial matching. If the top search result's name is a 90% match or higher with the proposed new service's name, then that service is dropped and not added to the database. I took a lot of inspiration for this approach from this article.