mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
This deletes two swear words that were causing trouble for French speakers (they mean "delay" or "late"). It also puts English variants of those words back to the list of slurs (IIRC, previously the base words were in that list but were moved to swears because of the French issue).
117 lines
2.0 KiB
JavaScript
117 lines
2.0 KiB
JavaScript
/* eslint-disable no-multiple-empty-lines */
|
|
|
|
// CONTENT WARNING:
|
|
// 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.
|
|
//
|
|
//
|
|
// EDIT WARNING:
|
|
//
|
|
// If you think this file needs to be changed please do NOT create a
|
|
// pull request or issue in GitHub!
|
|
// Email admin@habitica.com to discuss the change you want made.
|
|
//
|
|
// All updates to this file must be done through a direct commit to limit
|
|
// the words visibility in GitHub to protect our coders, socialites, and
|
|
// wiki editors who look through PRs for information.
|
|
//
|
|
// When adding words that contain asterisks, put two backslashes before them.
|
|
//
|
|
// Do NOT enter any words with $ signs. E.g., "i$$" cannot be on the list
|
|
// because it would cause the word "I" to be blocked. Escaping $ signs with
|
|
// backslashes doesn't work.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Some words that are slurs in English are not included here
|
|
// because they are valid words in other languages and so must not cause an automatic mute.
|
|
// See the comments in bannedWords.js for details.
|
|
|
|
// 'spic' should not be banned because it's often used in the phrase "spic and span"
|
|
// 'retard', 'retards', and 'tards' are not treated as slurs or swear words because
|
|
// they mean "delay" in French and have no easy synoyms ('tards' is commonly used within
|
|
// words after an accented 'e' which the blocker's regular expression treats as a word boundary)
|
|
|
|
|
|
// DO NOT EDIT! See the comments at the top of this file.
|
|
const bannedSlurs = [
|
|
'TESTPLACEHOLDERSLURWORDHERE',
|
|
'TESTPLACEHOLDERSLURWORDHERE1',
|
|
|
|
|
|
|
|
|
|
'spics',
|
|
'tranny',
|
|
'trannies',
|
|
'nigger',
|
|
'niggers',
|
|
'fags',
|
|
'faggot',
|
|
'faggots',
|
|
'a retard',
|
|
'retarded',
|
|
'sodomite',
|
|
'sodomites',
|
|
'whore',
|
|
'whores',
|
|
'cunt',
|
|
'cunts',
|
|
];
|
|
|
|
export default bannedSlurs;
|