---
content_id: "121077946"
title: MultipleMethods
---
# MultipleMethods

## Notes on Scored Data

Scored data for multiple methods will consist of a hash of key value pairs where the key
is the key of the scoring_data and the value is the scored_data of the scoring_algoritm
that the scoring_data specifies.

## scoring_data:

```js
{
  "value": [
    {
      "id": "uuid1",
      "scoring_algorithm": "Equivalence",
      "scoring_data": { "value": "uuid1a" }
    },
    {
      "id": "uuid2",
      "scoring_algorithm": "TextRegex",
      "scoring_data": { "value": "(p|P)resident" }
    },
    {
      "id": "uuid3",
      "scoring_algorithm": "TextCloseEnough",
      "scoring_data": {
        "value": "President",
        "edit_distance": 1
       }
    }


  ]
}
```

## Correct Case
### user_response:

```js
{
  "value": [
    {
      "id": "uuid1",
      "value": "uuid1a",
      "type": "Text"
    },
    {
      "id": "uuid2",
      "value": "president",
      "type": "Text"
    },
    {
      "id": "uuid3",
      "value": "Prezident",
      "type": "Text"
    }
  ]
}
```

### scored_data:

```js
{
  "value": {
    "uuid1": {
      "uuid1a": {
        "result_score": 1,
        "user_responded": true
      }
    },
    "uuid2": {
      "result_score": 0, "user_response": "president"
    },
    "uuid3": {
      "result_score": 1, "correct_answer": "President", "user_response": "Prezident"
    }
  }
}
```

## Incorrect Case
### user_response:

```js
{
  "value": [
    {
      "id": "uuid1",
      "value": "uuid1f",
      "type": "Text"
    },
    {
      "id": "uuid2",
      "value": "friend",
      "type": "Text"
    },
    {
      "id": "uuid3",
      "value": "Obama",
      "type": "Text"
    }
  ]
}
```

### scored_data:

```js
{
  "value": {
    "uuid1": {
      "uuid1a": {
        "result_score": 1,
        "user_responded": false
      },
      "uuid1f": {
        "result_score": 0,
        "user_responded": true
      }
    },
    "uuid2": {
      "result_score": 0, "user_response": "Friend"
    },
    "uuid3": {
      "result_score": 0, "correct_answer": "President", "user_response": "Obama"
    }
  }
}
```
