Algorithmic syntactic causal identification