{
  "request": {
    "text": "The otter rested by the river bank. The otter returned to the marsh. A heron watched the otter.",
    "locks": "river bank",
    "budget": {
      "maxItems": 5,
      "maxOccurrences": 20,
      "maxParagraphRatio": 0.2
    },
    "choices": []
  },
  "result": {
    "schema": "learning-selection/1",
    "method": "amber-learning-selection/1.0",
    "source": {
      "sha256": "f1dde91f05f4e276620916b6821e5f773c92eaaae32570de407111c41d4976b8",
      "articleId": "1fgy45g",
      "offsetUnit": "UTF-16",
      "scope": {
        "startParagraph": 0,
        "endParagraph": 1
      },
      "paragraphs": [
        {
          "index": 0,
          "text": "The otter rested by the river bank. The otter returned to the marsh. A heron watched the otter."
        }
      ]
    },
    "reference": {
      "kind": "ngsl",
      "unit": "published-forms",
      "id": "ngsl/1.2-research-core",
      "sha256": "7136eda832f3087a1e7de08ae18978c87bd754159c17293e22c1056da9e344a7",
      "entries": 2809,
      "duplicates": 0
    },
    "budget": {
      "maxItems": 5,
      "maxOccurrences": 20,
      "maxParagraphRatio": 0.2
    },
    "choices": [],
    "counts": {
      "tokens": 18,
      "selected": 1,
      "occurrences": 3,
      "ratio": 0.16666666666666666,
      "locked": 2,
      "known": 0,
      "conflicts": 0
    },
    "paragraphs": [
      {
        "paragraph": 0,
        "tokens": 18,
        "retained": 3,
        "ratio": 0.16666666666666666
      }
    ],
    "items": [
      {
        "word": "the",
        "sourceCount": 5,
        "repeatValue": 4,
        "rank": 1,
        "eligible": 5,
        "negative": 0,
        "referenceGap": false,
        "occurrences": [
          {
            "id": "f1dde91f05f4e276620916b6821e5f773c92eaaae32570de407111c41d4976b8:0:0",
            "word": "the",
            "context": "The otter rested by the river bank.",
            "contextStart": 0,
            "occurrence": {
              "paragraph": 0,
              "start": 0,
              "end": 3,
              "sentenceId": "s0",
              "surface": "The"
            },
            "referenceGap": false,
            "state": "unconfirmed",
            "records": []
          },
          {
            "id": "f1dde91f05f4e276620916b6821e5f773c92eaaae32570de407111c41d4976b8:0:20",
            "word": "the",
            "context": "The otter rested by the river bank.",
            "contextStart": 0,
            "occurrence": {
              "paragraph": 0,
              "start": 20,
              "end": 23,
              "sentenceId": "s0",
              "surface": "the"
            },
            "referenceGap": false,
            "state": "unconfirmed",
            "records": []
          },
          {
            "id": "f1dde91f05f4e276620916b6821e5f773c92eaaae32570de407111c41d4976b8:0:36",
            "word": "the",
            "context": "The otter returned to the marsh.",
            "contextStart": 36,
            "occurrence": {
              "paragraph": 0,
              "start": 36,
              "end": 39,
              "sentenceId": "s1",
              "surface": "The"
            },
            "referenceGap": false,
            "state": "unconfirmed",
            "records": []
          },
          {
            "id": "f1dde91f05f4e276620916b6821e5f773c92eaaae32570de407111c41d4976b8:0:58",
            "word": "the",
            "context": "The otter returned to the marsh.",
            "contextStart": 36,
            "occurrence": {
              "paragraph": 0,
              "start": 58,
              "end": 61,
              "sentenceId": "s1",
              "surface": "the"
            },
            "referenceGap": false,
            "state": "unconfirmed",
            "records": []
          },
          {
            "id": "f1dde91f05f4e276620916b6821e5f773c92eaaae32570de407111c41d4976b8:0:85",
            "word": "the",
            "context": "A heron watched the otter.",
            "contextStart": 69,
            "occurrence": {
              "paragraph": 0,
              "start": 85,
              "end": 88,
              "sentenceId": "s2",
              "surface": "the"
            },
            "referenceGap": false,
            "state": "unconfirmed",
            "records": []
          }
        ],
        "requested": null,
        "decision": "replace",
        "reason": "reference_only",
        "conflicts": []
      },
      {
        "word": "otter",
        "sourceCount": 3,
        "repeatValue": 2,
        "rank": null,
        "eligible": 3,
        "negative": 0,
        "referenceGap": true,
        "occurrences": [
          {
            "id": "f1dde91f05f4e276620916b6821e5f773c92eaaae32570de407111c41d4976b8:0:4",
            "word": "otter",
            "context": "The otter rested by the river bank.",
            "contextStart": 0,
            "occurrence": {
              "paragraph": 0,
              "start": 4,
              "end": 9,
              "sentenceId": "s0",
              "surface": "otter"
            },
            "referenceGap": true,
            "state": "unconfirmed",
            "records": []
          },
          {
            "id": "f1dde91f05f4e276620916b6821e5f773c92eaaae32570de407111c41d4976b8:0:40",
            "word": "otter",
            "context": "The otter returned to the marsh.",
            "contextStart": 36,
            "occurrence": {
              "paragraph": 0,
              "start": 40,
              "end": 45,
              "sentenceId": "s1",
              "surface": "otter"
            },
            "referenceGap": true,
            "state": "unconfirmed",
            "records": []
          },
          {
            "id": "f1dde91f05f4e276620916b6821e5f773c92eaaae32570de407111c41d4976b8:0:89",
            "word": "otter",
            "context": "A heron watched the otter.",
            "contextStart": 69,
            "occurrence": {
              "paragraph": 0,
              "start": 89,
              "end": 94,
              "sentenceId": "s2",
              "surface": "otter"
            },
            "referenceGap": true,
            "state": "unconfirmed",
            "records": []
          }
        ],
        "requested": null,
        "decision": "retain",
        "reason": "repeated_original",
        "conflicts": []
      },
      {
        "word": "to",
        "sourceCount": 1,
        "repeatValue": 0,
        "rank": 5,
        "eligible": 1,
        "negative": 0,
        "referenceGap": false,
        "occurrences": [
          {
            "id": "f1dde91f05f4e276620916b6821e5f773c92eaaae32570de407111c41d4976b8:0:55",
            "word": "to",
            "context": "The otter returned to the marsh.",
            "contextStart": 36,
            "occurrence": {
              "paragraph": 0,
              "start": 55,
              "end": 57,
              "sentenceId": "s1",
              "surface": "to"
            },
            "referenceGap": false,
            "state": "unconfirmed",
            "records": []
          }
        ],
        "requested": null,
        "decision": "replace",
        "reason": "reference_only",
        "conflicts": []
      },
      {
        "word": "a",
        "sourceCount": 1,
        "repeatValue": 0,
        "rank": 6,
        "eligible": 1,
        "negative": 0,
        "referenceGap": false,
        "occurrences": [
          {
            "id": "f1dde91f05f4e276620916b6821e5f773c92eaaae32570de407111c41d4976b8:0:69",
            "word": "a",
            "context": "A heron watched the otter.",
            "contextStart": 69,
            "occurrence": {
              "paragraph": 0,
              "start": 69,
              "end": 70,
              "sentenceId": "s2",
              "surface": "A"
            },
            "referenceGap": false,
            "state": "unconfirmed",
            "records": []
          }
        ],
        "requested": null,
        "decision": "replace",
        "reason": "reference_only",
        "conflicts": []
      },
      {
        "word": "by",
        "sourceCount": 1,
        "repeatValue": 0,
        "rank": 27,
        "eligible": 1,
        "negative": 0,
        "referenceGap": false,
        "occurrences": [
          {
            "id": "f1dde91f05f4e276620916b6821e5f773c92eaaae32570de407111c41d4976b8:0:17",
            "word": "by",
            "context": "The otter rested by the river bank.",
            "contextStart": 0,
            "occurrence": {
              "paragraph": 0,
              "start": 17,
              "end": 19,
              "sentenceId": "s0",
              "surface": "by"
            },
            "referenceGap": false,
            "state": "unconfirmed",
            "records": []
          }
        ],
        "requested": null,
        "decision": "replace",
        "reason": "reference_only",
        "conflicts": []
      },
      {
        "word": "watched",
        "sourceCount": 1,
        "repeatValue": 0,
        "rank": 326,
        "eligible": 1,
        "negative": 0,
        "referenceGap": false,
        "occurrences": [
          {
            "id": "f1dde91f05f4e276620916b6821e5f773c92eaaae32570de407111c41d4976b8:0:77",
            "word": "watched",
            "context": "A heron watched the otter.",
            "contextStart": 69,
            "occurrence": {
              "paragraph": 0,
              "start": 77,
              "end": 84,
              "sentenceId": "s2",
              "surface": "watched"
            },
            "referenceGap": false,
            "state": "unconfirmed",
            "records": []
          }
        ],
        "requested": null,
        "decision": "replace",
        "reason": "reference_only",
        "conflicts": []
      },
      {
        "word": "returned",
        "sourceCount": 1,
        "repeatValue": 0,
        "rank": 337,
        "eligible": 1,
        "negative": 0,
        "referenceGap": false,
        "occurrences": [
          {
            "id": "f1dde91f05f4e276620916b6821e5f773c92eaaae32570de407111c41d4976b8:0:46",
            "word": "returned",
            "context": "The otter returned to the marsh.",
            "contextStart": 36,
            "occurrence": {
              "paragraph": 0,
              "start": 46,
              "end": 54,
              "sentenceId": "s1",
              "surface": "returned"
            },
            "referenceGap": false,
            "state": "unconfirmed",
            "records": []
          }
        ],
        "requested": null,
        "decision": "replace",
        "reason": "reference_only",
        "conflicts": []
      },
      {
        "word": "rested",
        "sourceCount": 1,
        "repeatValue": 0,
        "rank": 528,
        "eligible": 1,
        "negative": 0,
        "referenceGap": false,
        "occurrences": [
          {
            "id": "f1dde91f05f4e276620916b6821e5f773c92eaaae32570de407111c41d4976b8:0:10",
            "word": "rested",
            "context": "The otter rested by the river bank.",
            "contextStart": 0,
            "occurrence": {
              "paragraph": 0,
              "start": 10,
              "end": 16,
              "sentenceId": "s0",
              "surface": "rested"
            },
            "referenceGap": false,
            "state": "unconfirmed",
            "records": []
          }
        ],
        "requested": null,
        "decision": "replace",
        "reason": "reference_only",
        "conflicts": []
      },
      {
        "word": "bank",
        "sourceCount": 1,
        "repeatValue": 0,
        "rank": 627,
        "eligible": 0,
        "negative": 0,
        "referenceGap": false,
        "occurrences": [],
        "requested": null,
        "decision": "excluded",
        "reason": "protected_or_known",
        "conflicts": []
      },
      {
        "word": "river",
        "sourceCount": 1,
        "repeatValue": 0,
        "rank": 1176,
        "eligible": 0,
        "negative": 0,
        "referenceGap": false,
        "occurrences": [],
        "requested": null,
        "decision": "excluded",
        "reason": "protected_or_known",
        "conflicts": []
      },
      {
        "word": "heron",
        "sourceCount": 1,
        "repeatValue": 0,
        "rank": null,
        "eligible": 1,
        "negative": 0,
        "referenceGap": true,
        "occurrences": [
          {
            "id": "f1dde91f05f4e276620916b6821e5f773c92eaaae32570de407111c41d4976b8:0:71",
            "word": "heron",
            "context": "A heron watched the otter.",
            "contextStart": 69,
            "occurrence": {
              "paragraph": 0,
              "start": 71,
              "end": 76,
              "sentenceId": "s2",
              "surface": "heron"
            },
            "referenceGap": true,
            "state": "unconfirmed",
            "records": []
          }
        ],
        "requested": null,
        "decision": "replace",
        "reason": "paragraph_budget",
        "conflicts": []
      },
      {
        "word": "marsh",
        "sourceCount": 1,
        "repeatValue": 0,
        "rank": null,
        "eligible": 1,
        "negative": 0,
        "referenceGap": true,
        "occurrences": [
          {
            "id": "f1dde91f05f4e276620916b6821e5f773c92eaaae32570de407111c41d4976b8:0:62",
            "word": "marsh",
            "context": "The otter returned to the marsh.",
            "contextStart": 36,
            "occurrence": {
              "paragraph": 0,
              "start": 62,
              "end": 67,
              "sentenceId": "s1",
              "surface": "marsh"
            },
            "referenceGap": true,
            "state": "unconfirmed",
            "records": []
          }
        ],
        "requested": null,
        "decision": "replace",
        "reason": "paragraph_budget",
        "conflicts": []
      }
    ]
  }
}
