Substitutional analysis