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 #1314

Merged
Changes from all 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

Choose a reason for hiding this comment

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

caught?

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
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