Suppose I'm given a list of name pairs:
[
[ 'John', 'Smith'],
[ 'Alex', 'Gordon'],
...
]
I wish to know (or be given reasonable certainty) which column is the surname, and which is the first name, assuming that all columns are consistent, and each name pair consists of exactly one first name and one surname.
An obvious challenge would be checking name pairs where both names can be used as first names, e.g. ['Graham', 'Tyler']
.
Is this model something that is reasonable to achieve?