Skip to content

Commit affe050

Browse files
author
cbojar
committed
Add a few more suffixes to the common suffix list.
Source and definitions: http://www.lehigh.edu/lewis/suffix.htm
1 parent ccd7522 commit affe050

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎parse-names.js‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,12 @@ var NameParse = (function(){
126126
NameParse.is_suffix = function (word) {
127127
word = this.removeIgnoredChars(word).toLowerCase();
128128
// these are some common suffixes - what am I missing?
129-
var suffixArray = ['I','II','III','IV','V','Senior','Junior','Jr','Sr','PhD','APR','RPh','PE','MD','MA','DMD','CME'];
129+
var suffixArray = [
130+
'I','II','III','IV','V','Senior','Junior','Jr','Sr','PhD','APR','RPh','PE','MD','MA','DMD','CME',
131+
"BVM","CFRE","CLU","CPA","CSC","CSJ","DC","DD","DDS","DO","DVM","EdD","Esq",
132+
"JD","LLD","OD","OSB","PC","Ret","RGS","RN","RNC","SHCJ","SJ","SNJM","SSMO",
133+
"USA","USAF","USAFR","USAR","USCG","USMC","USMCR","USN","USNR"
134+
];
130135

131136
var suffixIndex = suffixArray.map(function(suffix){
132137
return suffix.toLowerCase();

0 commit comments

Comments
 (0)