Skip to content

Additional nickname delimiter specifications #110

Description

@aikimark

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):

Activity

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions