Towards to refactoring of termstype.wngrams