An NSFW filter for Marginalia search

(marginalia.nu)

47 points | by speckx 3 hours ago

3 comments

  • marginalia_nu 1 hour ago
    This was a very meandering project, and trying to corral it into some sort of coherent narrative was a bit of an undertaking on its own. Hopefully it makes some sense.
    • BrunoBernardino 1 hour ago
      Hi Viktor! Really cool write-up, thanks! Uruky is already using the `nsfw` param, but set to `0` or `1`, and I see in your example this looks like a new value option (`2`) that's "better" than `1`? How "safe" is it to implement it as the value to send when someone wants SFW results?
      • marginalia_nu 57 minutes ago
        0 disables all filtering

        1 filters 'harmful' sites per the UT1 blacklists

        2 is 1 + the new NSFW filter.

        The new filter works pretty good in my assessment. It's not infallible, but it gives significantly cleaner results.

        And if you do find queries it fails to sanitize, I'd love to hear about them.

        • BrunoBernardino 27 minutes ago
          Thanks, already implemented and tested a couple of queries and it does look good!
  • 8organicbits 57 minutes ago
    Have you seen many examples of websites labeling themselves, perhaps using rating meta tags (<meta name="rating" ...>)? Self-labeling seems valuable in some ways, but I don't think I've seen it catch on.
    • marginalia_nu 55 minutes ago
      Meta tags are almost universally garbage, but the presence of '18 USC 2257' (or U.S.C.) is a very strong NSFW signal.
      • Wingy 37 minutes ago
        Does this comment make this page NSFW on Marginalia?
  • GenericDev 33 minutes ago
    [dead]