Added a check to the matches and getpairs method so the method uses
phrase chunking if the pattern is a generalized or a specialized
pattern.