Ditto the Welsh language (also a Celtic language spoken in the UK), where there traditionally weren't words for yes and no and where the words used instead depend upon tense, person and the verb being responded to.
Or the structure of the sentence.
-- Dych chi'n dwp? -- Ydw. (-- Are you stupid? -- Yes.) [verb initial]
-- Athro wyt ti? -- Ie. (-- Are you a teacher? -- Yes.) [noun initial]