Naming silly nag: hyphenated first names

Issue #33 resolved
Andrew Schultz created an issue

For instance, If Mark-Paul Gosselaar wanted to play Scroll Thief, he would be referred to as "Mark" and "-Paul Gosselaar"

Is there a way to allow for hyphenated first names?

Going deeper down the rabbit hole, Neil Patrick Harris would be Mr. Patrick Harris, though that is tricky. Maybe you could say, if there's more than one space, where to put the space/dash?

/goes to look up Dikembe Mutombo's full name just to be obnoxious, or Boris Johnson's.

Comments (1)

  1. Daniel Stelzer repo owner

    Tested with a variety of cases, and it gets most of them now. At the moment it strips honorifics from the beginning, then defines the forename as the first word in the name, with hyphens considered part of the word. The surname is then whatever is left, with initials and whitespace removed from the beginning. So "Sir Arthur Conan Doyle" -> "Arthur" + "Conan Doyle", "William S. Gilbert" -> "William" + "Gilbert", and "Mark-Paul Gosselaar" -> "Mark-Paul" + "Gosselaar". It does still have difficulty with multi-word forenames but I can't think of a good way to distinguish those from multi-word surnames.

  2. Log in to comment