Skip to content

Commit

Permalink
add monacan people names
Browse files Browse the repository at this point in the history
  • Loading branch information
cieslarmichal committed Jan 7, 2024
1 parent 5262361 commit 37e3027
Show file tree
Hide file tree
Showing 6 changed files with 445 additions and 6 deletions.
5 changes: 4 additions & 1 deletion include/faker-cxx/types/Country.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ enum class Country
Iceland,
Palestine,
Israel,
Monaco
};

const std::vector<Country> countries{
Expand All @@ -70,7 +71,8 @@ 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::Palestine, Country::Israel
Country::Moldova, Country::Lithuania, Country::Iceland, Country::Palestine, Country::Israel,
Country::Monaco,
};

inline std::string toString(Country country)
Expand Down Expand Up @@ -126,6 +128,7 @@ inline std::string toString(Country country)
{Country::Iceland, "Iceland"},
{Country::Palestine, "Palestine"},
{Country::Israel, "Israel"},
{Country::Monaco, "Monaco"},
};

return countryToStringMapping.at(country);
Expand Down
4 changes: 3 additions & 1 deletion src/modules/person/Person.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@
#include "data/macedonia/MacedonianPeopleNames.h"
#include "data/mexico/MexicanPeopleNames.h"
#include "data/moldova/MoldovanPeopleNames.h"
#include "data/monaco/MonacanPeopleNames.h"
#include "data/Nationalities.h"
#include "data/nepal/NepalesePeopleNames.h"
#include "data/netherlands/DutchPeopleNames.h"
#include "data/norway/NorwegianPeopleNames.h"
#include "data/poland/PolishPeopleNames.h"
#include "data/palestine/PalestinianPeopleNames.h"
#include "data/poland/PolishPeopleNames.h"
#include "data/portugal/PortuguesePeopleNames.h"
#include "data/romania/RomanianPeopleNames.h"
#include "data/russia/RussianPeopleNames.h"
Expand Down Expand Up @@ -98,6 +99,7 @@ const std::map<Country, PeopleNames> countryToPeopleNamesMapping{
{Country::Bulgaria, bulgarianPeopleNames}, {Country::Moldova, moldovanPeopleNames},
{Country::Lithuania, lithuanianPeopleNames}, {Country::Iceland, icelandicPeopleNames},
{Country::Palestine, palestinianPeopleNames}, {Country::Israel, israeliPeopleNames},
{Country::Monaco, monacanPeopleNames},
};

std::string middleNameForCountry(Country country, std::optional<Sex> sex);
Expand Down
11 changes: 7 additions & 4 deletions src/modules/person/PersonTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "data/austria/AustrianPeopleNames.h"
#include "data/belarus/BelarusianPeopleNames.h"
#include "data/belgium/BelgianPeopleNames.h"
#include "data/brazil/BrazilianPeopleNames.h"
#include "data/bulgaria/BulgarianPeopleNames.h"
#include "data/canada/CanadianPeopleNames.h"
#include "data/china/ChinesePeopleNames.h"
Expand All @@ -20,7 +21,6 @@
#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"
Expand All @@ -42,10 +42,13 @@
#include "data/macedonia/MacedonianPeopleNames.h"
#include "data/mexico/MexicanPeopleNames.h"
#include "data/moldova/MoldovanPeopleNames.h"
#include "data/monaco/MonacanPeopleNames.h"
#include "data/Nationalities.h"
#include "data/nepal/NepalesePeopleNames.h"
#include "data/netherlands/DutchPeopleNames.h"
#include "data/norway/NorwegianPeopleNames.h"
#include "data/palestine/PalestinianPeopleNames.h"
#include "data/PeopleNames.h"
#include "data/poland/PolishPeopleNames.h"
#include "data/portugal/PortuguesePeopleNames.h"
#include "data/romania/RomanianPeopleNames.h"
Expand All @@ -58,10 +61,8 @@
#include "data/switzerland/SwissPeopleNames.h"
#include "data/turkey/TurkishPeopleNames.h"
#include "data/ukraine/UkrainianPeopleNames.h"
#include "data/usa/UsaPeopleNames.h"
#include "data/ZodiacSigns.h"
#include "src/modules/person/data/brazil/BrazilianPeopleNames.h"
#include "src/modules/person/data/PeopleNames.h"
#include "src/modules/person/data/usa/UsaPeopleNames.h"

using namespace ::testing;
using namespace faker;
Expand Down Expand Up @@ -96,6 +97,7 @@ const std::map<Country, PeopleNames> countryToPeopleNamesMapping{
{Country::Bulgaria, bulgarianPeopleNames}, {Country::Moldova, moldovanPeopleNames},
{Country::Lithuania, lithuanianPeopleNames}, {Country::Iceland, icelandicPeopleNames},
{Country::Palestine, palestinianPeopleNames}, {Country::Israel, israeliPeopleNames},
{Country::Monaco, monacanPeopleNames},
};

