1. To Exclude utterances that have code switching you need to do it in two passes. First you need to exclude the utterances that have words with @s:tgl. Following KWAL command assumes that you did not code words with @s:tgl on [- tgl] utterances:
kwal +o@ +o% +d -s*@s:tgl* +f *.cha
After that you can run your FREQ command:
freq +l1 +t*CAR +s"<- eng> +d2 *.kwal.cex
You can take care of both @s:tgl and @s:eng code switching with one KWAL command. As above KWAL command, this command also assumes that you did not code words with @s:eng on [- eng] utterances:
kwal +o@ +o% +d -s*@s:tgl* -s*@s:eng* +f *.cha
and next run command:
freq +l1 +t*CAR +s"<- eng>" +s"<- tgl>" +d2 *.kwal.cex
2. To Identify utterances that have both a precode of [- eng] and a post-code of [+ b] again you can do it with two passes.
kwal -d +o@ +o% +s"[+ b]" +f *.cha
kwal -d +l1 +s"[- eng]" *.kwal.cex
OR one COMBO command:
combo +o@ +o% -d +l1 +s"[- eng]^*^[+ b]" +d +f *.cha
3. Of code-switched utterances, which ones are related to the post-code of [+ b]. First pass KWAL command:
kwal +o@ +o% +d +s*@s:tgl* +s*@s:eng* +s"[+ b]" +f *.cha
Next FREQ command:
freq +l1 +t*CAR +s"<- eng>" +s"<- tgl>" +d2 *.kwal.cex
Leonid.