View Source ExFuzzywuzzy.Similarity behaviour (ex_fuzzywuzzy v0.3.0)

Defines the ExFuzzywuzzy.Similarity behaviour for implementing a similarity calculator.

A custom calculator expects two strings and calculates the similarity between them as a floating-point decimal between 0 and 1.

Out-of-the-box, ExFuzzywuzzy provides Levenshtein and Jaro algorithms.

Summary

Callbacks

@callback calculate(String.t(), String.t()) :: float()