code: def postprocess_result(morphresult, trim_phonetic, trim_compound):
      
      word, analysis = morphresult
      return {
          'text': deconvert(word),
          'analysis': [postprocess_analysis(a, trim_phonetic, trim_compound) for a in analysis]
      }
docs: Postprocess vabamorf wrapper output.