Towards a Computational Framework for Comparative Studies of Sequence and Syntax