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).

!7

static SS contractions, spellfix, british;

p {
  contractions = botLangList(#1008568);
  spellfix = botLangList(#1008576);
  british = botLangList(#1008578);
  pnl(spellfix);
  pnl(contractions);
  botSleep();
}

sS answer(S s) {
  ret join(
    tokReplace_lower(british,
    tokReplace_lower(contractions, 
    tokReplace_lower(spellfix, nlTok4(s)));
}

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: 548 / 673
Version history: 11 change(s)
Referenced in: [show references]