Skip to content

Commit

Permalink
add israeli people names
Browse files Browse the repository at this point in the history
  • Loading branch information
moshe-natan committed Jan 4, 2024
1 parent 3f8df54 commit 72eb9af
Show file tree
Hide file tree
Showing 6 changed files with 139 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/faker-cxx/types/Country.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ enum class Country
Moldova,
Lithuania,
Iceland,
Israel
};

const std::vector<Country> countries{
Expand All @@ -68,7 +69,7 @@ const std::vector<Country> 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)
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions src/modules/person/Person.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -95,6 +96,7 @@ const std::map<Country, PeopleNames> 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> sex);
Expand Down
3 changes: 3 additions & 0 deletions src/modules/person/PersonTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -93,6 +94,7 @@ const std::map<Country, PeopleNames> 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<Country, std::string> generatedTestName{
Expand Down Expand Up @@ -120,6 +122,7 @@ const std::map<Country, std::string> generatedTestName{
{Country::Albania, "shouldGenerateAlbanianName"}, {Country::Iran, "shouldGeneratePersianName"},
{Country::Bulgaria, "shouldGenerateBulgarianName"}, {Country::Moldova, "shouldGenerateMoldovanName"},
{Country::Lithuania, "shouldGenerateLithuanianName"}, {Country::Iceland, "shouldGenerateIcelandicName"},
{Country::Israel, "shouldGenerateIsraeliName"},
};
}

Expand Down
16 changes: 16 additions & 0 deletions src/modules/person/data/israel/IsraeliPeopleNames.h
Original file line number Diff line number Diff line change
@@ -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};
}
70 changes: 70 additions & 0 deletions src/modules/person/data/israel/IsraelisFirstNames.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#pragma once

#include <string>
#include <vector>

