code: def _remove_diminutive(word):
      if len(word) > 7 and word.endswith("oušek"):
          return word[:-5]
      if len(word) > 6:
          if word[-4:] in (
              "eček",
              "éček",
              "iček",
              "íček",
              "enek",
              "ének",
              "inek",
              "ínek",
          ):
              return _palatalize(word[:-3])
          if word[-4:] in (
              "áček",
              "aček",
              "oček",
              "uček",
              "anek",
              "onek",
              "unek",
              "ánek",
          ):
              return _palatalize(word[:-4])
      if len(word) > 5:
          if word[-3:] in (
              "ečk",
              "éčk",
              "ičk",
              "íčk",
              "enk",
              "énk",
              "ink",
              "ínk",
          ):
              return _palatalize(word[:-3])
          if word[-3:] in (
              "áčk",
              "ačk",
              "očk",
              "učk",
              "ank",
              "onk",
              "unk",
              "átk",
              "ánk",
              "ušk",
          ):
              return word[:-3]
      if len(word) > 4:
          if word[-2:] in ("ek", "ék", "ík", "ik"):
              return _palatalize(word[:-1])
          if word[-2:] in ("ák", "ak", "ok", "uk"):
              return word[:-1]
      if len(word) > 3 and word[-1] == "k":
          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 5 for calling a global function with example usage: _remove_diminutive(word) and returns: word, word, word, _palatalize, _palatalize, _palatalize, word, _palatalize, word