         incident.status = 'suspected'
     incident.articleId = articleId
     # The disease field is set to the last disease mentioned.
-    diseaseTerritory.annotations.forEach (annotation)->
+    diseaseTerritory.annotations.forEach (annotation) ->
       incident.resolvedDisease =
         id: annotation.resolutions[0].entity.id
         text: annotation.resolutions[0].entity.label
-    speciesTerritory.annotations.forEach (annotation)->
+    speciesTerritory.annotations.forEach (annotation) ->
       incident.species =
         id: annotation.resolutions[0].entity.id
         text: annotation.resolutions[0].entity.label


# Parse text into an array of sentences separated by
# periods, colons, semi-colons, or double linebreaks.
export parseSents = (text)->
  idx = 0
  sents = []
  sentStart = 0

  # Split annotations with multiple offsets
  # and sort by offset.
  annotationsWithSingleOffsets = []
  annotationsWithOffsets.forEach (annotation) ->
    annotation.textOffsets.forEach (textOffset) ->
      splitAnnotation = Object.create(annotation)
      splitAnnotation.textOffsets = [textOffset]
      annotationsWithSingleOffsets.push(splitAnnotation)
  annotationsWithOffsets = _.sortBy(annotationsWithSingleOffsets, (annotation) ->
    annotation.textOffsets[0][0]
  )
  annotationIdx = 0
