Download Jar. Uses 3874K of libraries. Click here for Pure Java version (9992L/68K).
!7 sS theRiddle = [[ X is the first word in my text. Is my text a letter or a program? ]]; sS theFacts = [[ "!" is a typical first word in a program. "Hello" is a typical first word in a letter. cdtwmxtqspigpyap confirms mibnjwgfxnetaxyz. ]]; sS concepts = [[ ["", "Is X a Y or a Z?"], ["mibnjwgfxnetaxyz", "X is the first word in Y."], ["cdtwmxtqspigpyap", "X is a typical first word in a Y."], ["kdpoqkaoypqenusd", "X confirms Y."] ]]; static JTextArea ta; static new L<Lisp> facts; static * computer = new ReliableSingleThread(f think); p-substance-noconsole { aiEnhancements(); useConceptsDump(concepts); facts = clParse(linesToCL(theFacts)); onChangeAndNow(ta = showText(""), r { computer.go() }); } svoid think { time { S w = firstWord2(getText(ta)); S riddle = formatXYZ(theRiddle, quote(w)); S type = conceptToName(solveCandidatesRiddle(facts, riddle)); titleStatus_trailing(ta, empty(type) ? null : "Writing a " + type); } }
Began life as a copy of #1007649
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: | #1007676 |
| Snippet name: | Demo 1: Smart Editor [shortening even more, dev.] |
| Eternal ID of this version: | #1007676/10 |
| Text MD5: | 4bf15f93dffb9dbdcab37c720c72d5d9 |
| Transpilation MD5: | d5893723c132c7243cb0dceb98cde9c3 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-04-01 13:25:08 |
| Source code size: | 1035 bytes / 43 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 880 / 1733 |
| Version history: | 9 change(s) |
| Referenced in: | [show references] |