bond95 / ToxicBot

Toxic bot for telegram
1 stars 2 forks source link

If the language wasn't detected correctly, use a language from the same alphabet #2

Closed DevAlone closed 3 years ago

DevAlone commented 3 years ago

whatlang library sometimes detects incorrect language with the same or similar alphabet, for example russian|belorussian|ukrainian or english|czech|slovak. So in case when we don't have data for the detected language, we can use messages from a language with the same alphabet using script field of whatlang, instead of just a random language.

bond95 commented 3 years ago

@DevAlone I think it's already fixed