Sentence:  In the thirteenth century, a new method of appointing the <WSD>doge</WSD>, by the famous ballot of Venice, a complicated mixture of choice and chance, was adopted. 
Meaning of the word marked with <WSD> tags:  The chief magistrate in the republics of Venice and Genoa.