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.

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:

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
}