nuance_QUANTITY

Defines values of magnitude. Can be relative (for example, “greater than nine”, < 100, “some”, “lots”) or absolute (for example, “ten”, 20). Note that QUANTITY_ABS does not have built-in grammars.

Sample language

  • more than five
  • a lot
  • 10
  • at least ten
  • > 25
  • minimum 16

Numeric value range

<= 99,999,999 (for nuance_QUANTITY_REL)

Schema

{
     "$schema": "http://json-schema.org/draft-04/schema#",
     "type": "object",
     "properties": {
         "nuance_QUANTITY": {
             "type": "object",
             "properties": {
                 "oneOf": [{
                         "nuance_QUANTITY_ABS": {
                             "type": "object",
                             "properties": {
                                 "nuance_NUMBER": {
                                     "type": "number"
                                 }
                             }
                         }
                     }, {
                         "nuance_QUANTITY_REL": {
                             "type": "object",
                             "properties": {
                                 "nuance_MODIFIER": {
                                     "type": "string",
                                     "pattern": "[GT|LT|GE|LE|EQ|INC|NONE|SOME|LOTS]"
                                 },
                                 "nuance_QUANTITY_ABS": {
                                     "type": "object",
                                     "properties": {
                                         "nuance_NUMBER": {
                                             "type": "number"
                                         }
                                     }
                                 }
                             },
                             "required": "nuance_MODIFIER"
                         }
                     }
                 ]
             }
         }
     },
     "additionalProperties": false
}