1 | static L<S> ai_speculate_functions = ll( |
2 | f ai_spec_webIsTriple, |
3 | f ai_spec_singularPlural, |
4 | f ai_spec_giveMe, |
5 | f ai_spec_parseAnd, |
6 | f ai_spec_tripelize, |
7 | f ai_spec_parseArrowTriple, |
8 | f ai_spec_webContents, |
9 | f ai_spec_addQuestionsToChatLine, |
10 | f ai_spec_simplify, |
11 | f ai_spec_containsThePhrase, |
12 | f ai_spec_executeBestSplit, |
13 | f ai_spec_parseIf, |
14 | f ai_spec_subclass, |
15 | f ai_spec_isAQuestion, |
16 | f ai_spec_substWebs, |
17 | f ai_spec_apostrophS, |
18 | f ai_spec_allWords, |
19 | f ai_spec_numbered, |
20 | f ai_spec_howMany, |
21 | f ai_spec_analyzeLitList, |
22 | f ai_spec_doYouThink, |
23 | f ai_spec_unquote, |
24 | f ai_spec_quoteUnlessQuoted, |
25 | f ai_spec_checkFact, |
26 | f ai_spec_switcheroo, |
27 | f ai_spec_groupingPrefix, |
28 | f ai_spec_moveToMiddle, |
29 | f ai_spec_compareNumbers, |
30 | f ai_spec_compareNumbers_triple, |
31 | f ai_spec_answerYesNoTriple, |
32 | f ai_spec_moveToMiddle_triple, |
33 | f ai_spec_searchForAnswer, |
34 | f ai_specTemp_length, |
35 | f ai_spec_whatIsXInY, |
36 | f ai_spec_whatIsTheLength, |
37 | ); |
38 | |
39 | static S ai_speculate(fS word) { |
40 | if (empty(word) || loading()) ret word; |
41 | ai_withMaker('ai_speculate, r { |
42 | ai_blob(word, false); |
43 | if (isAdjective(word)) ai_postTriple(word, "is", "an adjective"); |
44 | for (S f : ai_speculate_functions) |
45 | ai_callSpeculationFunction(f, word); |
46 | }); |
47 | ai_speculateOnWeb(ai_getWebFromTerm(word)); |
48 | ret word; |
49 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1011601 |
Snippet name: | ai_speculate |
Eternal ID of this version: | #1011601/57 |
Text MD5: | 9222c51edb1638f2fb0cf6451bb43730 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-01-01 04:16:13 |
Source code size: | 1355 bytes / 49 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 581 / 637 |
Version history: | 56 change(s) |
Referenced in: | [show references] |