function normalize(value, distances) {
  const min = distances[0][1]
  const max = value.length * MAX_DIFFERENCE - min
  let index = -1

  while (++index < distances.length) {
    distances[index][1] = 1 - (distances[index][1] - min) / max || 0
  }

  return distances
}
Normalize the difference for each tuple in
`distances`.

@param {string} value
  Value to normalize.
@param {Array<TrigramTuple>} distances
  List of distances.
@return {Array<TrigramTuple>}
  Normalized distances.