Theory is spelled exactly how it's pronounced.

Also, there are hard gs and soft gs, so longevity is also pronounced exactly how it's spelled.