tpmkms_4wp 8.9.1-beta.2 → 8.9.1-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/animals.instance.json +348 -68
 - package/common/articles.js +20 -4
 - package/common/articles.test.json +338 -0
 - package/common/asking.js +3 -3
 - package/common/asking.test.json +41 -0
 - package/common/avatar.js +1 -1
 - package/common/characters.js +1 -1
 - package/common/colors.instance.json +608 -113
 - package/common/comparable.instance.json +60 -12
 - package/common/comparable.js +2 -2
 - package/common/concept.js +2 -2
 - package/common/conjunction.js +1 -1
 - package/common/countable.js +3 -9
 - package/common/countable.test.json +0 -586
 - package/common/crew.instance.json +520 -392
 - package/common/currency.js +2 -2
 - package/common/dialogues.js +28 -11
 - package/common/dimension.instance.json +16 -8
 - package/common/dimension.js +2 -2
 - package/common/edible.instance.json +595 -229
 - package/common/emotions.instance.json +20 -4
 - package/common/errors.js +3 -1
 - package/common/events.js +1 -1
 - package/common/fastfood.instance.json +2095 -1498
 - package/common/fastfood.js +16 -10
 - package/common/formulas.instance.json +16 -5
 - package/common/formulas.js +1 -1
 - package/common/formulas.test.json +461 -10
 - package/common/gdefaults.js +27 -14
 - package/common/help.js +4 -4
 - package/common/help.test.json +4 -4
 - package/common/helpers/concept.js +5 -5
 - package/common/helpers/conjunction.js +1 -1
 - package/common/helpers/formulas.js +4 -4
 - package/common/helpers/frankenhash.js +4 -4
 - package/common/helpers/meta.js +4 -4
 - package/common/helpers/ordering.js +2 -2
 - package/common/helpers/properties.js +17 -17
 - package/common/helpers.js +17 -1
 - package/common/hierarchy.js +3 -3
 - package/common/javascript.js +1 -1
 - package/common/kirk.instance.json +20 -4
 - package/common/length.instance.json +300 -80
 - package/common/math.instance.json +16 -5
 - package/common/math.js +1 -1
 - package/common/meta.js +5 -5
 - package/common/nameable.js +1 -1
 - package/common/negation.js +1 -1
 - package/common/numbers.js +1 -1
 - package/common/ordering.instance.json +41 -11
 - package/common/ordinals.js +9 -3
 - package/common/ordinals.test.json +327 -0
 - package/common/people.instance.json +228 -80
 - package/common/people.js +1 -1
 - package/common/percentages.js +1 -1
 - package/common/pipboy.instance.json +334 -180
 - package/common/pipboy.js +6 -6
 - package/common/pokemon.instance.json +304 -57
 - package/common/pos.js +16 -6
 - package/common/pressure.instance.json +64 -23
 - package/common/properties.instance.json +20 -4
 - package/common/properties.js +6 -6
 - package/common/punctuation.js +1 -1
 - package/common/reports.instance.json +34 -12
 - package/common/reports.js +9 -9
 - package/common/scorekeeper.js +5 -5
 - package/common/sdefaults.js +2 -2
 - package/common/sizeable.js +2 -2
 - package/common/spock.instance.json +20 -4
 - package/common/stm.js +6 -6
 - package/common/tell.js +1 -1
 - package/common/temperature.instance.json +64 -24
 - package/common/tester.js +1 -1
 - package/common/ui.instance.json +21 -5
 - package/common/weight.instance.json +261 -109
 - package/common/wp.instance.json +6621 -404
 - package/common/wp.js +199 -41
 - package/common/wp.test.json +109575 -3828
 - package/common/yesno.js +1 -1
 - package/package.json +11 -6
 
    
        package/common/articles.js
    CHANGED
    
    | 
         @@ -4,7 +4,7 @@ const pos = require('./pos.js') 
     | 
|
| 
       4 
4 
     | 
    
         
             
            const { defaultContextCheck } = require('./helpers')
         
     | 
| 
       5 
