Automated word stability and language phylogeny