home << dhlab reference << dhlab.text.wildcard

WildcardWordSearch#

from dhlab.text.wildcard import WildcardWordSearch
class WildcardWordSearch(word, factor=2, freq_limit=10, limit=50)[source]#

Bases: DhlabObj

Find a class of words matching a wildcard string

Parameters:

word – word from a mixture of * and characters

Factor int:

the additional length of words to be returned

Freq_lim:

the frequency of returned words lower limit

Limit int:

number of words returned