1 // generated by fakerjsgenerator 2 /// 3 module faked.faker_sv; 4 5 import faked.base; 6 7 8 /// 9 class Faker_sv : Faker { 10 @safe: 11 import std.random; 12 import std.array; 13 import std.format; 14 import std.conv : to; 15 16 /// 17 this(int seed) { 18 super(seed); 19 } 20 21 /// 22 override string companySuffix() { 23 static enum data = [ 24 "Gruppen", 25 "AB", 26 "HB", 27 "Group", 28 "Investment", 29 "Kommanditbolag", 30 "Aktiebolag" 31 ]; 32 return choice(data, this.rnd); 33 } 34 35 /// 36 override string companyName() { 37 switch(uniform(0, 3, this.rnd)) { 38 case 0: 39 return format!"%s %s"(nameLastName(), companySuffix()); 40 case 1: 41 return format!"%s-%s"(nameLastName(), nameLastName()); 42 case 2: 43 return format!"%s, %s %s"(nameLastName(), nameLastName(), companySuffix()); 44 default: assert(false); 45 } 46 } 47 48 /// 49 string nameFirstNameMen() { 50 static enum data = [ 51 "Erik", 52 "Lars", 53 "Karl", 54 "Anders", 55 "Per", 56 "Johan", 57 "Nils", 58 "Lennart", 59 "Emil", 60 "Hans" 61 ]; 62 return choice(data, this.rnd); 63 } 64 65 /// 66 override string nameName() { 67 switch(uniform(0, 8, this.rnd)) { 68 case 0: 69 return format!"%s %s"(nameFirstNameWomen(), nameLastName()); 70 case 1: 71 return format!"%s %s"(nameFirstNameMen(), nameLastName()); 72 case 2: 73 return format!"%s %s"(nameFirstNameWomen(), nameLastName()); 74 case 3: 75 return format!"%s %s"(nameFirstNameMen(), nameLastName()); 76 case 4: 77 return format!"%s %s"(nameFirstNameWomen(), nameLastName()); 78 case 5: 79 return format!"%s %s"(nameFirstNameMen(), nameLastName()); 80 case 6: 81 return format!"%s %s %s"(namePrefix(), nameFirstNameMen(), nameLastName()); 82 case 7: 83 return format!"%s %s %s"(namePrefix(), nameFirstNameWomen(), nameLastName()); 84 default: assert(false); 85 } 86 } 87 88 /// 89 override string namePrefix() { 90 static enum data = [ 91 "Dr.", 92 "Prof.", 93 "PhD." 94 ]; 95 return choice(data, this.rnd); 96 } 97 98 /// 99 override string nameLastName() { 100 static enum data = [ 101 "Johansson", 102 "Andersson", 103 "Karlsson", 104 "Nilsson", 105 "Eriksson", 106 "Larsson", 107 "Olsson", 108 "Persson", 109 "Svensson", 110 "Gustafsson" 111 ]; 112 return choice(data, this.rnd); 113 } 114 115 /// 116 string nameFirstNameWomen() { 117 static enum data = [ 118 "Astrid", 119 "Anna", 120 "Alice", 121 "Amanda", 122 "Ann", 123 "Agneta", 124 "Anette", 125 "Anneli", 126 "Alexandra", 127 "Agnes", 128 "Anne", 129 "Alva", 130 "Alma", 131 "Angelica", 132 "Ann-Marie", 133 "Maria", 134 "Margareta", 135 "Elisabeth", 136 "Eva", 137 "Birgitta", 138 "Kristina", 139 "Karin", 140 "Elisabet", 141 "Marie", 142 "Lotta", 143 "Ronja", 144 "Veronica" 145 ]; 146 return choice(data, this.rnd); 147 } 148 149 /// 150 override string nameTitleDescriptor() { 151 static enum data = [ 152 "Lead", 153 "Senior", 154 "Direct", 155 "Corporate", 156 "Dynamic", 157 "Future", 158 "Product", 159 "National", 160 "Regional", 161 "District", 162 "Central", 163 "Global", 164 "Customer", 165 "Investor", 166 "Dynamic", 167 "International", 168 "Legacy", 169 "Forward", 170 "Internal", 171 "Human", 172 "Chief", 173 "Principal" 174 ]; 175 return choice(data, this.rnd); 176 } 177 178 /// 179 override string nameTitleJob() { 180 static enum data = [ 181 "Supervisor", 182 "Associate", 183 "Executive", 184 "Liaison", 185 "Officer", 186 "Manager", 187 "Engineer", 188 "Specialist", 189 "Director", 190 "Coordinator", 191 "Administrator", 192 "Architect", 193 "Analyst", 194 "Designer", 195 "Planner", 196 "Orchestrator", 197 "Technician", 198 "Developer", 199 "Producer", 200 "Consultant", 201 "Assistant", 202 "Facilitator", 203 "Agent", 204 "Representative", 205 "Strategist" 206 ]; 207 return choice(data, this.rnd); 208 } 209 210 /// 211 override string nameTitleLevel() { 212 static enum data = [ 213 "Solutions", 214 "Program", 215 "Brand", 216 "Security", 217 "Research", 218 "Marketing", 219 "Directives", 220 "Implementation", 221 "Integration", 222 "Functionality", 223 "Response", 224 "Paradigm", 225 "Tactics", 226 "Identity", 227 "Markets", 228 "Group", 229 "Division", 230 "Applications", 231 "Optimization", 232 "Operations", 233 "Infrastructure", 234 "Intranet", 235 "Communications", 236 "Web", 237 "Branding", 238 "Quality", 239 "Assurance", 240 "Mobility", 241 "Accounts", 242 "Data", 243 "Creative", 244 "Configuration", 245 "Accountability", 246 "Interactions", 247 "Factors", 248 "Usability", 249 "Metrics" 250 ]; 251 return choice(data, this.rnd); 252 } 253 254 /// 255 override string commerceColor() { 256 static enum data = [ 257 "vit", 258 "silver", 259 "grå", 260 "svart", 261 "röd", 262 "grön", 263 "blå", 264 "gul", 265 "lila", 266 "indigo", 267 "guld", 268 "brun", 269 "rosa", 270 "purpur", 271 "korall" 272 ]; 273 return choice(data, this.rnd); 274 } 275 276 /// 277 override string commerceProductNameAdjective() { 278 static enum data = [ 279 "Liten", 280 "Ergonomisk", 281 "Robust", 282 "Intelligent", 283 "Söt", 284 "Otrolig", 285 "Fantastisk", 286 "Praktisk", 287 "Slimmad", 288 "Grym" 289 ]; 290 return choice(data, this.rnd); 291 } 292 293 /// 294 override string commerceProductNameMaterial() { 295 static enum data = [ 296 "Stål", 297 "Metall", 298 "Trä", 299 "Betong", 300 "Plast", 301 "Bomull", 302 "Granit", 303 "Gummi", 304 "Latex" 305 ]; 306 return choice(data, this.rnd); 307 } 308 309 /// 310 override string commerceProductNameProduct() { 311 static enum data = [ 312 "Stol", 313 "Bil", 314 "Dator", 315 "Handskar", 316 "Byxor", 317 "Skjorta", 318 "Bord", 319 "Skor", 320 "Hatt" 321 ]; 322 return choice(data, this.rnd); 323 } 324 325 /// 326 override string commerceDepartment() { 327 static enum data = [ 328 "Böcker", 329 "Filmer", 330 "Musik", 331 "Spel", 332 "Elektronik", 333 "Datorer", 334 "Hem", 335 "Trädgård", 336 "Verktyg", 337 "Livsmedel", 338 "Hälsa", 339 "Skönhet", 340 "Leksaker", 341 "Klädsel", 342 "Skor", 343 "Smycken", 344 "Sport" 345 ]; 346 return choice(data, this.rnd); 347 } 348 349 /// 350 string addressCommonStreetSuffix() { 351 static enum data = [ 352 "s Väg", 353 "s Gata" 354 ]; 355 return choice(data, this.rnd); 356 } 357 358 /// 359 override string addressState() { 360 static enum data = [ 361 "Blekinge", 362 "Dalarna", 363 "Gotland", 364 "Gävleborg", 365 "Göteborg", 366 "Halland", 367 "Jämtland", 368 "Jönköping", 369 "Kalmar", 370 "Kronoberg", 371 "Norrbotten", 372 "Skaraborg", 373 "Skåne", 374 "Stockholm", 375 "Södermanland", 376 "Uppsala", 377 "Värmland", 378 "Västerbotten", 379 "Västernorrland", 380 "Västmanland", 381 "Älvsborg", 382 "Örebro", 383 "Östergötland" 384 ]; 385 return choice(data, this.rnd); 386 } 387 388 /// 389 override string addressCountry() { 390 static enum data = [ 391 "Ryssland", 392 "Kanada", 393 "Kina", 394 "USA", 395 "Brasilien", 396 "Australien", 397 "Indien", 398 "Argentina", 399 "Kazakstan", 400 "Algeriet", 401 "DR Kongo", 402 "Danmark", 403 "Färöarna", 404 "Grönland", 405 "Saudiarabien", 406 "Mexiko", 407 "Indonesien", 408 "Sudan", 409 "Libyen", 410 "Iran", 411 "Mongoliet", 412 "Peru", 413 "Tchad", 414 "Niger", 415 "Angola", 416 "Mali", 417 "Sydafrika", 418 "Colombia", 419 "Etiopien", 420 "Bolivia", 421 "Mauretanien", 422 "Egypten", 423 "Tanzania", 424 "Nigeria", 425 "Venezuela", 426 "Namibia", 427 "Pakistan", 428 "Moçambique", 429 "Turkiet", 430 "Chile", 431 "Zambia", 432 "Marocko", 433 "Västsahara", 434 "Burma", 435 "Afghanistan", 436 "Somalia", 437 "Centralafrikanska republiken", 438 "Sydsudan", 439 "Ukraina", 440 "Botswana", 441 "Madagaskar", 442 "Kenya", 443 "Frankrike", 444 "Franska Guyana", 445 "Jemen", 446 "Thailand", 447 "Spanien", 448 "Turkmenistan", 449 "Kamerun", 450 "Papua Nya Guinea", 451 "Sverige", 452 "Uzbekistan", 453 "Irak", 454 "Paraguay", 455 "Zimbabwe", 456 "Japan", 457 "Tyskland", 458 "Kongo", 459 "Finland", 460 "Malaysia", 461 "Vietnam", 462 "Norge", 463 "Svalbard", 464 "Jan Mayen", 465 "Elfenbenskusten", 466 "Polen", 467 "Italien", 468 "Filippinerna", 469 "Ecuador", 470 "Burkina Faso", 471 "Nya Zeeland", 472 "Gabon", 473 "Guinea", 474 "Storbritannien", 475 "Ghana", 476 "Rumänien", 477 "Laos", 478 "Uganda", 479 "Guyana", 480 "Oman", 481 "Vitryssland", 482 "Kirgizistan", 483 "Senegal", 484 "Syrien", 485 "Kambodja", 486 "Uruguay", 487 "Tunisien", 488 "Surinam", 489 "Nepal", 490 "Bangladesh", 491 "Tadzjikistan", 492 "Grekland", 493 "Nicaragua", 494 "Eritrea", 495 "Nordkorea", 496 "Malawi", 497 "Benin", 498 "Honduras", 499 "Liberia", 500 "Bulgarien", 501 "Kuba", 502 "Guatemala", 503 "Island", 504 "Sydkorea", 505 "Ungern", 506 "Portugal", 507 "Jordanien", 508 "Serbien", 509 "Azerbajdzjan", 510 "Österrike", 511 "Förenade Arabemiraten", 512 "Tjeckien", 513 "Panama", 514 "Sierra Leone", 515 "Irland", 516 "Georgien", 517 "Sri Lanka", 518 "Litauen", 519 "Lettland", 520 "Togo", 521 "Kroatien", 522 "Bosnien och Hercegovina", 523 "Costa Rica", 524 "Slovakien", 525 "Dominikanska republiken", 526 "Bhutan", 527 "Estland", 528 "Danmark", 529 "Färöarna", 530 "Grönland", 531 "Nederländerna", 532 "Schweiz", 533 "Guinea-Bissau", 534 "Taiwan", 535 "Moldavien", 536 "Belgien", 537 "Lesotho", 538 "Armenien", 539 "Albanien", 540 "Salomonöarna", 541 "Ekvatorialguinea", 542 "Burundi", 543 "Haiti", 544 "Rwanda", 545 "Makedonien", 546 "Djibouti", 547 "Belize", 548 "Israel", 549 "El Salvador", 550 "Slovenien", 551 "Fiji", 552 "Kuwait", 553 "Swaziland", 554 "Timor-Leste", 555 "Montenegro", 556 "Bahamas", 557 "Vanuatu", 558 "Qatar", 559 "Gambia", 560 "Jamaica", 561 "Kosovo", 562 "Libanon", 563 "Cypern", 564 "Brunei", 565 "Trinidad och Tobago", 566 "Kap Verde", 567 "Samoa", 568 "Luxemburg", 569 "Komorerna", 570 "Mauritius", 571 "São Tomé och Príncipe", 572 "Kiribati", 573 "Dominica", 574 "Tonga", 575 "Mikronesiens federerade stater", 576 "Singapore", 577 "Bahrain", 578 "Saint Lucia", 579 "Andorra", 580 "Palau", 581 "Seychellerna", 582 "Antigua och Barbuda", 583 "Barbados", 584 "Saint Vincent och Grenadinerna", 585 "Grenada", 586 "Malta", 587 "Maldiverna", 588 "Saint Kitts och Nevis", 589 "Marshallöarna", 590 "Liechtenstein", 591 "San Marino", 592 "Tuvalu", 593 "Nauru", 594 "Monaco", 595 "Vatikanstaten" 596 ]; 597 return choice(data, this.rnd); 598 } 599 600 /// 601 override string addressDefaultCountry() { 602 static enum data = [ 603 "Sverige" 604 ]; 605 return choice(data, this.rnd); 606 } 607 608 /// 609 override string addressStreetAddress() { 610 return format!"%s %s"(addressStreetName(), addressBuildingNumber()); 611 } 612 613 /// 614 override string addressCitySuffix() { 615 static enum data = [ 616 "stad", 617 "land", 618 "sås", 619 "ås", 620 "holm", 621 "tuna", 622 "sta", 623 "berg", 624 "löv", 625 "borg", 626 "mora", 627 "hamn", 628 "fors", 629 "köping", 630 "by", 631 "hult", 632 "torp", 633 "fred", 634 "vik" 635 ]; 636 return choice(data, this.rnd); 637 } 638 639 /// 640 string addressStreetPrefix() { 641 static enum data = [ 642 "Västra", 643 "Östra", 644 "Norra", 645 "Södra", 646 "Övre", 647 "Undre" 648 ]; 649 return choice(data, this.rnd); 650 } 651 652 /// 653 override string addressCityPrefix() { 654 static enum data = [ 655 "Söder", 656 "Norr", 657 "Väst", 658 "Öster", 659 "Aling", 660 "Ar", 661 "Av", 662 "Bo", 663 "Br", 664 "Bå", 665 "Ek", 666 "En", 667 "Esk", 668 "Fal", 669 "Gäv", 670 "Göte", 671 "Ha", 672 "Helsing", 673 "Karl", 674 "Krist", 675 "Kram", 676 "Kung", 677 "Kö", 678 "Lyck", 679 "Ny" 680 ]; 681 return choice(data, this.rnd); 682 } 683 684 /// 685 string addressStreetRoot() { 686 static enum data = [ 687 "Björk", 688 "Järnvägs", 689 "Ring", 690 "Skol", 691 "Skogs", 692 "Ny", 693 "Gran", 694 "Idrotts", 695 "Stor", 696 "Kyrk", 697 "Industri", 698 "Park", 699 "Strand", 700 "Skol", 701 "Trädgård", 702 "Ängs", 703 "Kyrko", 704 "Villa", 705 "Ek", 706 "Kvarn", 707 "Stations", 708 "Back", 709 "Furu", 710 "Gen", 711 "Fabriks", 712 "Åker", 713 "Bäck", 714 "Asp" 715 ]; 716 return choice(data, this.rnd); 717 } 718 719 /// 720 override string addressStreetName() { 721 switch(uniform(0, 4, this.rnd)) { 722 case 0: 723 return format!"%s%s"(addressStreetRoot(), addressStreetSuffix()); 724 case 1: 725 return format!"%s %s%s"(addressStreetPrefix(), addressStreetRoot(), addressStreetSuffix()); 726 case 2: 727 return format!"%s%s"(nameFirstName(), addressCommonStreetSuffix()); 728 case 3: 729 return format!"%s%s"(nameLastName(), addressCommonStreetSuffix()); 730 default: assert(false); 731 } 732 } 733 734 /// 735 override string addressCity() { 736 return format!"%s%s"(addressCityPrefix(), addressCitySuffix()); 737 } 738 739 /// 740 override string addressPostcode() { 741 static enum data = [ 742 "#####" 743 ]; 744 return this.digitBuild(choice(data, this.rnd)); 745 } 746 747 /// 748 override string addressSecondaryAddress() { 749 static enum data = [ 750 "Lgh. ###", 751 "Hus ###" 752 ]; 753 return this.digitBuild(choice(data, this.rnd)); 754 } 755 756 /// 757 override string addressStreetSuffix() { 758 static enum data = [ 759 "vägen", 760 "gatan", 761 "gränden", 762 "gärdet", 763 "allén" 764 ]; 765 return choice(data, this.rnd); 766 } 767 768 /// 769 string teamSuffix() { 770 static enum data = [ 771 "IF", 772 "FF", 773 "BK", 774 "HK", 775 "AIF", 776 "SK", 777 "FC", 778 "SK", 779 "BoIS", 780 "FK", 781 "BIS", 782 "FIF", 783 "IK" 784 ]; 785 return choice(data, this.rnd); 786 } 787 788 /// 789 override string teamName() { 790 return format!"%s %s"(addressCity(), teamSuffix()); 791 } 792 793 /// 794 override string phoneNumberFormats() { 795 static enum data = [ 796 "####-#####", 797 "####-######" 798 ]; 799 return this.digitBuild(choice(data, this.rnd)); 800 } 801 802 /// 803 string cellPhoneCommonCellPrefix() { 804 static enum data = [ 805 "56", 806 "62", 807 "59" 808 ]; 809 return choice(data, this.rnd); 810 } 811 812 /// 813 override string cellPhoneFormats() { 814 static enum data = [ 815 "#{common_cell_prefix}-###-####" 816 ]; 817 return choice(data, this.rnd); 818 } 819 820 /// 821 override string internetDomainSuffix() { 822 static enum data = [ 823 "se", 824 "nu", 825 "info", 826 "com", 827 "org" 828 ]; 829 return choice(data, this.rnd); 830 } 831 832 }