- Pull Request
- Added snippet : Jaro-Winkler Similarity (i.e Jaro Distance) #45
jaro_distance.md
This snippet returns the Jaro-Winkler distance of two given strings.
The Jaro distance is a measure of similarity between two strings and is different from the Levenshtein Distance. Levenshtein counts the number of edits (insertions, deletions, or substitutions) needed to convert one string to the other while the Jaro similarity is a measure of characters in common, being no more than half the length of the longer string in distance, with consideration for transpositions. It's suited for suited for comparing smaller strings like words and names.
The distance in this snippet is normalized such that 0 equates to no similarity and 1 is an exact match.
Create a snippet for the 30-seconds-of-Julia repo.
Make sure this task is Advanced level. See the Python repo for examples of Advanced tasks
-
Open a Pull Request with the word "WIP" in the title to claim a specific exercise.
-
Look at the existing snippets in the repo to model the formatting
-
Look at 30-Seconds-of-Python snippets or other languages in the 30-seconds org to find possible snippets to create in Julia
-
Finish the pull request with your original markdown file that includes the example.
-
Copy other peoples code or work
-
Make snippets using built-in functions. It's important that you don't create a snippet for something that already exists in base Julia. If the snippet is to see if the elements of an array are unique, and Julia has an isunique() function, then do not create this snippet.
Look to the Julia docs for references on how to do certain things.