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

add slurs to reserved words #1318

Merged
merged 4 commits into from
Jul 13, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions packages/identifier/src/reserved.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1047,10 +1047,61 @@ const famousAccounts = [
'zerohora',
]

// Needs additional work to add more words that should be cought and regex added to catch common variations

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice. glad this is open. just a typo in the comment. should be "caught" not "cought"

Separately, first time in here and im on my phone, TODOs okay in comment like this or should we open a separate issue to cover this?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just saw the previous PR. probs not worth a change right now. disregard! ty!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah TODOs in comments are totally fine

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi, trying to figure out how this all works & hope it's okay to leave this here. i've appended the list with an additional set of 25-30 terms and variations, each of which i believe falls under the category of "absolutely bad and is never used in a reclaimed context." viewable here: https://gist.github.com/gay-frogs/aaa6ead819b62a3538d95b1ded6e571a

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

additional set of 25-30 terms and variations, each of which i believe falls under the category of "absolutely bad and is never used in a reclaimed context." viewable here: https://gist.github.com/gay-frogs/aaa6ead819b62a3538d95b1ded6e571a

The term Yid is literally just the Yiddish word for Jew. It is used as a slur by non-Jews but it's routinely used by Jews, both Yiddish and English speakers, in its original context.

I believe there may be similar concerns with some of the other entries.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

additional set of 25-30 terms and variations, each of which i believe falls under the category of "absolutely bad and is never used in a reclaimed context." viewable here: https://gist.github.com/gay-frogs/aaa6ead819b62a3538d95b1ded6e571a

I believe there may be similar concerns with some of the other entries.

"Goyim" jumps out at me in that list because it's legitimately used neutrally by Jews to mean "non-Jews," especially when talking about antisemitism. It's used in Yiddish and in modern Hebrew with the same meaning.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for these. i was not fully aware of those definitions and appreciate you all for the corrections

const slurs = [
'chinaman',
'chinamen',
'chink',
'coolie',
'coon',
'eskimo',
'golliwog',
'gook',
'gyp',
'gypsy',
'half-breed',
'halfbreed',
'heeb',
'jap',
'kaffer',
'kaffir',
'kaffir',
'kaffre',
'kafir',
'kike',
'kraut',
'negress',
'negro',
'nig',
'nig-nog',
'nigga',
'nigger',
'nigguh',
'pajeet',
'paki',
'pickaninnie',
'pickaninny',
'raghead',
'retard',
'sambo',
'shemale',
'soyboy',
'spade',
'sperg',
'spic',
'squaw',
'tard',
'wetback',
'wigger',
'wop',
'yid',
]

export const reservedSubdomains: Record<string, boolean> = [
...atpSpecific,
...commonlyReserved,
...famousAccounts,
...slurs,
].reduce((acc, cur) => {
return {
...acc,
Expand Down