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

6
LINES

< > BotCompany Repo | #1011629 // ai_spec_similarWord

JavaX fragment (include)

static void ai_spec_similarWord(S s) {
  if (nempty(ai_search_dollarX(s, "maybe similar to?", "$X"))) ret;
  S closest = levenClosestIC(listMinusIC(allIndexedFullTerms(), s), s);
  if (closest != null && neqic(s, closest))
    ai_postTriple(s, "maybe similar to?", closest);
}

Author comment

Began life as a copy of #1011437

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: #1011629
Snippet name: ai_spec_similarWord
Eternal ID of this version: #1011629/3
Text MD5: a09b8a7eac1894d0e810d1f109f8a54c
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-23 18:29:41
Source code size: 281 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 368 / 416
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1011639 - ai_spec_acronym
#1011646 - ai_spec_unquote