def get_derived_terms_from_wiktionnary(descriptor):
result = {}<EOL>try:<EOL><INDENT>response = urllib.request.urlopen('<STR_LIT>'+ quote_plus(descriptor.rstrip('<STR_LIT>')) + '<STR_LIT>')<EOL><DEDENT>except IOError:<EOL><INDENT>return result<EOL><DEDENT>else:<EOL><INDENT>html = response.read()<EOL>soup = BeautifulSoup(html, '<STR_LIT>')<EOL>for language in ("<STR_LIT>","<STR_LIT>","<STR_LIT>","<STR_LIT>"):<EOL><INDENT>titles_list = [el.attrs["<STR_LIT:title>"] for el in soup.select('<STR_LIT>'%language)if "<STR_LIT:title>" in el.attrs]<EOL>if titles_list:  <EOL><INDENT>result[language.lower()] = set(titles_list)<EOL><DEDENT><DEDENT><DEDENT>return result<EOL>
:param descriptor:
:return: a dict language -> set of str representing the drived t$erm in that language