For example, Germany's Basic Law (Grundgesetz) was created after World War II to ensure the protection of human rights, including freedoms of speech, assembly, and religion, among others. In Canada, the Charter of Rights and Freedoms is part of the Constitution Act of 1982 and guarantees a range of civil liberties. India's Constitution, too, contains an extensive list of fundamental rights that are designed to restrict arbitrary government action, such as the rights to equality, freedom of expression, and personal liberty. South Africa's Constitution is also highly regarded for its strong emphasis on human rights protections.
Even in the United Kingdom, where there is no single written constitution in the US sense, many rights are protected by statutes (such as the Human Rights Act 1998) and established common law principles that limit government power.
Many democracies enshrine rights in law, reflecting the widely accepted idea that such rights are inherent and must be protected against undue governmental interference, rather than merely being granted as privileges.