South Africa's sports ministry says the country's track federation will appeal against the Caster Semenya ruling that set testosterone limits for female athletes.

Key points:

South Africa's sport ministry says two of the three judges who heard Caster Semenya's case were "conflicted"

Semenya took the IAAF to court, challenging its testosterone regulations in female athletics competitions

IAAF won the case with a 2-1 majority ruling of the three-judge panel

The South African Government ministry said two of the three judges who heard the case at the Court of Arbitration for Sport (CAS) were "conflicted," facts were ignored and track and field's governing body was given "unfettered latitude" to do as it pleases.

The IAAF won the case and last week rules came into effect requiring the Olympic 800-meter champion from South Africa and other female athletes with "differences of sex development" conditions and high levels of natural testosterone to medically lower them to be eligible to compete in events from 400 meters to one mile.

Parties can appeal a CAS decision on a very limited number of grounds. They include a lack of jurisdiction, a violation of procedural rules or a ruling that's incompatible with public policy.

An appeal would be heard by the Swiss Federal Tribunal. ASA or Semenya must lodge an appeal by May 31 — within 30 days of the CAS ruling.

They could also ask for an interim ruling by the tribunal to suspend the testosterone regulations until a full appeal is heard. That could allow Semenya to defend her 800m title at the world championships in Doha, Qatar, in September without having to medically lower her testosterone level, which the IAAF says gives her an unfair advantage over other women.

In its statement, the South African sports ministry outlined ASA's grounds for an appeal.

It said two of the three judges who heard the Semenya case were "conflicted" because they sat on a CAS case involving the IAAF's previous testosterone regulations brought by Indian sprinter Dutee Chand in 2015.

The ministry said the CAS decision did not fully address how the IAAF would implement the contentious hormone limits, which have been described as ethically questionable by the World Medical Association.

"The pertinent legal questions that the court should have addressed were not addressed," the South African sports ministry said.

"The court simply gave the unfettered latitude to the IAAF to do as it pleases."

ASA and Semenya could have a case if CAS judges ignored strong scientific evidence disputing how much advantage the South African runner gets from her high natural testosterone. The IAAF's data has been criticised as flawed by some scientists.

The Swiss Federal Tribunal could also consider if Semenya's human rights have been violated. CAS agreed that the testosterone rules discriminated against Semenya but decided the discrimination was necessary to ensure overall fairness in female competition.

As well as the court appeal, the South African sports ministry said it would approach the United Nations General Assembly "to sanction the IAAF for violating international human rights instruments."