finesse.script.spec.KatSpec.match_fuzzy_directive

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

Get the directives that most closely match the specified string.

Parameters:
searchstr

The directive to search for.

limitint, optional

The maximum number of matches to return.

cutofffloat, 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.