rivescript-python icon indicating copy to clipboard operation
rivescript-python copied to clipboard

Improve sorting for edge case of match-all

Open htdinh opened this issue 8 years ago • 0 comments

The issue is described in comment. The desired sorting should be following. The soft-rule, suggested by @kirsle , is only by the number of words that aren't wildcards, because that's usually the more useful thing when trying to order triggers by "most specific first" ordering

+ [*] text [*]
- match with text
+ [*]
- match all 1
+ *
- match all 2

htdinh avatar May 19 '17 13:05 htdinh