chore(words): reclassify some words as slurs

Also moves bannedSlurs.js to the same directory as bannedWords.js.
This commit is contained in:
SabreCat
2017-07-19 21:41:08 +00:00
parent c350665076
commit 83a1b9c34e
3 changed files with 34 additions and 23 deletions

View File

@@ -15,7 +15,7 @@ import nconf from 'nconf';
import Bluebird from 'bluebird';
import bannedWords from '../../libs/bannedWords';
import { TAVERN_ID } from '../../models/group';
import bannedSlurs from '../../bannedSlurs';
import bannedSlurs from '../../libs/bannedSlurs';
const FLAG_REPORT_EMAILS = nconf.get('FLAG_REPORT_EMAIL').split(',').map((email) => {
return { email, canSend: true };

View File

@@ -1,7 +1,7 @@
/* eslint-disable no-multiple-empty-lines */
// CONTENT WARNING:
// This file contains slurs, swear words, religious oaths, and words related to addictive substance and adult topics.
// This file contains slurs on race, gender, sexual orientation, etc.
// Do not read this file if you do not want to be exposed to those words.
// The words are stored in an array called `bannedSlurs` which is then exported with `module.exports = bannedSlurs;`
// This file does not contain any other code.
@@ -51,6 +51,37 @@
let bannedSlurs = ['TEST_PLACEHOLDER_SLUR_WORD_HERE'];
let bannedSlurs = [
'TEST_PLACEHOLDER_SLUR_WORD_HERE',
'nigger',
'niggers',
'nigga',
'niggas',
'fag',
'fags',
'faggot',
'faggots',
'whore',
'whores',
'slut',
'sluts',
'cunt',
'cunts',
'spic',
'spics',
'tranny',
'trannies',
'tard',
'tards',
];
module.exports = bannedSlurs;

View File

@@ -116,26 +116,6 @@ let bannedWords = [
'bitching',
'b\\*tch',
'nigger',
'niggers',
'nigga',
'niggas',
'fag',
'fags',
'faggot',
'faggots',
'whore',
'whores',
'slut',
'sluts',
'cunt',
'cunts',
'spic',
'spics',
'tranny',
'trannies',
'tard',
'tards',
'retard',
'retards',
'bastard',