Content deleted Content added
Testing |
Testing |
||
Line 301:
table.remove(fullNameTable)
end
local connectors = {"van", "der"}
for n, actualName in ipairs(fullNameTable) do
for k, connector in ipairs(connectors) do
if (actualName == connector) then
-- Join the surname when a connector is found.
table.insert(name.familyNames, table.concat(fullNameTable, " ", n))
return name
else
-- If there's no connector, insert given name or
-- family name if is last name.
if(n == #fullNameTable) then
table.insert(name.familyNames, actualName)
return name
else
table.insert(name.givenNames, " " .. fullNameTable[n])
break
end
end
end
end
return name
end
Line 349 ⟶ 367:
table.remove(fullNameTable, x)
end
table.insert(name.givenNames, " " .. eachName)
end
return name
|