Create pattern matching function
Implement a function to match a pattern of words, pos tags and (potantially) ner tags to text.