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

Algorithms behind fuzzyname #3

Open
OleksiyAnokhin opened this issue May 30, 2022 · 2 comments
Open

Algorithms behind fuzzyname #3

OleksiyAnokhin opened this issue May 30, 2022 · 2 comments
Labels
question Further information is requested

Comments

@OleksiyAnokhin
Copy link

Hi, thanks for an interesting library!
Where can I read about algorithms under the hood?
Thanks!

@yymao
Copy link
Owner

yymao commented May 31, 2022

Hi @OleksiyAnokhin, the comparison between two names is done in this function:
https://github.com/yymao/fuzzyname/blob/v0.2.1/fuzzyname/core.py#L63

The function will attempt a few ways to compare the two names. When the function finds mismatch, it returns True. Generally, it starts with last name (matched_back), which require fully matches. Then it turns to the first and middle names, matched_front and take care of initials and nicknames.

@yymao yymao added the question Further information is requested label May 31, 2022
@OleksiyAnokhin
Copy link
Author

@yymao , thanks. So True means a mismatch. I thought it was the opposite. Very helpful, thanks!

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

No branches or pull requests

2 participants