def _get_stop_words(self, language):
if language not in self.available_languages:<EOL><INDENT>raise StopWordError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>' %<EOL>language)<EOL><DEDENT>try:<EOL><INDENT>filename = self.get_collection_filename(language)<EOL>collection = self.read_collection(filename)<EOL><DEDENT>except IOError:<EOL><INDENT>raise StopWordError(<EOL>'<STR_LIT>' %<EOL>filename)<EOL><DEDENT>return collection<EOL>
Internal method for getting the stop words collections
and raising errors.