In the manner of a heteronym; in a way that exhibits different meanings and pronunciations despite identical spelling.
From heteronymous plus -ly (adverb suffix), forming the adverbial form of the linguistic term.
You could say English words like 'wind' behave 'heteronymously' because they trick readers—you don't know how to pronounce them or what they mean until you read the whole sentence for context!
Complete word intelligence in one call. Free tier — 50 lookups/day.