const std::map<Country, std::string> generatedTestName{
Expand Down Expand Up @@ -124,6 +126,7 @@ const std::map<Country, std::string> generatedTestName{
{Country::Bulgaria, "shouldGenerateBulgarianName"}, {Country::Moldova, "shouldGenerateMoldovanName"},
{Country::Lithuania, "shouldGenerateLithuanianName"}, {Country::Iceland, "shouldGenerateIcelandicName"},
{Country::Palestine, "shouldGeneratePalestinianName"}, {Country::Israel, "shouldGenerateIsraeliName"},
{Country::Monaco, "shouldGenerateMonacanName"},
};
}

Expand Down
80 changes: 80 additions & 0 deletions src/modules/person/data/monaco/MonacanFirstNames.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#pragma once

#include <string>
#include <vector>

namespace faker
{
const std::vector<std::string> monacanMalesFirstNames = {
"Philippe", "David", "Robert", "Eric", "Patrick", "Christian", "Michel", "Pierre", "Marc",
"Olivier", "Nicolas", "Alain", "Michael", "John", "Christophe", "Daniel", "Paul", "Laurent",
"Thierry", "Marco", "Thomas", "Peter", "Alexandre", "Jacques", "Georges", "Paolo", "Richard",
"Julien", "Franck", "Joseph", "Francesco", "Mario", "Bernard", "Roberto", "Pascal", "Gilles",
"Bruno", "Stefano", "Anthony", "Massimo", "Luca", "Giovanni", "Fabrice", "James", "Charles",
"Vincent", "William", "Giuseppe", "Alessandro", "Carlo", "Guillaume", "Roger", "Giorgio", "Alex",
"Frederic", "Alberto", "Fabio", "Emmanuel", "Alexander", "Jan", "Enrico", "Antonio", "Antoine",
"Simon", "Didier", "Roland", "Martin", "Benjamin", "Louis", "Serge", "Raymond", "Mohamed",
"Mark", "Lionel", "Guy", "Patrice", "Gregory", "Maurice", "Arnaud", "Stephen", "Henri",
"Federico", "Maurizio", "Xavier", "Andrew", "Gilbert", "Luigi", "Jonathan", "Yves", "Fabien",
"Christopher", "Marcel", "Igor", "Albert", "Franco", "Sebastien", "Riccardo", "George", "Sylvain",
"Kevin", "Manuel", "Chris", "Pietro", "Romain", "Frank", "Max", "Mathieu", "Ian",
"Cyril", "Matteo", "Lorenzo", "Giancarlo", "Tony", "Vladimir", "Jeremy", "Yann", "Filippo",
"Colin", "Nicholas", "Jerome", "Davide", "Steven", "Damien", "Dario", "Gabriel", "Ali",
"Gianluca", "Philip", "Gerard", "Sergey", "Arthur", "Maxime", "Ivan", "Karl", "Edouard",
"Alan", "Luc", "Hans", "Fred", "Mauro", "Angelo", "Karim", "Carlos", "Matthieu",
"Benoit", "Hugo", "Fabrizio", "Carl", "Renato", "Ahmed", "Emanuele", "Claudio", "Edmond",
"Edward", "Joe", "Jose", "Cedric", "Sergio", "Fernando", "Walter", "Ludovic", "Florian",
"Salvatore", "Erik", "Yoann", "Luciano", "Guido", "Tom", "Brian", "Georg", "Raphael",
"Henry", "Gary", "Nabil", "Luis", "Pieter", "Yvan", "Giacomo", "Ronald", "Andre",
"Oliver", "Joel", "Donald", "Andrey", "Bertrand", "Marcus", "Matthew", "Gianni", "Nick",
"Stephan", "Victor", "Jorge", "Adam", "Neil", "Adrien", "Mamadou", "Flavio", "Gian",
"Norbert", "Stefan", "Sandro",
};

const std::vector<std::string> monacanFemalesFirstNames = {
"Jean", "Andrea", "Maria", "Catherine", "Isabelle", "Nathalie", "Anne", "Christine",
"Sophie", "Marie", "Anna", "Claude", "Sylvie", "Caroline", "Elena", "Jacqueline",
"Nicole", "Laura", "Alexandra", "Patricia", "Elisabeth", "Monique", "Brigitte", "Dominique",
"Christiane", "Sandrine", "Mireille", "Laurence", "Virginie", "Barbara", "Sandra", "Vanessa",
"Florence", "Cristina", "Olga", "Paola", "Annie", "Corinne", "Claire", "Audrey",
"Marina", "Carole", "Michele", "Sonia", "Elodie", "Karine", "Simone", "Francesca",
"Suzanne", "Colette", "Charlotte", "Muriel", "Julie", "Louise", "Fabienne", "Francis",
"Sarah", "Josiane", "Nadia", "Patrizia", "Victoria", "Evelyne", "Stephane", "Irina",
"Karen", "Chantal", "Sabrina", "Danielle", "Monica", "Magali", "Sabine", "Michelle",
"Mary", "Angela", "Roberta", "Carla", "Yvette", "Liliane", "Daniela", "Gabriele",
"Jeanne", "Samantha", "Denise", "Delphine", "Josette", "Rita", "Eliane", "Jeannine",
"Alexis", "Denis", "Olivia", "Pascale", "Valerie", "Tatiana", "Sara", "Eva",
"Emmanuelle", "Nadine", "Laetitia", "Linda", "Nicola", "Jessica", "Janine", "Claudine",
"Arlette", "Diane", "Laure", "Marguerite", "Emma", "Johanna", "Maryse", "Jennifer",
"Yvonne", "Diana", "Natalia", "Daniele", "Carine", "Alessandra", "Elizabeth", "Marine",
"Lisa", "Marion", "Manuela", "Solange", "Nancy", "Helen", "Rachel", "Alice",
"Bettina", "Emilie", "Annick", "Antonella", "Huguette", "Francine", "Alexia", "Chiara",
"Eleonora", "Valentina", "Karin", "Myriam", "Laurie", "Odette", "Stephanie", "Ingrid",
"Grace", "Pauline", "Ana", "Virginia", "Silvia", "Veronique", "Camille", "Celine",
"Teresa", "Micheline", "Christina", "Cinzia", "Jocelyne", "Anastasia", "Lucienne", "Jane",
"Alina", "Marisa", "Yannick", "Christelle", "Andreas", "Lydia", "Rose", "Juliette",
"Bianca", "Bernadette", "Svetlana", "Robin", "Nelly", "Susan", "Sylviane", "Judith",
"Aline", "Claudette", "Marianne", "Pierrette", "Elisa", "Sylvia", "Giovanna", "Viviane",
"Julia", "Clara", "Amandine", "Nataliya", "Stefania", "Katia", "Sacha", "Luisa",
"Paule", "Madeleine", "Marta", "Nina", "Claudia", "Caterina", "Edith", "Veronica",
"Larisa", "Carmen", "Marjorie", "Elvira", "Coralie", "Silvana", "Estelle", "Ruth",
"Michela", "Carol", "Camilla", "Yulia", "Jenny", "Paulette", "Anita", "Carolina",
"Eugenia", "Joelle", "Murielle", "Cynthia", "Janet", "Lara", "Fiona", "Lucia",
"Ursula", "Stella", "Wendy", "Odile", "Isabella", "Renata", "Lina", "Juan",
"Monika", "Tiziana", "Magdalena", "Natacha", "Adriana", "Emilienne", "Kelly", "Ann",
"Kristina", "Margarita", "Nicoletta", "Melanie", "Piera", "Cindy", "Elise", "Marianna",
"Carmela", "Rosanna", "Federica", "Amanda", "Melissa", "Cecile", "Armelle", "Lesley",
"Graziella", "Ekaterina", "Gabriella", "Lucie", "Anny", "Raymonde", "Yolande", "Antoinette",
"Ginette", "Annette", "Elisabetta", "Ariane", "Marcelle", "Leila", "Eveline", "Ashley",
"Beatrice", "Mathilde", "Aude", "Lydie", "Inna", "Iryna", "Morgan", "Vivian",
"Emilia", "Adrienne", "Willy", "Karina", "Ida", "Candice", "Simonetta", "Serenella",
"Marielle", "Dorota", "Eleni", "Aurore", "Erika", "Marthe", "Franca", "Lorraine",
"Fanny", "Gilberte", "Rossana", "Isabel", "Jasmine", "Giulia", "Santa", "Jeannette",
"Paula", "Dennis", "Mirella", "Maddalena", "Lucette", "Emanuela", "Flora", "Maryline",
"France", "Elsa", "Lorenza", "Rosa", "Deborah", "Maya", "Jesus", "Irene",
"Georgette", "Amina", "Justine", "Rosella", "Ewa", "Henriette", "Simona", "Irma",
"Agathe", "Lucile", "Danny", "Christel", "Veronika", "Sally", "Rosette", "Margaret",
"Dany", "Antonia", "Anouk", "Giorgia", "Joan", "Khadija", "Liliana", "Serena",
"Donatella", "Galina", "Annemarie", "Astrid", "Philippa", "Lise",
};
}
Loading

0 comments on commit 37e3027

Please sign in to comment.