berkmancenter / namae

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

What is dropping particle #34

Closed Bennet-Sunder closed 4 years ago

Bennet-Sunder commented 4 years ago

I can see in the members that dropping_particle is one of the things that can be parsed. I'm unable to find what it means. Could you please give me sample names which has this so that I can handle this case as well.

inukshuk commented 4 years ago

A dropping particle is something like the "van" in "Ludwig van Beethoven" (dropping, because the name would be sorted under 'B') as opposed to a non dropping particle "van" as in "Vincent van Gogh" (typically sorted under 'V').

Bennet-Sunder commented 4 years ago

But "van" in both the names is being parsed into particle and not into dropping_particle for "Ludwig van Beethoven" like you have explained. Example here https://repl.it/repls/OblongHopefulWeb

inukshuk commented 4 years ago

Well, yes the parser cannot distinguish between the two syntactically. We just have this in the name object API to make it possible create names using the distinction (which is important, e.g., if you export the names for use with a CSL processor).

Bennet-Sunder commented 4 years ago

Thanks for you quick help.