Rapper J Cole has apologised to those with autism and their families for an offensive lyric.

Cole says in a blog post that he does not agree with the recent trend of rappers facing pressure to apologise when they step over a perceived line, but in this case he went too far in a verse he contributed to Drake's Jodeci Freestyle and now feels "real shame".

"To the parents who are fighting through the frustrations that must come with raising a child with severe autism, finding strength and patience that they never knew they had; to the college student with Asperger's syndrome; to all those overcoming autism," Cole wrote.

"You deserve medals, not disrespect. I hope you accept my sincere apology."

Rap has a long history of often intentional offensive lyrics, but special interest groups have successfully used social media to elicit apologies recently after pressuring the companies who partner with them.

Lil Wayne and PepsiCo decided to part ways after the rapper offended the family of civil rights figure Emmett Till. Wayne stopped short of an apology to Mr Till's family privately in a letter but expressed regret for the lyric.

And Rick Ross and Reebok split after the rapper issued a verse about using a drug to clandestinely incapacitate a woman before having sex with her.

Cole has been in the spotlight after his recent album Born Sinner jockeyed with Kanye West's Yeezus when released last month and reached No 1 on the Billboard 200 the following week.

That album also contains moments that some might consider offensive. In Drake's song, Cole raps that he is "artistic" while his rivals are "autistic, retarded".

Cole said that when he first heard a backlash from those who deal with the developmental disorder, he immediately realised he went too far.

"I was instantly embarrassed that I would be ignorant enough say something so hurtful," he wrote. "What makes the crime worse is that I should have known better."

Cole goes on to write that he is inspired by those who reached out to him. "I have now read stories online from parents about their struggles and triumphs with raising an autistic child and I admire how incredibly strong you have to be to do so," he said.

"It's touching. It also makes what I said even more embarrassing for me. I feel real shame."

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.