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

9
LINES

< > BotCompany Repo | #1012097 // ai_spec_singularPlural

JavaX fragment (include)

static void ai_spec_singularPlural(S s) {
  if (is(s, 'singular) || is(s, 'plural)) ret;
  if (!endsWithLetter(s)) ret;
  if (ewic(s, 's)) {
    post(s, "possibly is", 'plural);
    post(s, "possibly is plural of", dropLast(s));
  } else
    post(s, "possibly is", 'singular);
}

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: #1012097
Snippet name: ai_spec_singularPlural
Eternal ID of this version: #1012097/4
Text MD5: b00c9432d8d28a5477cf694b3b3f9b32
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-06 20:57:52
Source code size: 286 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 541 / 543
Version history: 3 change(s)
Referenced in: [show references]