name-suffixes
Identify name suffixes
For the most part, this is just the code version of the Wikipedia page on name suffixes. Each suffix has three parts: a list of variants, which is a list of all of the versions of the same suffix that differ in more than punctation, whitespace, or capitalization; a canonical version, which is a standard way of identifying a single suffix, and a type, which is one of: generational, academic, professional or religious.
Installation
$ npm install --save name-suffixes
Usage
var nameSuffixes = suffixes; nameSuffixes; var isSuffix = isSuffix; console; // trueconsole; // false var canonize = canonize; console; // { variants: ['Jr', 'II', 'Junior'], canonical: 'jr', type: 'generational' }console; // undefined
License
MIT © Doug Wade