As the title says, .mostSimilar() returns array of objects with word = undefined and dist = -1 for an out-of-dictionary word. The array is as long as the number of entries requested in the second argument of mostSimilar. I would expect it to return an empty array or null if the word is not found in the dictionary.
As the title says,
.mostSimilar()
returns array of objects withword = undefined
anddist = -1
for an out-of-dictionary word. The array is as long as the number of entries requested in the second argument ofmostSimilar
. I would expect it to return an empty array or null if the word is not found in the dictionary.Cheers