-
Notifications
You must be signed in to change notification settings - Fork 10
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
Improve Name Extraction in Banking Matcher Plugin #112
Improve Name Extraction in Banking Matcher Plugin #112
Conversation
This commit improves the name extraction for the db mode. - if there is more than one valid name bit, the last bit will always be the last name - name bits following the first bit recognised as a last name will not become first names again
I'm pretty sure @bjendres would like this to depend on a configuration option for the matcher plugin with a default fallback to the current behavior in case someone relies on it. |
This reverts commit c0ae74d.
Well, we could of course just add another mode. |
This commit improves the name extraction by adding `db2` as an alternative mode. - if there is more than one valid name bit, the last bit will always be the last name - name bits following the first bit recognised as a last name will not become first names again
b3b6a8d
to
8b9f420
Compare
I don't think that's necessary, since @MarcMichalsky introduced a new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks neat and clean, but haven't tested - assuming that you did :)
If you have the time, it'd be great to add a unit test.
Yep, after I raised that concern … well, actually still your concern I guess ;-) @MarcMichalsky thanks, that was quick! |
Yes, I did that because of @jensschuppe's comment. Sometimes I lack the perspective of a service provider who serves many customers. I usually only look at problems like this from our perspective. 🙈 As soon as I have time, I'll be happy to write a test for this. |
We'll wait for that, then. But if it becomes clear you won't be able to in the near future, give us a shout. |
Added more logic to cover the common case of |
Merged, thanks! Let's add docs for those CiviBanking plugins, I created #114 as a follow-up. |
This commit improves the name extraction for the db mode.
Comparison of the results
Original function
Modified function