def METHOD_NAME(self,request_text):
    req = loads(request_text)
    if 'definitions' in req.keys():
        definitions={}
        for p in  req['definitions']:
            definitions[p['pos']]= [ {'detail':g['gloss'],'example':g['example'] if 'example' in g.keys() else None} for g in p['entry']]
    else:
        definitions =None
    if 'examples' in req.keys():
        examples=[e['text'].replace('<b>','').replace('</b>','') for e in req['examples']['example']]
    else:
        examples=None
    detect_language = req['ld_result']['extended_srclangs'][0]#req['src']
    if self.name  == 'clients5':
        req['sentences']=req['sentences'][:-1]
    result = [ trans['trans'] for trans in req['sentences']]
    if 'spell' in req and 'spell_res' in req['spell']:
        revise=req['spell']['spell_res']
    else:
        revise=None
    if 'dict' in req:
        dict_list = req['dict']
        allresult = [{'pos': dic['pos'],'terms':dic['terms'] } for dic in dict_list]
    else:
        allresult=[]
    result_dict = {}
    result_dict['result']=result
    result_dict['all_result']=allresult
    result_dict['detect_language']=detect_language
    result_dict['revise']=revise
    result_dict['definition']=definitions
    result_dict['example']=examples
    return result_dict