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

12
LINES

< > BotCompany Repo | #1012298 // ai_negateVerbPhrase - does to doesn't etc.

JavaX fragment (include)

static SS ai_negateVerbPhrase_map = litcimap(
  "am", "am not",
  "are", "are not",
  "is", "is not",
  "has", "doesn't have",
  "have", "don't have",
);

static S ai_negateVerbPhrase(S s) {
  try answer ai_negateVerbPhrase_map.get(s);
  ret isThirdPersonVerb(s) ? "doesn't " + s : "don't " + s;
}

Author comment

Began life as a copy of #1012297

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: #1012298
Snippet name: ai_negateVerbPhrase - does to doesn't etc.
Eternal ID of this version: #1012298/1
Text MD5: 67b0306ddd6b2f7a655a338929f8afec
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-27 13:15:23
Source code size: 308 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 477 / 471
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)