def METHOD_NAME(self, fileids=None, categories=None):
    """
    Return all words and punctuation symbols in the corpus or in the specified
    file(s).
    :param fileids: a list or regexp specifying the ids of the files whose
        words have to be returned.
    :param categories: a list specifying the categories whose words have to
        be returned.
    :return: the given file(s) as a list of words and punctuation symbols.
    :rtype: list(str)
    """
    fileids = self._resolve(fileids, categories)
    if fileids is None:
        fileids = self._fileids
    elif isinstance(fileids, str):
        fileids = [fileids]
    return concat(
        [
            self.CorpusView(path, self._read_word_block, encoding=enc)
            for (path, enc, fileid) in self.abspaths(fileids, True, True)
        ]
    )