As a municipality I want the correct and consistent aanschrijfwijze for my residents
# language: en Feature: As a municipality I want the correct and consistent aanschrijfwijze for my residents The fields aanschrijfwijze.naam and aanschrijfwijze.aanspreekvorm for a person are filled by the provider, so that a person can be addressed unambiguously. The aanschrijfwijze is used as the first line or lines of the address on an envelope, or at the top left of a letter, directly above the address. A woman may bear the title of nobility of her partner. This is called a 'hoffelijkheidstitel' or 'titre de courtoisie'. When composing the aanschrijfwijze, the following is determined in order: 1. Whether a courtesy title may be used. This is described in aanschrijfwijze/hoffelijkheidstitel.feature. 2. If not, whether a title of nobility or predicate may be used. This is described in aanschrijfwijze/adellijk.feature. 3. If not, the aanschrijfwijze is composed without a title of nobility or predicate. This is described in aanschrijfwijze/niet-adellijk.feature. Background: Given national table "Adellijke_Titel_Predicaat" has the following values | code | omschrijving | soort | | B | Baron | titel | | BS | Barones | titel | | G | Graaf | titel | | GI | Gravin | titel | | H | Hertog | titel | | HI | Hertogin | titel | | JH | Jonkheer | predicaat | | JV | Jonkvrouw | predicaat | | M | Markies | titel | | MI | Markiezin | titel | | P | Prins | titel | | PS | Prinses | titel | | R | Ridder | titel | Rule: For a woman without a title of nobility or predicate but with a partner with a title of nobility, the name in aanschrijfwijze is composed as follows: | aanduiding naamgebruik | omschrijving | naam in aanschrijfwijze | | E | eigen naam | VL VV GN | | P | partner naam | VL HT VP GP | | V | partner naam voor eigen naam | VL HT VP GP-VV GN | | N | partner naam na eigen naam | VL VV GN-HT VP GP | Meaning of the abbreviations in aanschrijfwijze: VL = initials VV = voorvoegselGeslachtsnaam (surname prefix) GN = surname VP = voorvoegselGeslachtsnaam of the partner GP = surname of the partner HT = courtesy title or 'titre de courtoisie' The courtesy title or 'titre de courtoisie' and the corresponding form of address is the female form of the title of nobility of the partner: | adellijke titel (ex)partner | hoffelijkheidstitel | aanspreekvorm | | B | barones | De hoogwelgeboren vrouwe | | G | gravin | De hooggeboren vrouwe | | H | hertogin | De hoogwelgeboren vrouwe | | M | markiezin | De hoogwelgeboren vrouwe | | P | prinses | De hoogheid | The aanschrijfwijze is composed without the courtesy title, as described in aanschrijfwijze/niet-adellijk.feature, where: - the person does not use the surname of the spouse/partner: aanduidingNaamgebruik is "E" (own name) - the gender of the person is not equal to "V" (female), so "M" (male) or "O" (unknown) - there is no courtesy title for the title of nobility of the partner (see the table above) The following also applies: - spaces at the start or end of aanschrijfwijze.naam are removed - double spaces are removed from aanschrijfwijze.naam - a space before or after the "-" is removed from aanschrijfwijze.naam - the initials are included as described in voorletters.feature - the courtesy title is written in lower case - the first name component in aanschrijfwijze.naam begins with a capital letter Scenario Outline: A woman with a noble partner and naamgebruik "<naamgebruik>" Given the person with citizen service number '000000206' has the following data | naam | waarde | | geslachtsaanduiding (04.10) | V | | voornamen (02.10) | Anne-Fleur | | voorvoegsel (02.30) | de | | geslachtsnaam (02.40) | Boer | | aanduiding naamgebruik (61.10) | <naamgebruik> | And the person has a 'partner' with the following data | naam | waarde | | adellijke titel of predicaat (02.20) | B | | voorvoegsel (02.30) | van den | | geslachtsnaam (02.40) | Aedel | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000206 | | fields | adressering.aanschrijfwijze | Then the response has a person with only the following 'adressering' data | naam | waarde | | aanschrijfwijze.naam | <naam in aanschrijfwijze> | | aanschrijfwijze.aanspreekvorm | De hoogwelgeboren vrouwe | Examples: | naamgebruik | naam in aanschrijfwijze | | P | A. barones van den Aedel | | V | A. barones van den Aedel-de Boer | | N | A. de Boer-barones van den Aedel | Scenario: A woman with a noble partner and naamgebruik "E" cannot use a courtesy title Given the person with citizen service number '000000206' has the following data | naam | waarde | | geslachtsaanduiding (04.10) | V | | voornamen (02.10) | Anne-Fleur | | voorvoegsel (02.30) | de | | geslachtsnaam (02.40) | Boer | | aanduiding naamgebruik (61.10) | E | And the person has a 'partner' with the following data | naam | waarde | | adellijke titel of predicaat (02.20) | B | | voorvoegsel (02.30) | van den | | geslachtsnaam (02.40) | Aedel | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000206 | | fields | adressering.aanschrijfwijze | Then the response has a person with only the following 'adressering' data | naam | waarde | | aanschrijfwijze.naam | A. de Boer | Scenario Outline: A person with geslacht <geslacht> with a noble partner cannot use a courtesy title Given the person with citizen service number '000000218' has the following data | naam | waarde | | geslachtsaanduiding (04.10) | <geslacht> | | voornamen (02.10) | John | | voorvoegsel (02.30) | de | | geslachtsnaam (02.40) | Boer | | aanduiding naamgebruik (61.10) | P | And the person has a 'partner' with the following data | naam | waarde | | adellijke titel of predicaat (02.20) | B | | voorvoegsel (02.30) | van den | | geslachtsnaam (02.40) | Aedel | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000218 | | fields | adressering.aanschrijfwijze | Then the response has a person with only the following 'adressering' data | naam | waarde | | aanschrijfwijze.naam | J. van den Aedel | Examples: | geslacht | | M | | O | Scenario Outline: A woman with a partner with title of nobility "<titel partner>" Given the person with citizen service number '000000231' has the following data | naam | waarde | | geslachtsaanduiding (04.10) | V | | voornamen (02.10) | Anne-Fleur | | voorvoegsel (02.30) | de | | geslachtsnaam (02.40) | Boer | | aanduiding naamgebruik (61.10) | P | And the person has a 'partner' with the following data | naam | waarde | | adellijke titel of predicaat (02.20) | <titel partner> | | voorvoegsel (02.30) | van den | | geslachtsnaam (02.40) | Aedel | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000231 | | fields | adressering.aanschrijfwijze | Then the response has a person with only the following 'adressering' data | naam | waarde | | aanschrijfwijze.naam | <naam in aanschrijfwijze> | | aanschrijfwijze.aanspreekvorm | <aanspreekvorm> | Examples: | titel partner | naam in aanschrijfwijze | aanspreekvorm | | B | A. barones van den Aedel | De hoogwelgeboren vrouwe | | G | A. gravin van den Aedel | De hooggeboren vrouwe | | H | A. hertogin van den Aedel | De hoogwelgeboren vrouwe | | M | A. markiezin van den Aedel | De hoogwelgeboren vrouwe | | P | A. prinses van den Aedel | De hoogheid | Scenario Outline: A woman with a partner with title of nobility "<titel partner>" cannot use a courtesy title Given the person with citizen service number '000000231' has the following data | naam | waarde | | geslachtsaanduiding (04.10) | V | | voornamen (02.10) | Anne-Fleur | | voorvoegsel (02.30) | de | | geslachtsnaam (02.40) | Boer | | aanduiding naamgebruik (61.10) | P | And the person has a 'partner' with the following data | naam | waarde | | adellijke titel of predicaat (02.20) | <titel partner> | | voorvoegsel (02.30) | van den | | geslachtsnaam (02.40) | Aedel | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000231 | | fields | adressering.aanschrijfwijze | Then the response has a person with only the following 'adressering' data | naam | waarde | | aanschrijfwijze.naam | A. van den Aedel | Examples: | titel partner | | BS | | GI | | HI | | JH | | JV | | MI | | PS | | R | Rule: For a woman with a title of nobility with a partner with a title of nobility, the name in aanschrijfwijze is composed as follows: | aanduiding naamgebruik | omschrijving | naam in aanschrijfwijze | | E | eigen naam | VL AT VV GN | | P | partner naam | VL HT VP GP | | V | partner naam voor eigen naam | VL HT VP GP-AT VV GN | | N | partner naam na eigen naam | VL AT VV GN-HT VP GP | Meaning of the abbreviations in aanschrijfwijze: VL = initials VV = voorvoegselGeslachtsnaam (surname prefix) GN = surname VP = voorvoegselGeslachtsnaam of the partner GP = surname of the partner HT = courtesy title or 'titre de courtoisie' The courtesy title or 'titre de courtoisie' is the female form of the title of nobility of the partner: | adellijke titel (ex)partner | hoffelijkheidstitel | aanspreekvorm | | B | barones | De hoogwelgeboren vrouwe | | G | gravin | De hooggeboren vrouwe | | H | hertogin | De hoogwelgeboren vrouwe | | M | markiezin | De hoogwelgeboren vrouwe | | P | prinses | De hoogheid | The aanschrijfwijze is composed without the courtesy title, as described in aanschrijfwijze/adellijk.feature, where: - the person does not use the surname of the spouse/partner: aanduidingNaamgebruik is "E" (own name) - the gender of the person is "M" (male) - there is no female form for the title of nobility of the partner (see the table above) The following also applies: - spaces at the start or end of aanschrijfwijze.naam are removed - double spaces are removed from aanschrijfwijze.naam - a space before or after the "-" is removed from aanschrijfwijze.naam - the initials are included as described in voorletters.feature - the courtesy title is written in lower case - the title of nobility is written in lower case - the first name component in aanschrijfwijze.naam begins with a capital letter Scenario Outline: A woman with a title of nobility and a partner with title of nobility "<titel partner>" Given the person with citizen service number '000000243' has the following data | naam | waarde | | geslachtsaanduiding (04.10) | V | | voornamen (02.10) | Anne-Fleur | | adellijke titel of predicaat (02.20) | BS | | voorvoegsel (02.30) | de | | geslachtsnaam (02.40) | Bonne Fooie | | aanduiding naamgebruik (61.10) | N | And the person has a 'partner' with the following data | naam | waarde | | adellijke titel of predicaat (02.20) | <titel partner> | | voorvoegsel (02.30) | van den | | geslachtsnaam (02.40) | Aedel | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000243 | | fields | adressering.aanschrijfwijze | Then the response has a person with only the following 'adressering' data | naam | waarde | | aanschrijfwijze.naam | <naam in aanschrijfwijze> | | aanschrijfwijze.aanspreekvorm | <aanspreekvorm> | Examples: | titel partner | naam in aanschrijfwijze | aanspreekvorm | omschrijving | | B | A. barones de Bonne Fooie-barones van den Aedel | De hoogwelgeboren vrouwe | aanspreekvorm uit hoffelijkheidstitel | | BS | A. barones de Bonne Fooie-van den Aedel | De hoogwelgeboren vrouwe | aanspreekvorm uit eigen titel | | G | A. barones de Bonne Fooie-gravin van den Aedel | De hooggeboren vrouwe | aanspreekvorm uit hoffelijkheidstitel | | GI | A. barones de Bonne Fooie-van den Aedel | De hoogwelgeboren vrouwe | aanspreekvorm uit eigen titel | | H | A. barones de Bonne Fooie-hertogin van den Aedel | De hoogwelgeboren vrouwe | aanspreekvorm uit hoffelijkheidstitel | | HI | A. barones de Bonne Fooie-van den Aedel | De hoogwelgeboren vrouwe | aanspreekvorm uit eigen titel | | JH | A. barones de Bonne Fooie-van den Aedel | De hoogwelgeboren vrouwe | aanspreekvorm uit eigen titel | | JV | A. barones de Bonne Fooie-van den Aedel | De hoogwelgeboren vrouwe | aanspreekvorm uit eigen titel | | M | A. barones de Bonne Fooie-markiezin van den Aedel | De hoogwelgeboren vrouwe | aanspreekvorm uit hoffelijkheidstitel | | MI | A. barones de Bonne Fooie-van den Aedel | De hoogwelgeboren vrouwe | aanspreekvorm uit eigen titel | | P | A. barones de Bonne Fooie-prinses van den Aedel | De hoogheid | aanspreekvorm uit hoffelijkheidstitel | | PS | A. barones de Bonne Fooie-van den Aedel | De hoogwelgeboren vrouwe | aanspreekvorm uit eigen titel | | R | A. barones de Bonne Fooie-van den Aedel | De hoogwelgeboren vrouwe | aanspreekvorm uit eigen titel | Scenario Outline: A woman with a title of nobility and a partner with a title of nobility and naamgebruik "<naamgebruik>" Given the person with citizen service number '000000255' has the following data | naam | waarde | | geslachtsaanduiding (04.10) | V | | voornamen (02.10) | Anne-Fleur | | adellijke titel of predicaat (02.20) | BS | | voorvoegsel (02.30) | de | | geslachtsnaam (02.40) | Bonne Fooie | | aanduiding naamgebruik (61.10) | <naamgebruik> | And the person has a 'partner' with the following data | naam | waarde | | adellijke titel of predicaat (02.20) | P | | voorvoegsel (02.30) | van den | | geslachtsnaam (02.40) | Aedel | When persons are searched with the following parameters | naam | waarde | | type | RaadpleegMetBurgerservicenummer | | burgerservicenummer | 000000255 | | fields | adressering.aanschrijfwijze | Then the response has a person with only the following 'adressering' data | naam | waarde | | aanschrijfwijze.naam | <naam in aanschrijfwijze> | | aanschrijfwijze.aanspreekvorm | <aanspreekvorm> | Examples: | naamgebruik | naam in aanschrijfwijze | aanspreekvorm | omschrijving | | E | A. barones de Bonne Fooie | De hoogwelgeboren vrouwe | aanspreekvorm uit eigen titel | | P | A. prinses van den Aedel | De hoogheid | aanspreekvorm uit hoffelijkheidstitel | | V | A. prinses van den Aedel-barones de Bonne Fooie | De hoogheid | aanspreekvorm uit hoffelijkheidstitel | | N | A. barones de Bonne Fooie-prinses van den Aedel | De hoogheid | aanspreekvorm uit hoffelijkheidstitel |