From c656387532a38efcf0019b7daa1d154a95658afa Mon Sep 17 00:00:00 2001 From: Duy Huynh Date: Thu, 4 Jan 2024 03:52:11 -0600 Subject: [PATCH 1/2] Add people name from Palestine (#415) --- include/faker-cxx/types/Country.h | 4 +- src/modules/person/Person.cpp | 2 + src/modules/person/PersonTest.cpp | 3 + .../data/palestine/PalestinianFirstNames.h | 78 +++++++++++++++++++ .../data/palestine/PalestinianLastNames.h | 45 +++++++++++ .../data/palestine/PalestinianPeopleNames.h | 15 ++++ 6 files changed, 146 insertions(+), 1 deletion(-) create mode 100644 src/modules/person/data/palestine/PalestinianFirstNames.h create mode 100644 src/modules/person/data/palestine/PalestinianLastNames.h create mode 100644 src/modules/person/data/palestine/PalestinianPeopleNames.h diff --git a/include/faker-cxx/types/Country.h b/include/faker-cxx/types/Country.h index d8c033cab..aa93d7f36 100644 --- a/include/faker-cxx/types/Country.h +++ b/include/faker-cxx/types/Country.h @@ -56,6 +56,7 @@ enum class Country Moldova, Lithuania, Iceland, + Palestine, }; const std::vector countries{ @@ -68,7 +69,7 @@ const std::vector countries{ Country::China, Country::Korea, Country::Canada, Country::Mexico, Country::Argentina, Country::Australia, Country::Serbia, Country::Macedonia, Country::Albania, Country::Latvia, Country::Ireland, Country::Belarus, Country::Estonia, Country::Iran, Country::Bulgaria, - Country::Moldova, Country::Lithuania, Country::Iceland, + Country::Moldova, Country::Lithuania, Country::Iceland, Country::Palestine, }; inline std::string toString(Country country) @@ -122,6 +123,7 @@ inline std::string toString(Country country) {Country::Moldova, "Moldova"}, {Country::Lithuania, "Lithuania"}, {Country::Iceland, "Iceland"}, + {Country::Palestine, "Palestine"}, }; return countryToStringMapping.at(country); diff --git a/src/modules/person/Person.cpp b/src/modules/person/Person.cpp index f381f4cea..0e8703f56 100644 --- a/src/modules/person/Person.cpp +++ b/src/modules/person/Person.cpp @@ -47,6 +47,7 @@ #include "data/netherlands/DutchPeopleNames.h" #include "data/norway/NorwegianPeopleNames.h" #include "data/poland/PolishPeopleNames.h" +#include "data/palestine/PalestinianPeopleNames.h" #include "data/portugal/PortuguesePeopleNames.h" #include "data/romania/RomanianPeopleNames.h" #include "data/russia/RussianPeopleNames.h" @@ -95,6 +96,7 @@ const std::map countryToPeopleNamesMapping{ {Country::Albania, albanianPeopleNames}, {Country::Iran, persianPeopleNames}, {Country::Bulgaria, bulgarianPeopleNames}, {Country::Moldova, moldovanPeopleNames}, {Country::Lithuania, lithuanianPeopleNames}, {Country::Iceland, icelandicPeopleNames}, + {Country::Palestine, palestinianPeopleNames}, }; std::string middleNameForCountry(Country country, std::optional sex); diff --git a/src/modules/person/PersonTest.cpp b/src/modules/person/PersonTest.cpp index 7fc3cea6b..364992845 100644 --- a/src/modules/person/PersonTest.cpp +++ b/src/modules/person/PersonTest.cpp @@ -20,6 +20,7 @@ #include "data/england/EnglishPeopleNames.h" #include "data/estonia/EstonianPeopleNames.h" #include "data/finland/FinnishPeopleNames.h" +#include "data/palestine/PalestinianPeopleNames.h" #include "data/france/FrenchPeopleNames.h" #include "data/Gender.h" #include "data/germany/GermanPeopleNames.h" @@ -93,6 +94,7 @@ const std::map countryToPeopleNamesMapping{ {Country::Albania, albanianPeopleNames}, {Country::Iran, persianPeopleNames}, {Country::Bulgaria, bulgarianPeopleNames}, {Country::Moldova, moldovanPeopleNames}, {Country::Lithuania, lithuanianPeopleNames}, {Country::Iceland, icelandicPeopleNames}, + {Country::Palestine, palestinianPeopleNames}, }; const std::map generatedTestName{ @@ -120,6 +122,7 @@ const std::map generatedTestName{ {Country::Albania, "shouldGenerateAlbanianName"}, {Country::Iran, "shouldGeneratePersianName"}, {Country::Bulgaria, "shouldGenerateBulgarianName"}, {Country::Moldova, "shouldGenerateMoldovanName"}, {Country::Lithuania, "shouldGenerateLithuanianName"}, {Country::Iceland, "shouldGenerateIcelandicName"}, + {Country::Palestine, "shouldGeneratePalestinianName"}, }; } diff --git a/src/modules/person/data/palestine/PalestinianFirstNames.h b/src/modules/person/data/palestine/PalestinianFirstNames.h new file mode 100644 index 000000000..f8fe07ea6 --- /dev/null +++ b/src/modules/person/data/palestine/PalestinianFirstNames.h @@ -0,0 +1,78 @@ +#pragma once + +#include +#include + +namespace faker +{ +const std::vector palestinianMalesFirstNames = { + "Mohamed", "Ahmed", "Abdel", "Mahmoud", "Ibrahim", "Khaled", "Ali", "Yousef", "Hassan", "Raed", + "Emad", "Iyad", "Omar", "Jamal", "Khalil", "Ayman", "Ramy", "Samih", "Fayez", "Ismail", + "Abdullah", "Mostafa", "Mousa", "Ashraf", "Ziad", "Hussein", "Osama", "Saeed", "Samir", "Maher", + "Sami", "Hossam", "Yasser", "Hani", "Fadi", "Waleed", "Saleh", "Suleiman", "Nasser", "Nabil", + "Bassam", "Shady", "Wael", "Samer", "Tarek", "Adel", "Majed", "Adnan", "Essam", "Salah", + "Bilal", "Amjad", "Kamal", "Jamil", "Akram", "Anwar", "Kamel", "Nader", "Riad", "Murad", + "Zuhair", "Hisham", "Yahya", "Fouad", "Marwan", "Ghassan", "Mazen", "Fathi", "Amer", "Hatem", + "Amin", "Firas", "Ammar", "Salem", "Haytham", "Mounir", "Naeem", "Khader", "Salim", "Hamza", + "Nael", "Tawfiq", "Najih", "Louay", "Zaher", "Atef", "Sherif", "Asaad", "Fawzi", "Anas", + "Mahdi", "Fares", "Salam", "Younis", "Hamed", "Tamer", "Ramadan", "Jalal", "Atta", "Jawad", + "Zakaria", "Saad", "Osman", "Sufian", "Talal", "Farid", "Bashir", "Khamis", "Dia", "Arafat", + "Naji", "Suhail", "Saber", "Faisal", "Rafiq", "Rashid", "Mamoun", "Nizar", "Ghazi", "Nazim", + "Mansour", "Yacoub", "Qasim", "Salman", "Malik", "Taleb", "Adham", "Zaki", "Badr", "Fahd", + "Taha", "Rabie", "Yassin", "Waseem", "Bakr", "Ishaq", "Noman", "Rashad", "Hamada", "Jaafar", + "Karam", "Radwan", "Amir", "Ayoub", "Jaber", "George", "Azhar", "Mesbah", "Nazih", "Hammad", + "Rabah", "Aziz", "Fatih", "Farouk", "Hamad", "Mohsen", "Elias", "Taher", "Zaid", "Makram", + "Sultan", "Iftikhar", "Lotfi", "Karim", "Hilal", "Amr", "Radi", "Rasheed", "Sadiq", "Wahid", + "Massoud", "Shafiq", "Nizam", "Saif", "Abbas", "Sabri", "Anis", "Mujahid", "Haidar", "Sayed", + "Iqbal", "Mahy", "Zain", "Imtiaz", "Afif", "Raouf", "Farhan", "Nadi", "Amar", "Nadeem", + "Nassar", "Haroun", "Idris", "Hadi", "Wahib", "Badi", "Anton", "Adam", "Habib", "Marzouk", + "Fahim", "Johnny", "Hamid", "Rubin", "Matar", "Mabrouk", "Roly", "Ayad", "Allan", "Emile", + "William", "Safwan", "Michel", "Abdo", "Abou", "Bahri", "Nasrallah", "Shoaib", "Mubarak", "Daoud", + "Hany", "Abed", "Safi", "Asad", "Antar", "Mikhail", "Arif", "Rehan", "Raymond", "Joseph", + "Bader", "Sinan", "Victor", "Milad", "Aqeel", "Said", "Jack", "Rabeh", "Khalifa", "Ansar", + "Aba", "Naser", "Jalil", "Hanafi", "Asif", "Simon", "Falak", "Mumtaz", "Rafi", "Peter", + "Yvon", "Nasir", "Morris", "Abdelhakim", "Adeel", "Luqman", "Fikret", "Abdelkader", "Edward", "Gamal", + "Nayel", "Muzaffar", "Irfan", "Ihab", "Muhammed", "Nazir", "Hajjaj", "Hakim", "Sajid", "Akbar", + "Marcel", "Hossein", "John", "Fadel", "Majid", "Zahir", "Siraj", "Madi", "Mokhtar", "Ghali", + "Sheikh", "Karmel", "Robert", "Angel", "Seddik", "Hama", "Scott", "Raman", "Soso", "Aram", + "Jamie", "Kamil", "Mike", "Daniel", "Yousif", "Alam", "Mohammed", "Mazhar", "Talha", +}; + +const std::vector palestinianFemalesFirstNames = { + "Fatima", "Mariam", "Iman", "Amal", "Hanan", "Mona", "Manal", "Aisha", "Wafa", "Alaa", + "Nasreen", "Sana", "Samira", "Asmaa", "Jamila", "Heba", "Halima", "Ibtisam", "Souad", "Jihad", + "Maha", "Hoda", "Hana", "Laila", "Siham", "Basma", "Najah", "Nidal", "Ghada", "Nour", "Samar", + "Rana", "Nadia", "Nawal", "Nada", "Zainab", "Sahar", "Samah", "Sabah", "Hayam", "Fathia", "Rania", + "Khadija", "Faten", "Ahlam", "Hala", "Sarah", "Aida", "Safa", "Samia", "Lina", "Kholoud", "Rasha", + "Wissam", "Anam", "Dalal", "Elham", "Aziza", "Najwa", "Sawsan", "Magda", "Khadra", "Susan", "Noha", + "Ela", "Rima", "Yasmin", "Salwa", "Maysaa", "Ramia", "Afaf", "Nihad", "Randa", "Fadwa", "Khawla", + "Rajaa", "Islam", "Ayesha", "Mai", "Nahed", "Inas", "Nahla", "Lubna", "Rehab", "Duaa", "Saada", + "Asmahan", "Manar", "Latifa", "Hind", "Alia", "Nabila", "Dina", "Hayat", "Shadia", "Raida", "Nariman", + "Kawthar", "Abla", "Zahra", "Reda", "Marwa", "Rahma", "Jihan", "Najla", "Salama", "Najat", "Bahia", + "Haya", "Maazouza", "Fadia", "Walaa", "Ayat", "Aya", "Ikram", "Bushra", "Nasim", "Nasra", "Arwa", + "Lamia", "Salma", "Maram", "Hikmat", "Shaimaa", "Bayan", "Ihsan", "Awatif", "Farah", "Diana", "Nora", + "Linda", "Farida", "Fahima", "Najma", "Suhaila", "Donia", "Amna", "Nermin", "Wesal", "Fayrouz", + "Rabab", "Sonia", "Lana", "Janan", "Dalia", "Azza", "Tamara", "Nazira", "Badia", "Dima", "Hadia", + "Mary", "Afnan", "Nancy", "Ria", "Asia", "Shahnaz", "Dana", "Tasnim", "Lamis", "Hanna", "Raja", + "Naima", "Rani", "Razan", "Wiam", "Malak", "Sally", "Anaya", "Rose", "Saba", "Camelia", "Mansoura", + "Safia", "Fattoum", "Naama", "Nargis", "Bahija", "Yousra", "Amira", "Hilda", "Hajar", "Maria", + "Rama", "Wahiba", "Lara", "Sima", "Jacqueline", "Faiza", "Janet", "Aman", "Maysa", "Kamelia", + "Georgette", "Nasima", "Mari", "Sumaya", "Nicola", "Nadine", "Marilyn", "Fawzia", "Yara", "Amani", + "Elin", "Batoul", "Asma", "Marzouka", "Fatna", "Hassiba", "Sajida", "Karem", "Rita", "Helen", + "Amina", "Ghalia", "Nelly", "Reina", "Rene", "Mira", "Samiha", "Nahida", "Diane", "Madeleine", + "Elissa", "Sama", "Dahab", "Salsabil", "Rokaya", "Liana", "Shaheen", "Samara", "Raya", "Rahima", + "Norma", "Farhat", "Elaine", "Hina", "Suzy", "Sandy", "Judy", "Julia", "Lydia", "Violet", + "Nayla", "Saadia", "Hasna", "Lorraine", "Sahra", "Mimouna", "Jane", "Karima", "Therese", "Nawar", + "Badra", "Margret", "Rayan", "Caroline", "Marina", "Yacine", "Mirna", "Lucy", "Dania", "Jannat", + "Hilde", "Christine", "Abrar", "Elia", "Ayada", "Hawa", "Sandra", "Najia", "Angie", "Soria", + "Liza", "Katrina", "Vera", "Melia", "Mahdia", "Mounira", "Emily", "Houria", "Antoinette", "Mimi", + "Irene", "Badria", "Sabra", "Tania", "Olga", "Ala", "Sina", "Ana", "Milada", "Lilian", + "Zeina", "Fatin", "Omaima", "Nana", "Zaida", "Ramos", "Carmen", "Josephine", "Laura", "Joan", + "Isha", "Elina", "Anahid", "Sinai", "Nahid", "Christina", "Nina", "Elian", "An", "Maida", + "Nafisa", "Elizabeth", "Juliana", "Hamida", "Jalila", "Joanna", "Nirmin", "Francis", "Claire", "Margo", + "Sabria", "Kitty", "Rachida", "Mariana", "Natalia", "Salima", "Kamilia", "Doha", "Karol", "Catherine", + "Camille", "Hakima", "Nozha", "Pauline", "Andrea", "Tatiana", "Arlette", "Sare", "Sakina", "Dany", + "Amelia", "Yelena", "Grace", "Marian", "Liane", "Serena", "Yana", +}; + +} diff --git a/src/modules/person/data/palestine/PalestinianLastNames.h b/src/modules/person/data/palestine/PalestinianLastNames.h new file mode 100644 index 000000000..0d422cfd9 --- /dev/null +++ b/src/modules/person/data/palestine/PalestinianLastNames.h @@ -0,0 +1,45 @@ +#pragma once + +#include +#include + +namespace faker +{ +const std::vector palestinianLastNames = { + "Awad", "Al najjar", "El masry", "Odeh", "Hamdan", "Saleh", "Al khatib", "Shaheen", "Mansour", "Mousa", + "Ahmed", "Yassin", "Hamad", "Salama", "Eisaa", "Dawood", "Salah", "Hussein", "Hassan", "Abdullah", + "Hammad", "Suleiman", "Shehadeh", "El shaer", "Abed", "Taha", "Zaaroub", "Ashour", "Nassar", "Hamouda", + "Saad", "Al astal", "Jaradat", "Ayad", "Ali", "Khalil", "Amr", "Basharat", "Ibrahim", "Salem", + "Zaid", "Jaber", "Alyan", "Rabie", "Gabr", "Obaid", "Mohamed", "Omar", "Musleh", "Daraghmeh", + "Khatib", "Hegazy", "Ghanim", "Qasim", "Bani odeh", "Ismail", "Qadeeh", "Abou ali", "Abu bakr", + "Zidan", "Hamed", "Salman", "Jouda", "Darwish", "Dweikat", "El sherif", "Sobeeh", "Najjar", "Amer", + "Nasser", "Badr", "El madhoun", "Al natsheh", "Matar", "Barakat", "Nasr", "Mostafa", "Al farra", + "Khader", "El aga", "Yousef", "Radwan", "Abu al-rab", "Siam", "Mari", "Hamid", "Osman", "Samara", + "Al sheikh", "Abu odeh", "Nofal", "Sobh", "Adwan", "Abu jazar", "Al jaabari", "Sabah", "Saeed", + "Khalaf", "Safi", "Ghannam", "Sawafet", "Eid", "Jamal", "Mahmoud", "Zayed", "Younis", "El taweel", + "Hassouna", "Assaf", "Nazzal", "Jarrar", "Abou mostafa", "Madi", "Shaat", "Abu taha", "Hawtha", + "Shalalda", "Salah el din", "Zaqout", "Salim", "Abu daqah", "Shurrab", "Abdel aal", "Abou omra", + "Mounaser", "Jabareen", "Ramadan", "Shamasneh", "Ghaith", "Rayan", "Muslim", "Abdo", "Azzam", + "Al-qadi", "El attar", "Al awadh", "Attallah", "Taqateq", "Baraka", "Qabha", "Afaneh", "Assi", + "El gamal", "Abu aram", "Hamail", "El kahlout", "Abed rabbo", "Abu deh", "Elhamham", "Al akkad", + "Fakih", "Kandil", "Fayad", "Badwan", "Abdel hadi", "Helis", "Ayyash", "Diab", "Al ashqar", "Jibrin", + "Abouwarda", "El hajj", "Massoud", "Al kafarneh", "Abu shrkh", "Abu shamaleh", "El amour", "Rajabi", + "Badawi", "Masry", "Haroub", "Abu samra", "Aboaid", "Qeshtah", "Zahran", "Gamhor", "Jabari", "Khalifa", + "Kanaan", "Natsheh", "El louh", "Saqr", "Abu obaid", "Zkarneh", "Shaaban", "Muhanna", "Melhem", + "El halaby", "Mohsen", "Abou zeid", "Hanani", "Yahya", "Jadallah", "Abu awad", "Akl", "Rabayeh", + "Abou hassan", "Hamada", "Maslamah", "Abdeen", "Abu labdah", "Jahalin", "Abu hilal", "Bakr", "Alawneh", + "Omran", "Hajjaj", "Erekat", "Bashir", "Abou omar", "Salahat", "Abou farah", "Juma", "Zaher", + "Kamil", "Adais", "Abou hammad", "Halaik", "Khattab", "El haddad", "Abdelkader", "Al ghoul", "Said", + "Badran", "Asaad", "Tmazeh", "Mekdad", "Qawasmeh", "Al hindi", "Asfour", "Abu jarad", "Ayesh", + "Nasrallah", "Debabseh", "Rajoub", "Ghonaim", "El helou", "Kallab", "Shabir", "Choucair", "Abou taema", + "Zioud", "Ziadeh", "Abdul rahman", "Shraim", "Al nahhal", "Arafat", "Dhereh", "Ragab", "Farouk", + "Abu arra", "Abusnina", "Nabhan", "El ghalban", "Al qawasmeh", "Yacoub", "Harb", "Allan", "Ghoban", + "Al bayouk", "Faroun", "Barbakh", "Al sultan", "Sarsour", "Al atrash", "Fares", "Maarouf", "Khadour", + "Hammadah", "Dheir", "Wahdan", "Khamaisah", "Hassanein", "Al khalidi", "Habib", "Al shawwa", "Sarhan", + "Faraj", "Labd", "El sakka", "Rehan", "Ammar", "Dalloul", "Al buhaisi", "Awadallah", "Hamidat", + "El banna", "Al-bazour", "Sweety", "Abu musa", "Al maslamah", "Samour", "El zaaneen", "Kaabneh", "Aslim", + "Zeidat", "Shalaby", "Abu shaaban", "Kouar", "Faraj allah", "Mahamid", "El sayed", "Abu zahra", "Al shurafa", + "Ghazal", +}; + +} diff --git a/src/modules/person/data/palestine/PalestinianPeopleNames.h b/src/modules/person/data/palestine/PalestinianPeopleNames.h new file mode 100644 index 000000000..18ef4cb5a --- /dev/null +++ b/src/modules/person/data/palestine/PalestinianPeopleNames.h @@ -0,0 +1,15 @@ +#pragma once + +#include "../NameFormats.h" +#include "../PeopleNames.h" +#include "PalestinianFirstNames.h" +#include "PalestinianLastNames.h" + +namespace faker +{ +const NameFormats palestinianPersonNameFormats{{"{firstName} {lastName}", 1}}; + +const PeopleNames palestinianPeopleNames{{palestinianMalesFirstNames, {}, palestinianLastNames, {}, {}}, + {palestinianFemalesFirstNames, {}, palestinianLastNames, {}, {}}, + palestinianPersonNameFormats}; +} From 30d1762effde65cbe3003b7873c3374fdca91ee4 Mon Sep 17 00:00:00 2001 From: moshe-natan <118105292+moshe-natan@users.noreply.github.com> Date: Thu, 4 Jan 2024 12:49:42 +0200 Subject: [PATCH 2/2] add israeli people names (#417) * add israelis names data * add israelis people names * change file to Unicode * add israeli people names --- include/faker-cxx/types/Country.h | 22 +++--- src/modules/person/Person.cpp | 3 +- src/modules/person/PersonTest.cpp | 5 +- .../person/data/israel/IsraeliPeopleNames.h | 16 +++++ .../person/data/israel/IsraelisFirstNames.h | 70 +++++++++++++++++++ .../person/data/israel/IsraelisLastNames.h | 45 ++++++++++++ 6 files changed, 148 insertions(+), 13 deletions(-) create mode 100644 src/modules/person/data/israel/IsraeliPeopleNames.h create mode 100644 src/modules/person/data/israel/IsraelisFirstNames.h create mode 100644 src/modules/person/data/israel/IsraelisLastNames.h diff --git a/include/faker-cxx/types/Country.h b/include/faker-cxx/types/Country.h index aa93d7f36..09ede4f83 100644 --- a/include/faker-cxx/types/Country.h +++ b/include/faker-cxx/types/Country.h @@ -57,19 +57,20 @@ enum class Country Lithuania, Iceland, Palestine, + Israel, }; const std::vector countries{ - Country::Usa, Country::England, Country::Poland, Country::Italy, Country::France, - Country::Germany, Country::Russia, Country::Romania, Country::India, Country::Finland, - Country::Nepal, Country::Spain, Country::Turkey, Country::Czech, Country::Slovakia, - Country::Ukraine, Country::Denmark, Country::Sweden, Country::Brazil, Country::Norway, - Country::Japan, Country::Portugal, Country::Hungary, Country::Croatia, Country::Greece, - Country::Slovenia, Country::Austria, Country::Switzerland, Country::Belgium, Country::Netherlands, - Country::China, Country::Korea, Country::Canada, Country::Mexico, Country::Argentina, - Country::Australia, Country::Serbia, Country::Macedonia, Country::Albania, Country::Latvia, - Country::Ireland, Country::Belarus, Country::Estonia, Country::Iran, Country::Bulgaria, - Country::Moldova, Country::Lithuania, Country::Iceland, Country::Palestine, + Country::Usa, Country::England, Country::Poland, Country::Italy, Country::France, + Country::Germany, Country::Russia, Country::Romania, Country::India, Country::Finland, + Country::Nepal, Country::Spain, Country::Turkey, Country::Czech, Country::Slovakia, + Country::Ukraine, Country::Denmark, Country::Sweden, Country::Brazil, Country::Norway, + Country::Japan, Country::Portugal, Country::Hungary, Country::Croatia, Country::Greece, + Country::Slovenia, Country::Austria, Country::Switzerland, Country::Belgium, Country::Netherlands, + Country::China, Country::Korea, Country::Canada, Country::Mexico, Country::Argentina, + Country::Australia, Country::Serbia, Country::Macedonia, Country::Albania, Country::Latvia, + Country::Ireland, Country::Belarus, Country::Estonia, Country::Iran, Country::Bulgaria, + Country::Moldova, Country::Lithuania, Country::Iceland, Country::Palestine, Country::Israel }; inline std::string toString(Country country) @@ -124,6 +125,7 @@ inline std::string toString(Country country) {Country::Lithuania, "Lithuania"}, {Country::Iceland, "Iceland"}, {Country::Palestine, "Palestine"}, + {Country::Israel, "Israel"}, }; return countryToStringMapping.at(country); diff --git a/src/modules/person/Person.cpp b/src/modules/person/Person.cpp index 0e8703f56..14586ef19 100644 --- a/src/modules/person/Person.cpp +++ b/src/modules/person/Person.cpp @@ -32,6 +32,7 @@ #include "data/india/IndianPeopleNames.h" #include "data/iran/PersianPeopleNames.h" #include "data/ireland/IrishPeopleNames.h" +#include "data/israel/IsraeliPeopleNames.h" #include "data/italy/ItalianPeopleNames.h" #include "data/japan/JapanesePeopleNames.h" #include "data/JobTitles.h" @@ -96,7 +97,7 @@ const std::map countryToPeopleNamesMapping{ {Country::Albania, albanianPeopleNames}, {Country::Iran, persianPeopleNames}, {Country::Bulgaria, bulgarianPeopleNames}, {Country::Moldova, moldovanPeopleNames}, {Country::Lithuania, lithuanianPeopleNames}, {Country::Iceland, icelandicPeopleNames}, - {Country::Palestine, palestinianPeopleNames}, + {Country::Palestine, palestinianPeopleNames}, {Country::Israel, israeliPeopleNames}, }; std::string middleNameForCountry(Country country, std::optional sex); diff --git a/src/modules/person/PersonTest.cpp b/src/modules/person/PersonTest.cpp index 364992845..ea1725841 100644 --- a/src/modules/person/PersonTest.cpp +++ b/src/modules/person/PersonTest.cpp @@ -31,6 +31,7 @@ #include "data/india/IndianPeopleNames.h" #include "data/iran/PersianPeopleNames.h" #include "data/ireland/IrishPeopleNames.h" +#include "data/israel/IsraeliPeopleNames.h" #include "data/italy/ItalianPeopleNames.h" #include "data/japan/JapanesePeopleNames.h" #include "data/JobTitles.h" @@ -94,7 +95,7 @@ const std::map countryToPeopleNamesMapping{ {Country::Albania, albanianPeopleNames}, {Country::Iran, persianPeopleNames}, {Country::Bulgaria, bulgarianPeopleNames}, {Country::Moldova, moldovanPeopleNames}, {Country::Lithuania, lithuanianPeopleNames}, {Country::Iceland, icelandicPeopleNames}, - {Country::Palestine, palestinianPeopleNames}, + {Country::Palestine, palestinianPeopleNames}, {Country::Israel, israeliPeopleNames}, }; const std::map generatedTestName{ @@ -122,7 +123,7 @@ const std::map generatedTestName{ {Country::Albania, "shouldGenerateAlbanianName"}, {Country::Iran, "shouldGeneratePersianName"}, {Country::Bulgaria, "shouldGenerateBulgarianName"}, {Country::Moldova, "shouldGenerateMoldovanName"}, {Country::Lithuania, "shouldGenerateLithuanianName"}, {Country::Iceland, "shouldGenerateIcelandicName"}, - {Country::Palestine, "shouldGeneratePalestinianName"}, + {Country::Palestine, "shouldGeneratePalestinianName"}, {Country::Israel, "shouldGenerateIsraeliName"}, }; } diff --git a/src/modules/person/data/israel/IsraeliPeopleNames.h b/src/modules/person/data/israel/IsraeliPeopleNames.h new file mode 100644 index 000000000..b2ac29088 --- /dev/null +++ b/src/modules/person/data/israel/IsraeliPeopleNames.h @@ -0,0 +1,16 @@ +#pragma once + +#include "../NameFormats.h" +#include "../PeopleNames.h" +#include "IsraelisFirstNames.h" +#include "IsraelisLastNames.h" + +namespace faker +{ + +const NameFormats israelisPersonNameFormats{{"{lastName} {firstName}", 1}}; + +const PeopleNames israeliPeopleNames{ {israelisMalesFirstNames, {}, israelisLastNames, {}, {}}, + {israelisFemalesFirstNames, {}, israelisLastNames, {}, {}}, + israelisPersonNameFormats}; +} diff --git a/src/modules/person/data/israel/IsraelisFirstNames.h b/src/modules/person/data/israel/IsraelisFirstNames.h new file mode 100644 index 000000000..44f5355f4 --- /dev/null +++ b/src/modules/person/data/israel/IsraelisFirstNames.h @@ -0,0 +1,70 @@ +#pragma once + +#include +#include + +namespace faker +{ +const std::vector israelisMalesFirstNames = { + "דוד", "לביא", "אריאל", "יוסף", "נועם", "אורי", "רפאל", "ארי", "משה", "יהודה", + "אברהם", "איתן", "דניאל", "ישראל", "איתי", "שמואל", "אליה", "יהונתן", "יצחק", "שמעון", + "יעקב", "מיכאל", "עומר", "יונתן", "אהרון", "חיים", "אימרי", "אדם", "שלמה", "איתמר", + "עידו", "יאיר", "ינאי", "מאיר", "ישי", "מרדכי", "הראל", "בניה", "ניתאי", "בנימין", + "אליהו", "מנחם", "ליאם", "בארי", "אלון", "עילאי", "עמית", "בן", "נתן", "אור", + "נתנאל", "ריף", "אביב", "גיא", "נהוראי", "מאור", "ריי", "רום", "ליאו", "נוה", + "יובל", "הלל", "עומרי", "שחר", "אלרואי", "רוי", "נריה", "נדב", "דור", "צבי", + "מלאכי", "רועי", "עידן", "ראם", "אביתר", "נבו", "תום", "אלחנן", "אוריאל", "מעיין", + "אריה", "שלום", "גבריאל", "אליאב", "עוז", "אליעזר", "שילה", "ארבל", "ירדן", "לני", + "יואב", "נחמן", "גפן", "ליאור", "יהושע", "אביאל", "דן", "לוי", "אמיתי", "יהב", + "עמנואל", "זיו", "אייל", "אלעזר", "מתן", "ידידיה", "פנחס", "יהלי", "אופק", "אופיר", + "אבישי", "בר", "דביר", "יחיאל", "עברי", "אוריה", "שקד", "לירוי", "שי", "רני", + "ים", "נפתלי", "יגל", "פלג", "אסף", "ינון", "אדיר", "רון", "שליו", "אושר", + "כפיר", "אשר", "ברוך", "רותם", "שניאור", "אפרים", "גל", "דין", "טום", "רואי", + "תומר", "אוראל", "נטע", "אלמוג", "עתי", "ראובן", "יותם", "שמחה", "זוהר", "טומי", + "שון", "רז", "עופרי", "יחזקאל", "יהל", "ירין", "יואל", "צור", "סהר", "ליאב", + "דב", "עקיבא", "טל", "זאב", "גלעד", "ברי", "גבע", "איליי", "אלישע", "הדר", + "אילון", "ניב", "אדר", "קורן", "עילי", "ליעד", "הילל", "אליאור", "אחיה", "סיני", + "אושרי", "קאי", "אמרי", "אלימלך", "בועז", "יוחנן", "כרמל", "אלרועי", "יאן", "שאול", + "אסיף", "שלו", "ליאל", "ברק", "עדן", "ארז", "עדיאל", "דרור", "ניל", "ישעיה", + "עופר", "יפתח", "נחום", "אראל", "כרמי", "טוהר", "פאר", "מרום", "דורי", "ארד", + "לאו", "רעי", "אלעד", "עמיחי", "מאורי", "נגב", "גור", "אביחי", "ליאון", "עובדיה", + "עדי", "אורן", "ריו", "און", "שוהם", "אלרוי", "טוביה", "בניהו", "עזרא", "גיל", + "אלאור", "נח", "דולב", "אפק", "אביעד", "אלנתן", "יאר", "אילן", "דילן", "סאן", + "נאור", "ניצן", "מבשר", "אליעד", "קדם", "תבור", "לאון", "אליאל", "אלקנה", "ריין", + "נורי", "יונה", "אלכסנדר", "מתניה", "מייקל", "איתיאל", "אלרום", "בצלאל", "יוחאי", "יקותיאל", + "מיאל", "סול", "דורון", "אבינועם", "אוהד", "חגי", "יששכר", "שיר", "ענבר", "אביגדור", + "יוגב", "ניסים", "שגיא", "ניר", "נרי", "מתנאל", "אייר", "מנור", "לידור", "אביאור", + "ישעיהו", "עזריאל", "עמוס", "תבל", "חנוך", "להב", "צורי", "נחמיה", "שמשון", "כרם", + "אלי", "הוד", "יער", "אפיק", "שגב", "אלישיב", "אמיר" + +}; + +const std::vector israelisFemalesFirstNames = { + "תמר", "מאיה", "אביגיל", "נועה", "שרה", "איילה", "אדל", "יעל", "שירה", "אסתר", "חנה", + "אלה", "מרים", "רחל", "רבקה", "ליה", "חיה", "טליה", "רוני", "רומי", "מיכל", "נויה", + "אריאל", "רות", "ליבי", "עלמה", "הלל", "אמה", "גפן", "גאיה", "נעמי", "הודיה", "עומר", + "נגה", "אגם", "יובל", "שי-לי", "אפרת", "לאה", "מלכה", "אורי", "אוריה", "יהלי", "תהילה", + "אמילי", "יהודית", "תהל", "ארבל", "טוהר", "ליאן", "הדסה", "אבישג", "הילה", "אלישבע", "אלמה", + "נעמה", "עדי", "שקד", "עופרי", "שי", "מיקה", "הדס", "דבורה", "מעיין", "לני", "נטע", + "נועם", "הדר", "הללי", "מיאל", "אליה", "ליב", "נחמה", "אור", "ברכה", "אופיר", "אביב", + "ריף", "צפורה", "שיר", "שחר", "עמנואל", "חוה", "ליאל", "מוריה", "מיכאלה", "דניאל", "ירדן", + "שושנה", "זוהר", "אביטל", "עדן", "מאי", "ניב", "אלי", "שוהם", "אלין", "עמית", "אביה", + "גלי", "בר", "אן", "שיה", "בתיה", "יולי", "פיגא", "הילי", "רני", "אנאל", "שייה", + "גילי", "שני", "יסכה", "איימי", "זיו", "בת שבע", "כרמל", "סול", "דריה", "נאיה", "אודל", + "יערה", "שולמית", "שילת", "דניאלה", "אמונה", "ענהאל", "אמיליה", "ליבא", "מילה", "רונה", "אורין", + "ארייה", "שיינא", "טובה", "רותם", "גיטל", "גל", "יוכבד", "מאור", "אוריאן", "תבל", "טל", + "שיראל", "שפרה", "יעלה", "פנינה", "אלכס", "ליאור", "משי", "אליאן", "יהב", "איילת", "רננה", + "צופיה", "עמליה", "אורה", "תאיר", "מיילי", "איב", "לורן", "לירי", "זואי", "אמי", "ים", + "יהל", "סופיה", "קרני", "אליענה", "רון", "בת", "אלונה", "בלומה", "דני", "לייה", "אדוה", + "ניצן", "לינוי", "רז", "רנה", "הינדא", "עדינה", "ענבר", "לין", "דור", "אייר", "אחינועם", + "פלג", "אודיה", "אריאה", "עדיה", "עטרה", "דינה", "נלי", "גילה", "ארין", "אמור", "צביה", + "כרמי", "הלני", "נוי", "אנה", "ליאה", "גוני", "שיינדל", "לוטם", "פערל", "ליאם", "דורון", + "גולדה", "כרם", "פריאל", "ליהי", "תפארת", "כליל", "אודליה", "נינה", "אלומה", "יוטא", "בארי", + "רינה", "תמרה", "אופק", "דרור", "חן", "לילי", "אהובה", "רעות", "אמלי", "רייזל", "תגל", + "עידן", "מישל", "אווה", "מנור", "מילי", "נסיה", "דוריה", "בילא", "גיל", "סתיו", "קים", + "אלמוג", "אדר", "חושן", "ספיר", "אילת", "סהר", "יפה", "אלינור", "מיי", "שלי", "תום", + "מיתר", "נילי", "היילי", "יסמין", "ירין", "ריין", "לירון", "איטה", "ליהיא", "מרגלית", "מייה", + "גיטי", "אושר", "תומר", "אופל", "איידל", "חגית", "מנוחה", "ניקול", "סימה", "דר", "נאוה", + "תהלה", "מאורי", "אסנת", "טויבא", "רוחמה", "שירי", "הניה", "פריידא", "קדם", "בל", "אליאנה", + "קמה", "רום", "פאר", "לי", "מטר", "סימא", "עליזה", "ריי", "אוליביה", "אשירה", "הענא"}; +} diff --git a/src/modules/person/data/israel/IsraelisLastNames.h b/src/modules/person/data/israel/IsraelisLastNames.h new file mode 100644 index 000000000..3eea23eff --- /dev/null +++ b/src/modules/person/data/israel/IsraelisLastNames.h @@ -0,0 +1,45 @@ +#pragma once + +#include +#include + +namespace faker +{ +const std::vector israelisLastNames = { + "כהן", "לוי", "מזרחי", "פרץ", "ביטון", "דהן", "אברהם", "פרידמן", + "אזולאי", "מלכה", "כץ", "דוד", "אוחיון", "חדד", "עמר", "גבאי", + "יוסף", "בן דוד", "אדרי", "קליין", "חן", "טל", "לוין", "שפירא", + "חזן", "מחאמיד", "זועבי", "לוין", "מנשה", "אוחנה", "סועאד", "גולן", + "סגל", "אשכנזי", "יצחק", "בר", "יעקב", "מור", "שלום", "אליהו", + "דיין", "סויסה", "לביא", "אלבז", "שמש", "אטיאס", "בכר", "נחום", + "שטרן", "שרעבי", "אלון", "רוזנברג", "ממן", "בן חמו", "מימון", "שחר", + "וקנין", "ששון", "עובדיה", "אסולין", "שורץ", "מאיר", "וייס", "גרינברג", + "חסן", "אמסלם", "גולדשטיין", "ברוך", "טאהא", "עזרא", "יפרח", "פלדמן", + "רובין", "הראל", "סלאמה", "סבג", "קדוש", "מנסור", "עמאש", "חיים", + "שחאדה", "רז", "קורן", "גולדברג", "צור", "חסון", "אברמוב", "שרון", + "רבינוביץ", "סופר", "חלבי", "ישראל", "דדון", "יצחקי", "שוורץ", "ישראלי", + "דניאל", "נעים", "אהרוני", "לב", "עיסא", "רחמים", "הרוש", "נאסר", + "שושן", "ברק", "יחזקאל", "דוידוב", "יאסין", "מילר", "אורן", "עודה", + "קפלן", "סלימאן", "בנימין", "נגר", "חיון", "גרוס", "רוזן", "גל", + "הרשקוביץ", "סולומון", "אסרף", "מלול", "אבו כף", "סלע", "שטרית", "אבראהים", + "ברקוביץ", "יהודה", "פלד", "צרפתי", "הייב", "בן שושן", "זידאן", "זוהר", + "שלו", "עלי", "זיו", "עמאר", "גאנם", "גוטמן", "אהרון", "גנאים", + "מויאל", "מרעי", "אבו ליל", "אלפסי", "אליאס", "אדלר", "פרנקל", "גאבר", + "פלג", "פישר", "ברגר", "ראובן", "מסרי", "שכטר", "צדוק", "ויצמן", + "הלוי", "אביטן", "אהרון", "לוגסי", "נסים", "רוזנפלד", "מועלם", "שוויקי", + "ליפשיץ", "דרעי", "עטיה", "תורגמן", "עואד", "שוקרון", "שקד", "דגן", + "שמעוני", "דיאב", "רוט", "ליברמן", "יעקובוב", "ליבוביץ", "סעיד", "מנחם", + "בן חיים", "חורי", "פולק", "ברכה", "עאסלה", "פוקס", "חדאד", "גולדמן", + "שמואלי", "שגב", "אברהמי", "מוסא", "תורג'מן", "פרי", "הררי", "אילוז", + "סרחאן", "מנשה", "אוזן", "מרדכי", "קוגן", "יונס", "צברי", "עומר", + "קרן", "שדה", "ח'לאילה", "שאול", "אביטל", "שני", "סלומון", "קאסם", + "אלימלך", "שטיין", "עבדאללה", "שיטרית", "דרור", "מלמד", "יונה", "כחלון", + "חביב", "טויטו", "חביבאללה", "סבן", "חמו", "פנחס", "בן עמי", "סעדי", + "בוזגלו", "דנינו", "פז", "חמדאן", "בן סימון", "רוזנטל", "בן משה", "סעד", + "גדיר", "יוסופוב", "בוסקילה", "בדארנה", "ארביב", "אמארה", "דביר", "אבו אל היג'א", + "אביב", "עליאן", "שלמה", "פורת", "פריד", "גוטליב", "חיימוב", "קאופמן", + "רביבו", "אשר", "אבו סאלח", "מרקוביץ", "אביטבול", "אברמוביץ", "יעקבי", "שניידר", + "אבו רמילה", "אלקיים", "רגב", "נחמני", "זהבי", "פינטו" + +}; +}