namespace faker
{
const std::vector<std::string> israelisMalesFirstNames = {
"דוד", "לביא", "אריאל", "יוסף", "נועם", "אורי", "רפאל", "ארי", "משה", "יהודה",
"אברהם", "איתן", "דניאל", "ישראל", "איתי", "שמואל", "אליה", "יהונתן", "יצחק", "שמעון",
"יעקב", "מיכאל", "עומר", "יונתן", "אהרון", "חיים", "אימרי", "אדם", "שלמה", "איתמר",
"עידו", "יאיר", "ינאי", "מאיר", "ישי", "מרדכי", "הראל", "בניה", "ניתאי", "בנימין",
"אליהו", "מנחם", "ליאם", "בארי", "אלון", "עילאי", "עמית", "בן", "נתן", "אור",
"נתנאל", "ריף", "אביב", "גיא", "נהוראי", "מאור", "ריי", "רום", "ליאו", "נוה",
"יובל", "הלל", "עומרי", "שחר", "אלרואי", "רוי", "נריה", "נדב", "דור", "צבי",
"מלאכי", "רועי", "עידן", "ראם", "אביתר", "נבו", "תום", "אלחנן", "אוריאל", "מעיין",
"אריה", "שלום", "גבריאל", "אליאב", "עוז", "אליעזר", "שילה", "ארבל", "ירדן", "לני",
"יואב", "נחמן", "גפן", "ליאור", "יהושע", "אביאל", "דן", "לוי", "אמיתי", "יהב",
"עמנואל", "זיו", "אייל", "אלעזר", "מתן", "ידידיה", "פנחס", "יהלי", "אופק", "אופיר",
"אבישי", "בר", "דביר", "יחיאל", "עברי", "אוריה", "שקד", "לירוי", "שי", "רני",
"ים", "נפתלי", "יגל", "פלג", "אסף", "ינון", "אדיר", "רון", "שליו", "אושר",
"כפיר", "אשר", "ברוך", "רותם", "שניאור", "אפרים", "גל", "דין", "טום", "רואי",
"תומר", "אוראל", "נטע", "אלמוג", "עתי", "ראובן", "יותם", "שמחה", "זוהר", "טומי",
"שון", "רז", "עופרי", "יחזקאל", "יהל", "ירין", "יואל", "צור", "סהר", "ליאב",
"דב", "עקיבא", "טל", "זאב", "גלעד", "ברי", "גבע", "איליי", "אלישע", "הדר",
"אילון", "ניב", "אדר", "קורן", "עילי", "ליעד", "הילל", "אליאור", "אחיה", "סיני",
"אושרי", "קאי", "אמרי", "אלימלך", "בועז", "יוחנן", "כרמל", "אלרועי", "יאן", "שאול",
"אסיף", "שלו", "ליאל", "ברק", "עדן", "ארז", "עדיאל", "דרור", "ניל", "ישעיה",
"עופר", "יפתח", "נחום", "אראל", "כרמי", "טוהר", "פאר", "מרום", "דורי", "ארד",
"לאו", "רעי", "אלעד", "עמיחי", "מאורי", "נגב", "גור", "אביחי", "ליאון", "עובדיה",
"עדי", "אורן", "ריו", "און", "שוהם", "אלרוי", "טוביה", "בניהו", "עזרא", "גיל",
"אלאור", "נח", "דולב", "אפק", "אביעד", "אלנתן", "יאר", "אילן", "דילן", "סאן",
"נאור", "ניצן", "מבשר", "אליעד", "קדם", "תבור", "לאון", "אליאל", "אלקנה", "ריין",
"נורי", "יונה", "אלכסנדר", "מתניה", "מייקל", "איתיאל", "אלרום", "בצלאל", "יוחאי", "יקותיאל",
"מיאל", "סול", "דורון", "אבינועם", "אוהד", "חגי", "יששכר", "שיר", "ענבר", "אביגדור",
"יוגב", "ניסים", "שגיא", "ניר", "נרי", "מתנאל", "אייר", "מנור", "לידור", "אביאור",
"ישעיהו", "עזריאל", "עמוס", "תבל", "חנוך", "להב", "צורי", "נחמיה", "שמשון", "כרם",
"אלי", "הוד", "יער", "אפיק", "שגב", "אלישיב", "אמיר"

};

const std::vector<std::string> israelisFemalesFirstNames = {
"תמר", "מאיה", "אביגיל", "נועה", "שרה", "איילה", "אדל", "יעל", "שירה", "אסתר", "חנה",
"אלה", "מרים", "רחל", "רבקה", "ליה", "חיה", "טליה", "רוני", "רומי", "מיכל", "נויה",
"אריאל", "רות", "ליבי", "עלמה", "הלל", "אמה", "גפן", "גאיה", "נעמי", "הודיה", "עומר",
"נגה", "אגם", "יובל", "שי-לי", "אפרת", "לאה", "מלכה", "אורי", "אוריה", "יהלי", "תהילה",
"אמילי", "יהודית", "תהל", "ארבל", "טוהר", "ליאן", "הדסה", "אבישג", "הילה", "אלישבע", "אלמה",
"נעמה", "עדי", "שקד", "עופרי", "שי", "מיקה", "הדס", "דבורה", "מעיין", "לני", "נטע",
"נועם", "הדר", "הללי", "מיאל", "אליה", "ליב", "נחמה", "אור", "ברכה", "אופיר", "אביב",
"ריף", "צפורה", "שיר", "שחר", "עמנואל", "חוה", "ליאל", "מוריה", "מיכאלה", "דניאל", "ירדן",
"שושנה", "זוהר", "אביטל", "עדן", "מאי", "ניב", "אלי", "שוהם", "אלין", "עמית", "אביה",
"גלי", "בר", "אן", "שיה", "בתיה", "יולי", "פיגא", "הילי", "רני", "אנאל", "שייה",
"גילי", "שני", "יסכה", "איימי", "זיו", "בת שבע", "כרמל", "סול", "דריה", "נאיה", "אודל",
"יערה", "שולמית", "שילת", "דניאלה", "אמונה", "ענהאל", "אמיליה", "ליבא", "מילה", "רונה", "אורין",
"ארייה", "שיינא", "טובה", "רותם", "גיטל", "גל", "יוכבד", "מאור", "אוריאן", "תבל", "טל",
"שיראל", "שפרה", "יעלה", "פנינה", "אלכס", "ליאור", "משי", "אליאן", "יהב", "איילת", "רננה",
"צופיה", "עמליה", "אורה", "תאיר", "מיילי", "איב", "לורן", "לירי", "זואי", "אמי", "ים",
"יהל", "סופיה", "קרני", "אליענה", "רון", "בת", "אלונה", "בלומה", "דני", "לייה", "אדוה",
"ניצן", "לינוי", "רז", "רנה", "הינדא", "עדינה", "ענבר", "לין", "דור", "אייר", "אחינועם",
"פלג", "אודיה", "אריאה", "עדיה", "עטרה", "דינה", "נלי", "גילה", "ארין", "אמור", "צביה",
"כרמי", "הלני", "נוי", "אנה", "ליאה", "גוני", "שיינדל", "לוטם", "פערל", "ליאם", "דורון",
"גולדה", "כרם", "פריאל", "ליהי", "תפארת", "כליל", "אודליה", "נינה", "אלומה", "יוטא", "בארי",
"רינה", "תמרה", "אופק", "דרור", "חן", "לילי", "אהובה", "רעות", "אמלי", "רייזל", "תגל",
"עידן", "מישל", "אווה", "מנור", "מילי", "נסיה", "דוריה", "בילא", "גיל", "סתיו", "קים",
"אלמוג", "אדר", "חושן", "ספיר", "אילת", "סהר", "יפה", "אלינור", "מיי", "שלי", "תום",
"מיתר", "נילי", "היילי", "יסמין", "ירין", "ריין", "לירון", "איטה", "ליהיא", "מרגלית", "מייה",
"גיטי", "אושר", "תומר", "אופל", "איידל", "חגית", "מנוחה", "ניקול", "סימה", "דר", "נאוה",
"תהלה", "מאורי", "אסנת", "טויבא", "רוחמה", "שירי", "הניה", "פריידא", "קדם", "בל", "אליאנה",
"קמה", "רום", "פאר", "לי", "מטר", "סימא", "עליזה", "ריי", "אוליביה", "אשירה", "הענא"};
}
45 changes: 45 additions & 0 deletions src/modules/person/data/israel/IsraelisLastNames.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#pragma once

