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)

1  
static SS ai_negateVerbPhrase_map = litcimap(
2  
  "am", "am not",
3  
  "are", "are not",
4  
  "is", "is not",
5  
  "has", "doesn't have",
6  
  "have", "don't have",
7  
);
8  
9  
static S ai_negateVerbPhrase(S s) {
10  
  try answer ai_negateVerbPhrase_map.get(s);
11  
  ret isThirdPersonVerb(s) ? "doesn't " + s : "don't " + s;
12  
}

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: 466 / 461
Referenced in: [show references]