Pronunciation-dependent spelling is not novel in English: “a” and “an” are the same word, but the choice depends on the succeeding phoneme. The King James Version of the Bible uses the phrase “an horse for an hundred pieces of silver”, showing that the dominant accent at the time used a silent h in both words: “an ’orse for an ’undred pieces of silver”. I contemplated the matter a few years ago and decided that “a horse for a hundred pieces of silver” was a more reasonable reading of the phrase in Australian English (though most will diligently read the clumsy “an horse, &c.”).
This is one of the subtleties across accents. An American might write “an herb” because they’ll pronounce it “an ’erb”, whereas an Australian would write “a herb” because we sound the h.