Utility method for creation of phrase filters