berkmancenter / namae

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

Cant parse names where nickname precedes rest of name #30

Open bl00513 opened 5 years ago

bl00513 commented 5 years ago

Example Name: 'John' Johnathan Q. Public

Expected Behavior: [#<Name family="Public" given="Johnathan Q." nick="John">]

Actual Behavior: []

Summary: None of the name is parsed if a nickname precedes the other name attributes.

Reproduced on ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin18]