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

13
LINES

< > BotCompany Repo | #1021336 // ai_parseNounVerbDeterminerNoun

JavaX fragment (include)

1  
static T3<S> ai_parseNounVerbDeterminerNoun(LS tok) {
2  
  S a, b;
3  
  ret l(tok) == 4*2+1
4  
    && isNoun(a = tok.get(1))
5  
    && isVerb(b = tok.get(3))
6  
    && isDeterminer(tok.get(5))
7  
    && isNoun(tok.get(7))
8  
    ? t3(a, b, joinSubList(tok, 5, 8)) : null;
9  
}
10  
11  
static T3<S> ai_parseNounVerbDeterminerNoun(S s) {
12  
  ret ai_parseNounVerbDeterminerNoun(javaTokWithBrackets(s));
13  
}

Author comment

Began life as a copy of #1021335

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: #1021336
Snippet name: ai_parseNounVerbDeterminerNoun
Eternal ID of this version: #1021336/3
Text MD5: 35213b4ebd4f1cdf1beb8c47ee96880f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-08 19:00:14
Source code size: 380 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 261 / 295
Version history: 2 change(s)
Referenced in: [show references]