variable extraction and validation for ctagger