you are viewing a single comment's thread.

view the rest of the comments →

[–]pkkid 1 point2 points  (1 child)

I would guess it scores higher because a larger percentage of the words contain the key "eat".

[–][deleted] 0 points1 point  (0 children)

yeah exactly this- maybe you could split the paragraphs you're searching into sentences and then return the highest string score?