Dependency pattern extractor