Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: replace profanity filter #65

Open
wants to merge 1 commit into
base: mastodon
Choose a base branch
from

Conversation

Topener
Copy link

@Topener Topener commented Aug 9, 2023

Hi there!

I noticed your repository uses the bad-words package. I've recently released a new package called no-profanity which is backwards compatible with bad-words but contains more known profanities, and is about 150 times as fast with checking profanities.

This PR should fix that!

Let me know if you have any questions

@ojwb
Copy link
Collaborator

ojwb commented Jan 22, 2025

I don't think a larger profanity list is desirable here - even the existing list triggers accidentally sometimes (e.g. I once got banned for mentioning "dead code" requiring manual intervention).

Also only the source code gets scanned and it's not hard to hide profanity in the source code but produce it in the output image/video. Despite this we don't seem to have a problem with users even trying to send the bot profanity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants