nuance_DURATION_RANGE

Represents a duration when it can span one of two time intervals. There must be at least a start or end duration value, and most often there are both.

Example

The input “between two and three months” returns this response:

{
  "nuance_DURATION_RANGE_START": {
     "nuance_DURATION": {
       "nuance_DURATION_ABS": {
         "nuance_NUMBER": 2,
         "nuance_UNIT": "month"
       }
     }
  },
  "nuance_DURATION_RANGE_END": {
     "nuance_DURATION": {
       "nuance_DURATION_ABS": {
         "nuance_NUMBER": 3,
         "nuance_UNIT": "month"
       }
     }
  }
}

Schema

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "nuance_DURATION_RANGE": {
      "type": "object",
      "properties": {
        "nuance_DURATION_RANGE_START": {
          "type": "object",
          "properties": {
            "nuance_DURATION": {
              "type": "object",
              "properties": {
                "oneOf": [{
                    "nuance_DURATION_ABS": {
                      "type": "object",
                      "properties": {
                        "nuance_NUMBER": {
                          "type": "number"
                        },
                        "nuance_UNIT": {
                          "type": "string",
                          "pattern": "[millisecond|second|minute|hour|day|week|month|year]"
                        },
                        "nuance_MODIFIER": {
                          "type": "string",
                          "pattern": "[fuzzy]"
                        }
                      }
                    },
                    "nuance_DURATION_REL": {
                      "type": "object",
                      "properties": {
                        "nuance_DURATION_ABS": {
                          "type": "object",
                          "properties": {

                            "nuance_NUMBER": {
                              "type": "number"
                            },
                            "nuance_UNIT": {
                              "type": "string",
                              "pattern": "[millisecond|second|minute|hour|day|week|month|year]"
                            }
                          }
                        },
                        "nuance_MODIFIER": {
                          "type": "string",
                          "pattern": "[GT|LT|GE|LE|EQ|INC]"
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "nuance_DURATION_RANGE_END": {
          "type": "object",
          "properties": {
            "nuance_DURATION": {
              "type": "object",
              "properties": {
                "oneOf": [{
                    "nuance_DURATION_ABS": {
                      "type": "object",
                      "properties": {
                        "nuance_NUMBER": {
                          "type": "number"
                        },
                        "nuance_UNIT": {
                          "type": "string",
                          "pattern": "[millisecond|second|minute|hour|day|week|month|year]"
                        },
                        "nuance_MODIFIER": {
                          "type": "string",
                          "pattern": "[fuzzy]"
                        }
                      }
                    },
                    "nuance_DURATION_REL": {
                      "type": "object",
                      "properties": {
                        "nuance_DURATION_ABS": {
                          "type": "object",
                          "properties": {

                            "nuance_NUMBER": {
                              "type": "number"
                            },
                            "nuance_UNIT": {
                              "type": "string",
                              "pattern": "[millisecond|second|minute|hour|day|week|month|year]"
                            }
                          }
                        },
                        "nuance_MODIFIER": {
                          "type": "string",
                          "pattern": "[GT|LT|GE|LE|EQ|INC]"
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        }
      }
    }
  },
  "additionalProperties": false
}