berkmancenter / namae

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

Can't parse lowercase given names. #21

Open dreid opened 7 years ago

dreid commented 7 years ago

Real world examples:

[32] pry(main)> Namae.parse("bell hooks").first.given
=> nil
[33] pry(main)> Namae.parse("danah boyd").first.given
=> nil
akshayrawat commented 6 years ago

@inukshuk thoughts on this? I have a similar scenario. The danah / bell above gets recognized as a particle. It would be nice if it got recognized as a given.

inukshuk commented 6 years ago

The parser differentiates between upper/lower case words for historical reasons (it was originally for parsing names as defined by BibTeX which has specific rules). If we'd want to ignore case, we'd have to skip particle detection I guess.

(As a workaround you might want to consider merging given/dropping-particle and family/non-dropping-particle or something like that.)

prdanelli commented 5 years ago

Has there been any progress on this?