Skip to content

Commit

Permalink
Merge pull request pioneerspacesim#5913 from zonkmachine/icelandicsur…
Browse files Browse the repository at this point in the history
…names

Icelandic culture fixup
  • Loading branch information
zonkmachine authored Sep 3, 2024
2 parents 3a0dc11 + 8382107 commit 9b6c6c2
Show file tree
Hide file tree
Showing 2 changed files with 199 additions and 143 deletions.
2 changes: 1 addition & 1 deletion data/culture/culture.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ local gd = require '.gd' -- gaelic
local el = require '.el' -- greek
local haw = require '.haw' --hawaiian
local hu = require '.hu' -- hungarian
local is = require '.is' -- islandic
local is = require '.is' -- icelandic
local it = require '.it' -- italian
local ja = require '.ja' -- japanese
local nl = require '.nl' -- netherlands
Expand Down
340 changes: 198 additions & 142 deletions data/culture/is.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,162 +6,210 @@
-- https://forebears.io/iceland/surnames
-- https://www.nordicnames.de/wiki/List_of_approved_Icelandic_male_names
-- https://www.nordicnames.de/wiki/Category:Icelandic_Female_Names
-- Database of all approved names in Iceland: https://island.is/en/search-in-icelandic-names

-- used:
-- https://adventures.is/blog/icelandic-names/

local utils = require 'utils'
local CultureName = require './common'

local male = {
"Jón",
"Sigurður",
"Guðmundur",
"Gunnar",
"Ólafur",
"Einar",
"Kristján",
"Magnús",
"Stefán",
"Jóhann",
"Björn",
"Arnar",
"Árni",
"Bjarni",
"Helgi",
"Halldór",
"Pétur",
"Daníel",
"Kristinn",
"Ragnar",
"Aðalsteinn",
"Andri",
"Arnar",
"Árni",
"Ásgeir",
"Atli",
"Baldur",
"Birgir",
"Bjarni",
"Björn",
"Brynjar",
"Daníel",
"Egill",
"Einar",
"Eirík",
"Eiríkur",
"Friðrik",
"Gísli",
"Guðjón",
"Guðmundur",
"Guðni",
"Gunnar",
"Hafþór",
"Halldór",
"Haraldur",
"Haukur",
"Helgi",
"Hrafn",
"Ingi",
"Ingólf",
"Jóhann",
"Jón",
"Jónas",
"Júlíus",
"Kjartan",
"Kristinn",
"Kristján",
"Magnús",
"Ólafur",
"Ólöf",
"Páll",
"Pétur",
"Ragnar",
"Rúnar",
"Sævar",
"Sigurður",
"Snorri",
"Sólhrafn",
"Stefán",
"Sturla",
"Sveinn",
"Sverrir",
"Þórður",
"Þorsteinn",
}

local female = {
"Guðrún",
"Anna",
"Kristín",
"Sigríður",
"Margrét",
"Helga",
"Sigrún",
"Ingibjörg",
"María",
"Jóhanna",
"Elín",
"Katrín",
"Hildur",
"Eva",
"Lilja",
"Ragnheiður",
"Ásta",
"Guðbjörg",
"Elísabet",
"Erla",
"Aðalsteinunn",
"Ágústa",
"Anna",
"Arna",
"Ása",
"Ásdís",
"Ásta",
"Auður",
"Berglind",
"Björk",
"Bryndís",
"Brynhild",
"Brynja",
"Dagný",
"Dóra",
"Edda",
"Elín",
"Elísabet",
"Embla",
"Emma",
"Erla",
"Eva",
"Guðbjörg",
"Guðlaug",
"Guðný",
"Guðrún",
"Halla",
"Halldóra",
"Harpa",
"Hekla",
"Helga",
"Hildur",
"Hjördís",
"Hörður",
"Hrafnhetta",
"Hrafnhildur",
"Hrefna",
"Hulda",
"Inga",
"Ingibjörg",
"Jóhanna",
"Jóna",
"Jónína",
"Katla",
"Katrín",
"Kristín",
"Kristjana",
"Lára",
"Lilja",
"Margrét",
"María",
"Ragnheiður",
"Rakel",
"Sigríður",
"Sigrún",
"Steinunn",
"Tinna",
"Unnur",
"Vigdís",
"Þóra",
}

