filter rules with terminals that matched to entered letters