gritty (adj.)

1590s, "resembling or containing sand or grit," from grit (n.) + -y (2). In sense of "unpleasant" (of literature, etc.), from 1882, in reference to the sensation of eating gritty bread. Meaning "plucky, spirited, courageous and resolute" is from 1847. Related: Grittily; grittiness.