Attorney general
In most common law countries, the attorney general is not the same as a general counsel or a Consul general. The attorney general (plural: attorneys general), or attorney-general, is the main legal advisor to the government. Some attorneys general also oversee law enforcement and prosecutions, and in some places they handle legal affairs more broadly. How much legal advice an attorney general gives personally varies. It can differ between countries and even between office-holders in the same country, often depending on their past legal experience.
When an attorney general is responsible for legal affairs in general, the job is much like that of a Minister of Justice in some other countries. Examples include the United States Attorney General, the Attorney-General for Australia, and the attorneys general of the states in each country.
The term first described anyone with a general power of attorney, which allowed them to represent another person in all matters. In common law systems, anyone who represents the state, especially in criminal cases, is considered such an attorney. A government may name one official as the permanent attorney general. In the past, though, anyone who represented the state in this way could be called one, even for a single case. Today, in most places, the title is mainly kept for the permanently appointed attorney general of the state, or for a sovereign or other member of the royal family.
Civil law countries have similar offices. These may be called "public prosecutor general," "procurators," "advocates general," "public attorneys," and other names. Many of these offices also use "attorney general" as an English translation of their title. However, because they developed differently, these offices usually work differently from attorneys general in common law countries.
Etymology
According to Steven Pinker, the earliest example of the phrase in the Oxford English Dictionary comes from 1292. The phrase was borrowed from Anglo-Norman French after the Normans ruled England following the conquest of England in the 11th century. French was spoken in law courts, schools, and universities, and by parts of the gentry and bourgeoisie, so the government-related term entered English.
The phrase is made of a noun followed by the postpositive adjective "general," as in other French compounds. Its plural can be "attorneys general." It is easy to confuse with major generals, which has the same pattern, and it is sometimes wrongly written as "attorney generals." Pinker makes a joke about this, referring to the Major-General's Song from the operetta The Pirates of Penzance. Today, the military rank of major general uses "general" as a noun. Attorneys general are often called "general" in everyday speech, but in that case "general" is an adjective, so using it as a noun is incorrect. Attorneys general are not military officers and do not hold a rank.
Attorneys-general in common law and hybrid jurisdictions
Attorneys-General in common law countries, and in countries whose legal systems are partly based on the common law, share a common origin. Many of these places have an attorney general who is the main legal adviser to the government. In Australia, the Attorney-General is the chief law officer of the Crown and a member of the Cabinet. In the United States, the Attorney General is a member of the Cabinet and heads the Department of Justice. In India, the Attorney General is the government's chief legal advisor.
In some places, the attorney general also has responsibility for law enforcement and prosecutions. In England and Wales, for example, criminal prosecutions are handled by the Director of Public Prosecutions, not by the attorney general personally. How much legal advice an attorney general gives personally can vary between countries and even between office-holders in the same country.
Similar offices in non-common law jurisdictions
See also: Advocate General and Public procurator
Countries that do not use common law usually have offices similar to attorneys general. Some of these offices use "attorney-general" as the English name. Afghanistan has the Attorney General's Office of Afghanistan. Armenia has the Prosecutor General of Armenia. Brazil has the Attorney General of the Union and the Prosecutor General of the Republic. Crimea has the Prosecutor General of the Republic of Crimea. The Dominican Republic has the Attorney General of the Republic (Dominican Republic). Finland has the Chancellor of Justice (Finland) and the Prosecutor General of Finland. Germany has the Public Prosecutor General (Germany), and Hungary has the Chief Prosecutor of Hungary.
In Iceland, the state attorney (ríkislögmaður) represents the state in civil lawsuits. The Prime Minister appoints the state attorney for 5 years, and the state attorney must have the same qualifications as a Supreme Court justice. The state prosecutor (ríkissaksóknari) represents the state in criminal trials. The Minister of Justice appoints the state prosecutor for an indefinite period and oversees the courts, prosecution, policing, and prisons. Indonesia has the Attorney General of Indonesia, Italy has the Ministry of Justice (Italy), and Japan has the Public Prosecutors Office (Japan). Mexico has the Attorney General (Mexico).
In the Netherlands, there are two types of attorneys-general, which are only historically related. The first type is the public prosecutor in criminal cases at appeal courts. The second type is an independent adviser to the Supreme Court, who gives opinions on cases in any area of law. The Supreme Court may follow or reject these opinions. Dutch attorneys-general do not normally advise the government. Norway has the Office of the Attorney General of Norway, Pakistan has the Attorney General for Pakistan, and Russia has the Prosecutor General of Russia. Serbia has the State Attorney's Office (Serbia), and the Soviet Union had the Procurator General of the USSR. Spain has the Spanish Attorney General, and Vietnam has the Supreme People's Procuracy of Vietnam.

Quiz time!
5 questions about Attorney general
What is the main job of an attorney general in most common law countries?
Keep exploring
This article is a child-friendly adaptation of the Wikipedia article on Attorney general, available under CC BY-SA 4.0.