def register(self, name, corpus):
        """
        register a text as corpus for a language or author.
        <name> may also be a function or whatever you need
        to handle the result.
        """
        corpus = str(corpus)
        ziplen = len(zlib.compress(corpus))
        self.entro.append((name, corpus, ziplen))

        register a text as corpus for a language or author.
        <name> may also be a function or whatever you need
        to handle the result.
        
recipes/Python/355807_Guess_language_of_text_using_ZIP/recipe-355807.py