Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inverting string order gives different results #14

Open
ekr3peeK opened this issue Dec 26, 2020 · 0 comments
Open

Inverting string order gives different results #14

ekr3peeK opened this issue Dec 26, 2020 · 0 comments

Comments

@ekr3peeK
Copy link

$stringA = 'Alpin 4 Grnx';
$stringB = 'AGILIS+ GRNX';
$fuzzy = FuzzyWuzzy::getFuzzy();
echo $fuzzy->tokenSortRatio($stringA, $stringB) . "\n"; // 69
echo $fuzzy->tokenSortRatio($stringB, $stringA) . "\n"; // 60

I don't presume this is the intended behaviour, as when testing this with the javascript port of the original python library, the results on tokenSort-ing are the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant