def fuzzy_search(user_input, corpus):
    candidates = []
    for word in corpus:
        current_score = calculate_score(user_input, word)
        if 0 > current_score:
            candidates.append((word, current_score))
    return [c[0] for c in sorted(candidates, key=lambda x: x[1], reverse=True)]
dataset/ETHPy150Open awslabs/aws-shell/awsshell/fuzzy.py/fuzzy_search/swapped operands of `>`