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

6
LINES

< > BotCompany Repo | #1023086 // switcheroo_iToShe

JavaX fragment (include)

sS switcheroo_iToShe(S s) {
  SS map = mapValues(mechMap("Switcheroo I -> he"), func(S s) -> S {
    replaceWords(s, "he", "she", "him", "her", "his", "her", "himself", "herself")
  });
  ret translateUsingWordTree(s, mapToWordTree(map));
}

Author comment

Began life as a copy of #1023080

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: #1023086
Snippet name: switcheroo_iToShe
Eternal ID of this version: #1023086/1
Text MD5: 8db0a63dbaa3d64835897a352ddc72cc
Author: stefan
Category: nl
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-05-02 21:34:07
Source code size: 245 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 174 / 205
Referenced in: [show references]