add PhraseMatcher implementation