Google has come under fire after the image-recognition feature in its Photos application mistakenly identified people with dark skin as "gorillas."

Jacky Alciné of New York City tweeted a picture of himself and a friend on Sunday that the application labelled as "gorillas," a word that also has racist connotations.

Google Photos, y'all fucked up. My friend's not a gorilla. <a href="http://t.co/SMkMCsNVX4">pic.twitter.com/SMkMCsNVX4</a> —@jackyalcine

In a followup tweet, Alciné, who works as a web developer, said although he could understand how the error might have happened, he could not understand why. The tweet quickly prompted Yonatan Zunger, Google's chief architect of social, to issue an apology.

<a href="https://twitter.com/jackyalcine">@jackyalcine</a> Holy fuck. G+ CA here. No, this is not how you determine someone's target market. This is 100% Not OK. —@yonatanzunger

The tagging feature responsible for the mistake is relatively new and has been widely mocked online for other mistakes.

The app gradually refines categorizations as it receives more data, according to the Verge.

Google officials released a statement saying the company is "appalled and genuinely sorry" about the label. After attempting to fix the algorithm, Google decided to temporarily remove the gorilla label, including the application's ability to search for gorillas, according to the New York Times.