 
 public extension String
 {
-    func score(_ word: String, fuzziness: Double? = nil) -> Double
+    func score(word: String, fuzziness: Double? = nil) -> Double
     {
         // If the string is equal to the word, perfect match.
         if self == word {
             return 1
         }
-
+        
         //if it's not a perfect match and is empty return 0
         if word.isEmpty || self.isEmpty {
             return 0
         }
-
+        
         var
         runningScore = 0.0,
         charScore = 0.0,

//  Based on string_score 0.1.21 by Joshaven Potter.
//  https://github.com/joshaven/string_score/
//

                    continue
                }
            }
            
            // Same case bonus.
            if (string[idxOf] == word[word.index(word.startIndex, offsetBy: i)]) {
                charScore += 0.1
            }
            
            // Update scores and startAt position for next round of indexOf
            runningScore += charScore
            startAt = string.index(idxOf, offsetBy: 1)
        }
        
        // Reduce penalty for longer strings.
        finalScore = 0.5 * (runningScore / Double(strLength) + runningScore / Double(wordLength)) / fuzzies
        
        if (lWord[lWord.startIndex] == lString[lString.startIndex]) && (finalScore < 0.85) {
            finalScore += 0.15
        }
        
        return finalScore
    }
}
