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

16
LINES

< > BotCompany Repo | #1007803 // conceptLanguageToEnglish_xyz_noquote

JavaX fragment (include)

1  
static S conceptLanguageToEnglish_xyz_noquote(S s) {
2  
  if (s == null) null;
3  
  pcall {
4  
    L<S> tok = javaTokC(s);
5  
    if (empty(tok)) ret s;
6  
    S pattern = conceptToNameOpt(first(tok));
7  
    if (empty(pattern)) ret s;
8  
    s = formatXYZ_appendRest(pattern, map(f conceptToName, dropFirst(tok)));
9  
    ret crazyEnglishFixing(s);
10  
  }
11  
  ret s;
12  
}
13  
14  
static S conceptLanguageToEnglish_xyz_noquote(Lisp l) {
15  
  ret conceptLanguageToEnglish_xyz_noquote(clUnparse(l));
16  
}

Author comment

Began life as a copy of #1007415

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: #1007803
Snippet name: conceptLanguageToEnglish_xyz_noquote
Eternal ID of this version: #1007803/4
Text MD5: 7f68a92cd55a54a325550210f115b76a
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-11 19:21:00
Source code size: 472 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 573 / 580
Version history: 3 change(s)
Referenced in: [show references]