From 72eb9af82c8089833242d16c7d4cefa93de3e00b Mon Sep 17 00:00:00 2001 From: moshe-natan <118105292+moshe-natan@users.noreply.github.com> Date: Thu, 4 Jan 2024 10:30:21 +0200 Subject: [PATCH] add israeli people names --- include/faker-cxx/types/Country.h | 4 +- src/modules/person/Person.cpp | 2 + src/modules/person/PersonTest.cpp | 3 + .../person/data/israel/IsraeliPeopleNames.h | 16 +++++ .../person/data/israel/IsraelisFirstNames.h | 70 +++++++++++++++++++ .../person/data/israel/IsraelisLastNames.h | 45 ++++++++++++ 6 files changed, 139 insertions(+), 1 deletion(-) 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 d8c033cab..e0eb44212 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, + Israel }; 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::Israel }; 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::Israel, "Israel"} }; return countryToStringMapping.at(country); diff --git a/src/modules/person/Person.cpp b/src/modules/person/Person.cpp index f381f4cea..10c9e2e57 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" @@ -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::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 7fc3cea6b..d43ea7933 100644 --- a/src/modules/person/PersonTest.cpp +++ b/src/modules/person/PersonTest.cpp @@ -30,6 +30,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" @@ -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::Israel, israeliPeopleNames}, }; 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::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 = { + "כהן", "לוי", "מזרחי", "פרץ", "ביטון", "דהן", "אברהם", "פרידמן", + "אזולאי", "מלכה", "כץ", "דוד", "אוחיון", "חדד", "עמר", "גבאי", + "יוסף", "בן דוד", "אדרי", "קליין", "חן", "טל", "לוין", "שפירא", + "חזן", "מחאמיד", "זועבי", "לוין", "מנשה", "אוחנה", "סועאד", "גולן", + "סגל", "אשכנזי", "יצחק", "בר", "יעקב", "מור", "שלום", "אליהו", + "דיין", "סויסה", "לביא", "אלבז", "שמש", "אטיאס", "בכר", "נחום", + "שטרן", "שרעבי", "אלון", "רוזנברג", "ממן", "בן חמו", "מימון", "שחר", + "וקנין", "ששון", "עובדיה", "אסולין", "שורץ", "מאיר", "וייס", "גרינברג", + "חסן", "אמסלם", "גולדשטיין", "ברוך", "טאהא", "עזרא", "יפרח", "פלדמן", + "רובין", "הראל", "סלאמה", "סבג", "קדוש", "מנסור", "עמאש", "חיים", + "שחאדה", "רז", "קורן", "גולדברג", "צור", "חסון", "אברמוב", "שרון", + "רבינוביץ", "סופר", "חלבי", "ישראל", "דדון", "יצחקי", "שוורץ", "ישראלי", + "דניאל", "נעים", "אהרוני", "לב", "עיסא", "רחמים", "הרוש", "נאסר", + "שושן", "ברק", "יחזקאל", "דוידוב", "יאסין", "מילר", "אורן", "עודה", + "קפלן", "סלימאן", "בנימין", "נגר", "חיון", "גרוס", "רוזן", "גל", + "הרשקוביץ", "סולומון", "אסרף", "מלול", "אבו כף", "סלע", "שטרית", "אבראהים", + "ברקוביץ", "יהודה", "פלד", "צרפתי", "הייב", "בן שושן", "זידאן", "זוהר", + "שלו", "עלי", "זיו", "עמאר", "גאנם", "גוטמן", "אהרון", "גנאים", + "מויאל", "מרעי", "אבו ליל", "אלפסי", "אליאס", "אדלר", "פרנקל", "גאבר", + "פלג", "פישר", "ברגר", "ראובן", "מסרי", "שכטר", "צדוק", "ויצמן", + "הלוי", "אביטן", "אהרון", "לוגסי", "נסים", "רוזנפלד", "מועלם", "שוויקי", + "ליפשיץ", "דרעי", "עטיה", "תורגמן", "עואד", "שוקרון", "שקד", "דגן", + "שמעוני", "דיאב", "רוט", "ליברמן", "יעקובוב", "ליבוביץ", "סעיד", "מנחם", + "בן חיים", "חורי", "פולק", "ברכה", "עאסלה", "פוקס", "חדאד", "גולדמן", + "שמואלי", "שגב", "אברהמי", "מוסא", "תורג'מן", "פרי", "הררי", "אילוז", + "סרחאן", "מנשה", "אוזן", "מרדכי", "קוגן", "יונס", "צברי", "עומר", + "קרן", "שדה", "ח'לאילה", "שאול", "אביטל", "שני", "סלומון", "קאסם", + "אלימלך", "שטיין", "עבדאללה", "שיטרית", "דרור", "מלמד", "יונה", "כחלון", + "חביב", "טויטו", "חביבאללה", "סבן", "חמו", "פנחס", "בן עמי", "סעדי", + "בוזגלו", "דנינו", "פז", "חמדאן", "בן סימון", "רוזנטל", "בן משה", "סעד", + "גדיר", "יוסופוב", "בוסקילה", "בדארנה", "ארביב", "אמארה", "דביר", "אבו אל היג'א", + "אביב", "עליאן", "שלמה", "פורת", "פריד", "גוטליב", "חיימוב", "קאופמן", + "רביבו", "אשר", "אבו סאלח", "מרקוביץ", "אביטבול", "אברמוביץ", "יעקבי", "שניידר", + "אבו רמילה", "אלקיים", "רגב", "נחמני", "זהבי", "פינטו" + +}; +}