nuance_GENERIC_ORDER
Extends ORDINAL_NUMBER (1st, 2nd, 3rd, …, 31st) to represent special cases for expressing minimum, maximum, previous, successive, and so on.
See Changes between 6.x and 9.x for nuance_GENERIC_ORDER.
Tip:
Use nuance_GENERIC_ORDER when you want to include both ordinal numbers and words like ’last’, ’next’, ‘previous’, and so on. nuance_ORDINAL_NUMBER is best suited to numbers.Sample language
- first
- latest
- twenty second
- second to last
- previous
Examples
Responses for the above samples are shown below.
Example: first
{
"nuance_ORDER_REL": "min"
}
Example: latest
{
"nuance_ORDER_REL": "max"
}
Example: twenty second
{
"nuance_ORDINAL_NUMBER": 22
}
Example: second to last
{
"nuance_ORDER_REL": "penultimate"
}
Example: previous
{
"nuance_ORDER_REL": "prec"
}
Changes between 6.x and 9.x for nuance_GENERIC_ORDER
nuance_GENERIC_ORDER now returns either:
- ORDER_REL, which includes the additional patterns
other
andmiddle
- nuance_ORDINAL_NUMBER
Example: “twenty third”
- 6.x:
23
- 9.x:
{"nuance_ORDINAL_NUMBER":23}
Example: “next”
- 6.x:
"succ"
- 9.x:
{"nuance_ORDER_REL":"succ"}
Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"nuance_GENERIC_ORDER": {
"anyOf": [{
"ORDER_REL": {
"type": "string",
"pattern": "[min|max|succ|prec|other|middle|penultimate]"
}
}, {
"nuance_ORDINAL_NUMBER": {
"anyOf": [{
"type": "number"
}, {
"type": "string"
}
]
}
}
]
}
},
"required": [
"nuance_GENERIC_ORDER"
],
"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.