nuance_NUMBER

Represents a number (integer, fraction, or decimal point). Numbers can be described in natural speech up to and including a million.

Sample language

  • twenty seven
  • four and a half
  • 49

Examples

Responses for the above samples are shown below.

Example: twenty seven

{
     "nuance_NUMBER": {
         "nuance_CARDINAL_NUMBER": 27
     }
}

Example: four and a half

{
     "nuance_NUMBER": {
         "nuance_DOUBLE": 4.5
     }
}

Example: 49

{
     "nuance_NUMBER": {
         "nuance_CARDINAL_NUMBER": 49
     }
}

Schema

{
     "$schema": "http://json-schema.org/draft-04/schema#",
     "type": "object",
     "properties": {
         "nuance_NUMBER": {
             "type": "object",
             "properties": {
                 "oneOf": [{
                         "nuance_CARDINAL_NUMBER": {
                             "anyOf": [{
                                     "type": "number"
                                 }, {
                                     "type": "string"
                                 }
                             ]

                         }
                     }, {
                         "nuance_DOUBLE": {
                             "anyOf": [{
                                     "type": "number"
                                 }, {
                                     "type": "string"
                                 }
                             ]

                         }
                     }
                 ]
             }
         }
     },
     "additionalProperties": false
}