spaCy's PhraseMatcher allows to declare rules matching text from Doc content. LIMA's ModEx allow the same thing.
We should implement a lima-python API simplifying the access to LIMA's ModEx definition and use with an API similar to spaCy's PhraseMatcher.