Sorensen–Dice coefficient: Difference between revisions
m
→{{header|Julia}}
m (→Julia: char handling) |
|||
Line 211:
words = split(lowercase(txt), r"\s+")
for w in words
if length(a) < 3
push!(tokens, w)
else
for i in 1:length(a)-1
push!(tokens, String(a[i:i+1]))
|