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

Adding ability to use prefixes with first and middle name #150

Open
sdwailah opened this issue Jan 22, 2024 · 2 comments
Open

Adding ability to use prefixes with first and middle name #150

sdwailah opened this issue Jan 22, 2024 · 2 comments

Comments

@sdwailah
Copy link

Hello
First of all, thank you for developing such a fantastic project. I'm using it to parse names in a mixed Arabic and English context, and it works great for most cases. However, I've encountered an issue with parsing Arabic names that contain a space

While parsing works seamlessly for names like "abdulsalam ahmed salem," names like "abdul salam ahmed salem" are misinterpreted.

Example:

Input: "abdul salam ahmed salem"
Expected Output:

  • first: "abdul salam"
  • middle: "ahmed"
  • last: "salem"

Actual Output:

  • first: "abdul"
  • middle: "salam ahmed"
  • last: "salem"
@derek73
Copy link
Owner

derek73 commented Jan 23, 2024

This is an issue with any language that has a plural concept of "first" name. For the parser, first name is regarding position only. The parser has no way to know if someone considers the second name to be still part of their "first" name. There is no rule-based way to decide to put the second name in the first name bucket instead of the middle names bucket.

@sdwailah
Copy link
Author

Hello @derek73
Thanks for your reply
Me as native Arabic speaker, actually the are rule-based for 2 part firist name and middle name
like for example
Abdul salam or Abdulsalam
Abdul allah or Abdullah
all above is the same name
Any name start with "Abdul" is 2 part name
and I can work with you on this case if you would like to and we could come up with many roles regarding this issue

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

2 participants