pathex.generation.words_generator module

class WordsGenerator(expression: pathex.expressions.expression.Expression, decomposer: pathex.machines.decomposers.decomposer.Decomposer, alternatives_type: type[pathex.adts.collection_wrapper.CollectionWrapper] = <class 'types.DequeWrapper'>, delivered_words_type: type[pathex.adts.collection_wrapper.CollectionWrapper] = <class 'pathex.adts.containers.ordered_set.OrderedSetWrapper'>)[source]

Bases: Iterator[pathex.generation.letters_generator.LettersGenerator]

get_language(language_collection_type: type[pathex.adts.collection_wrapper.CollectionWrapper] = <class 'types.SetWrapper'>, word_collection_type: type[pathex.adts.collection_wrapper.CollectionWrapper] = <class 'types.ListWrapper'>, complete_words: bool = True, word_max_length: int = -1)[source]
register_partial_word(prefix, alts_gen)[source]