levenshtein algoritham.... whatever

So I recently did a codewars that it seemed, tested the results with the Levenshtein algorithm.

I will update soon, but it seems to me, it does not fully test similarity, although, the author of the kata used it to get the proper responses. ( in my opinion,  as are all humans, I can be wrong)

The one in particular that got me wondering was:

heaven:  to python
is less of a similarity than
heaven: to java

no pun intended.  I like python, but I really do think that all languages break down to a base component of, on/off, computer says: this, or that.  No matter what the language or data you feed it.

There may be a language out there that communicates desired intentions better, I need to find it.

In the meantime.

although java shares two letter similarities, heaven and python only need replace 5 characters to get intended word, 'heaven'.
while java, if you have to replace the order of the letters, to make the new word, requires 6 changes.
The tests for this kata, wanted 'java' as a result.

And then there is the human brain ability to interrupt incomplete data, or corrupted data: 
fi ouy nac dear siht ......
cuncocts gorw on teers

We want computers to think like us,  But do we really?
Hopefully incoming post dissecting the algorithm in question.


Popular posts from this blog

Statistics, Python, Making a Stem Plot

Pandas Python and a little probability

JavaScript Ascii animation with while loops and console.log