Syntactic Pattern Recognition And Applications