Task: Text Categorization
Input (English): This ruler came to power after grand pensionary Johan de Witt and his brother were executed by a lynchmob, ending the Act of Seclusion that had barred him from power since the death of his namesake father. Some of his military exploits included capturing Bonn from the elector of Cologne, and forcing the English into signing the second treaty of Westminster. He would build the Het Loo palace, and with the aid of emperor Leopold I, he'd force the French into signing the treaties of Nijmegen. Partly due to his longtime mistress Elizabeth Villiers, he was invited by a group called the "Immortal Seven"; a refusal to swear oath to his rule resulted in the Glencoe Massacre. That rule would be recognized by the French in the Peace of Ryswick, ending the War of the Grand Alliance. FTP, name this victor at the Battle of the Boyne, a Dutch stadtholder who became king of England after the Glorious Revolution.
Output (English): History