Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

17
LINES

< > BotCompany Repo | #1003002 // add list as part of speech

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Transpiled version (981L) is out of date.

!752
static Map<String,String> map = new HashMap<String,String>();
p{
  
}
synchronized answer{
  if(match("add noun *",s,m)){
    S[] nouns = m.unq(0).split(",");
    for (int i = 0; i < nouns.length; i++) {
         map.put(nouns[i],"noun");
    }
    for(S x : nouns){
      askSelf(x.trim() +" is a noun");
      ret(x.trim() +" is a noun");
    }
  }
}

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: #1003002
Snippet name: add list as part of speech
Eternal ID of this version: #1003002/1
Text MD5: 0b46e2ca82e8f35f7c224c43b19bfd1a
Author: bgrgndz
Category: eleu / nl
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-04-16 18:49:53
Source code size: 375 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 753 / 786
Referenced in: [show references]