nuance_EXPIRY_DATE

Used for credit card expiry dates.

Sample language

  • June two thousand and twenty
  • one two slash two two
  • 05/21
  • one two two zero three five

Examples

Responses for the above samples are shown below.

Example: June two thousand and twenty

{
     "nuance_DATE_ABS": {
         "nuance_MONTH": 6,
         "nuance_YEAR": 2020
     }
}

Example: one two slash two two

{
     "nuance_DATE_ABS": {
         "nuance_MONTH": 12,
         "nuance_YEAR": 2022
     }
}

Example: 05/21

{
     "nuance_DATE_ABS": {
         "nuance_MONTH": 5,
         "nuance_YEAR": 2021
     }
}

Example: one two two zero three five

{
     "nuance_DATE_ABS": {
         "nuance_MONTH": 12,
         "nuance_YEAR": 2035
     }
}

New for v9.x and v10.x

Example: 10/03 (as on a credit card, month first year after)

{
    "nuance_DATE_ABS": {
        "nuance_MONTH": 10,
        "nuance_YEAR": 2003
    }
}

Schema

{
     "$schema": "http://json-schema.org/draft-04/schema#",
     "type": "object",
     "properties": {
         "nuance_EXPIRY_DATE": {
             "type": "object",
             "properties": {
                 "nuance_DATE_ABS": {
                     "type": "object",
                     "properties": {
                         "nuance_MONTH": {
                             "type": "number"
                         },
                         "nuance_YEAR": {
                             "type": "number"
                         }
                     }
                 }
             },
             "required": [
                 "nuance_DATE_ABS"
             ]
         }
     },
     "additionalProperties": false
}