A diacritic is a glyph added to a letter to alter its pronunciation, stress, or tone. Common examples include accents…