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:
"
* Calculate the Jaro-Winkler distance between the misspelled word and words in the dictionary.
Line 211:
"accomodate",
"definately",
"
"occured",
"publically",
"
"seperate",
"
"
]
Line 270:
</lang>{{out}}
<pre>
Close dictionary words ( distance < 0.15 using Jaro-Winkler distance) to "
Word | Distance
accommodate | 0.
accommodated | 0.
accommodates | 0.
accommodating | 0.
accommodation | 0.
Close dictionary words ( distance < 0.15 using Jaro-Winkler distance) to "
Word | Distance
definitely | 0.
defiantly | 0.
define | 0.
definite | 0.
Close dictionary words ( distance < 0.15 using Jaro-Winkler distance) to "
Word | Distance
government | 0.
govern | 0.
governments | 0.
movement | 0.
governmental | 0.
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 "
Word | Distance
receive | 0.
received | 0.
receiver | 0.
receives | 0.
relieve | 0.
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 "
Word | Distance
until | 0.
untie | 0.
untimely | 0.
Antilles | 0.1264
untidy | 0.1333
Close dictionary words ( distance < 0.15 using Jaro-Winkler distance) to "
Word | Distance
witch | 0.
which | 0.
witches | 0.1143
rich | 0.1167
wick | 0.1167
</pre>
=={{header|Raku}}==
|