Libraryless. Click here for Pure Java version (6934L/46K).
sclass AI_CategorizerBot > AttractorBot { Long now; public void run { say("I can categorize things for you"); } // CONFIG class Attractor1 > Attractor { S category; public bool matches(S s) { if (parseEnglishMonthName(s) > 0) ret true with category = "month name"; if (isInteger(s)) ret true with category = "integer"; false; } public void run { say(category); } } *() { standardAttractors(new Attractor1); } }
Began life as a copy of #1022834
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1022843 |
| Snippet name: | AI_CategorizerBot |
| Eternal ID of this version: | #1022843/1 |
| Text MD5: | 0b99bb16d1aeed4db47cbaf72e27f42a |
| Transpilation MD5: | 7e1d6149d0b83ab25ef08e4fe28bc7ec |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-04-10 00:30:36 |
| Source code size: | 544 bytes / 29 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 474 / 999 |
| Referenced in: | [show references] |