Date and Birthdate Recognition

Available lang-locales: de (Germany) and en (North America)

This service extension provides more control over parsing dates if given in an unusual format, especially in combination with STT issues.

This advanced service extension significantly enhances the flexibility and accuracy of date parsing, particularly beneficial when handling dates presented in non-standard formats. This is an essential feature for addressing challenges that arise from Speech-to-Text (STT) inaccuracies or unconventional date representations. By leveraging this extension, users can ensure that dates are interpreted correctly, regardless of format peculiarities, leading to more reliable data processing and interpretation outcomes. It is an invaluable tool for projects where precise date recognition and accuracy are critical, making it easier to manage and analyze time-sensitive data accurately.

Service Configuration

  • success: A valid result was provided.

  • ambiguous: The input had multiple interpretations, resulting in multiple options in resultList.

  • invalid: The input could not be identified as a valid date.

Dialog Usage

Add the service to your dialog as usual. Below is a sample set of inputs:

Variables Description

Use a Storage block to capture raw input and set a variable to intent.rawPlatformRequestBody.text.

Service Modes

This is the default setting for the mode field and controls the general behavior of the Service. With this setting, the Service processes the input date as-is without expecting it to be from the past or the future.

Examples of Date Parsing Outcomes

Input

Two digit year that the automatic slot turns into a future date:

    "input": {
        "utterance": "Am 4.6. 42",
        "slot": "2042-06-04T00:00:00.000Z",
        "twoDigitThreshold": "19",
        "maxYear": "2006",
        "partialReturn": ""
    }

Output

Year is set to 1942 due to the twoDigitThreshold being set at 19, which is less than 42.

{
    "choice": "success",
    "output": {
        "result": "1942-06-04",
        "year": "1942",
        "month": "06",
        "day": "04"
    }
}

Last updated