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

One character word matching score is ignored in some cases #33

Open
alexsmartens opened this issue Mar 7, 2024 · 0 comments
Open

One character word matching score is ignored in some cases #33

alexsmartens opened this issue Mar 7, 2024 · 0 comments

Comments

@alexsmartens
Copy link

alexsmartens commented Mar 7, 2024

Reproducible example

names = [
"Apple iPhone",
"Apple iPhone 8",
]
matcher = FuzzyMatch.new(names)

matcher.find_all_with_score("Apple 8")
=>
[["Apple iPhone", 0.6153846153846154, 0.5],
 ["Apple iPhone 8", 0.6153846153846154, 0.5]]

Expected behavior

Apple iPhone 8 to have a higher match score than Apple iPhone when matched against Apple 8.

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