A man was sentenced to prison once again after asking police what was needed for him to be arrested.

Rafael Moura Cardosa, of Theobold Street in Swindon, yelled homophobic and racial slurs at police officers as a way of trying to get himself arrested this summer, Swindon Crown Court heard.

Prosecutor Rhianna Fricker explained how Cardosa during two instances this summer tried to get himself arrested by yelling out slurs and spitting at police officers.

On June 16 at around 2:30pm, officers found Cardosa, 36, laying on the ground, making sex and masturbation noises towards children in the area.

It was reported that police could smell alcohol on Cardosa, and vomit was seen close to where he was laying.

As officers Cooper and Allen were talking to him, Cardosa made attempts to spit on them as well as yelling out slurs directed at them.

Later on August 27, Ms Fricker explained how Cardosa once again was again acting aggressively towards officers by expressing homophobic and racial slurs, as well as spitting at them.

At this date, it was reported to the Crown Court that Cardosa had asked the police officers what he would have to do in order to be arrested that day.

"He said things like Baba is there any problem Baba," said Ms Fricker. 

She continued: "He also said Ni Hau, which means hello in Mandarin to officer Hao.

"Officer Hao is of Chinese descent."

This was followed by several attempts by Cardosa to spit at the officers.

Having previously appeared at Swindon Magistrates' Court multiple times for public order offences, these charges were sent to Crown Court for sentencing on the grounds that there was a risk of further offences being committed by Cardosa.

He had been in custody since the hearing at Magistrates' Court on August 29, where he was charged with a total of six offences to which he pleaded guilty. 

These charges included common assault of emergency workers and using threatening or abusive or insulting words or behaviour to cause harassment, alarm or distress.

In defence of this, Cardosa's lawyer Robert Ross argued that a suspended sentence order would be beneficial for Cardosa's case since he had been bettering himself.

This would mean that part of the sentence could be spent in custody with certain requirements having to be met.

Mr Ross explained that Cardosa is a legal immigrant who has been living in the country for several years. 

Mr Ross said that Cardosa recently had to send away his passport to renew his visa, which took several months for him to get back, making him unable to get a new job.

Because of this, Cardosa had to take a job at a factory which put him in contact with the wrong kind of people who, according to Ross, were the reason Cardosa was back to drinking and in a bad state when these occurrences happened.

This also led to Cardosa not having a safe place to go home to, which is why he wanted to be arrested and put in custody.

But since he now had an address to call home, Mr Ross argued that he would not be looking to be put in custody again.

In the end, Judge James Townsend sentenced Cardosa to 12 months in prison for his six offences.

He argued that because there were so many offences, he could not agree to a full custody sentence.

Cardosa will serve half of the sentence before being eligible for release.

"Sadly, a compensation payment would not be realistic in this case," Judge Townsend said.

Because of this, Cardosa did not have to pay any fees.