{
  "id": "emotion",
  "kind": "datatype",
  "status": "draft",
  "name": "Emotion (category)",
  "doc": "Emotion that a text, a voice recording or a face expresses, as emotion classifiers and lexicons label it: the six basic emotions of Paul Ekman (anger, disgust, fear, happiness, sadness, surprise), the eight primary emotions of the wheel of Robert Plutchik (joy, trust, fear, surprise, sadness, disgust, anger, anticipation), which the NRC Emotion Lexicon uses, and often a neutral class. Tables of tweets, reviews and survey answers count or average them. The polarity of a text (positive, negative, neutral) is sentiment.",
  "parent": "category",
  "is_pii": false,
  "categories": [
    "texts"
  ],
  "langs": [
    "en"
  ],
  "classification": "categorical",
  "examples": [
    {
      "value": "anger",
      "valid": true
    },
    {
      "value": "joy",
      "valid": true
    },
    {
      "value": "sadness",
      "valid": true
    },
    {
      "value": "anticipation",
      "description": "one of the eight emotions of Plutchik",
      "valid": true
    },
    {
      "value": "surprise",
      "valid": true
    }
  ],
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Emotion_classification"
    }
  ],
  "translations": {
    "ru": {
      "name": "Эмоция (категория)"
    }
  },
  "detected_by": {
    "tools": [
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "emotionbyname",
        "type": "field",
        "match": "regex",
        "file": "common/analytics.yaml"
      },
      {
        "rule": "emotionvalue",
        "type": "data",
        "match": "func",
        "file": "common/analytics.yaml"
      }
    ]
  },
  "quality": {
    "score": 65,
    "missing": [
      "regexp",
      "negative example",
      "mapping (Wikidata, Schema.org, ...)"
    ]
  },
  "source": {
    "path": "data/datatypes/any/texts/emotion.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/texts/emotion.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/texts/emotion.yaml"
  },
  "urls": {
    "html": "https://registry.apicrafter.io/datatype/emotion",
    "json": "https://registry.apicrafter.io/api/v1/datatypes/emotion.json"
  }
}