A man writing a biography about Apple CEO Steve Jobs has been banned from his local library for swearing.

Fredric Maxwell was suspended from the Ann Arbor District Library for using expletives "on at least three occasions", according to Associated Press.

According to a memo from the library, Maxwell was first warned about swearing on December 12, after he swore at a female librarian. He swore again on December 30, and police were called. When he tried to return to the library two weeks later police were again summoned to remove him, and he was suspended for a year.

Maxwell said police told him his swearing violated a city ordinance, and cited him for trespassing. He says he considers it unacceptable that he can't swear in the library.

It is unclear whether it was certain revelations about Steve Jobs that caused Maxwell to swear.