The author's purpose in this excerpt is to teach readers about a code system used during the American Revolution. persuade readers that ciphers are the greatest American invention. argue that Major Tallmadge made a mistake in sharing copies of his codes.