{ "HIGHLIGHTSTROKECOLORS": [ [ "external", "#000000" ] ], "ARGPLUGINS": [ [ "dictionary", "var block = logo.blocks.blockList[blk];var conns = block.connections;var word = (logo.parseArg(logo, turtle, conns[1])).toLowerCase();var apiURL = \"http://api.pearson.com/v2/dictionaries/entries?headword=\" + word;var request = new XMLHttpRequest();request.open('GET', apiURL, false);request.send(null);var response = request.responseText;var results = (JSON.parse(response))['results'];mainLoop:for (var i = 0; i < results.length; i++) { if (results[i].hasOwnProperty('senses')) { var result_senses = results[i].senses; for (var j = 0; j < result_senses.length; j++) { if (result_senses[j].hasOwnProperty('subsenses')) { if(result_senses[j].subsenses[0].hasOwnProperty('definition')) { block.value = result_senses[j].subsenses[0].definition; break mainLoop; } } if (result_senses[j].hasOwnProperty('definition')) { block.value = result_senses[j].definition; break mainLoop; } } } block.value = null;}" ] ], "PALETTEHIGHLIGHTCOLORS": [ [ "external", "#9DC4FF" ] ], "PALETTEPLUGINS": [ [ "external", "" ] ], "BLOCKPLUGINS": [ [ "dictionary", "var dictionaryBlk = new ProtoBlock('dictionary');dictionaryBlk.palette = palettes.dict['external'];blocks.protoBlockDict['dictionary'] = dictionaryBlk;dictionaryBlk.staticLabels.push(_('define'));dictionaryBlk.adjustWidthToLabel();dictionaryBlk.oneArgMathBlock();dictionaryBlk.dockTypes[1] = 'anyin';dictionaryBlk.defaults.push('programming');" ] ], "PALETTEFILLCOLORS": [ [ "external", "#59f" ] ], "PALETTESTROKECOLORS": [ [ "external", "#3771c8" ] ] }