Fuzzy matching for completions

I have no idea how to count scores ((