4 ms·
https://github.com/darius/versecop/blob/master/passages.py https://github.com/darius/versecop/blob/master/passages.py -- it uses the CMU pronouncing dictionary
by abecedarius 16y ago
https://github.com/darius/versecop/blob/master/passages.py https://github.com/darius/versecop/blob/master/passages.py -- it uses the CMU pronouncing dictionary and just punts on words not in it. I'd like to go back and improve it sometime. (The test passage there is from The Lord of the Rings.)