tags.forEach(function (element) {
      if (tagsPerCase[element.case] === undefined) {
        tagsPerCase[element.case] = []
      }