From 65e71140ee600b23b6f9f7175b1626984a2148a3 Mon Sep 17 00:00:00 2001 From: Alys Date: Sat, 13 May 2017 00:48:35 +1000 Subject: [PATCH] adjust banned words list -- TRIGGER / CONTENT WARNING: assault, slurs, swearwords, etc --- website/server/libs/bannedWords.js | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/website/server/libs/bannedWords.js b/website/server/libs/bannedWords.js index 2cf09e6117..aeaa4ec0e2 100644 --- a/website/server/libs/bannedWords.js +++ b/website/server/libs/bannedWords.js @@ -49,11 +49,18 @@ -// Do not include the following words: +// Do not block the following words: // 'ale' because it's Polish for 'but'. -// legitimate given names: 'Jesus', 'Sherry' -// legitimate surnames: 'Christ' -// legitimate place names: 'Dyke' +// 'af' because it's Danish for 'of'. +// 'god' because it is allowed for use in ways that are not oaths. +// Tobacco products because they are more often mentioned when celebrating quitting than in a way that might trigger addictive behaviour. +// Legitimate given names: 'Jesus', 'Sherry' +// Legitimate surnames: 'Christ' +// Legitimate place names: 'Dyke' +// +// Explanations for some blocked words: +// 'fag' means 'subject' in some Scandinavian languages but we have decided to block it for its use as an English-language slur; hopefully the Scandinavian languages have suitable synonyms. +// 'slut' means 'end' in Danish but is blocked for the same reason as 'fag'. let bannedWords = [ 'TEST_PLACEHOLDER_SWEAR_WORD_HERE', @@ -66,7 +73,9 @@ let bannedWords = [ 'dammit', 'damned', 'omg', - 'god', + 'oh my god', + 'oh god', + 'oh, god', 'g\\*d', 'shit', @@ -90,7 +99,6 @@ let bannedWords = [ 'fu', 'wtf', 'dafuq', - 'af', 'ass', 'arse',