#include <string>
#include <vector>

namespace faker
{
const std::vector<std::string> israelisLastNames = {
"כהן", "לוי", "מזרחי", "פרץ", "ביטון", "דהן", "אברהם", "פרידמן",
"אזולאי", "מלכה", "כץ", "דוד", "אוחיון", "חדד", "עמר", "גבאי",
"יוסף", "בן דוד", "אדרי", "קליין", "חן", "טל", "לוין", "שפירא",
"חזן", "מחאמיד", "זועבי", "לוין", "מנשה", "אוחנה", "סועאד", "גולן",
"סגל", "אשכנזי", "יצחק", "בר", "יעקב", "מור", "שלום", "אליהו",
"דיין", "סויסה", "לביא", "אלבז", "שמש", "אטיאס", "בכר", "נחום",
"שטרן", "שרעבי", "אלון", "רוזנברג", "ממן", "בן חמו", "מימון", "שחר",
"וקנין", "ששון", "עובדיה", "אסולין", "שורץ", "מאיר", "וייס", "גרינברג",
"חסן", "אמסלם", "גולדשטיין", "ברוך", "טאהא", "עזרא", "יפרח", "פלדמן",
"רובין", "הראל", "סלאמה", "סבג", "קדוש", "מנסור", "עמאש", "חיים",
"שחאדה", "רז", "קורן", "גולדברג", "צור", "חסון", "אברמוב", "שרון",
"רבינוביץ", "סופר", "חלבי", "ישראל", "דדון", "יצחקי", "שוורץ", "ישראלי",
"דניאל", "נעים", "אהרוני", "לב", "עיסא", "רחמים", "הרוש", "נאסר",
"שושן", "ברק", "יחזקאל", "דוידוב", "יאסין", "מילר", "אורן", "עודה",
"קפלן", "סלימאן", "בנימין", "נגר", "חיון", "גרוס", "רוזן", "גל",
"הרשקוביץ", "סולומון", "אסרף", "מלול", "אבו כף", "סלע", "שטרית", "אבראהים",
"ברקוביץ", "יהודה", "פלד", "צרפתי", "הייב", "בן שושן", "זידאן", "זוהר",
"שלו", "עלי", "זיו", "עמאר", "גאנם", "גוטמן", "אהרון", "גנאים",
"מויאל", "מרעי", "אבו ליל", "אלפסי", "אליאס", "אדלר", "פרנקל", "גאבר",
"פלג", "פישר", "ברגר", "ראובן", "מסרי", "שכטר", "צדוק", "ויצמן",
"הלוי", "אביטן", "אהרון", "לוגסי", "נסים", "רוזנפלד", "מועלם", "שוויקי",
"ליפשיץ", "דרעי", "עטיה", "תורגמן", "עואד", "שוקרון", "שקד", "דגן",
"שמעוני", "דיאב", "רוט", "ליברמן", "יעקובוב", "ליבוביץ", "סעיד", "מנחם",
"בן חיים", "חורי", "פולק", "ברכה", "עאסלה", "פוקס", "חדאד", "גולדמן",
"שמואלי", "שגב", "אברהמי", "מוסא", "תורג'מן", "פרי", "הררי", "אילוז",
"סרחאן", "מנשה", "אוזן", "מרדכי", "קוגן", "יונס", "צברי", "עומר",
"קרן", "שדה", "ח'לאילה", "שאול", "אביטל", "שני", "סלומון", "קאסם",
"אלימלך", "שטיין", "עבדאללה", "שיטרית", "דרור", "מלמד", "יונה", "כחלון",
"חביב", "טויטו", "חביבאללה", "סבן", "חמו", "פנחס", "בן עמי", "סעדי",
"בוזגלו", "דנינו", "פז", "חמדאן", "בן סימון", "רוזנטל", "בן משה", "סעד",
"גדיר", "יוסופוב", "בוסקילה", "בדארנה", "ארביב", "אמארה", "דביר", "אבו אל היג'א",
"אביב", "עליאן", "שלמה", "פורת", "פריד", "גוטליב", "חיימוב", "קאופמן",
"רביבו", "אשר", "אבו סאלח", "מרקוביץ", "אביטבול", "אברמוביץ", "יעקבי", "שניידר",
"אבו רמילה", "אלקיים", "רגב", "נחמני", "זהבי", "פינטו"

};
}

0 comments on commit 72eb9af

Please sign in to comment.