EddieHubCommunity / EddieBot

Inclusive words Discord bot (no more "hey guys")
http://discord.eddiehub.org
MIT License
171 stars 136 forks source link

[BUG] Can't find duplicate letter words #771

Closed ErtanTaner closed 8 months ago

ErtanTaner commented 1 year ago

Description

Problem

EddieBot can't find banned words when a person use a letter multiple in a word:

Description

When a person use a word like that:

Example 1

Foo

Bot give me error and when I fixed it, no problem. Everything okay.

Example 2

But when a person use a word like that:

FFoo

EddieBot can't understand beacuse only know Foo is bad and not FFoo

Solution

Needs a regex for that, but the problem is some words have banned words in it like Siren.

It's hard to filter it. Maybe adding a feature for using single letter at the beggining of the word works most of the part but what about third ones?

Just wants to tell about it, I hope its help.

Screenshots

Screenshot from 2023-01-07 12-32-38

I deleted from the #bot-chat channel, don't worry.

Additional information

No response

eddiejaoude commented 1 year ago

Thanks for raising the issue. I think this is a difficult one to solve as it would create a lot of false positives, for examples words that end in ...king

ErtanTaner commented 1 year ago

@eddiejaoude I agree with you, maybe adding a feature for no duplication at the beggining of the word solve some problems. I don't think there is no such a word like that in English right?

AryanSharma21 commented 1 year ago

I guess we can just use a NLTK spell checker to the text before feeding it to the bot . This way the word "kking" will be reduced to "king" and now the bot can recognize accordingly.

Vyvy-vi commented 1 year ago

that's a great idea and should resolve some of the cases :+1:

Amishapopli1 commented 1 year ago

Hey @eddiejaoude !! Will you please assign this issue to me if its still open??

Vyvy-vi commented 10 months ago

@Amishapopli1, are you still interested in working on this issue?

juhandergod commented 9 months ago

hey @Vyvy-vi , I'm interested in this issue, and I would like to work on it. :)

juhandergod commented 9 months ago

Hey @Vyvy-vi , there is a PR open for this issue, feel free to check it and leave some comments if needed :) thanks