berkmancenter / namae

Namae (名前) parses personal names and splits them into their component parts.
159 stars 32 forks source link

Parse middle initials? #33

Open kingIZZZY opened 4 years ago

kingIZZZY commented 4 years ago

It would be helpful when trying to compare/match names using family and given that any middle initials are separated from the given.

Is it possible to add functionality to parse away middle initials separately?

inukshuk commented 4 years ago

It's certainly possible creating a separate token for middle initials, but it would probably add quite a few rew rules to the grammar. I think we originally decided that it would be much easier parsing the initials out of the given name in a second pass.