Implement phrasematchPhraseRelev in cxx