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.
Published at
2023-12-15 20:21:45Event JSON
{
"id": "60189cc515c92388fd0865f0c87ec978e08fa5b7acf317e271c1f3636dca1c05",
"pubkey": "9be0be0e64d38a29a9cec9a5c8ef5d873c2bfa5362a4b558da5ff69bc3cbb81e",
"created_at": 1702671705,
"kind": 1,
"tags": [
[
"e",
"5bd521d43052f0582bfcb491c484494c0744092852b6bcc6cbf19a110e6d1991",
"",
"root"
],
[
"p",
"9be0be0fc079548233231614e4e1efc9f28b0db398011efeecf05fe570e5dd33"
],
[
"p",
"df67f9a7e41125745cbe7acfbdcd03691780c643df7bad70f5d2108f2d4fc200"
],
[
"p",
"8766a54ef9a170b3860bc66fd655abb24b5fda75d7d7ff362f44442fbdeb47b9"
],
[
"client",
"Nostur",
"31990:9be0be0fc079548233231614e4e1efc9f28b0db398011efeecf05fe570e5dd33:1685868693432"
]
],
"content": "It adds the label if both the following is true:\n- you are not following the contact\n- it has a 80% similar name and profile picture as someone you already follow\n\nFor 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.\n",
"sig": "74e92324b70c901a165b3c50c608b14d25ce191037f74b20bd5e852bcfdcfc16edf0805eddbabd2a6228a84af66c4733fd6c1e12508dba84eeb6fbaa8a0ce47b"
}