Syntactic or structural pattern recognition