get-alex / alex

Catch insensitive, inconsiderate writing
https://alexjs.com
MIT License
4.81k stars 208 forks source link

Slav word #293

Closed vladislav-yashin closed 4 years ago

vladislav-yashin commented 4 years ago

Alex marks the words slav and slavs (not a ~slave~) as profane. It's a bit offensive, not it?

wooorm commented 4 years ago

Thanks for catching that, that’s clearly a bug.

Slav should probably be rated as 0 here? https://github.com/words/cuss/blob/b99c3cbdb301bcd2eb5eeba862e86dc7a990ba30/index.json#L1502 (warning: contains obscene words)

Is this something you could PR?

vladislav-yashin commented 4 years ago

It might be a solution, but I wonder if it could affect any other words that contain slav inside and are really profane. Maybe, these words should be listed explicitly? I don't have enough confindence in English to investigate that.

wooorm commented 4 years ago

I wonder if it could affect any other words that contain slav inside and are really profane

Cuss is used in retext-profanities, and then in this project. We don’t have warnings for partial matches. And: if we use 0, Slav would still be warned about, but with softer language: it’s profane in some cases.

Maybe, these words should be listed explicitly

Can you clarify what you mean by this? Where should they be listed?

wooorm commented 4 years ago

Thanks for the idea, went ahead and changes cuss. Released!