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

Additional nickname delimiter specifications #110

Open
aikimark opened this issue Jul 22, 2020 · 1 comment
Open

Additional nickname delimiter specifications #110

aikimark opened this issue Jul 22, 2020 · 1 comment

Comments

@aikimark
Copy link

I've got a large file of names/addresses and decided to try the nameparser library with my name field. I was able to get more of my names parsed correctly by adding two regex patterns and adding these regex patterns to the list.
In regexes.py, added:
('double_apos', re.compile(r"''(.?)''", re.U)),
('apos', re.compile(r"'(.
?)'", re.U)),

In parser.py, added:
re_apos = self.C.regexes.apos
re_double_apos = self.C.regexes.double_apos

In parser.py, changed:
for _re in (re_quoted_word, re_double_quotes, re_parenthesis, re_double_apos, re_apos):

@derek73
Copy link
Owner

derek73 commented Aug 9, 2020

This seems like a good idea and not too hard to do.

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

No branches or pull requests

2 participants