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

9
LINES

< > BotCompany Repo | #1012566 // ai_spec_theAdjectiveNoun

JavaX fragment (include)

1  
// the $adjective $noun is a $noun
2  
static void ai_spec_theAdjectiveNoun(S s) {
3  
  new Matches m;
4  
  if "the * *" {
5  
    S a = m.get(0), n = m.get(1);
6  
    if (isAdjective(a) && isNoun(n))
7  
      ai_post(s, "is", a(n));
8  
  }
9  
}

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: #1012566
Snippet name: ai_spec_theAdjectiveNoun
Eternal ID of this version: #1012566/1
Text MD5: 2f3f4348ced1aa3dfb8c8d1a780f62e7
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-07 13:24:34
Source code size: 227 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 457 / 503
Referenced in: [show references]