From a2a2c723d312e5bbe7527e2032d504c9effa304b Mon Sep 17 00:00:00 2001 From: Michael Braun Date: Thu, 11 Jul 2024 15:32:26 +0200 Subject: [PATCH] House numbers according to DIN 5008 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit House numbers according to DIN 5008 Some of the house numbers for Germany created using Faker do not comply with DIN 5008: According to DIN 5008, you insert a space before the house number after a street name. If the house number is followed by a letter, this is again separated by a space. Compound house numbers are written with the "to" character (10 - 25) or the slash. Insert an apartment number after the house number and separate it with two slashes and a space. Examples: Berliner Ring 27 Hindenburgdamm 19 a Hochstraße 56/58 Hochstraße 56 - 58 Züricher Strasse 17// 28 URL: https://www.sekada.de/din-5008/din-lexikon-a-z/artikel/din-5008-schriftsatzregeln-fuer-daten-zeiten-hausnummern-und-co/ Translated with DeepL.com (free version) --- src/Provider/de_DE/Address.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Provider/de_DE/Address.php b/src/Provider/de_DE/Address.php index d8dc5b4677..cfc17df921 100644 --- a/src/Provider/de_DE/Address.php +++ b/src/Provider/de_DE/Address.php @@ -4,7 +4,7 @@ class Address extends \Faker\Provider\Address { - protected static $buildingNumber = ['%##', '%#', '%', '%/%', '%#[abc]', '%[abc]']; + protected static $buildingNumber = ['%##', '%#', '%', '%/%', '%# [a-h]', '% [a-h]', '%# - %#', '%#// %#']; protected static $streetSuffixLong = [ 'Gasse', 'Platz', 'Ring', 'Straße', 'Weg', 'Allee',