local surname = {
"Jónsdóttir",
"Jónsson",
"Sigurðardóttir",
"Guðmundsdóttir",
"Guðmundsson",
"Sigurðsson",
"Gunnarsdóttir",
"Gunnarsson",
"Ólafsson",
"Ólafsdóttir",
"Magnúsdóttir",
"Magnússon",
"Einarsson",
"Einarsdóttir",
"Kristjánsdóttir",
"Kristjánsson",
"Björnsdóttir",
"Stefánsson",
"Jóhannsson",
"Jóhannsdóttir",
"Björnsson",
"Stefánsdóttir",
"Bjarnason",
"Árnadóttir",
"Bjarnadóttir",
"Árnason",
"Halldórsson",
"Helgason",
"Halldórsdóttir",
"Gísladóttir",
"Helgadóttir",
"Sveinsson",
"Ragnarsdóttir",
"Kristinsson",
"Pétursdóttir",
"Pálsson",
"Guðjónsdóttir",
"Kristinsdóttir",
"Pálsdóttir",
"Karlsson",
"Guðjónsson",
"Pétursson",
"Gíslason",
"Þorsteinsson",
"Þorsteinsdóttir",
"Sveinsdóttir",
"Ragnarsson",
"Óskarsson",
"Óskarsdóttir",
"Karlsdóttir",
"Haraldsson",
"Jóhannesson",
"Jóhannesdóttir",
"Sigurjónsdóttir",
"Birgisson",
"Birgisdóttir",
"Hauksson",
"Harðardóttir",
"Þórðardóttir",
"Ásgeirsdóttir",
"Haraldsdóttir",
"Jónasdóttir",
"Hauksdóttir",
"Harðarson",
"Jónasson",
"Sigurjónsson",
"Kjartansdóttir",
"Kjartansson",
"Ágústsson",
"Þórðarson",
"Arnarson",
"Friðriksson",
"Baldursdóttir",
"Baldursson",
"Ágústsdóttir",
"Sverrisson",
"Hilmarsson",
"Ásgeirsson",
"Eiríksdóttir",
"Friðriksdóttir",
"Guðnadóttir",
"Ingólfsson",
"Eiríksson",
"Guðnason",
"Ingólfsdóttir",
"Arnardóttir",
"Benediktsdóttir",
"Hilmarsdóttir",
"Sverrisdóttir",
"Valdimarsdóttir",
"Þórarinsdóttir",
"Reynisson",
"Benediktsson",
"Björgvinsdóttir",
"Gunnlaugsson",
"Jonsson",
"Gunnlaugsdóttir",
"Reynisdóttir",
"Aðalsteinsdóttir",
"Þórisdóttir"
"Aðalsteins{daughter}",
"Ágústs{daughter}",
"Árna{daughter}",
"Arnar{daughter}",
"Arnars{daughter}",
"Ásgeirs{daughter}",
"Baldurs{daughter}",
"Benedikts{daughter}",
"Birgis{daughter}",
"Bjarna{daughter}",
"Björgvins{daughter}",
"Björk{daughter}",
"Björks{daughter}",
"Björns{daughter}",
"Braga{daughter}",
"Einars{daughter}",
"Eiríks{daughter}",
"Erlings{daughter}",
"Friðriks{daughter}",
"Gísla{daughter}",
"Grétars{daughter}",
"Guðjóns{daughter}",
"Guðmunds{daughter}",
"Guðna{daughter}",
"Gunnars{daughter}",
"Gunnlaugs{daughter}",
"Hafsteins{daughter}",
"Halldórs{daughter}",
"Haralds{daughter}",
"Harðar{daughter}",
"Hauks{daughter}",
"Helga{daughter}",
"Hermanns{daughter}",
"Hilmars{daughter}",
"Indriða{daughter}",
"Ingólfs{daughter}",
"Jóhannes{daughter}",
"Jóhanns{daughter}",
"Jónas{daughter}",
"Jons{daughter}",
"Jóns{daughter}",
"Karls{daughter}",
"Kjartans{daughter}",
"Kristins{daughter}",
"Kristjáns{daughter}",
"Laxness",
"Magnús{daughter}",
"Melax",
"Ólafs{daughter}",
"Örnólfs{daughter}",
"Óskars{daughter}",
"Páls{daughter}",
"Péturs{daughter}",
"Ragnars{daughter}",
"Reynis{daughter}",
"Rúnars{daughter}",
"Sævars{daughter}",
"Sigurðar{daughter}",
"Sigurjóns{daughter}",
"Skúla{daughter}",
"Snorra{daughter}",
"Stefáns{daughter}",
"Svavars{daughter}",
"Sveins{daughter}",
"Sverris{daughter}",
"Tryggva{daughter}",
"Valdimars{daughter}",
"Vilhjálms{daughter}",
"Þórarins{daughter}",
"Þórðar{daughter}",
"Þóris{daughter}",
"Þorsteins{daughter}",
}

local Islandic = CultureName.New(
local Icelandic = CultureName.New(
{
male = male,
female = female,
Expand All @@ -180,5 +228,13 @@ local Islandic = CultureName.New(
}
})

-- Icelandic surnames are gender specific
function Icelandic:Surname (isFemale, rand, ascii)
local lastname = utils.chooseEqual(self.surname, rand)

return Islandic
-- Parent name ending with 'dóttir' for a daughter and 'son' for a son.
local daughter = isFemale and "dóttir" or "son"

return string.interp(lastname, { daughter = daughter })
end
return Icelandic

0 comments on commit 9b6c6c2

Please sign in to comment.