A grapheme is the smawest semantically distinguishin unit in a written leid, analogous tae the phonemes o spoken leids.