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.
See Changes between 6.x and 9.x for nuance_DURATION_RANGE.
Example
The phrase “between two and three months” returns this response:
{
"nuance_DURATION_RANGE_START": {
"nuance_DURATION": {
"nuance_DURATION_ABS": {
"nuance_NUMBER": {
"nuance_CARDINAL_NUMBER": 2
},
"nuance_UNIT": "month"
}
}
},
"nuance_DURATION_RANGE_END": {
"nuance_DURATION": {
"nuance_DURATION_ABS": {
"nuance_NUMBER": {
"nuance_CARDINAL_NUMBER": 3
},
"nuance_UNIT": "month"
}
}
}
}
Changes between 6.x and 9.x for nuance_DURATION_RANGE
nuance_NUMBER now returns, instead of a number, either:
Example:
- 6.x:
{"nuance_NUMBER":2,"nuance_UNIT":"month"}
- 9.x:
{"nuance_NUMBER":{"nuance_CARDINAL_NUMBER":2},"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": "object",
"properties": {
"oneOf": [{
"nuance_CARDINAL_NUMBER": {
"anyOf": [{
"type": "number"
}, {
"type": "string"
}
]
}
}, {
"nuance_DOUBLE": {
"anyOf": [{
"type": "number"
}, {
"type": "string"
}
]
}
}
]
}
},
"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": "object",
"properties": {
"oneOf": [{
"nuance_CARDINAL_NUMBER": {
"anyOf": [{
"type": "number"
}, {
"type": "string"
}
]
}
}, {
"nuance_DOUBLE": {
"anyOf": [{
"type": "number"
}, {
"type": "string"
}
]
}
}
]
}
},
"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": "object",
"properties": {
"oneOf": [{
"nuance_CARDINAL_NUMBER": {
"anyOf": [{
"type": "number"
}, {
"type": "string"
}
]
}
}, {
"nuance_DOUBLE": {
"anyOf": [{
"type": "number"
}, {
"type": "string"
}
]
}
}
]
}
},
"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": "object",
"properties": {
"oneOf": [{
"nuance_CARDINAL_NUMBER": {
"anyOf": [{
"type": "number"
}, {
"type": "string"
}
]
}
}, {
"nuance_DOUBLE": {
"anyOf": [{
"type": "number"
}, {
"type": "string"
}
]
}
}
]
}
},
"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
}
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.