• Problem with Moria Doors 3rd Assert


I would like to give some feedback about ...

From: https://checkio.org/mission/gate-puzzles/solve/

I've attached my file here as well for perusal.

The problem I have is with the 3rd result, and is the only one for which my solution doesn't work, which makes me think there might be a bug in this solution.

"These" and "durin" are incredibly close in the evaluation, though given the length of the sample it becomes very tedious to verify these results by hand.

My results for the two most closely related words: Word: these Value: 47.94285714285714

Word: durin Value: 47.814285714285724

I'm wondering if perhaps this was a rounding error in the original post, and with the extra precision, "these" actually becomse the more 'like' word.

Thanks for your consideration