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

7
LINES

< > BotCompany Repo | #1021228 // ai_ifToFactRule_2

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3289L/21K/72K).

1  
sS ai_ifToFactRule_2(S s, Set<S> pronouns, Set<S> nouns) {
2  
  L<TokenAndRange> tokens = javaTokWithBracketsAndRanges(s);
3  
  Map<TokenAndRange> map = ai_createNounRefMap_1(tokens, pronouns, nouns);
4  
  ai_addDollarSignToCertainTokens_withRanges(tokens, nouns);
5  
  ai_replaceTokensWithReferenced(tokens, map);
6  
  ret ai_ifToFactRule_1(joinTokensAndRanges(tokens));
7  
}

Author comment

Began life as a copy of #1021224

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: #1021228
Snippet name: ai_ifToFactRule_2
Eternal ID of this version: #1021228/3
Text MD5: eae6184d263ea9eafe58c216dbf39d67
Transpilation MD5: 5c8edda6b2986b8ce5bb19920b8ba2df
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-09 16:18:37
Source code size: 364 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 432 / 576
Version history: 2 change(s)
Referenced in: [show references]