Is there a way to convert any English word to Japanese Kana？


Recently, I've been dealing with Japanese grapheme-to-phonneme conversion. But
sometimes, there are plain English words in the text. So I wonder is there a
way to convert these English words into Japanese Kana？

e.g.

[code]

    gravity -＞ グラビティ
    
[/code]

I'm thinking about looking up the English word in a pronouncing dictionary and
then using some rules that map a specific pronunciation pattern to Kana.

