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

11
LINES

< > BotCompany Repo | #1007415 // conceptLanguageToEnglish_xyz

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

Libraryless. Click here for Pure Java version (13022L/89K).

1  
static S conceptLanguageToEnglish_xyz_noCrazy(S s) {
2  
  L<S> tok = javaTokC(s);
3  
  if (empty(tok)) ret s;
4  
  S pattern = conceptToNameOpt(first(tok));
5  
  if (empty(pattern)) ret s;
6  
  ret formatXYZ_appendRest(pattern, map(func(S s) -> S { conceptQuote(conceptToName(s)) }, dropFirst(tok)));
7  
}
8  
9  
static S conceptLanguageToEnglish_xyz(S s) {
10  
  ret crazyEnglishFixing(conceptLanguageToEnglish_xyz_noCrazy(s));
11  
}

Author comment

Began life as a copy of #1007164

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1007415
Snippet name: conceptLanguageToEnglish_xyz
Eternal ID of this version: #1007415/15
Text MD5: bc7a1aacf8435e5f036d29fcdd0d0561
Transpilation MD5: afaad1dfed08723c60a2ed30179ee560
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-14 21:46:45
Source code size: 412 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 681 / 729
Version history: 14 change(s)
Referenced in: [show references]