Why Nostr? What is Njump?
2023-12-15 21:21:45
in reply to

Fabian on Nostr: It adds the label if both the following is true: - you are not following the contact ...

It adds the label if both the following is true:
- you are not following the contact
- it has a 80% similar name and profile picture as someone you already follow

For picture it checks pixels and for name it uses Jaro-Winkler from https://github.com/autozimu/StringMetric.swift I tried levenshtein before but it seemed a bit buggy. Both could probably be improved but I haven't had false positives for a while, there were a few a while back but that was actually related to code errors, not the algorithms.
Author Public Key
npub1n0sturny6w9zn2wwexju3m6asu7zh7jnv2jt2kx6tlmfhs7thq0qnflahe