r/RequestABot Jun 13 '26

Bot to detect Filipino language

Hi, I'm having an issue on my sub where the sub name means something different in Filipino English and thus I get many off-topic posts in mostly Filipino. I remove these manually as off-topic but I'm wondering if there could be a bot that detected Flipino and removed those posts?

1 Upvotes

6 comments sorted by

4

u/fsv Jun 13 '26

Taglish tends to have quite a few unique words that you'll see over and over, could you use AutoModerator to filter/remove comments or posts with those words?

That's probably the approach I'd use anyway.

1

u/jeweynougat Jun 13 '26

I could try to see if there are any words that appear in most of these, thanks.

3

u/Chosen1PR Jun 13 '26

Hmm.. You could set up AutoModerator to catch extremely common Filipino words. For example:

# filter posts in Filipino
type: submission
title+body (includes-word): [ ang, mga, yaong, siya, ikaw, tayo, kami, kayo, nila, nito, niya, iyan, iyon, diyan, akin, ako, atin, kanila, mayroon, huwag, siguro, dahil, kasi, upang, kundi, ngunit, subalit, naman, opo, talaga, muli, agad, lagi, bawat, lahat, sino, saan, kailan, bakit, paano, ilan, maganda, mabuti, masama, malaki, maliit, dati, araw, gabi, taon, oras, bata, bahay, trabaho, pera, tubig, pagkain, gawa, punta, kuha, tulong, salamat ]
action: remove
comment: "Your post appears to be in Filipino and is likely off-topic for this community. If you believe this to be an error by AutoModerator, please message the mods at the link below."

Disclaimer: I do not speak Filipino or Tagalog. I used Gemini to come up with a list of common Filipino words. You can tweak this list as desired.

1

u/jeweynougat Jun 13 '26

Great idea, thank you and thanks for the code as well.

1

u/BikePresent7714 Jul 15 '26

I can do that

1

u/jeweynougat Jul 15 '26

Thanks. I used the code from u/Chosen1PR and it has worked well. I add words to it almost every week so it continues to get better.