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

19
LINES

< > BotCompany Repo | #1008569 // Apply bot-lang (expand contractions, spellfix, british to american) (WORKS except for multi-token replacements)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (3881L/26K/86K).

1  
!7
2  
3  
static SS contractions, spellfix, british;
4  
5  
p {
6  
  contractions = botLangList(#1008568);
7  
  spellfix = botLangList(#1008576);
8  
  british = botLangList(#1008578);
9  
  pnl(spellfix);
10  
  pnl(contractions);
11  
  botSleep();
12  
}
13  
14  
sS answer(S s) {
15  
  ret join(
16  
    tokReplace_lower(british,
17  
    tokReplace_lower(contractions, 
18  
    tokReplace_lower(spellfix, nlTok4(s)));
19  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xiskaoettebs

No comments. add comment

Snippet ID: #1008569
Snippet name: Apply bot-lang (expand contractions, spellfix, british to american) (WORKS except for multi-token replacements)
Eternal ID of this version: #1008569/12
Text MD5: 2c2c4e4e241288ea71e82efc60ecb588
Transpilation MD5: 36f131e7d78f5647f7affd6c0f04b207
Author: stefan
Category: javax / a.i.
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-24 00:36:47
Source code size: 376 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 551 / 679
Version history: 11 change(s)
Referenced in: [show references]