def findMostSimilar(referenceList, queryString):
  score = 0
  for referenceString in referenceList:
    queryScore = int( 100 * SequenceMatcher(None, referenceString.lower(), queryString.lower()).ratio())
    if queryScore > score:
      score       = queryScore
      matchString = referenceString

  # Return the most closely matched string.
  return matchString
dataset/ETHPy150Open gkno/gkno_launcher/src/gkno/stringOperations.py/findMostSimilar/original