Cldr.Message.jaro_distance-exclamation-mark
You're seeing just the function
jaro_distance-exclamation-mark
, go back to Cldr.Message module for more information.
Returns the Jaro distance between two messages or raises.
This allows for fuzzy matching of message which can be helpful when a message string is changed but the semantics remain the same.
Arguments
message1
is a CLDR message in binary formmessage2
is a CLDR message in binary formoptions
is a keyword list of options. The default is[]
Options
:trim
determines if the message is trimmed of whitespace before formatting. The default isfalse
.
Returns
distance
wheredistance
is a float value between 0.0 (equates to no similarity) and 1.0 (is an exact match) representing Jaro distance betweenmessage1
andmessage2
orraises an exception