||Hispanic origin test for family names
||2007-02-21 03:59:44 GMT
||2008-10-17 12:36:46 GMT
(Projects of this owner)
A simple Ruby implementation of the process described in the U.S. Census Bureau's Technical Working Paper No. 13, "Building a Spanish Surname List for the 1990's—A New Approach to An Old Problem" (7.1.3, Orthographic Structure of Surnames).
Context is key to good results: use this on a list of Italian or Portuguese family names, and you'll get mostly false positives. Use on a population you know to be mostly of hispanic and non-latin family names, and you'll get a pretty good guess.
'Delgado'.hispanic? => true
'Cottman'.hispanic? => false