docs: def similarity(self, other: Trigram) -> Tuple[float, L]:
          """
          Returns the best matching score and the associated label.
          """
  
          return max(
              ((t % other, l) for t, l in self.trigrams),
              key=lambda x: x[0],
          )