refactor class PhraseDictionaryFeature