Detecting and modeling syntactic change