r/AutoModerator • • May 06 '22

Features I wish Automoderator had

Homoglyph Matching Modifier

A modifier tag, much like regex or case-sensitive, that asks Automod to match the word with any known homoglyph characters. Homoglyphs are characters that look like other standard characters, like 1337 (leet) speak or accented characters.

body+title(homoglyph): ["cat"]

Would flag the word čát. This is very important for many attempts by users to evade slur and hate speech filters.

Timezone Filter Restrictions

An action modifier for terms such as approve or remove that designates the filter to only be active during certain times/days.

action: remove
action_time: [W 0200-1430 GMT]

Would only apply the above removal during Wednesdays from 2:00 AM to 2:30 PM GMT time. This is very important for rules or activities reserved only for certain days of the week on some subreddits.

A Standard Filter Sharing Database

Not really a code based automoderator change, but a dedicated database of filters provided by various subreddits for certain conditions would be wonderful. I know we have /r/automoderator and the subreddit's wiki, but a community driven database location would be great.

27 Upvotes

20 comments sorted by

6

u/TranZeitgeist May 06 '22

Homoglyphs

If you can write regex you can at least include some of the more common substitutions.

'f[a4]g(g?[o4eia]t)?s?'

PS, sorry for the slur, but it's the example that came to mind.

5

u/TimeJustHappens May 06 '22

We have a number of extensive (and frustratingly long) filters that cover almost all known homoglyphs for the biggest offenders, the recommendation was to have a built in setting to make this native.

3

u/dequeued \+\d+ May 07 '22

You can probably reduce the complexity of your rules by disallowing character ranges that are primarily used to obfuscate trolling and spam:

https://www.reddit.com/r/AutoModerator/wiki/library#wiki_spam_obfuscations

In my experience and given how far trolls and bigots will go to write the f-word, n-word, or whatever it is that they are trying to say, my experience is that it's almost always much more complex than simply doing character classes for each letter once someone decides their message is important enough to try to bypass the filters.

Anyhow, if someone on your subreddit is up for writing a configuration-editing bot or script, it wouldn't be too hard to automate maintaining whatever transform works for you, though.

For example, starting with:

body+title (regex): ['(?#transform:cat)cat', '(?#transform:dog)dog']

The bot or script would use the ?# comments with that formatting as the input to replace the rest of that regex.

body+title (regex): ['(?#transform:cat)[cçćč][a@àáâäãåā][t7†]', ...]

The transforms could be stored in a separate configuration file.

5

u/001Guy001 (not a mod/helper anymore) May 06 '22

You should bring it up to the admins through ModSupport since I don't think they monitor this subreddit :)

2

u/TimeJustHappens May 06 '22

Already crossposted, thank you

3

u/thephilthe May 07 '22

Some of us do :) but yea, you’ll get more eyes this way.

2

u/001Guy001 (not a mod/helper anymore) May 07 '22

Oh nice :P

5

u/ThereIsOnlyStardust May 06 '22

The time restricted filters is a feature one of my subs has been wanting for a long time.

4

u/BlankVerse +2 May 06 '22

The standard conditions haven't been improved in a long time.

So many new websites need to be added to the current lists, and there needs to be several lists added.

4

u/dequeued \+\d+ May 07 '22 edited May 07 '22

I offered to update one or two of them, but never got a response.

Anyhow, the library hopefully includes the main standard conditions in need of update. If anyone has a request, we can try to make it happen for the library.

1

u/BlankVerse +2 May 07 '22

page not found

1

u/dequeued \+\d+ May 07 '22

Oops, I linked the wrong wiki. Fixed.

1

u/BlankVerse +2 May 07 '22

My list of Surveys and Polls websites is about 3 dozen, but it also includes

No polls, surveys, petitions, fundraising, or school projects.

I'll have to check your rule for No emoji because my current one from r/automoderator still let's too many emoji through.

Needs a rule for tshirt spammers.

1

u/dequeued \+\d+ May 07 '22 edited May 07 '22

Definitely interested except for the school projects.

I just added a rule for petitions.

If you want to take a look at the respective rules for crowdfunding, petitions, and polls and surveys to let me know what I missed, that would be awesome.

I would definitely recommend trying out the "emoji ban" rule from the library. It is much better than the one that was there before.

As far as t-shirt spam goes, I suspect that might be a little too much of a moving target (and also an area where AutoModerator doesn't work that well).

1

u/Vault-TecTradingCo May 06 '22 edited May 06 '22

Homoglyph one is tricky. You can limit people to using English characters only. But if your subreddit is non-English, then it won't work.

Maybe you can try this https://pypi.org/project/profanity-filter/ and https://pypi.org/project/profanity-check/

I am not sure how good it is but might be worth it.

1

u/TimeJustHappens May 07 '22

Thankfully we are an English only sub and have been using a variety of homoglyph lists.

3

u/SolariaHues May 07 '22

It might not be what you're after, but modguide started a snippet wiki https://www.reddit.com/r/modguide/wiki/index/amsnippets anyone can send us their rules, and we'll check them out.

And we keep a master list of all the resources we're aware of here https://www.reddit.com/r/modguide/wiki/index/automoderator

1

u/HEAVEN_OR_HECK May 06 '22

Fascinating points!

1

u/AeroGlass /r/dankautomod May 07 '22

The time zone would be useful. We use our own bot to do this on /r/BootTooBig

1

u/honestduane May 07 '22 edited May 07 '22

As a software development engineer I would absolutely love it if these were standard features.

I also wish that whitelisting was a lot easier; I know its regex but not all of the mods I work with understand it and so I end up doing all the programming.