mirror of
https://github.com/evennia/evennia.git
synced 2026-04-03 06:27:17 +02:00
Fixed a documentation error in string_suggestions
This commit is contained in:
parent
8b0a136aa0
commit
0248a3ba1b
1 changed files with 3 additions and 3 deletions
|
|
@ -1204,9 +1204,9 @@ def string_suggestions(string, vocabulary, cutoff=0.6, maxnum=3):
|
|||
maxnum (int): Maximum number of suggestions to return.
|
||||
|
||||
Returns:
|
||||
suggestions (list): Suggestions from `vocabulary` that fall
|
||||
under the `cutoff` setting. Could be empty if there are no
|
||||
matches.
|
||||
suggestions (list): Suggestions from `vocabulary` with a
|
||||
similarity-rating that higher than or equal to `cutoff`.
|
||||
Could be empty if there are no matches.
|
||||
|
||||
"""
|
||||
return [tup[1] for tup in sorted([(string_similarity(string, sugg), sugg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue