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

13
LINES

< > BotCompany Repo | #1021336 // ai_parseNounVerbDeterminerNoun

JavaX fragment (include)

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

static T3<S> ai_parseNounVerbDeterminerNoun(S s) {
  ret ai_parseNounVerbDeterminerNoun(javaTokWithBrackets(s));
}

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: 193 / 226
Version history: 2 change(s)
Referenced in: [show references]