5 
     | 
    
         
             
            const tests = require('./articles.test.json')
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
      
 7 
     | 
    
         
            +
            const config = {
         
     | 
| 
       8 
8 
     | 
    
         
             
              name: 'articles',
         
     | 
| 
       9 
9 
     | 
    
         
             
              operators: [
         
     | 
| 
       10 
10 
     | 
    
         
             
                "([thisitthat|])",
         
     | 
| 
         @@ -17,6 +17,8 @@ let config = { 
     | 
|
| 
       17 
17 
     | 
    
         
             
                "(<what> ([whatAble|]))",
         
     | 
| 
       18 
18 
     | 
    
         
             
                "([what:optional])",
         
     | 
| 
       19 
19 
     | 
    
         
             
              */
         
     | 
| 
      
 20 
     | 
    
         
            +
                "(<each> ([distributable]))",
         
     | 
| 
      
 21 
     | 
    
         
            +
                "(<every> ([distributable]))",
         
     | 
| 
       20 
22 
     | 
    
         
             
                "(<the|> ([theAble]))",
         
     | 
| 
       21 
23 
     | 
    
         
             
                "(<a|a,an> ([theAble|]))",
         
     | 
| 
       22 
24 
     | 
    
         
             
              ],
         
     | 
| 
         @@ -26,6 +28,20 @@ let config = { 
     | 
|
| 
       26 
28 
     | 
    
         
             
                {
         
     | 
| 
       27 
29 
     | 
    
         
             
                  id: 'everything',
         
     | 
| 
       28 
30 
     | 
    
         
             
                },
         
     | 
| 
      
 31 
     | 
    
         
            +
                { 
         
     | 
| 
      
 32 
     | 
    
         
            +
                  id: 'each', 
         
     | 
| 
      
 33 
     | 
    
         
            +
                  isA: ['article'], 
         
     | 
| 
      
 34 
     | 
    
         
            +
                  bridge: '{ ...after[0], focusableForPhrase: true, pullFromContext: true, concept: true, wantsValue: true, distributer: operator, modifiers: append(["distributer"], after[0].modifiers)}' 
         
     | 
| 
      
 35 
     | 
    
         
            +
                },
         
     | 
| 
      
 36 
     | 
    
         
            +
                { 
         
     | 
| 
      
 37 
     | 
    
         
            +
                  id: 'every', 
         
     | 
| 
      
 38 
     | 
    
         
            +
                  isA: ['article'], 
         
     | 
| 
      
 39 
     | 
    
         
            +
                  bridge: '{ ...after[0], focusableForPhrase: true, pullFromContext: true, concept: true, wantsValue: true, distributer: operator, modifiers: append(["distributer"], after[0].modifiers)}' 
         
     | 
| 
      
 40 
     | 
    
         
            +
                },
         
     | 
| 
      
 41 
     | 
    
         
            +
                { 
         
     | 
| 
      
 42 
     | 
    
         
            +
                  id: 'distributable', 
         
     | 
| 
      
 43 
     | 
    
         
            +
                  isA: ['queryable'], 
         
     | 
| 
      
 44 
     | 
    
         
            +
                },
         
     | 
| 
       29 
45 
     | 
    
         
             
                { 
         
     | 
| 
       30 
46 
     | 
    
         
             
                  id: 'the', 
         
     | 
| 
       31 
47 
     | 
    
         
             
                  level: 0, 
         
     | 
| 
         @@ -79,8 +95,8 @@ let config = { 
     | 
|
| 
       79 
95 
     | 
    
         
             
                ['it', 'pronoun'],
         
     | 
| 
       80 
96 
     | 
    
         
             
                ['this', 'pronoun'],
         
     | 
| 
       81 
97 
     | 
    
         
             
                // ['questionMark', 'isEd'],
         
     | 
| 
       82 
     | 
    
         
            -
                ['a', ' 
     | 
| 
       83 
     | 
    
         
            -
                ['the', ' 
     | 
| 
      
 98 
     | 
    
         
            +
                ['a', 'article'],
         
     | 
| 
      
 99 
     | 
    
         
            +
                ['the', 'article'],
         
     | 
| 
       84 
100 
     | 
    
         
             
                ['it', 'queryable'],
         
     | 
| 
       85 
101 
     | 
    
         
             
                // ['it', 'toAble'],
         
     | 
| 
       86 
102 
     | 
    
         
             
                ['this', 'queryable'],
         
     | 
| 
         @@ -100,7 +116,7 @@ knowledgeModule( { 
     | 
|
| 
       100 
116 
     | 
    
         
             
                contents: tests,
         
     | 
| 
       101 
117 
     | 
    
         
             
                checks: {
         
     | 
| 
       102 
118 
     | 
    
         
             
                        objects: ['onNevermindWasCalled', 'nevermindType', 'idSuffix'],
         
     | 
| 
       103 
     | 
    
         
            -
                        context: defaultContextCheck(),
         
     | 
| 
      
 119 
     | 
    
         
            +
                        context: defaultContextCheck(['distributer']),
         
     | 
| 
       104 
120 
     | 
    
         
             
                      },
         
     | 
| 
       105 
121 
     | 
    
         | 
| 
       106 
122 
     | 
    
         
             
              },
         
     | 
| 
         @@ -306,5 +306,343 @@ 
     | 
|
| 
       306 
306 
     | 
    
         
             
                "responses": [
         
     | 
| 
       307 
307 
     | 
    
         
             
                  ""
         
     | 
| 
       308 
308 
     | 
    
         
             
                ]
         
     | 
| 
      
 309 
     | 
    
         
            +
              },
         
     | 
| 
      
 310 
     | 
    
         
            +
              {
         
     | 
| 
      
 311 
     | 
    
         
            +
                "associations": [
         
     | 
| 
      
 312 
     | 
    
         
            +
                  [
         
     | 
| 
      
 313 
     | 
    
         
            +
                    [
         
     | 
| 
      
 314 
     | 
    
         
            +
                      "distributable",
         
     | 
| 
      
 315 
     | 
    
         
            +
                      0
         
     | 
| 
      
 316 
     | 
    
         
            +
                    ],
         
     | 
| 
      
 317 
     | 
    
         
            +
                    [
         
     | 
| 
      
 318 
     | 
    
         
            +
                      "every",
         
     | 
| 
      
 319 
     | 
    
         
            +
                      0
         
     | 
| 
      
 320 
     | 
    
         
            +
                    ]
         
     | 
| 
      
 321 
     | 
    
         
            +
                  ]
         
     | 
| 
      
 322 
     | 
    
         
            +
                ],
         
     | 
| 
      
 323 
     | 
    
         
            +
                "config": {
         
     | 
| 
      
 324 
     | 
    
         
            +
                },
         
     | 
| 
      
 325 
     | 
    
         
            +
                "contexts": [
         
     | 
| 
      
 326 
     | 
    
         
            +
                  {
         
     | 
| 
      
 327 
     | 
    
         
            +
                    "concept": true,
         
     | 
| 
      
 328 
     | 
    
         
            +
                    "dead": true,
         
     | 
| 
      
 329 
     | 
    
         
            +
                    "default": true,
         
     | 
| 
      
 330 
     | 
    
         
            +
                    "distributer": {
         
     | 
| 
      
 331 
     | 
    
         
            +
                      "default": true,
         
     | 
| 
      
 332 
     | 
    
         
            +
                      "level": 0,
         
     | 
| 
      
 333 
     | 
    
         
            +
                      "marker": "every",
         
     | 
| 
      
 334 
     | 
    
         
            +
                      "range": {
         
     | 
| 
      
 335 
     | 
    
         
            +
                        "end": 4,
         
     | 
| 
      
 336 
     | 
    
         
            +
                        "start": 0
         
     | 
| 
      
 337 
     | 
    
         
            +
                      },
         
     | 
| 
      
 338 
     | 
    
         
            +
                      "text": "every",
         
     | 
| 
      
 339 
     | 
    
         
            +
                      "value": "every",
         
     | 
| 
      
 340 
     | 
    
         
            +
                      "word": "every"
         
     | 
| 
      
 341 
     | 
    
         
            +
                    },
         
     | 
| 
      
 342 
     | 
    
         
            +
                    "focusableForPhrase": true,
         
     | 
| 
      
 343 
     | 
    
         
            +
                    "level": 1,
         
     | 
| 
      
 344 
     | 
    
         
            +
                    "marker": "distributable",
         
     | 
| 
      
 345 
     | 
    
         
            +
                    "modifiers": [
         
     | 
| 
      
 346 
     | 
    
         
            +
                      "distributer"
         
     | 
| 
      
 347 
     | 
    
         
            +
                    ],
         
     | 
| 
      
 348 
     | 
    
         
            +
                    "pullFromContext": true,
         
     | 
| 
      
 349 
     | 
    
         
            +
                    "range": {
         
     | 
| 
      
 350 
     | 
    
         
            +
                      "end": 18,
         
     | 
| 
      
 351 
     | 
    
         
            +
                      "start": 0
         
     | 
| 
      
 352 
     | 
    
         
            +
                    },
         
     | 
| 
      
 353 
     | 
    
         
            +
                    "text": "every distributable",
         
     | 
| 
      
 354 
     | 
    
         
            +
                    "topLevel": true,
         
     | 
| 
      
 355 
     | 
    
         
            +
                    "types": [
         
     | 
| 
      
 356 
     | 
    
         
            +
                      "distributable"
         
     | 
| 
      
 357 
     | 
    
         
            +
                    ],
         
     | 
| 
      
 358 
     | 
    
         
            +
                    "value": "distributable",
         
     | 
| 
      
 359 
     | 
    
         
            +
                    "wantsValue": true,
         
     | 
| 
      
 360 
     | 
    
         
            +
                    "word": "distributable"
         
     | 
| 
      
 361 
     | 
    
         
            +
                  }
         
     | 
| 
      
 362 
     | 
    
         
            +
                ],
         
     | 
| 
      
 363 
     | 
    
         
            +
                "developerTest": false,
         
     | 
| 
      
 364 
     | 
    
         
            +
                "generatedParenthesized": [
         
     | 
| 
      
 365 
     | 
    
         
            +
                  ""
         
     | 
| 
      
 366 
     | 
    
         
            +
                ],
         
     | 
| 
      
 367 
     | 
    
         
            +
                "metadata": {
         
     | 
| 
      
 368 
     | 
    
         
            +
                  "opChoices": [
         
     | 
| 
      
 369 
     | 
    
         
            +
                    {
         
     | 
| 
      
 370 
     | 
    
         
            +
                      "counter": 1,
         
     | 
| 
      
 371 
     | 
    
         
            +
                      "op": [
         
     | 
| 
      
 372 
     | 
    
         
            +
                        "distributable",
         
     | 
| 
      
 373 
     | 
    
         
            +
                        0
         
     | 
| 
      
 374 
     | 
    
         
            +
                      ],
         
     | 
| 
      
 375 
     | 
    
         
            +
                      "ops": [
         
     | 
| 
      
 376 
     | 
    
         
            +
                        [
         
     | 
| 
      
 377 
     | 
    
         
            +
                          "distributable",
         
     | 
| 
      
 378 
     | 
    
         
            +
                          0
         
     | 
| 
      
 379 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 380 
     | 
    
         
            +
                        [
         
     | 
| 
      
 381 
     | 
    
         
            +
                          "every",
         
     | 
| 
      
 382 
     | 
    
         
            +
                          0
         
     | 
| 
      
 383 
     | 
    
         
            +
                        ]
         
     | 
| 
      
 384 
     | 
    
         
            +
                      ]
         
     | 
| 
      
 385 
     | 
    
         
            +
                    },
         
     | 
| 
      
 386 
     | 
    
         
            +
                    {
         
     | 
| 
      
 387 
     | 
    
         
            +
                      "counter": 2,
         
     | 
| 
      
 388 
     | 
    
         
            +
                      "op": [
         
     | 
| 
      
 389 
     | 
    
         
            +
                        "every",
         
     | 
| 
      
 390 
     | 
    
         
            +
                        0
         
     | 
| 
      
 391 
     | 
    
         
            +
                      ],
         
     | 
| 
      
 392 
     | 
    
         
            +
                      "ops": [
         
     | 
| 
      
 393 
     | 
    
         
            +
                        [
         
     | 
| 
      
 394 
     | 
    
         
            +
                          "every",
         
     | 
| 
      
 395 
     | 
    
         
            +
                          0
         
     | 
| 
      
 396 
     | 
    
         
            +
                        ]
         
     | 
| 
      
 397 
     | 
    
         
            +
                      ]
         
     | 
| 
      
 398 
     | 
    
         
            +
                    }
         
     | 
| 
      
 399 
     | 
    
         
            +
                  ]
         
     | 
| 
      
 400 
     | 
    
         
            +
                },
         
     | 
| 
      
 401 
     | 
    
         
            +
                "objects": {
         
     | 
| 
      
 402 
     | 
    
         
            +
                  "nameToUUID": {
         
     | 
| 
      
 403 
     | 
    
         
            +
                    "articles": "articles1",
         
     | 
| 
      
 404 
     | 
    
         
            +
                    "gdefaults": "gdefaults2",
         
     | 
| 
      
 405 
     | 
    
         
            +
                    "pos": "pos2",
         
     | 
| 
      
 406 
     | 
    
         
            +
                    "punctuation": "punctuation2",
         
     | 
| 
      
 407 
     | 
    
         
            +
                    "tokenize": "tokenize2"
         
     | 
| 
      
 408 
     | 
    
         
            +
                  },
         
     | 
| 
      
 409 
     | 
    
         
            +
                  "namespaced": {
         
     | 
| 
      
 410 
     | 
    
         
            +
                    "articles1": {
         
     | 
| 
      
 411 
     | 
    
         
            +
                    },
         
     | 
| 
      
 412 
     | 
    
         
            +
                    "gdefaults2": {
         
     | 
| 
      
 413 
     | 
    
         
            +
                    },
         
     | 
| 
      
 414 
     | 
    
         
            +
                    "pos2": {
         
     | 
| 
      
 415 
     | 
    
         
            +
                    },
         
     | 
| 
      
 416 
     | 
    
         
            +
                    "punctuation2": {
         
     | 
| 
      
 417 
     | 
    
         
            +
                    },
         
     | 
| 
      
 418 
     | 
    
         
            +
                    "tokenize2": {
         
     | 
| 
      
 419 
     | 
    
         
            +
                    }
         
     | 
| 
      
 420 
     | 
    
         
            +
                  },
         
     | 
| 
      
 421 
     | 
    
         
            +
                  "processed": [
         
     | 
| 
      
 422 
     | 
    
         
            +
                    {
         
     | 
| 
      
 423 
     | 
    
         
            +
                      "context": {
         
     | 
| 
      
 424 
     | 
    
         
            +
                        "concept": true,
         
     | 
| 
      
 425 
     | 
    
         
            +
                        "dead": true,
         
     | 
| 
      
 426 
     | 
    
         
            +
                        "default": true,
         
     | 
| 
      
 427 
     | 
    
         
            +
                        "distributer": {
         
     | 
| 
      
 428 
     | 
    
         
            +
                          "default": true,
         
     | 
| 
      
 429 
     | 
    
         
            +
                          "level": 0,
         
     | 
| 
      
 430 
     | 
    
         
            +
                          "marker": "every",
         
     | 
| 
      
 431 
     | 
    
         
            +
                          "range": {
         
     | 
| 
      
 432 
     | 
    
         
            +
                            "end": 4,
         
     | 
| 
      
 433 
     | 
    
         
            +
                            "start": 0
         
     | 
| 
      
 434 
     | 
    
         
            +
                          },
         
     | 
| 
      
 435 
     | 
    
         
            +
                          "text": "every",
         
     | 
| 
      
 436 
     | 
    
         
            +
                          "value": "every",
         
     | 
| 
      
 437 
     | 
    
         
            +
                          "word": "every"
         
     | 
| 
      
 438 
     | 
    
         
            +
                        },
         
     | 
| 
      
 439 
     | 
    
         
            +
                        "focusableForPhrase": true,
         
     | 
| 
      
 440 
     | 
    
         
            +
                        "level": 1,
         
     | 
| 
      
 441 
     | 
    
         
            +
                        "marker": "distributable",
         
     | 
| 
      
 442 
     | 
    
         
            +
                        "modifiers": [
         
     | 
| 
      
 443 
     | 
    
         
            +
                          "distributer"
         
     | 
| 
      
 444 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 445 
     | 
    
         
            +
                        "pullFromContext": true,
         
     | 
| 
      
 446 
     | 
    
         
            +
                        "range": {
         
     | 
| 
      
 447 
     | 
    
         
            +
                          "end": 18,
         
     | 
| 
      
 448 
     | 
    
         
            +
                          "start": 0
         
     | 
| 
      
 449 
     | 
    
         
            +
                        },
         
     | 
| 
      
 450 
     | 
    
         
            +
                        "text": "every distributable",
         
     | 
| 
      
 451 
     | 
    
         
            +
                        "topLevel": true,
         
     | 
| 
      
 452 
     | 
    
         
            +
                        "types": [
         
     | 
| 
      
 453 
     | 
    
         
            +
                          "distributable"
         
     | 
| 
      
 454 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 455 
     | 
    
         
            +
                        "value": "distributable",
         
     | 
| 
      
 456 
     | 
    
         
            +
                        "wantsValue": true,
         
     | 
| 
      
 457 
     | 
    
         
            +
                        "word": "distributable"
         
     | 
| 
      
 458 
     | 
    
         
            +
                      },
         
     | 
| 
      
 459 
     | 
    
         
            +
                      "generatedParenthesized": "",
         
     | 
| 
      
 460 
     | 
    
         
            +
                      "paraphrases": "every distributable",
         
     | 
| 
      
 461 
     | 
    
         
            +
                      "paraphrasesParenthesized": "((every) (distributable))",
         
     | 
| 
      
 462 
     | 
    
         
            +
                      "responses": [
         
     | 
| 
      
 463 
     | 
    
         
            +
                        ""
         
     | 
| 
      
 464 
     | 
    
         
            +
                      ]
         
     | 
| 
      
 465 
     | 
    
         
            +
                    }
         
     | 
| 
      
 466 
     | 
    
         
            +
                  ]
         
     | 
| 
      
 467 
     | 
    
         
            +
                },
         
     | 
| 
      
 468 
     | 
    
         
            +
                "paraphrases": [
         
     | 
| 
      
 469 
     | 
    
         
            +
                  "every distributable"
         
     | 
| 
      
 470 
     | 
    
         
            +
                ],
         
     | 
| 
      
 471 
     | 
    
         
            +
                "paraphrasesParenthesized": [
         
     | 
| 
      
 472 
     | 
    
         
            +
                  "((every) (distributable))"
         
     | 
| 
      
 473 
     | 
    
         
            +
                ],
         
     | 
| 
      
 474 
     | 
    
         
            +
                "query": "every distributable",
         
     | 
| 
      
 475 
     | 
    
         
            +
                "responses": [
         
     | 
| 
      
 476 
     | 
    
         
            +
                  ""
         
     | 
| 
      
 477 
     | 
    
         
            +
                ]
         
     | 
| 
      
 478 
     | 
    
         
            +
              },
         
     | 
| 
      
 479 
     | 
    
         
            +
              {
         
     | 
| 
      
 480 
     | 
    
         
            +
                "associations": [
         
     | 
| 
      
 481 
     | 
    
         
            +
                  [
         
     | 
| 
      
 482 
     | 
    
         
            +
                    [
         
     | 
| 
      
 483 
     | 
    
         
            +
                      "distributable",
         
     | 
| 
      
 484 
     | 
    
         
            +
                      0
         
     | 
| 
      
 485 
     | 
    
         
            +
                    ],
         
     | 
| 
      
 486 
     | 
    
         
            +
                    [
         
     | 
| 
      
 487 
     | 
    
         
            +
                      "each",
         
     | 
| 
      
 488 
     | 
    
         
            +
                      0
         
     | 
| 
      
 489 
     | 
    
         
            +
                    ]
         
     | 
| 
      
 490 
     | 
    
         
            +
                  ]
         
     | 
| 
      
 491 
     | 
    
         
            +
                ],
         
     | 
| 
      
 492 
     | 
    
         
            +
                "config": {
         
     | 
| 
      
 493 
     | 
    
         
            +
                },
         
     | 
| 
      
 494 
     | 
    
         
            +
                "contexts": [
         
     | 
| 
      
 495 
     | 
    
         
            +
                  {
         
     | 
| 
      
 496 
     | 
    
         
            +
                    "concept": true,
         
     | 
| 
      
 497 
     | 
    
         
            +
                    "dead": true,
         
     | 
| 
      
 498 
     | 
    
         
            +
                    "default": true,
         
     | 
| 
      
 499 
     | 
    
         
            +
                    "distributer": {
         
     | 
| 
      
 500 
     | 
    
         
            +
                      "default": true,
         
     | 
| 
      
 501 
     | 
    
         
            +
                      "level": 0,
         
     | 
| 
      
 502 
     | 
    
         
            +
                      "marker": "each",
         
     | 
| 
      
 503 
     | 
    
         
            +
                      "range": {
         
     | 
| 
      
 504 
     | 
    
         
            +
                        "end": 3,
         
     | 
| 
      
 505 
     | 
    
         
            +
                        "start": 0
         
     | 
| 
      
 506 
     | 
    
         
            +
                      },
         
     | 
| 
      
 507 
     | 
    
         
            +
                      "text": "each",
         
     | 
| 
      
 508 
     | 
    
         
            +
                      "value": "each",
         
     | 
| 
      
 509 
     | 
    
         
            +
                      "word": "each"
         
     | 
| 
      
 510 
     | 
    
         
            +
                    },
         
     | 
| 
      
 511 
     | 
    
         
            +
                    "focusableForPhrase": true,
         
     | 
| 
      
 512 
     | 
    
         
            +
                    "level": 1,
         
     | 
| 
      
 513 
     | 
    
         
            +
                    "marker": "distributable",
         
     | 
| 
      
 514 
     | 
    
         
            +
                    "modifiers": [
         
     | 
| 
      
 515 
     | 
    
         
            +
                      "distributer"
         
     | 
| 
      
 516 
     | 
    
         
            +
                    ],
         
     | 
| 
      
 517 
     | 
    
         
            +
                    "pullFromContext": true,
         
     | 
| 
      
 518 
     | 
    
         
            +
                    "range": {
         
     | 
| 
      
 519 
     | 
    
         
            +
                      "end": 17,
         
     | 
| 
      
 520 
     | 
    
         
            +
                      "start": 0
         
     | 
| 
      
 521 
     | 
    
         
            +
                    },
         
     | 
| 
      
 522 
     | 
    
         
            +
                    "text": "each distributable",
         
     | 
| 
      
 523 
     | 
    
         
            +
                    "topLevel": true,
         
     | 
| 
      
 524 
     | 
    
         
            +
                    "types": [
         
     | 
| 
      
 525 
     | 
    
         
            +
                      "distributable"
         
     | 
| 
      
 526 
     | 
    
         
            +
                    ],
         
     | 
| 
      
 527 
     | 
    
         
            +
                    "value": "distributable",
         
     | 
| 
      
 528 
     | 
    
         
            +
                    "wantsValue": true,
         
     | 
| 
      
 529 
     | 
    
         
            +
                    "word": "distributable"
         
     | 
| 
      
 530 
     | 
    
         
            +
                  }
         
     | 
| 
      
 531 
     | 
    
         
            +
                ],
         
     | 
| 
      
 532 
     | 
    
         
            +
                "developerTest": false,
         
     | 
| 
      
 533 
     | 
    
         
            +
                "generatedParenthesized": [
         
     | 
| 
      
 534 
     | 
    
         
            +
                  ""
         
     | 
| 
      
 535 
     | 
    
         
            +
                ],
         
     | 
| 
      
 536 
     | 
    
         
            +
                "metadata": {
         
     | 
| 
      
 537 
     | 
    
         
            +
                  "opChoices": [
         
     | 
| 
      
 538 
     | 
    
         
            +
                    {
         
     | 
| 
      
 539 
     | 
    
         
            +
                      "counter": 1,
         
     | 
| 
      
 540 
     | 
    
         
            +
                      "op": [
         
     | 
| 
      
 541 
     | 
    
         
            +
                        "distributable",
         
     | 
| 
      
 542 
     | 
    
         
            +
                        0
         
     | 
| 
      
 543 
     | 
    
         
            +
                      ],
         
     | 
| 
      
 544 
     | 
    
         
            +
                      "ops": [
         
     | 
| 
      
 545 
     | 
    
         
            +
                        [
         
     | 
| 
      
 546 
     | 
    
         
            +
                          "distributable",
         
     | 
| 
      
 547 
     | 
    
         
            +
                          0
         
     | 
| 
      
 548 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 549 
     | 
    
         
            +
                        [
         
     | 
| 
      
 550 
     | 
    
         
            +
                          "each",
         
     | 
| 
      
 551 
     | 
    
         
            +
                          0
         
     | 
| 
      
 552 
     | 
    
         
            +
                        ]
         
     | 
| 
      
 553 
     | 
    
         
            +
                      ]
         
     | 
| 
      
 554 
     | 
    
         
            +
                    },
         
     | 
| 
      
 555 
     | 
    
         
            +
                    {
         
     | 
| 
      
 556 
     | 
    
         
            +
                      "counter": 2,
         
     | 
| 
      
 557 
     | 
    
         
            +
                      "op": [
         
     | 
| 
      
 558 
     | 
    
         
            +
                        "each",
         
     | 
| 
      
 559 
     | 
    
         
            +
                        0
         
     | 
| 
      
 560 
     | 
    
         
            +
                      ],
         
     | 
| 
      
 561 
     | 
    
         
            +
                      "ops": [
         
     | 
| 
      
 562 
     | 
    
         
            +
                        [
         
     | 
| 
      
 563 
     | 
    
         
            +
                          "each",
         
     | 
| 
      
 564 
     | 
    
         
            +
                          0
         
     | 
| 
      
 565 
     | 
    
         
            +
                        ]
         
     | 
| 
      
 566 
     | 
    
         
            +
                      ]
         
     | 
| 
      
 567 
     | 
    
         
            +
                    }
         
     | 
| 
      
 568 
     | 
    
         
            +
                  ]
         
     | 
| 
      
 569 
     | 
    
         
            +
                },
         
     | 
| 
      
 570 
     | 
    
         
            +
                "objects": {
         
     | 
| 
      
 571 
     | 
    
         
            +
                  "nameToUUID": {
         
     | 
| 
      
 572 
     | 
    
         
            +
                    "articles": "articles1",
         
     | 
| 
      
 573 
     | 
    
         
            +
                    "gdefaults": "gdefaults2",
         
     | 
| 
      
 574 
     | 
    
         
            +
                    "pos": "pos2",
         
     | 
| 
      
 575 
     | 
    
         
            +
                    "punctuation": "punctuation2",
         
     | 
| 
      
 576 
     | 
    
         
            +
                    "tokenize": "tokenize2"
         
     | 
| 
      
 577 
     | 
    
         
            +
                  },
         
     | 
| 
      
 578 
     | 
    
         
            +
                  "namespaced": {
         
     | 
| 
      
 579 
     | 
    
         
            +
                    "articles1": {
         
     | 
| 
      
 580 
     | 
    
         
            +
                    },
         
     | 
| 
      
 581 
     | 
    
         
            +
                    "gdefaults2": {
         
     | 
| 
      
 582 
     | 
    
         
            +
                    },
         
     | 
| 
      
 583 
     | 
    
         
            +
                    "pos2": {
         
     | 
| 
      
 584 
     | 
    
         
            +
                    },
         
     | 
| 
      
 585 
     | 
    
         
            +
                    "punctuation2": {
         
     | 
| 
      
 586 
     | 
    
         
            +
                    },
         
     | 
| 
      
 587 
     | 
    
         
            +
                    "tokenize2": {
         
     | 
| 
      
 588 
     | 
    
         
            +
                    }
         
     | 
| 
      
 589 
     | 
    
         
            +
                  },
         
     | 
| 
      
 590 
     | 
    
         
            +
                  "processed": [
         
     | 
| 
      
 591 
     | 
    
         
            +
                    {
         
     | 
| 
      
 592 
     | 
    
         
            +
                      "context": {
         
     | 
| 
      
 593 
     | 
    
         
            +
                        "concept": true,
         
     | 
| 
      
 594 
     | 
    
         
            +
                        "dead": true,
         
     | 
| 
      
 595 
     | 
    
         
            +
                        "default": true,
         
     | 
| 
      
 596 
     | 
    
         
            +
                        "distributer": {
         
     | 
| 
      
 597 
     | 
    
         
            +
                          "default": true,
         
     | 
| 
      
 598 
     | 
    
         
            +
                          "level": 0,
         
     | 
| 
      
 599 
     | 
    
         
            +
                          "marker": "each",
         
     | 
| 
      
 600 
     | 
    
         
            +
                          "range": {
         
     | 
| 
      
 601 
     | 
    
         
            +
                            "end": 3,
         
     | 
| 
      
 602 
     | 
    
         
            +
                            "start": 0
         
     | 
| 
      
 603 
     | 
    
         
            +
                          },
         
     | 
| 
      
 604 
     | 
    
         
            +
                          "text": "each",
         
     | 
| 
      
 605 
     | 
    
         
            +
                          "value": "each",
         
     | 
| 
      
 606 
     | 
    
         
            +
                          "word": "each"
         
     | 
| 
      
 607 
     | 
    
         
            +
                        },
         
     | 
| 
      
 608 
     | 
    
         
            +
                        "focusableForPhrase": true,
         
     | 
| 
      
 609 
     | 
    
         
            +
                        "level": 1,
         
     | 
| 
      
 610 
     | 
    
         
            +
                        "marker": "distributable",
         
     | 
| 
      
 611 
     | 
    
         
            +
                        "modifiers": [
         
     | 
| 
      
 612 
     | 
    
         
            +
                          "distributer"
         
     | 
| 
      
 613 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 614 
     | 
    
         
            +
                        "pullFromContext": true,
         
     | 
| 
      
 615 
     | 
    
         
            +
                        "range": {
         
     | 
| 
      
 616 
     | 
    
         
            +
                          "end": 17,
         
     | 
| 
      
 617 
     | 
    
         
            +
                          "start": 0
         
     | 
| 
      
 618 
     | 
    
         
            +
                        },
         
     | 
| 
      
 619 
     | 
    
         
            +
                        "text": "each distributable",
         
     | 
| 
      
 620 
     | 
    
         
            +
                        "topLevel": true,
         
     | 
| 
      
 621 
     | 
    
         
            +
                        "types": [
         
     | 
| 
      
 622 
     | 
    
         
            +
                          "distributable"
         
     | 
| 
      
 623 
     | 
    
         
            +
                        ],
         
     | 
| 
      
 624 
     | 
    
         
            +
                        "value": "distributable",
         
     | 
| 
      
 625 
     | 
    
         
            +
                        "wantsValue": true,
         
     | 
| 
      
 626 
     | 
    
         
            +
                        "word": "distributable"
         
     | 
| 
      
 627 
     | 
    
         
            +
                      },
         
     | 
| 
      
 628 
     | 
    
         
            +
                      "generatedParenthesized": "",
         
     | 
| 
      
 629 
     | 
    
         
            +
                      "paraphrases": "each distributable",
         
     | 
| 
      
 630 
     | 
    
         
            +
                      "paraphrasesParenthesized": "((each) (distributable))",
         
     | 
| 
      
 631 
     | 
    
         
            +
                      "responses": [
         
     | 
| 
      
 632 
     | 
    
         
            +
                        ""
         
     | 
| 
      
 633 
     | 
    
         
            +
                      ]
         
     | 
| 
      
 634 
     | 
    
         
            +
                    }
         
     | 
| 
      
 635 
     | 
    
         
            +
                  ]
         
     | 
| 
      
 636 
     | 
    
         
            +
                },
         
     | 
| 
      
 637 
     | 
    
         
            +
                "paraphrases": [
         
     | 
| 
      
 638 
     | 
    
         
            +
                  "each distributable"
         
     | 
| 
      
 639 
     | 
    
         
            +
                ],
         
     | 
| 
      
 640 
     | 
    
         
            +
                "paraphrasesParenthesized": [
         
     | 
| 
      
 641 
     | 
    
         
            +
                  "((each) (distributable))"
         
     | 
| 
      
 642 
     | 
    
         
            +
                ],
         
     | 
| 
      
 643 
     | 
    
         
            +
                "query": "each distributable",
         
     | 
| 
      
 644 
     | 
    
         
            +
                "responses": [
         
     | 
| 
      
 645 
     | 
    
         
            +
                  ""
         
     | 
| 
      
 646 
     | 
    
         
            +
                ]
         
     | 
| 
       309 
647 
     | 
    
         
             
              }
         
     | 
| 
       310 
648 
     | 
    
         
             
            ]
         
     | 
    
        package/common/asking.js
    CHANGED
    
    | 
         @@ -8,7 +8,7 @@ const { defaultContextCheck, indent, focus, requiredArgument } = require('./help 
     | 
|
| 
       8 
8 
     | 
    
         
             
            const pluralize = require('pluralize')
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
10 
     | 
    
         
             
            // TODO implement what / what did you say ...
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
      
 11 
     | 
    
         
            +
            const config = {
         
     | 
| 
       12 
12 
     | 
    
         
             
              name: 'asking',
         
     | 
| 
       13 
13 
     | 
    
         
             
              operators: [
         
     | 
| 
       14 
14 
     | 
    
         
             
                "([nevermind])",
         
     | 
| 
         @@ -40,7 +40,7 @@ let config = { 
     | 
|
| 
       40 
40 
     | 
    
         
             
                  id: "whichOnesTestSetup",
         
     | 
| 
       41 
41 
     | 
    
         
             
                  development: true,
         
     | 
| 
       42 
42 
     | 
    
         
             
                  generatorp: async ({context, gs}) => `${context.marker} ${await gs(context.choices)}`,
         
     | 
| 
       43 
     | 
    
         
            -
                  bridge: "{ ...next(operator), choices: after }",
         
     | 
| 
      
 43 
     | 
    
         
            +
                  bridge: "{ ...next(operator), choices: after[0] }",
         
     | 
| 
       44 
44 
     | 
    
         
             
                  semantic: ({askWhich, context}) => {
         
     | 
| 
       45 
45 
     | 
    
         
             
                    const choices = context.choices
         
     | 
| 
       46 
46 
     | 
    
         
             
                    const chosen = ({ choice, objects }) => {
         
     | 
| 
         @@ -191,7 +191,7 @@ const initializer = ({objects, config, isModule}) => { 
     | 
|
| 
       191 
191 
     | 
    
         
             
                  return {
         
     | 
| 
       192 
192 
     | 
    
         
             
                    ask,
         
     | 
| 
       193 
193 
     | 
    
         
             
                    askWhich: ({ choices, chosen, question, isChoice, onNevermind }) => {
         
     | 
| 
       194 
     | 
    
         
            -
                       
     | 
| 
      
 194 
     | 
    
         
            +
                      const state = {}
         
     | 
| 
       195 
195 
     | 
    
         | 
| 
       196 
196 
     | 
    
         
             
                      requiredArgument(choices, 'choices')
         
     | 
| 
       197 
197 
     | 
    
         
             
                      requiredArgument(chosen, 'chosen')
         
     |