static S getPluralFromWordHippo(S word) { word = toLower(word); S html = loadPage("http://www.wordhippo.com/what-is/the-plural-of/" + urlencode(word) + ".html"); S pat = "The plural form of " + word + " is <b>"; int i = html.indexOf(pat); if (i < 0) null; i += l(pat); int j = indexOf(html, "</b>", i); if (j < 0) null; ret substring(html, i, j); }
Began life as a copy of #1006545
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: | #1006546 |
Snippet name: | getPluralFromWordHippo - TODO: update |
Eternal ID of this version: | #1006546/3 |
Text MD5: | 11f635d886d752da8c6afd1a3661b50f |
Author: | stefan |
Category: | eleu / nl |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-11 22:38:36 |
Source code size: | 376 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 438 / 447 |
Version history: | 2 change(s) |
Referenced in: | [show references] |