Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for initial names like JJ Abrams and JD Salinger #19

Merged
merged 1 commit into from
Feb 15, 2022

Conversation

jdhartley
Copy link
Contributor

Updates

Support two-letter names like JJ, JD, AJ, TJ. Most two-letter no-vowel words are initials and should left in uppercase.
There are some exceptions, such as Mr, Ms, Dr. These are explicitly left in mixed case.

Discussion

This PR aims to fix #16.

I ran into some trouble with Ms Smith and Lt Worf as exceptions due to those being supported post nominals; extra care may need to be added to ensure a leading space for post nominals? This may also fix "Ed". For now, I left FIXME comments in the code and tried to keep this PR limited in scope.

Happy to tweak my test cases or expand on this PR more, just let me know what you need to get it across the finish line!

@tamtamchik
Copy link
Owner

@jdhartley great PR! Thank you, JD! :)

@tamtamchik tamtamchik merged commit 5539342 into tamtamchik:master Feb 15, 2022
@tamtamchik
Copy link
Owner

Released in 2.4.0!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for JJ Abrams and JD Salinger
2 participants