gonameparts
gonameparts copied to clipboard
Names with comma are not always inverted
Hi, nice library. I was running a few test cases... In general most are looking pretty good, however there is one issue I spotted:
name := gonameparts.Parse("John A. Smith, Jr.")
fmt.Printf("%s %s\n", name.FirstName, name.LastName)
#=> Jr. Smith
If there is a comma and its followed by any of the salutations then the name should not be flipped.