rivescript-python
rivescript-python copied to clipboard
Improve sorting for edge case of match-all
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