refactor PhraseDictionaryFeature