Skip to content

Commit

Permalink
add slurs to reserved words (#1318)
Browse files Browse the repository at this point in the history
* add slurs to reserved words (#1314)

* Update reserved.ts

Add slurs to reserved words

* Update reserved.ts

fix typo

* Update reserved.ts to clean up the slur list

* linting

* pluralise

---------

Co-authored-by: jess <jesslarkdev+gh@gmail.com>
  • Loading branch information
dholms and jesslark authored Jul 13, 2023
1 parent c78d30f commit 3d47eed
Showing 1 changed file with 86 additions and 0 deletions.
86 changes: 86 additions & 0 deletions packages/identifier/src/reserved.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1047,10 +1047,96 @@ const famousAccounts = [
'zerohora',
]

// Needs additional work to add more words that should be caught and regex added to catch common variations
const slurs = [
'chinaman',
'chinamen',
'chink',
'chinks',
'coolie',
'coolies',
'coon',
'coons',
'golliwog',
'golliwogs',
'gook',
'gooks',
'gyp',
'gyps',
'half-breed',
'half-breeds',
'halfbreed',
'halfbreeds',
'heeb',
'heebs',
'jap',
'japs',
'kaffer',
'kaffers',
'kaffir',
'kaffirs',
'kaffre',
'kaffres',
'kafir',
'kafirs',
'kike',
'kikes',
'kraut',
'krauts',
'negress',
'negro',
'negros',
'nig',
'nigs',
'nig-nog',
'nig-nogs',
'nigga',
'niggas',
'nigger',
'niggers',
'nigguh',
'nigguhs',
'pajeet',
'pajeets',
'paki',
'pakis',
'pickaninnie',
'pickaninnies',
'pickaninny',
'pickaninnys',
'raghead',
'ragheads',
'retard',
'retards',
'sambo',
'sambos',
'shemale',
'shemales',
'spade',
'spades',
'sperg',
'spergs',
'spic',
'spics',
'squaw',
'squaws',
'tard',
'tards',
'wetback',
'wetbacks',
'wigger',
'wiggers',
'wop',
'wops',
'yid',
'yids',
]

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

0 comments on commit 3d47eed

Please sign in to comment.