Oh, thank you, if you don't mind to share it by DM. Agree with that, especially for the spammers abuse. I use regex filter and anti duplication policy for spam management.
Yes I have run custom aggregator relay with filter parameters/settings (like filter.nostr.wine )
This is the package code for my relay
https://github.com/atrifat/nostr-filter-relay
which needs several separated modules (Language detection, SFW detection, Toxicity/hate speech detection) listed as its dependencies. All modules can be run using CPU.