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

6
LINES

< > BotCompany Repo | #1023802 // switcheroo_iToSpeakersName - make a magical attempt to find out the speaker's name

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

Libraryless. Click here for Pure Java version (10392L/74K).

static LS switcheroo_iToSpeakersName(LS sentences) {
  S name = firstMatchesX_rest("My name is ...", sentences);
  if (empty(name))
    fail("Can't find out speaker's name:\n" + lines(sentences));
  ret map_curry switcheroo_iToName(curly(name), sentences);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023802
Snippet name: switcheroo_iToSpeakersName - make a magical attempt to find out the speaker's name
Eternal ID of this version: #1023802/1
Text MD5: a983fc8dbc9ea37130b6e0108f36e1d1
Transpilation MD5: 3d349209b7a816dde1458e1c0715c841
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-09 12:28:26
Source code size: 263 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 131 / 201
Referenced in: [show references]