From 892259a1cc1e5345e1c872ec603372496084964a Mon Sep 17 00:00:00 2001 From: Wiktoria Peretiatkowicz <127852624+wkktoria@users.noreply.github.com> Date: Tue, 23 Jan 2024 21:34:03 +0000 Subject: [PATCH] Add people names from Kazakhstan (#488) * Add Kazakh female names * Add Kazakh male names * Add Kazakh last names * Add people names from Kazakhstan --- include/faker-cxx/types/Country.h | 28 +-- src/modules/person/Person.cpp | 95 ++++++--- src/modules/person/PersonTest.cpp | 183 ++++++++++++------ .../person/data/kazakhstan/KazakhFirstNames.h | 50 +++++ .../person/data/kazakhstan/KazakhLastNames.h | 17 ++ .../data/kazakhstan/KazakhPeopleNames.h | 15 ++ 6 files changed, 282 insertions(+), 106 deletions(-) create mode 100644 src/modules/person/data/kazakhstan/KazakhFirstNames.h create mode 100644 src/modules/person/data/kazakhstan/KazakhLastNames.h create mode 100644 src/modules/person/data/kazakhstan/KazakhPeopleNames.h diff --git a/include/faker-cxx/types/Country.h b/include/faker-cxx/types/Country.h index 4de97bc4a..aeb864988 100644 --- a/include/faker-cxx/types/Country.h +++ b/include/faker-cxx/types/Country.h @@ -1,9 +1,9 @@ #pragma once #include +#include #include #include -#include namespace faker { @@ -68,21 +68,22 @@ enum class Country SouthAfrica, Azerbaijan, Ghana, + Kazakhstan, }; 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::Israel, - Country::Vietnam, Country::Monaco, Country::Bosnia, Country::Lebanon, Country::Syria, - Country::Malta, Country::SouthAfrica, Country::Azerbaijan, Country::Ghana, + 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, + Country::Vietnam, Country::Monaco, Country::Bosnia, Country::Lebanon, Country::Syria, + Country::Malta, Country::SouthAfrica, Country::Azerbaijan, Country::Ghana, Country::Kazakhstan, }; inline std::string toString(Country country) @@ -147,6 +148,7 @@ inline std::string toString(Country country) {Country::SouthAfrica, "South Africa"}, {Country::Azerbaijan, "Azerbaijan"}, {Country::Ghana, "Ghana"}, + {Country::Kazakhstan, "Kazakhstan"}, }; return countryToStringMapping.at(country); diff --git a/src/modules/person/Person.cpp b/src/modules/person/Person.cpp index 8ac2d5d92..17461ffdb 100644 --- a/src/modules/person/Person.cpp +++ b/src/modules/person/Person.cpp @@ -9,6 +9,7 @@ #include "data/argentina/ArgentinianPeopleNames.h" #include "data/australia/AustralianPeopleNames.h" #include "data/austria/AustrianPeopleNames.h" +#include "data/azerbaijan/AzerbaijaniPeopleNames.h" #include "data/belarus/BelarusianPeopleNames.h" #include "data/belgium/BelgianPeopleNames.h" #include "data/Bio.h" @@ -26,6 +27,7 @@ #include "data/france/FrenchPeopleNames.h" #include "data/Gender.h" #include "data/germany/GermanPeopleNames.h" +#include "data/ghana/GhanaianPeopleNames.h" #include "data/greece/GreekPeopleNames.h" #include "data/Hobbies.h" #include "data/hungary/HungarianPeopleNames.h" @@ -37,12 +39,12 @@ #include "data/italy/ItalianPeopleNames.h" #include "data/japan/JapanesePeopleNames.h" #include "data/JobTitles.h" +#include "data/kazakhstan/KazakhPeopleNames.h" #include "data/korea/KoreanPeopleNames.h" #include "data/Languages.h" #include "data/latvia/LatvianPeopleNames.h" #include "data/lebanon/LebanesePeopleNames.h" #include "data/lithuania/LithuanianPeopleNames.h" -#include "data/azerbaijan/AzerbaijaniPeopleNames.h" #include "data/macedonia/MacedonianPeopleNames.h" #include "data/malta/MaltesePeopleNames.h" #include "data/mexico/MexicanPeopleNames.h" @@ -60,17 +62,16 @@ #include "data/serbia/SerbianPeopleNames.h" #include "data/slovakia/SlovakPeopleNames.h" #include "data/slovenia/SlovenianPeopleNames.h" +#include "data/southAfrica/SouthAfricanPeopleNames.h" #include "data/spain/SpanishPeopleNames.h" #include "data/SsnFormats.h" #include "data/sweden/SwedishPeopleNames.h" #include "data/switzerland/SwissPeopleNames.h" #include "data/syria/SyrianPeopleNames.h" -#include "data/southAfrica/SouthAfricanPeopleNames.h" #include "data/turkey/TurkishPeopleNames.h" #include "data/ukraine/UkrainianPeopleNames.h" #include "data/usa/UsaPeopleNames.h" #include "data/vietnam/VietnamesePeopleNames.h" -#include "data/ghana/GhanaianPeopleNames.h" #include "data/ZodiacSigns.h" #include "faker-cxx/Helper.h" #include "faker-cxx/Internet.h" @@ -82,36 +83,66 @@ namespace faker namespace { const std::map countryToPeopleNamesMapping{ - {Country::England, englishPeopleNames}, {Country::France, frenchPeopleNames}, - {Country::Germany, germanPeopleNames}, {Country::Italy, italianPeopleNames}, - {Country::Poland, polishPeopleNames}, {Country::Russia, russianPeopleNames}, - {Country::Romania, romanianPeopleNames}, {Country::India, indianPeopleNames}, - {Country::Finland, finnishPeopleNames}, {Country::Nepal, nepalesePeopleNames}, - {Country::Spain, spanishPeopleNames}, {Country::Turkey, turkishPeopleNames}, - {Country::Czech, czechPeopleNames}, {Country::Slovakia, slovakPeopleNames}, - {Country::Ukraine, ukrainianPeopleNames}, {Country::Denmark, danishPeopleNames}, - {Country::Sweden, swedishPeopleNames}, {Country::Usa, usaPeopleNames}, - {Country::Brazil, brazilianPeopleNames}, {Country::Norway, norwegianPeopleNames}, - {Country::Japan, japanesePeopleNames}, {Country::Portugal, portuguesePeopleNames}, - {Country::Hungary, hungarianPeopleNames}, {Country::Croatia, croatianPeopleNames}, - {Country::Greece, greekPeopleNames}, {Country::Slovenia, slovenianPeopleNames}, - {Country::Austria, austrianPeopleNames}, {Country::Switzerland, swissPeopleNames}, - {Country::Belgium, belgianPeopleNames}, {Country::Netherlands, dutchPeopleNames}, - {Country::China, chinesePeopleNames}, {Country::Korea, koreanPeopleNames}, - {Country::Canada, canadianPeopleNames}, {Country::Mexico, mexicanPeopleNames}, - {Country::Argentina, argentinianPeopleNames}, {Country::Australia, australianPeopleNames}, - {Country::Serbia, serbianPeopleNames}, {Country::Macedonia, macedonianPeopleNames}, - {Country::Latvia, latvianPeopleNames}, {Country::Ireland, irishPeopleNames}, - {Country::Belarus, belarusianPeopleNames}, {Country::Estonia, estonianPeopleNames}, - {Country::Albania, albanianPeopleNames}, {Country::Iran, persianPeopleNames}, - {Country::Bulgaria, bulgarianPeopleNames}, {Country::Moldova, moldovanPeopleNames}, - {Country::Bosnia, bosnianPeopleNames}, {Country::Lithuania, lithuanianPeopleNames}, - {Country::Iceland, icelandicPeopleNames}, {Country::Palestine, palestinianPeopleNames}, - {Country::Israel, israeliPeopleNames}, {Country::Vietnam, vietnamesePeopleNames}, - {Country::Monaco, monacanPeopleNames}, {Country::Lebanon, lebanesePeopleNames}, - {Country::Syria, syrianPeopleNames}, {Country::Malta, maltesePeopleNames}, - {Country::SouthAfrica, southAfricanPeopleNames}, {Country::Azerbaijan, azerbaijaniPeopleNames}, + {Country::England, englishPeopleNames}, + {Country::France, frenchPeopleNames}, + {Country::Germany, germanPeopleNames}, + {Country::Italy, italianPeopleNames}, + {Country::Poland, polishPeopleNames}, + {Country::Russia, russianPeopleNames}, + {Country::Romania, romanianPeopleNames}, + {Country::India, indianPeopleNames}, + {Country::Finland, finnishPeopleNames}, + {Country::Nepal, nepalesePeopleNames}, + {Country::Spain, spanishPeopleNames}, + {Country::Turkey, turkishPeopleNames}, + {Country::Czech, czechPeopleNames}, + {Country::Slovakia, slovakPeopleNames}, + {Country::Ukraine, ukrainianPeopleNames}, + {Country::Denmark, danishPeopleNames}, + {Country::Sweden, swedishPeopleNames}, + {Country::Usa, usaPeopleNames}, + {Country::Brazil, brazilianPeopleNames}, + {Country::Norway, norwegianPeopleNames}, + {Country::Japan, japanesePeopleNames}, + {Country::Portugal, portuguesePeopleNames}, + {Country::Hungary, hungarianPeopleNames}, + {Country::Croatia, croatianPeopleNames}, + {Country::Greece, greekPeopleNames}, + {Country::Slovenia, slovenianPeopleNames}, + {Country::Austria, austrianPeopleNames}, + {Country::Switzerland, swissPeopleNames}, + {Country::Belgium, belgianPeopleNames}, + {Country::Netherlands, dutchPeopleNames}, + {Country::China, chinesePeopleNames}, + {Country::Korea, koreanPeopleNames}, + {Country::Canada, canadianPeopleNames}, + {Country::Mexico, mexicanPeopleNames}, + {Country::Argentina, argentinianPeopleNames}, + {Country::Australia, australianPeopleNames}, + {Country::Serbia, serbianPeopleNames}, + {Country::Macedonia, macedonianPeopleNames}, + {Country::Latvia, latvianPeopleNames}, + {Country::Ireland, irishPeopleNames}, + {Country::Belarus, belarusianPeopleNames}, + {Country::Estonia, estonianPeopleNames}, + {Country::Albania, albanianPeopleNames}, + {Country::Iran, persianPeopleNames}, + {Country::Bulgaria, bulgarianPeopleNames}, + {Country::Moldova, moldovanPeopleNames}, + {Country::Bosnia, bosnianPeopleNames}, + {Country::Lithuania, lithuanianPeopleNames}, + {Country::Iceland, icelandicPeopleNames}, + {Country::Palestine, palestinianPeopleNames}, + {Country::Israel, israeliPeopleNames}, + {Country::Vietnam, vietnamesePeopleNames}, + {Country::Monaco, monacanPeopleNames}, + {Country::Lebanon, lebanesePeopleNames}, + {Country::Syria, syrianPeopleNames}, + {Country::Malta, maltesePeopleNames}, + {Country::SouthAfrica, southAfricanPeopleNames}, + {Country::Azerbaijan, azerbaijaniPeopleNames}, {Country::Ghana, ghanaianPeopleNames}, + {Country::Kazakhstan, kazakhPeopleNames}, }; std::string middleNameForCountry(Country country, std::optional sex); diff --git a/src/modules/person/PersonTest.cpp b/src/modules/person/PersonTest.cpp index 9395d4503..8956b74b8 100644 --- a/src/modules/person/PersonTest.cpp +++ b/src/modules/person/PersonTest.cpp @@ -9,6 +9,7 @@ #include "data/argentina/ArgentinianPeopleNames.h" #include "data/australia/AustralianPeopleNames.h" #include "data/austria/AustrianPeopleNames.h" +#include "data/azerbaijan/AzerbaijaniPeopleNames.h" #include "data/belarus/BelarusianPeopleNames.h" #include "data/belgium/BelgianPeopleNames.h" #include "data/bosnia/BosnianPeopleNames.h" @@ -24,6 +25,7 @@ #include "data/france/FrenchPeopleNames.h" #include "data/Gender.h" #include "data/germany/GermanPeopleNames.h" +#include "data/ghana/GhanaianPeopleNames.h" #include "data/greece/GreekPeopleNames.h" #include "data/Hobbies.h" #include "data/hungary/HungarianPeopleNames.h" @@ -35,6 +37,7 @@ #include "data/italy/ItalianPeopleNames.h" #include "data/japan/JapanesePeopleNames.h" #include "data/JobTitles.h" +#include "data/kazakhstan/KazakhPeopleNames.h" #include "data/korea/KoreanPeopleNames.h" #include "data/Languages.h" #include "data/latvia/LatvianPeopleNames.h" @@ -43,7 +46,6 @@ #include "data/macedonia/MacedonianPeopleNames.h" #include "data/malta/MaltesePeopleNames.h" #include "data/mexico/MexicanPeopleNames.h" -#include "data/azerbaijan/AzerbaijaniPeopleNames.h" #include "data/moldova/MoldovanPeopleNames.h" #include "data/monaco/MonacanPeopleNames.h" #include "data/Nationalities.h" @@ -58,15 +60,14 @@ #include "data/serbia/SerbianPeopleNames.h" #include "data/slovakia/SlovakPeopleNames.h" #include "data/slovenia/SlovenianPeopleNames.h" +#include "data/southAfrica/SouthAfricanPeopleNames.h" #include "data/spain/SpanishPeopleNames.h" #include "data/sweden/SwedishPeopleNames.h" #include "data/switzerland/SwissPeopleNames.h" -#include "data/ghana/GhanaianPeopleNames.h" #include "data/syria/SyrianPeopleNames.h" #include "data/turkey/TurkishPeopleNames.h" #include "data/ukraine/UkrainianPeopleNames.h" #include "data/vietnam/VietnamesePeopleNames.h" -#include "data/southAfrica/SouthAfricanPeopleNames.h" #include "data/ZodiacSigns.h" #include "src/modules/person/data/brazil/BrazilianPeopleNames.h" #include "src/modules/person/data/PeopleNames.h" @@ -80,69 +81,129 @@ namespace const std::vector sexes{"Male", "Female"}; const std::map countryToPeopleNamesMapping{ - {Country::England, englishPeopleNames}, {Country::France, frenchPeopleNames}, - {Country::Germany, germanPeopleNames}, {Country::Italy, italianPeopleNames}, - {Country::Poland, polishPeopleNames}, {Country::Russia, russianPeopleNames}, - {Country::Romania, romanianPeopleNames}, {Country::India, indianPeopleNames}, - {Country::Finland, finnishPeopleNames}, {Country::Nepal, nepalesePeopleNames}, - {Country::Spain, spanishPeopleNames}, {Country::Turkey, turkishPeopleNames}, - {Country::Czech, czechPeopleNames}, {Country::Slovakia, slovakPeopleNames}, - {Country::Ukraine, ukrainianPeopleNames}, {Country::Denmark, danishPeopleNames}, - {Country::Sweden, swedishPeopleNames}, {Country::Usa, usaPeopleNames}, - {Country::Brazil, brazilianPeopleNames}, {Country::Norway, norwegianPeopleNames}, - {Country::Japan, japanesePeopleNames}, {Country::Portugal, portuguesePeopleNames}, - {Country::Hungary, hungarianPeopleNames}, {Country::Croatia, croatianPeopleNames}, - {Country::Greece, greekPeopleNames}, {Country::Slovenia, slovenianPeopleNames}, - {Country::Austria, austrianPeopleNames}, {Country::Switzerland, swissPeopleNames}, - {Country::Belgium, belgianPeopleNames}, {Country::Netherlands, dutchPeopleNames}, - {Country::China, chinesePeopleNames}, {Country::Korea, koreanPeopleNames}, - {Country::Canada, canadianPeopleNames}, {Country::Mexico, mexicanPeopleNames}, - {Country::Argentina, argentinianPeopleNames}, {Country::Australia, australianPeopleNames}, - {Country::Serbia, serbianPeopleNames}, {Country::Macedonia, macedonianPeopleNames}, - {Country::Latvia, latvianPeopleNames}, {Country::Ireland, irishPeopleNames}, - {Country::Belarus, belarusianPeopleNames}, {Country::Estonia, estonianPeopleNames}, - {Country::Albania, albanianPeopleNames}, {Country::Iran, persianPeopleNames}, - {Country::Bulgaria, bulgarianPeopleNames}, {Country::Moldova, moldovanPeopleNames}, - {Country::Lithuania, lithuanianPeopleNames}, {Country::Iceland, icelandicPeopleNames}, - {Country::Palestine, palestinianPeopleNames}, {Country::Israel, israeliPeopleNames}, - {Country::Vietnam, vietnamesePeopleNames}, {Country::Monaco, monacanPeopleNames}, - {Country::Bosnia, bosnianPeopleNames}, {Country::Lebanon, lebanesePeopleNames}, - {Country::Syria, syrianPeopleNames}, {Country::Malta, maltesePeopleNames}, - {Country::SouthAfrica, southAfricanPeopleNames}, {Country::Azerbaijan, azerbaijaniPeopleNames}, + {Country::England, englishPeopleNames}, + {Country::France, frenchPeopleNames}, + {Country::Germany, germanPeopleNames}, + {Country::Italy, italianPeopleNames}, + {Country::Poland, polishPeopleNames}, + {Country::Russia, russianPeopleNames}, + {Country::Romania, romanianPeopleNames}, + {Country::India, indianPeopleNames}, + {Country::Finland, finnishPeopleNames}, + {Country::Nepal, nepalesePeopleNames}, + {Country::Spain, spanishPeopleNames}, + {Country::Turkey, turkishPeopleNames}, + {Country::Czech, czechPeopleNames}, + {Country::Slovakia, slovakPeopleNames}, + {Country::Ukraine, ukrainianPeopleNames}, + {Country::Denmark, danishPeopleNames}, + {Country::Sweden, swedishPeopleNames}, + {Country::Usa, usaPeopleNames}, + {Country::Brazil, brazilianPeopleNames}, + {Country::Norway, norwegianPeopleNames}, + {Country::Japan, japanesePeopleNames}, + {Country::Portugal, portuguesePeopleNames}, + {Country::Hungary, hungarianPeopleNames}, + {Country::Croatia, croatianPeopleNames}, + {Country::Greece, greekPeopleNames}, + {Country::Slovenia, slovenianPeopleNames}, + {Country::Austria, austrianPeopleNames}, + {Country::Switzerland, swissPeopleNames}, + {Country::Belgium, belgianPeopleNames}, + {Country::Netherlands, dutchPeopleNames}, + {Country::China, chinesePeopleNames}, + {Country::Korea, koreanPeopleNames}, + {Country::Canada, canadianPeopleNames}, + {Country::Mexico, mexicanPeopleNames}, + {Country::Argentina, argentinianPeopleNames}, + {Country::Australia, australianPeopleNames}, + {Country::Serbia, serbianPeopleNames}, + {Country::Macedonia, macedonianPeopleNames}, + {Country::Latvia, latvianPeopleNames}, + {Country::Ireland, irishPeopleNames}, + {Country::Belarus, belarusianPeopleNames}, + {Country::Estonia, estonianPeopleNames}, + {Country::Albania, albanianPeopleNames}, + {Country::Iran, persianPeopleNames}, + {Country::Bulgaria, bulgarianPeopleNames}, + {Country::Moldova, moldovanPeopleNames}, + {Country::Lithuania, lithuanianPeopleNames}, + {Country::Iceland, icelandicPeopleNames}, + {Country::Palestine, palestinianPeopleNames}, + {Country::Israel, israeliPeopleNames}, + {Country::Vietnam, vietnamesePeopleNames}, + {Country::Monaco, monacanPeopleNames}, + {Country::Bosnia, bosnianPeopleNames}, + {Country::Lebanon, lebanesePeopleNames}, + {Country::Syria, syrianPeopleNames}, + {Country::Malta, maltesePeopleNames}, + {Country::SouthAfrica, southAfricanPeopleNames}, + {Country::Azerbaijan, azerbaijaniPeopleNames}, {Country::Ghana, ghanaianPeopleNames}, + {Country::Kazakhstan, kazakhPeopleNames}, }; const std::map generatedTestName{ - {Country::England, "shouldGenerateEnglishName"}, {Country::France, "shouldGenerateFrenchName"}, - {Country::Germany, "shouldGenerateGermanName"}, {Country::Italy, "shouldGenerateItalianName"}, - {Country::Poland, "shouldGeneratePolishName"}, {Country::Russia, "shouldGenerateRussianName"}, - {Country::Romania, "shouldGenerateRomanianName"}, {Country::India, "shouldGenerateIndianName"}, - {Country::Finland, "shouldGenerateFinnishName"}, {Country::Nepal, "shouldGenerateNepaleseName"}, - {Country::Spain, "shouldGenerateSpanishName"}, {Country::Turkey, "shouldGenerateTurkishName"}, - {Country::Czech, "shouldGenerateCzechName"}, {Country::Slovakia, "shouldGenerateSlovakName"}, - {Country::Ukraine, "shouldGenerateUkrainianName"}, {Country::Denmark, "shouldGenerateDanishName"}, - {Country::Sweden, "shouldGenerateSwedishName"}, {Country::Usa, "shouldGenerateAmericanName"}, - {Country::Brazil, "shouldGenerateBrazilianName"}, {Country::Norway, "shouldGenerateNorwegianName"}, - {Country::Japan, "shouldGenerateJapaneseName"}, {Country::Portugal, "shouldGeneratePortugueseName"}, - {Country::Hungary, "shouldGenerateHungarianName"}, {Country::Croatia, "shouldGenerateCroatianName"}, - {Country::Greece, "shouldGenerateGreekName"}, {Country::Slovenia, "shouldGenerateSlovenianName"}, - {Country::Austria, "shouldGenerateAustrianName"}, {Country::Switzerland, "shouldGenerateSwissName"}, - {Country::Belgium, "shouldGenerateBelgianName"}, {Country::Netherlands, "shouldGenerateDutchName"}, - {Country::China, "shouldGenerateChineseName"}, {Country::Korea, "shouldGenerateKoreanName"}, - {Country::Canada, "shouldGenerateCanadianName"}, {Country::Mexico, "shouldGenerateMexicanName"}, - {Country::Argentina, "shouldGenerateArgentinianName"}, {Country::Australia, "shouldGenerateAustralianName"}, - {Country::Serbia, "shouldGenerateSerbianName"}, {Country::Macedonia, "shouldGenerateMacedonianName"}, - {Country::Latvia, "shouldGenerateLatvianName"}, {Country::Ireland, "shouldGenerateIrishName"}, - {Country::Belarus, "shouldGenerateBelarusianName"}, {Country::Estonia, "shouldGenerateEstonianName"}, - {Country::Albania, "shouldGenerateAlbanianName"}, {Country::Iran, "shouldGeneratePersianName"}, - {Country::Bulgaria, "shouldGenerateBulgarianName"}, {Country::Moldova, "shouldGenerateMoldovanName"}, - {Country::Lithuania, "shouldGenerateLithuanianName"}, {Country::Iceland, "shouldGenerateIcelandicName"}, - {Country::Palestine, "shouldGeneratePalestinianName"}, {Country::Israel, "shouldGenerateIsraeliName"}, - {Country::Vietnam, "shouldGenerateVietnameseName"}, {Country::Monaco, "shouldGenerateMonacanName"}, - {Country::Bosnia, "shouldGenerateBosnianNames"}, {Country::Lebanon, "shouldGenerateLebaneseName"}, - {Country::Syria, "shouldGenerateSyrianName"}, {Country::Malta, "shouldGenerateMalteseName"}, - {Country::SouthAfrica, "shouldGenerateSouthAfricanName"}, {Country::Azerbaijan, "shouldGenerateAzerbaijaniName"}, + {Country::England, "shouldGenerateEnglishName"}, + {Country::France, "shouldGenerateFrenchName"}, + {Country::Germany, "shouldGenerateGermanName"}, + {Country::Italy, "shouldGenerateItalianName"}, + {Country::Poland, "shouldGeneratePolishName"}, + {Country::Russia, "shouldGenerateRussianName"}, + {Country::Romania, "shouldGenerateRomanianName"}, + {Country::India, "shouldGenerateIndianName"}, + {Country::Finland, "shouldGenerateFinnishName"}, + {Country::Nepal, "shouldGenerateNepaleseName"}, + {Country::Spain, "shouldGenerateSpanishName"}, + {Country::Turkey, "shouldGenerateTurkishName"}, + {Country::Czech, "shouldGenerateCzechName"}, + {Country::Slovakia, "shouldGenerateSlovakName"}, + {Country::Ukraine, "shouldGenerateUkrainianName"}, + {Country::Denmark, "shouldGenerateDanishName"}, + {Country::Sweden, "shouldGenerateSwedishName"}, + {Country::Usa, "shouldGenerateAmericanName"}, + {Country::Brazil, "shouldGenerateBrazilianName"}, + {Country::Norway, "shouldGenerateNorwegianName"}, + {Country::Japan, "shouldGenerateJapaneseName"}, + {Country::Portugal, "shouldGeneratePortugueseName"}, + {Country::Hungary, "shouldGenerateHungarianName"}, + {Country::Croatia, "shouldGenerateCroatianName"}, + {Country::Greece, "shouldGenerateGreekName"}, + {Country::Slovenia, "shouldGenerateSlovenianName"}, + {Country::Austria, "shouldGenerateAustrianName"}, + {Country::Switzerland, "shouldGenerateSwissName"}, + {Country::Belgium, "shouldGenerateBelgianName"}, + {Country::Netherlands, "shouldGenerateDutchName"}, + {Country::China, "shouldGenerateChineseName"}, + {Country::Korea, "shouldGenerateKoreanName"}, + {Country::Canada, "shouldGenerateCanadianName"}, + {Country::Mexico, "shouldGenerateMexicanName"}, + {Country::Argentina, "shouldGenerateArgentinianName"}, + {Country::Australia, "shouldGenerateAustralianName"}, + {Country::Serbia, "shouldGenerateSerbianName"}, + {Country::Macedonia, "shouldGenerateMacedonianName"}, + {Country::Latvia, "shouldGenerateLatvianName"}, + {Country::Ireland, "shouldGenerateIrishName"}, + {Country::Belarus, "shouldGenerateBelarusianName"}, + {Country::Estonia, "shouldGenerateEstonianName"}, + {Country::Albania, "shouldGenerateAlbanianName"}, + {Country::Iran, "shouldGeneratePersianName"}, + {Country::Bulgaria, "shouldGenerateBulgarianName"}, + {Country::Moldova, "shouldGenerateMoldovanName"}, + {Country::Lithuania, "shouldGenerateLithuanianName"}, + {Country::Iceland, "shouldGenerateIcelandicName"}, + {Country::Palestine, "shouldGeneratePalestinianName"}, + {Country::Israel, "shouldGenerateIsraeliName"}, + {Country::Vietnam, "shouldGenerateVietnameseName"}, + {Country::Monaco, "shouldGenerateMonacanName"}, + {Country::Bosnia, "shouldGenerateBosnianNames"}, + {Country::Lebanon, "shouldGenerateLebaneseName"}, + {Country::Syria, "shouldGenerateSyrianName"}, + {Country::Malta, "shouldGenerateMalteseName"}, + {Country::SouthAfrica, "shouldGenerateSouthAfricanName"}, + {Country::Azerbaijan, "shouldGenerateAzerbaijaniName"}, {Country::Ghana, "shouldGenerateGhanaianName"}, + {Country::Kazakhstan, "shouldGenerateKazakhName"}, }; } diff --git a/src/modules/person/data/kazakhstan/KazakhFirstNames.h b/src/modules/person/data/kazakhstan/KazakhFirstNames.h new file mode 100644 index 000000000..868154369 --- /dev/null +++ b/src/modules/person/data/kazakhstan/KazakhFirstNames.h @@ -0,0 +1,50 @@ +#pragma once + +#include +#include + +namespace faker +{ +const std::vector kazakhMalesFirstNames = { + "Абай", "Абдолла", "Абдулла", "Абдуллаһ", "Абдінасір", "Абылай", "Азамат", "Азиз", + "Айбек", "Айберген", "Айболат", "Айдос", "Айнабек", "Айсұлтан", "Айтқали", "Ақжан", + "Ақжол", "Аққу", "Алдаберген", "Алдияр", "Алпан", "Алпысбай", "Алтай", "Алтынбай", + "Алтынбек", "Амангелді", "Амандос", "Аманжол", "Амантай", "Аңсар", "Арыстан", "Арыстанбек", + "Асанбай", "Асанғали", "Асқар", "Асылбек", "Ахмет", "Аюхан", "Әбдуәли", "Әбдіғазиз", + "Әбдіғани", "Әбдіғаппар", "Әбдіжаппар", "Әбдіжәміл", "Әбдіқадыр", "Әбділда", "Әбділхамит", "Әбдімәлік", + "Әбдіразақ", "Әбдірахман", "Әбдірәсіл", "Әбдішүкір", "Әбиірбек", "Әбубәкір", "Әбуғали", "Әбілғазы", + "Әбілқайыр", "Әділ", "Әділбек", "Әділхан", "Әкежан", "Әлжан", "Әлжаппар", "Әли", + "Әлімжан", "Әлімқұл", "Әліхан", "Әмірбек", "Әнес", "Әсет", "Әубәкір", "Әуелхан", + "Бағдат", "Базарбай", "Байысхан", "Бақтияр", "Бақытжан", "Балтабек", "Бауыржан", "Бәкір", + "Бейбіт", "Бейсен", "Бекболат", "Бекзат", "Бердібек", "Бердіқұл", "Болат", "Боранбай", + "Бөріхан", "Бүркітбай", "Біржан", "Ғабдулла", "Ғабдұлла", "Ғабит", "Ғазиз", "Ғазизхан", + "Ғалымжан", "Ғани", "Ғаппар", "Ғұсман", "Дамир", "Даниял", "Дастан", "Дәлелхан", + "Дәнеш", "Дәулет", "Дәуіт", "Дос", "Досай", "Дүйсен", "Дүйсенғазы", "Дінмұхамед", + "Дінмұхаммед", "Еділ", "Елнұр", "Ербол", "Ерболат", "Ербосын", "Ережеп", "Ерекен", + "Еркебұлан", "Еркін", "Ерлан", "Ермек", "Ермұхамет", "Ерік", "Есбосын", "Есенгелді", + "Ескендір", "Жабайхан", "Жақия", "Жақсыбек", "Жақып", "Жақыпбек", "Жамалбек", "Жанбек", + "Жанболат", "Жандос", "Жанқуат", "Жанпейіс", "Жаңабай", "Жаңабек", "Жарасбай", "Жарасқан", + "Жармұқамет", "Жармұхамед", "Жармұхамет", "Жауынбай", "Жеменей", "Жеңіс", "Жолбарыс", "Жолжақсы", + "Жомарт", "Жомартбай", "Жұмабай", "Жұмағали", "Жұмақан", "Жұмамұрат", "Жұманазар", "Жұмекен", + "Жүніс", "Жүсіп", "Жүсіпбек", "Жылқыбек", "Зәкария", "Зәкәрия", "Зұлпықар", "Ибрахим", + "Ибраһим", "Иса", "Ислам", "Исламбек", "Исхақ", "Кәрім", "Кенжеғұл", "Кеңгірбай", + "Керімбай", "Күнесхан", "Қабдолла", "Қабдула", "Қабдыкәрім", "Қабыл", "Қажымқан", "Қайролла", + "Қалихан", "Қалқаман", "Қанат", "Қаныш", "Қаржаубай", "Қасым", "Қасымбек", "Қатшыбек", + "Қияқбай", "Қойшыбек", "Қуан", "Қуаныш", "Қуат", "Құбыш", "Құдайберген", "Құдыс"}; + +const std::vector kazakhFemalesFirstNames = { + "Ағила", "Ажар", "Ажаргүл", "Аида", "Айгүл", "Айдай", "Айжан", "Айжүрек", "Айнұр", + "Айша", "Ақбота", "Ақгүл", "Ақерке", "Ақжан", "Ақкүміс", "Аққу", "Алмагүл", "Алтынай", + "Анаргүл", "Ардақ", "Аруай", "Аружан", "Аяжан", "Аяужан", "Әдила", "Әдина", "Әлима", + "Әлия", "Әсел", "Әсемай", "Әсемгүл", "Базаргүл", "Бақаргүл", "Батима", "Бибігүл", "Ботакөз", + "Гауһар", "Гүлажар", "Гүлай", "Гүлбақыт", "Гүлбаршын", "Гүлболсын", "Гүлдана", "Гүлжан", "Гүлжауһар", + "Гүлмира", "Гүлнар", "Гүлнұр", "Гүлпариза", "Гүлфайрус", "Гүлфариза", "Гүлшара", "Гүлшат", "Ғайни", + "Ғалия", "Дариға", "Дәлила", "Дина", "Динара", "Ділдә", "Елерке", "Жазира", "Жамал", + "Жанар", "Жаннұр", "Жансая", "Жәмила", "Жолжақсы", "Жұлдыз", "Жібек", "Зейнекүл", "Зияда", + "Зылиха", "Күнсұлу", "Қадиша", "Қанағат", "Қарақат", "Қасиет", "Ләззат", "Ләтипа", "Лейла", + "Мақпал", "Марияш", "Мәриям", "Нәзерке", "Нұрбақыт", "Нұрзада", "Нұрсауле", "Нұрсұлу", "Перизат", + "Райана", "Райхан", "Раяна", "Рәбиға", "Риза", "Роза", "Сабина", "Сайрагүл", "Салтанат", + "Самал", "Сара", "Сәнімгүл", "Сәуле", "Таңшолпан", "Ұлбала", "Ұлбике", "Ұлболсын", "Ұлдана", + "Ұлжан", "Ұлмекен", "Фатима", "Хадиша", "Халида", "Шарапат", "Шахзада", "Шаһизада", "Шәмшия", + "Шәрбану", "Шолпан", "Ырысты", "Іңкәр"}; +} \ No newline at end of file diff --git a/src/modules/person/data/kazakhstan/KazakhLastNames.h b/src/modules/person/data/kazakhstan/KazakhLastNames.h new file mode 100644 index 000000000..c27aabbe6 --- /dev/null +++ b/src/modules/person/data/kazakhstan/KazakhLastNames.h @@ -0,0 +1,17 @@ +#pragma once + +#include +#include + +namespace faker +{ +const std::vector kazakhMalesLastNames = { + "Асылмұратов", "Әбдірахманов", "Әлімқұлов", "Етекбаев", "Жүнісов", "Жүсіп", "Иманқұлов", + "Исламқұлов", "Қуатбаев", "Құлов", "Мәженов", "Назарбаев", "Рүстемов", "Сәтбаев", + "Сұлтанбеков", "Сүгірбаев", "Сүлейменов", "Тоқаев", "Торайғыров", "Тұяқбаев", "Ысмайылов"}; + +const std::vector kazakhFemalesLastNames = { + "Әбдірахманова", "Әлімқұлова", "Етекбаева", "Жүнісова", "Иманқұлова", "Исламқұлова", + "Қуатбаева", "Құлова", "Мәженова", "Назарбаева", "Рүстемова", "Сұлтанбекова", + "Сүгірбаева", "Сүлейменова", "Тоқаева", "Тұяқбаева", "Ысмайылова", "Асылмұратова"}; +} \ No newline at end of file diff --git a/src/modules/person/data/kazakhstan/KazakhPeopleNames.h b/src/modules/person/data/kazakhstan/KazakhPeopleNames.h new file mode 100644 index 000000000..d07540d4b --- /dev/null +++ b/src/modules/person/data/kazakhstan/KazakhPeopleNames.h @@ -0,0 +1,15 @@ +#pragma once + +#include "../NameFormats.h" +#include "../PeopleNames.h" +#include "KazakhFirstNames.h" +#include "KazakhLastNames.h" + +namespace faker +{ +const NameFormats kazakhPersonNameFormats{{"{firstName} {lastName}", 1}}; + +const PeopleNames kazakhPeopleNames{{kazakhMalesFirstNames, {}, kazakhMalesLastNames, {}, {}}, + {kazakhFemalesFirstNames, {}, kazakhFemalesLastNames, {}, {}}, + kazakhPersonNameFormats}; +}