Phonetics Program For Burns' "To A Louse"

Performed excellently here: Robert Burns Live - To a Louse - YouTube

=================================

So I was wondering: for those of us not so well-versed in the Scots accent, does a program exist whereby one could “feed in” the written poem, and on the other end, out comes the poem in phonetics?

Now, I know such a program could not reproduce all the gutturals and other nuances of the language, so I fully expect to be told this might be a “pie in the sky” idea or worse yet, be accused of cheating, but I wanted just to post it here for your answers/opinions, etc.

Thanks

Quasi

English being the monster it is, each word would have to be hand-fed to the system with its IPA representation, after which a few phonetic rules might need to be laid on top (for previous words affecting the words after). It’s totally doable–I wasted my time in grad school on exactly this sort of thing–but you’d need the manpower to input the initial lexicon, since English orthography doesn’t translate to pronunciation in the first place.

Wow, Sattua, that does sound daunting! Thanks for the reply!

Q