@classmethod
    def sentence(cls, nb_words=6, variable_nb_words=True):
        if nb_words <= 0:
            return ''

        if variable_nb_words:
            nb_words = cls.randomize_nb_elements(nb_words)

        words = cls.words(nb_words)
        words[0] = words[0].title()

        return " ".join(words) + '.'
Generate a random sentence
dataset/ETHPy150Open joke2k/faker/faker/providers/lorem/__init__.py/Provider.sentence