         }
       }
     }
-    return distance[str1.count][str2.count] <= threshold
+    return distance[str1.count][str2.count]
   }
 
   /// Adds a "Needs actionability review" label to the issue.

    }
    labelsToAdd.append(contentsOf: labelsFromPaths)
    if let titleLabel = getTitleLabel(title: PRData.title) {
      // check if there is a title label but it needs fixing.
      let unbracketedTitleLabel = String(titleLabel.dropFirst().dropLast())
      for label in labelsFromPaths {
        let unbracketedLabel = String(label.dropFirst().dropLast())
        if label == titleLabel {
          break
        } else if checkIfTwoStringsAreSimilar(str1: unbracketedLabel,
                                                              str2: unbracketedTitleLabel,
                                                              threshold: 2) {
          if let range = PRData.title.range(of: "]") {
            let titleWithoutLabel = PRData.title[range.upperBound...]
            var updatedTitle = label
            if titleWithoutLabel.first != " " {
              updatedTitle += " " + titleWithoutLabel
            } else {

    let titleLabel = getTitleLabel(title: issueData.title)
    if let titleLabel = titleLabel {
      let unbracketedTitleLabel = String(titleLabel.dropFirst().dropLast())
      // Check if title label is a component name
      if componentNames.contains(unbracketedTitleLabel) {
        labelsToAdd.append(titleLabel)
      } else {
        // Check if it's close to a component name, and then fix it
        var labelDist = [String: Int]()
        for name in componentNames {
          // This isn't a component folder, continue
          if name.lowercased() == name {
            continue
          }
          labelDist[name] = getStringDistance(str1: name.lowercased(),
                                              str2: unbracketedTitleLabel.lowercased())
        }
        // get minimum distance
        let (lbl, dist) = labelDist.reduce(("", Int.max)) { $0.1 > $1.value ? ($1.key, $1.value) : $0 }
        if dist <= 2 {
          let bracketedLabel = "[" + lbl + "]"
          labelsToAdd.append(bracketedLabel)
          // update title
          if let range = issueData.title.range(of: "]") {
            let titleWithoutLabel = issueData.title[range.upperBound...]
            var updatedTitle = bracketedLabel
            if titleWithoutLabel.first != " " {
              updatedTitle += " " + titleWithoutLabel
            } else {
