code: def stem_word(word, aggressive=False):
      if not isinstance(word, unicode):
          word = word.decode("utf-8")
  
      if not WORD_PATTERN.match(word):
          return word
  
      if (
          not word.islower()
          and not word.istitle()
          and not word.isupper()
      ):
          warn("skipping word with mixed case: " + word)
          return word
  
      stem = word.lower()
      stem = _remove_case(stem)
      stem = _remove_possessives(stem)
  
      if aggressive:
          stem = _remove_comparative(stem)
          stem = _remove_diminutive(stem)
          stem = _remove_augmentative(stem)
          stem = _remove_derivational(stem)
  
      if word.isupper():
          return stem.upper()
      if word.istitle():
          return stem.title()
  
      return stem
  
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 1 for calling a global function with example usage: stem_word(word, aggressive) and returns: stem, word, word, stem, stem