Syntactic measuring of language relatedness