code: def get_stop_words(language, cache=True):
      
      try:
          language = LANGUAGE_MAPPING[language]
      except KeyError:
          if language not in AVAILABLE_LANGUAGES:
              raise StopWordError('{0}" language is unavailable.'.format(
                  language
              ))
  
      if cache and language in STOP_WORDS_CACHE:
          return STOP_WORDS_CACHE[language]
  
      language_filename = os.path.join(STOP_WORDS_DIR, language + '.txt')
      try:
          with open(language_filename, 'rb') as language_file:
              stop_words = [line.decode('utf-8').strip()
                            for line in language_file.readlines()]
              stop_words = apply_filters(stop_words, language)
      except IOError:
          raise StopWordError(
              '{0}" file is unreadable, check your installation.'.format(
                  language_filename
              )
          )
  
      if cache:
          STOP_WORDS_CACHE[language] = stop_words
  
      return stop_words
docs: :type language: basestring
  
      :rtype: list