Google has fired a computer engineer who caused a storm in Silicon Valley by asserting that the gender gap among technology workers was down to biological differences between men and women.

James Damore, a Harvard university graduate who had worked at Google for four years, ignited a sexism row last week when he distributed a 10-page manifesto that accused the company of “political bias” against conservatives and said initiatives to encourage female programmers were “unfair”.

On Tuesday Damore revealed he had been dismissed by Google for “perpetuating gender stereotypes” and said he was considering legal action against the company. Julian Assange, the founder of WikiLeaks who is holed up in the Ecuadorian Embassy in London, offered him a job and accused Google of censorship.