static VirtualNodeIndex hugeEnglishDictionary_virtualNodeIndex() {
ret new HugeEnglishDictionary_VirtualNodeIndex;
}
sclass HugeEnglishDictionary_VirtualNodeIndex extends VirtualNodeIndex {
SortedCondensedStrings2 dict = hugeEnglishDictionary();
*() {
addAll(implicitConcepts, "is", "an english word according to the huge dictionary");
}
int numWebs() { ret l(dict); }
int numTerms() { ret l(dict); }
Collection<S> indexedTerms() { ret dict; }
L<WebNode> get(CharSequence _query) {
S query = str(_query);
query = lower(query);
if (!dict.contains(query)) ret emptyList();
ret ll(web_firstNode(webFromTriple(query, "is", "an english word according to the huge dictionary")));
}
bool hasShortTerm(S s) { ret dict.contains(lower(s)); }
}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: | #1011467 |
| Snippet name: | hugeEnglishDictionary_virtualNodeIndex |
| Eternal ID of this version: | #1011467/14 |
| Text MD5: | 9e6cbae93caad87c671bac3528ce3dfd |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-12-13 01:44:11 |
| Source code size: | 815 bytes / 25 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 945 / 948 |
| Version history: | 13 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |