static L<S> ai_speculate_functions = ll( f ai_spec_webIsTriple, f ai_spec_singularPlural, f ai_spec_giveMe, f ai_spec_parseAnd, f ai_spec_tripelize, f ai_spec_parseArrowTriple, f ai_spec_webContents, f ai_spec_addQuestionsToChatLine, f ai_spec_simplify, f ai_spec_containsThePhrase, f ai_spec_executeBestSplit, f ai_spec_parseIf, f ai_spec_subclass, f ai_spec_isAQuestion, f ai_spec_substWebs, f ai_spec_apostrophS, f ai_spec_allWords, f ai_spec_numbered, f ai_spec_howMany, f ai_spec_analyzeLitList, f ai_spec_doYouThink, f ai_spec_unquote, f ai_spec_quoteUnlessQuoted, f ai_spec_checkFact, f ai_spec_switcheroo, f ai_spec_groupingPrefix, f ai_spec_moveToMiddle, f ai_spec_compareNumbers, f ai_spec_compareNumbers_triple, f ai_spec_answerYesNoTriple, f ai_spec_moveToMiddle_triple, f ai_spec_searchForAnswer, f ai_specTemp_length, f ai_spec_whatIsXInY, f ai_spec_whatIsTheLength, ); static S ai_speculate(fS word) { if (empty(word) || loading()) ret word; ai_withMaker('ai_speculate, r { ai_blob(word, false); if (isAdjective(word)) ai_postTriple(word, "is", "an adjective"); for (S f : ai_speculate_functions) ai_callSpeculationFunction(f, word); }); ai_speculateOnWeb(ai_getWebFromTerm(word)); ret word; }
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: | 582 / 637 |
Version history: | 56 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1011602 - ai_speculateWithTimeout #1011656 - ai_activeSpec - collection of active speculation functions #1011675 - ai_speculate_slow |