about summary refs log tree commit diff
path: root/src/lib/labeling/const.ts
blob: 8403fdf1ae1919ba2ee1c747bc0a68c83d85a09c (plain) (blame)
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
import {LabelPreferencesModel} from 'state/models/ui/preferences'

export interface LabelValGroup {
  id: keyof LabelPreferencesModel | 'illegal' | 'unknown'
  title: string
  values: string[]
}

export const ILLEGAL_LABEL_GROUP: LabelValGroup = {
  id: 'illegal',
  title: 'Illegal Content',
  values: ['csam', 'dmca-violation', 'nudity-nonconsentual'],
}

export const UNKNOWN_LABEL_GROUP: LabelValGroup = {
  id: 'unknown',
  title: 'Unknown Label',
  values: [],
}

export const CONFIGURABLE_LABEL_GROUPS: Record<
  keyof LabelPreferencesModel,
  LabelValGroup
> = {
  nsfw: {
    id: 'nsfw',
    title: 'Sexual Content',
    values: ['porn', 'nudity', 'sexual'],
  },
  gore: {
    id: 'gore',
    title: 'Violent / Bloody',
    values: ['gore', 'self-harm', 'torture'],
  },
  hate: {
    id: 'hate',
    title: 'Political Hate-Groups',
    values: ['icon-kkk', 'icon-nazi', 'icon-confederate'],
  },
  spam: {
    id: 'spam',
    title: 'Spam',
    values: ['spam'],
  },
  impersonation: {
    id: 'impersonation',
    title: 'Impersonation',
    values: ['impersonation'],
  },
}