Hi all,
I'm looking for a way to match a series of strings to some text the user selects, and to allow the match function to have a level of similarity when matching.
Basically, the user selects text, press "find similar" and the function should scan a long list of strings to find those that are "similar" the original one. The user could also select the level of similarity (0 to 100%) he wants the result to have.
(btw, user == programmer, not player
)
I've made my own function, but it's utter garbage and I just can't keep tweaking it.
Can anyone point me in a good direction? I've searched a bit on google, but all I came up with are discussion on very complex algorithms. I'm looking for some code really.
Thanks!
--Eric
I'm looking for a way to match a series of strings to some text the user selects, and to allow the match function to have a level of similarity when matching.
Basically, the user selects text, press "find similar" and the function should scan a long list of strings to find those that are "similar" the original one. The user could also select the level of similarity (0 to 100%) he wants the result to have.
(btw, user == programmer, not player
I've made my own function, but it's utter garbage and I just can't keep tweaking it.
Can anyone point me in a good direction? I've searched a bit on google, but all I came up with are discussion on very complex algorithms. I'm looking for some code really.
Thanks!
--Eric