

@classmethod
def sentence(cls, nb_words=6, variable_nb_words=True):
    "\n        Generate a random sentence\n        :example 'Lorem ipsum dolor sit amet.'\n        :param nb_words around how many words the sentence should contain\n        :param variable_nb_words set to false if you want exactly $nbWords returned,\n            otherwise $nbWords may vary by +/-40% with a minimum of 1\n        "
    if (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) + '.')

dataset/ETHPy150Open joke2k/faker/faker/providers/lorem/__init__.py Provider.sentence/VarMisuse@25/152 `nb_words`->`words`