From d451bca48f260a3324e4f73012520e22dae4041b Mon Sep 17 00:00:00 2001 From: Sijmen Vos Date: Thu, 24 Sep 2015 22:04:07 +0200 Subject: [PATCH 1/2] Added 'te' to compound last names (probably dutch) --- lib/parse-names.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parse-names.js b/lib/parse-names.js index 09e214d..8b32f33 100644 --- a/lib/parse-names.js +++ b/lib/parse-names.js @@ -115,7 +115,7 @@ NameParse.prototype.is_compound_lastName = function (word) { // these are some common prefixes that identify a compound last names - what am I missing? var words = [ 'vere', 'von', 'van', 'de', 'del', 'della', 'di', 'da', 'pietro', - 'vanden', 'du', 'st.', 'st', 'la', 'lo', 'ter', 'bin', 'ibn' + 'vanden', 'du', 'st.', 'st', 'la', 'lo', 'ter', 'bin', 'ibn', 'te' ]; return in_array(words, word); }; From 5e3f75060aa85f500b209b3e48c3d70aaace2480 Mon Sep 17 00:00:00 2001 From: Sijmen Vos Date: Thu, 24 Sep 2015 22:22:51 +0200 Subject: [PATCH 2/2] Also added 'ten' and 'op' as prefixes of last names --- lib/parse-names.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parse-names.js b/lib/parse-names.js index 8b32f33..84a9e58 100644 --- a/lib/parse-names.js +++ b/lib/parse-names.js @@ -115,7 +115,7 @@ NameParse.prototype.is_compound_lastName = function (word) { // these are some common prefixes that identify a compound last names - what am I missing? var words = [ 'vere', 'von', 'van', 'de', 'del', 'della', 'di', 'da', 'pietro', - 'vanden', 'du', 'st.', 'st', 'la', 'lo', 'ter', 'bin', 'ibn', 'te' + 'vanden', 'du', 'st.', 'st', 'la', 'lo', 'ter', 'bin', 'ibn', 'te', 'ten', 'op' ]; return in_array(words, word); };