Task: Text Categorization
Input (English): His early career included working as an army scout during the Battle of Monmouth and as the adjutant general to William Alexander, Lord Stirling. His treatise A View of the Conduct of the Executive defended his conduct as minister to France and viciously attacked Washington, who never forgave him. His diplomatic career continued as he assisted Robert Livingston in negotiating the Louisiana Purchase and argued against impressment in Britain. He supported the founding of the Liberia colony and was known as the "Last-Cocked Hat" for being the last of his generation to be President, but his best-known contribution was actually written by John Quincy Adams. FTP, name this man whose isolationist stance is now known as his "Doctrine," the fifth President of the United States.
Output (English): History