CenterForAssessment / randomNames

Function to generate random gender and ethnicity correct first and/or last names. Names are chosen proportionally based upon their probability of appearing in a large scale data base of real names.
https://centerforassessment.github.io/randomNames
Other
32 stars 6 forks source link

Leading whitespaces in some names #70

Closed Close-your-eyes closed 3 years ago

Close-your-eyes commented 3 years ago

When running the command randomNames(1, which.names = "first", gender = 1) some names are returned which have leading whitespaces. E.g. " Huda" and " Muzna".

Even though this can be fixed easily with trimws it is unexpected and maybe problematic to some people if these names are also returned without whitespace sometimes.

dbetebenner commented 3 years ago

Thanks for finding that. I'll fix those up in the data and repost to GitHub and CRAN in the next few days.

dbetebenner commented 3 years ago

Just fixed that and built v 1.5 of randomName. Will post to CRAN shortly