support bidirectional pattern synonyms