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

6
LINES

< > BotCompany Repo | #1023089 // switcheroo_iToThey (incomplete, needs verb translation)

JavaX fragment (include)

sS switcheroo_iToThey(S s) {
  SS map = mapValues(mechMap("Switcheroo I -> he"), func(S s) -> S {
    replaceWords(s, "he", "they", "him", "them", "his", "their", "himself", "themselves")
  });
  ret translateUsingWordTree(s, mapToWordTree(map));
}

Author comment

Began life as a copy of #1023086

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: #1023089
Snippet name: switcheroo_iToThey (incomplete, needs verb translation)
Eternal ID of this version: #1023089/3
Text MD5: 202e901bdf8edeb8dce15b21e26057f8
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:40:25
Source code size: 253 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 250 / 287
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)