finesse.script.spec.BaseSpec.match_fuzzy_directive

BaseSpec.match_fuzzy_directive(search, limit=3, cutoff=0.5)[source]

Get the directives that most closely match the specified string.

Parameters

search : str

The directive to search for.

limit : int, optional

The maximum number of matches to return.

cutoff : float, optional

The cutoff below which to assume no match. This is the ratio as defined in the Python documentation.

Returns

list

Up to limit closest matches.