Jaro-Winkler distance: Difference between revisions

m
remove spaces, redo output
m (Rust - bug fix)
m (remove spaces, redo output)
Line 60:
Using a dictionary of your choice and the following list of 9 commonly misspelled words:
 
"accomodate​accomodate", "definately​definately", "goverment​", "occured", "publically", "recieve​", "seperate", "untill​untill", "wich​"
 
* Calculate the Jaro-Winkler distance between the misspelled word and words in the dictionary.
Line 211:
"accomodate​",
"definately​",
"goverment​goverment",
"occured",
"publically",
"recieve​recieve",
"seperate",
"untill​untill",
"wich​wich",
]
 
Line 270:
</lang>{{out}}
<pre>
Close dictionary words ( distance < 0.15 using Jaro-Winkler distance) to " accomodate​accomodate " are:
Word | Distance
accommodate | 0.03640182
accommodated | 0.05150333
accommodates | 0.05150333
accommodating | 0.09790815
accommodation | 0.09790815
 
Close dictionary words ( distance < 0.15 using Jaro-Winkler distance) to " definately​definately " are:
Word | Distance
definitely | 0.05640400
defiantly | 0.05860422
define | 0.09090800
definite | 0.09770850
defiantdefinable | 0.10130872
 
Close dictionary words ( distance < 0.15 using Jaro-Winkler distance) to " goverment​goverment " are:
Word | Distance
government | 0.07330533
govern | 0.08000667
governments | 0.08970697
movement | 0.09920810
governmental | 0.10330833
 
Close dictionary words ( distance < 0.15 using Jaro-Winkler distance) to " occured " are:
Line 310:
biblically | 0.1400
 
Close dictionary words ( distance < 0.15 using Jaro-Winkler distance) to " recieve​recieve " are:
Word | Distance
receive | 0.06250333
received | 0.09170625
receiver | 0.09170625
receives | 0.09170625
relieve | 0.09170667
 
Close dictionary words ( distance < 0.15 using Jaro-Winkler distance) to " seperate " are:
Line 326:
separates | 0.1144
 
Close dictionary words ( distance < 0.15 using Jaro-Winkler distance) to " untill​untill " are:
Word | Distance
until | 0.05710333
untie | 0.12571067
untimely | 0.13211083
Antilles | 0.1264
untidy | 0.1333
 
Close dictionary words ( distance < 0.15 using Jaro-Winkler distance) to " wich​wich " are:
Word | Distance
witch | 0.10670533
which | 0.12000600
witches | 0.1143
rich | 0.1167
wick | 0.1167
</pre>
 
 
=={{header|Raku}}==
4,103

edits