This repository has been archived by the owner on Mar 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathrules.js
419 lines (380 loc) · 12.2 KB
/
rules.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
// jscs:disable maximumLineLength
'use strict';
module.exports = [
// Use of gendered word
{
name: 'Use of gendered word',
reason: 'Use of gendered words could indicate that you\'re discriminating in favour of a certain gender.',
solution: 'Replace gendered words with gender-neutral alternatives.',
level: 'error',
increment: {
sexism: 1
},
triggers: [
'boys?',
'bros?',
'broth(a|er)s?',
'chicks?',
'dads?',
'dudes?',
'fathers?',
'females?',
'gentlem[ae]n',
'girls?',
'grandfathers?',
'grandmas?',
'grandmothers?',
'grandpas?',
'gran',
'grann(y|ies)',
'guys?',
'husbands?',
'lad(y|ies)?',
'm[ae]n',
'm[ou]ms?',
'males?',
'momm(y|ies)',
'mommas?',
'mothers?',
'papas?',
'sist(a|er)s?',
'wi(fe|ves)',
'wom[ae]n'
]
},
// Use of gendered pronoun
{
name: 'Use of gendered pronoun',
reason: 'Use of gendered pronouns indicate that you\'re discriminating in favour of a certain gender, or fail to recognise that gender is not binary.',
solution: 'Replace gendered pronouns with "them" or "they".',
level: 'error',
increment: {
sexism: 1
},
triggers: [
'he|her|him|his|she'
]
},
// Use of derogatory gendered term
{
name: 'Use of derogatory gendered term',
reason: 'When you use derogatory gendered terms, you\'re being discriminatory. These are offensive in a job post.',
solution: 'Remove these words.',
level: 'error',
increment: {
sexism: 2,
culture: 1
},
triggers: [
'bia?tch(es)?',
'bimbos?',
'hoes?',
'hunks?',
'milfs?',
'slags?',
'sluts?',
'stallions?',
'studs?'
]
},
// Mention of facial hair
{
name: 'Mention of facial hair',
reason: 'The use of "grizzled" or "bearded" indicates that you\'re only looking for male developers.',
solution: 'Remove these words.',
level: 'error',
increment: {
sexism: 1
},
triggers: [
'beard(ed|s|y)?',
'grizzl(ed|y)'
]
},
// Use of sexualised terms
{
name: 'Use of sexualised terms',
reason: 'Terms like "sexy code" are often used if the person writing a post doesn\'t know what they are talking about or can\'t articulate what good code is. It can also be an indicator of bro culture or sexism.',
solution: 'Remove these words.',
level: 'warning',
increment: {
culture: 1
},
triggers: [
'gay for',
'sexy',
'hawt',
'phat'
]
},
// Use of bro terminology
{
name: 'Use of bro terminology',
reason: 'Bro culture terminology can really reduce the number of people likely to show interest. It discriminates against anyone who doesn\'t fit into a single gender-specific archetype.',
solution: 'Remove these words.',
level: 'error',
increment: {
culture: 1
},
triggers: [
'bros?',
'brogramm(er|ers|ing)',
'crank',
'crush',
'dude(bro)?s?',
'hard[ -]*core',
'hella',
'mak(e|ing) it rain',
'skillz'
]
},
// Use of dumb job titles
{
name: 'Use of dumb job titles',
reason: 'Referring to tech people as Ninjas or similar devalues the work that they do and shows a lack of respect and professionalism. It\'s also rather cliched and can be an immediate turn-off to many people.',
solution: 'Consider what you\'re really asking for in an applicant and articulate this in the job post.',
level: 'warning',
increment: {
culture: 1,
realism: 1
},
triggers: [
'gurus?',
'hero(es|ic)?',
'ninjas?',
'rock[ -]*stars?',
'super[ -]*stars?',
'badass(es)?',
'BAMF'
]
},
// Mention of hollow benefits
{
name: 'Mention of hollow benefits',
reason: 'Benefits such as "beer fridge" and "pool table" are not bad in themselves, but their appearance in a job post often disguises the fact that there are few real benefits to working for a company. Be wary of these.',
solution: 'Ensure you\'re outlining real employee benefits if you have them. Don\'t use these as a carrot.',
level: 'warning',
increment: {
culture: 1,
recruiter: 1
},
triggers: [
'ales?',
'beers?',
'brewskis?',
'coffee',
'(foos|fuss)[ -]*ball',
'happy[ -]*hours?',
'keg(erator)?s?',
'lagers?',
'nerf[ -]*guns?',
'ping[ -]*pong?',
'pints?',
'pizzas?',
'play\\s*stations?',
'pool[ -]*table|pool',
'rock[ -]*walls?',
'table[ -]*football',
'table[ -]*tennis',
'wiis?',
'xbox(es|s)?',
'massages?'
]
},
// Competitive environment
{
name: 'Competitive environment',
reason: 'Competition can be healthy, but for a lot of people a heavily competitive environment can be a strain. You could also potentially be excluding people who have more important outside-of-work commitments, such as a family.',
solution: 'Be wary if you come across as competitive, aim for welcoming and friendly.',
level: 'notice',
increment: {
realism: 1,
recruiter: 1
},
triggers: [
'compete(?!nt|nce|ncy|ncies)',
'competition',
'competitive(?! salary| pay)',
'cutting[ -]edge',
'fail',
'fore[ -]*front',
'super[ -]*stars?',
'the best',
'reach the top',
'top of .{2,8} (game|class)',
'win'
]
},
// New starter expectations
{
name: 'New starter expectations',
reason: 'Terms like "hit the ground running" and others can indicate that the person writing a job post is unaware of the time and effort involved in preparing a new starter for work.',
solution: 'Reevaluate the use of these terms.',
level: 'notice',
increment: {
realism: 1
},
triggers: [
'hit[ -]the[ -]ground[ -]running',
'juggle',
'tight deadlines?'
]
},
// Use of Meritocracy
{
name: 'Use of Meritocracy',
reason: 'The term "meritocracy" is originally a satirical term relating to how we justify our own successes. Unfortunately, it\'s probably impossible to objectively measure merit, so this usually indicates that the company in question rewards people similar to themselves or using specious metrics.',
solution: 'Reevaluate the use of this term.',
level: 'notice',
increment: {
realism: 1
},
triggers: [
'meritocra(cy|cies|tic)'
]
},
// Use of profanity
{
name: 'Use of profanity',
reason: 'While swearing in the workplace can be OK, you shouldn\'t be using profanity in a job post – it\'s unprofessional.',
solution: 'Remove these words.',
level: 'warning',
increment: {
recruiter: 1
},
triggers: [
'bloody',
'bugger',
'cunt',
'damn',
'fuck(er|ing)?',
'piss(ing)?',
'shit',
'motherfuck(ers?|ing)'
]
},
// Use of "visionary" terminology
{
name: 'Use of "visionary" terminology',
reason: 'Terms like "blue sky" and "enlightened" often indicate that a non technical person (perhaps a CEO or stakeholder) has been involved in writing the post. Be down-to-earth, and explain things in plain English.',
solution: 'Reword these phrases, say what you actually mean.',
level: 'warning',
increment: {
culture: 1,
realism: 1
},
triggers: [
'blue[ -]*sk(y|ies)',
'enlighten(ed|ing)?',
'green[ -]*fields?',
'incentivi[sz]e',
'paradigm',
'producti[sz]e',
'reach(ed|ing)? out',
'synerg(y|ize|ise)',
'visionar(y|ies)'
]
},
// Need to reassure
{
name: 'Need to reassure',
reason: 'Something feels off when you need to reassure someone of something that should definitely not be an issue in any workplace.',
solution: 'Reassess the need for these phrases.',
level: 'notice',
increment: {
culture: 1
},
triggers: [
'drama[ -]*free',
'stress[ -]*free'
]
},
// Mention of legacy technology
{
name: 'Mention of legacy technology',
reason: 'Legacy technologies can reduce the number of people interested in a job. Sometimes we can\'t avoid this, but extreme legacy tech can often indicate that a company isn\'t willing to move forwards or invest in career development.',
solution: 'If possible (and you\'re being honest), play down the use of this technology.',
level: 'notice',
increment: {
realism: 1,
tech: 1
},
triggers: [
'cobol',
'cvs',
'front[ -]*page',
'rcs',
'sccs',
'source[ -]*safe',
'vb\\s*6',
'visual[ -]*basic\\s*6',
'vbscript'
]
},
// Mention of a development environment
{
name: 'Mention of a development environment',
reason: 'Unless you\'re building in a something which requires a certain development environment (e.g. iOS development and XCode), it shouldn\'t matter which tools a developer decides to use to write code – their output will be better if they are working in a familiar environment.',
solution: 'Don\'t specify a development environment unless absolutely necessary.',
level: 'notice',
increment: {
culture: 1,
tech: 1
},
triggers: [
'atom',
'bb[ -]*edit',
'dream[ -]*weaver',
'eclipse',
'emacs',
'net[ -]*beans',
'note[ -]*pad',
'sublime[ -]*text',
'text[ -]*wrangler',
'text[ -]*mate',
'vim?',
'visual[ -]*studio'
]
},
// Use of expanded acronyms
{
name: 'Use of expanded acronyms',
reason: 'Tech people know their acronyms; you come across as not very tech-savvy if you expand them.',
solution: 'Use acronyms in place of these words.',
level: 'warning',
increment: {
recruiter: 1,
tech: 1
},
triggers: [
'cascading[ -]?style[ -]?sheets',
'hyper[ -]?text([ -]?mark[ -]?up([ -]?language)?)?'
]
},
// Java script?
{
name: 'Java script?',
reason: 'JavaScript is one word. You write JavaScript, not javascripts or java script.',
solution: 'Replace this word with "JavaScript".',
level: 'error',
increment: {
recruiter: 1
},
triggers: [
'java[ -]script|java[ -]*scripts'
]
},
// Ruby on Rail?
{
name: 'Ruby on Rail?',
reason: 'Ruby On Rails is plural – there is more than one rail.',
solution: 'Replace this with "Ruby on Rails".',
level: 'error',
increment: {
recruiter: 1
},
triggers: [
'ruby on rail'
]
}
];