Eddiebot: [BUG]: The bot word-filter doesn't flag ", <word>,"

Created on 16 Nov 2020  路  11Comments  路  Source: EddieJaoudeCommunity/EddieBot

This bug seems to be a big issue as one may just list comma-separated bad-words and non-inclusive language, and not get flagged by Alexjs 馃槺

This isn't recognised or flagged by the bot: , <bad-word>,

Context:
Screenshot 2020-11-16 at 1 32 26 PM

At present this seems to be the only case in which the bot isn't flagging.(I tried other combinations)

bug good first issue

Most helpful comment

You can work on this and if you need any help i am here.
Super loaded with school next week and this weekend.

I'm gonna do more open source in the upcoming vacation. 馃槃 馃構 馃憤
Is this ok?

All 11 comments

It's great having you contribute to this project

Feel free to raise an Issue! Welcome to the community :nerd_face:

If you would like to continue contributing to open source and would like to do it with an awesome inclusive community, you should join our Discord chat and our GitHub Organisation - we help and encourage each other to contribute to open source little and often 馃 . Any questions let us know.

The consequences:
(It can be a lot more bad 馃檨 )
Screenshot 2020-11-16 at 1 45 13 PM

I think this is currently sent to the library, we might have to see what options we have available

Another bug was found where "<bad-word>" was not flagged by the bot.
Could we perhaps do string processing, on the text, before sending it to Alex, in order to remove punctuation and ensure a space-separated sentence is sent??

ah yes that is a great idea 馃憤

At present this seems to be the only case in which the bot isn't flagging.(I tried other combinations)

Found one more:
image

I wonder if it is even reparable. Cuz when we split based on spaces, such characters will be associated with the word. If we consider flagging substrings even words like they will be flagged because the substring he is present in it.
Another way is to completely ignore all characters that are not alphabets. But again, is this ideal?

I guess it is, for now, we could just strip off punctuation from the sentence and then join all the words with spaces in between

Also -word- and 'word' and (word) and <word> and {word} aren't taken into consideration.

Still testing, but i think we have to check for non-alphabetical characters in the words and if a word is in between we send that to alexjs.

Can I work on this ?
or perhaps we could team up on this? 馃檭

You can work on this and if you need any help i am here.
Super loaded with school next week and this weekend.

I'm gonna do more open source in the upcoming vacation. 馃槃 馃構 馃憤
Is this ok?

@Vyvy-vi I've assigned it to you, but you can both work together 馃槂.
Thank you all for wanting to work on this and improve our word filter feature 馃憤 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AllanRegush picture AllanRegush  路  3Comments

BOLT04 picture BOLT04  路  5Comments

Akshu-on-github picture Akshu-on-github  路  5Comments

mstanciu552 picture mstanciu552  路  6Comments

BOLT04 picture BOLT04  路  7Comments