proper-name-fixifier
v0.4.2
Published
convert all upper case and lower case names to their proper case
Downloads
888
Readme
proper-name-fixifier
A Javascript/TypeScript-friendly library for fixing the capitalization of people's names, but only if they're all upper or lower case. For the most part we don't what to change what a person does since there are A LOT of possibilities.
I highly encourage everyone to look into the test file for a more exhaustive list of test cases. The test also pulls in names from the 116th US Congress (theres over 500 names in there with various languages, accents marks, titles, and even nicknames).
Influenced by Perl's Lingua-EN-NameCase module and Emgee's namecase
Usage
import * as fixifier from 'proper-name-fixifier';
const name = fixifier.fixCase('johnny mnemonic');
// name = Johnny Mnemonic