code: def sim(sense1: "wn.Synset", sense2: "wn.Synset", option: str = "path") -> float:
      
      option = option.lower()
      if option.lower() in ["path", "path_similarity",
                          "wup", "wupa", "wu-palmer", "wu-palmer",
                          'lch', "leacock-chordorow"]:
          return similarity_by_path(sense1, sense2, option)
      elif option.lower() in ["res", "resnik",
                            "jcn","jiang-conrath",
                            "lin"]:
          return similarity_by_infocontent(sense1, sense2, option)
docs: Calculates similarity based on user's choice.
  
      :param sense1: A synset.
      :param sense2: A synset.
      :param option: String, one of ('path', 'wup', 'lch', 'res', 'jcn', 'lin').
      :return: A float, similarity measurement.