code: def _remove_case(word):
      if len(word) > 7 and word.endswith("atech"):
          return word[:-5]
  
      if len(word) > 6:
          if word.endswith("ětem"):
              return _palatalize(word[:-3])
          if word.endswith("atům"):
              return word[:-4]
  
      if len(word) > 5:
          if word[-3:] in (
              "ech",
              "ich",
              "ích",
              "ého",
              "ěmi",
              "emi",
              "ému",
              "ete",
              "eti",
              "iho",
              "ího",
              "ími",
              "imu",
          ):
              return _palatalize(word[:-2])
          if word[-3:] in (
              "ách",
              "ata",
              "aty",
              "ých",
              "ama",
              "ami",
              "ové",
              "ovi",
              "ými",
          ):
              return word[:-3]
  
      if len(word) > 4:
          if word.endswith("em"):
              return _palatalize(word[:-1])
          if word[-2:] in ("es", "ém", "ím"):
              return _palatalize(word[:-2])
          if word[-2:] in (
              "ům",
              "at",
              "ám",
              "os",
              "us",
              "ým",
              "mi",
              "ou",
          ):
              return word[:-2]
  
      if len(word) > 3:
          if word[-1] in "eiíě":
              return _palatalize(word)
          if word[-1] in "uyůaoáéý":
              return word[:-1]
  
      return word
  
file_path: sumy/sumy/nlp/stemmers/czech.py
imports: from __future__ import absolute_import
  from __future__ import division, print_function, unicode_literals
  import re
  from warnings import warn
  from ..._compat import unicode
label_desc: Use image node_id 2 for calling a global function with example usage: _remove_case(word) and returns: word, word, _palatalize, word, _palatalize, word, _palatalize, _palatalize, word, _palatalize, word