some name matching samples
Jul. 26th, 2016 11:11 am
//http://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/
"match on 2" in {
matchByTwoComponents passesOn(
("", ("", "")),
("CHEN-UN(11/08/1984)", ("Chen-un", "Kim")),
("SUE(02/29/1996)", ("sue", "heck")),
("JULIAXYGREK", ("Julia", "Ygrek")),
("JOSE ARCADIO BUENDIA", ("Jose-Arcadio", "Buendia")),
("JOSE BUENDIA", ("Jose-Arcadio", "Buendia")),
("ARCADIO BUENDIA", ("Jose-Arcadio", "Buendia")),
("KADAR JANOS", ("Kádár", "János")),
(" Stephen Ng ", ("stephen", "ng")),
("Martin Luther King Jr.", ("MARTIN", "KING")),
("Do Young O", ("do", "o")), // see e.g. http://digitalcommons.butler.edu/cgi/viewcontent.cgi?article=2660&context=wordways
("Bill Gates the 3rd", ("BILL", "GATES")),
("CHUCKNORRIS", ("chuck", "norris")),
("JULIA(10/28/1967)", ("Julia", "Roberts")),
("John F Kennedy", ("John", "Kennedy")),
// fails! some people do not have "last name" ("self", ("self", "")),
("John Doe", ("John", "Doe"))
)