Skip to content
Discussion options

You must be logged in to vote

No, there is no feature like that.

What you can do is individually tokenize each pattern and register the subpatterns. You'll have to handle when one prefix is shared between multiple patterns, but otherwise it should be pretty straightforward, if tedious. (I thought about making things after the first optional, but then you have to deal with things like "A B C" getting a partial match on "A C" and the like.)

I don't think I've ever seen a feature like that in another trie-based matcher either, though that's probably because if you're matching characters partial matches are so common as to be uninteresting.

I would need to look at it to see if the functions are structured the right way, b…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kinghuang
Comment options

Answer selected by kinghuang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / matcher Feature: Token, phrase and dependency matcher
2 participants