This barely scratches the complexity of IMEs. For example Hong Kong mainly speak a different dialect of chinese, Cantonese. So pinyin (mandarin phonetics) is useless.
Most people type with Cangjie instead: https://en.wikipedia.org/wiki/Simplified_Cangjie