HAALCENTRAAL English translation
BRP API / Personen / Features / voorletters

Deriving initials from the given names of a person

#language: en

Feature: Deriving initials from the given names of a person

As a customer of municipalities
I want my initials rather than my given names to be filled in automatically in e-forms and personalized "mijn" environments
so that my name is displayed clearly

The initials are included as one (1) initial per given name, followed by a period (.).
If a given name is a compound name separated by a hyphen (-), then this given name is (also) abbreviated to a single initial.
If a given name begins with a digraph (Th, Ph, Ch, IJ, etc.), then this given name is (also) abbreviated to a single initial.
If one or more given names consist of a single letter, no period follows the letter.
Where another initial follows an initial without a period (the given name consisted of one letter), a space is placed between them.

Rule: Voorletters is composed from the first letter of the voornamen, separated by a period

  Scenario Outline: <titel>
    Given the person with citizen service number '000000413' has the following data
    | naam              | waarde      |
    | voornamen (02.10) | <voornamen> |
    When persons are searched with the following parameters
    | naam                | waarde                          |
    | type                | RaadpleegMetBurgerservicenummer |
    | burgerservicenummer | 000000413                       |
    | fields              | naam.voorletters                |
    Then the response has a person with only the following 'naam' data
    | naam        | waarde        |
    | voorletters | <voorletters> |

		Examples:
    | voornamen            | voorletters | titel                                               | description                                                                                                                       |
    | Henk                 | H.          | Één voornaam                                        |                                                                                                                                   |
    | Anna Cornelia        | A.C.        | Meerdere voornamen (1)                              |                                                                                                                                   |
    | Johan Frank Robert   | J.F.R.      | Meerdere voornamen (2)                              |                                                                                                                                   |
    | Theo Philip IJsbrand | T.P.I.      | Voornaam met een dubbelklank (Th, Ph, Ch, IJ, enz.) | Een voornaam dat begint met een dubbelklank (Th, Ph, Ch, IJ, enz.), wordt (ook) afgekort tot één voorletter.                      |
    | Anne-Fleur Belle     | A.B.        | Voornaam is een samengestelde naam                  |                                                                                                                                   |
    | Suzie Q              | S.Q         | Één voornaam bestaat uit één letter                 |                                                                                                                                   |
    | A                    | A           | Voornaam bestaat uit één letter                     | Een voornaam bestaand uit één letter, wordt afgekort tot een letter zonder .                                                      |
    | J P                  | J P         | Meerdere voornamen bestaan uit één letter           | Een voornaam bestaand uit één letter, gevolgd door een andere voornaam, wordt afgekort tot voorletters gescheiden door een spatie |

  Scenario: No voornamen
    Given the person with citizen service number '000000425' has the following data
    | naam                  | waarde |
    | voornamen (02.10)     |        |
    | geslachtsnaam (02.40) | Boer   |
    When persons are searched with the following parameters
    | naam                | waarde                               |
    | type                | RaadpleegMetBurgerservicenummer      |
    | burgerservicenummer | 000000425                            |
    | fields              | burgerservicenummer,naam.voorletters |
    Then the response has a person with the following data
    | naam                | waarde    |
    | burgerservicenummer | 000000425 |
    And the person has an empty 'naam' object