New York City has passed a new law banning the use of the term "illegal alien" when used "with intent to demean, humiliate or harass a person."

The measure, approved last Thursday by the city's Commission on Human Rights, applies to all public accommodations, employment and housing, with fines of up to $250,000 for "each act of willful discrimination."

"Hate has no place here," the City of New York said in a tweet announcing the ban, which included a 29-page directive outlining the new anti-discrimination guidelines.

The new law also forbids businesses and organizations from using English proficiency tests or the threat of calling U.S. Immigration and Customs Enforcement (ICE) as a way to harass or discriminate against someone.

"We take immense pride in our city’s diversity and the immigrant communities that call New York City home," New York Deputy Mayor Phil Thompson said in a statement. "This new legal enforcement guidance will help ensure that no New Yorker is discriminated against based on their immigration status or national origin."

18 PHOTOS A day in the life of the migrant caravan in Mexico See Gallery A day in the life of the migrant caravan in Mexico Glenda Escobar, 33, a migrant from Honduras, part of a caravan of thousands from Central America en route to the United States, takes a rest on the road, as she walks to Pijijiapan from Mapastepec, Mexico, October 25, 2018. Picture taken October 25, 2018. REUTERS/Ueslei Marcelino Glenda Escobar, 33, a migrant from Honduras, part of a caravan of thousands from Central America en route to the United States, rests on the road with her son Adonai, as they make their way to Pijijiapan from Mapastepec, Mexico, October 25, 2018. REUTERS/Ueslei Marcelino/File photo SEARCH "GLENDA ESCOBAR" FOR THIS STORY. SEARCH "WIDER IMAGE" FOR ALL STORIES. TPX IMAGES OF THE DAY Glenda Escobar, 33, a migrant from Honduras, part of a caravan of thousands from Central America en route to the United States, plays with her son Adonai in San Pedro Tapanatepec, Mexico October 28, 2018. Picture taken October 28, 2018. REUTERS/Ueslei Marcelino Glenda Escobar, 33, a migrant from Honduras, part of a caravan of thousands from Central America en route to the United States, sleeps in San Pedro Tapanatepec, Mexico October 28, 2018. Picture taken October 28, 2018. REUTERS/Ueslei Marcelino Glenda Escobar, 33, a migrant from Honduras, part of a caravan of thousands from Central America en route to the United States, poses for a photograph with her children Adonai and Denzel in San Pedro Tapanatepec, Mexico October 28, 2018. Picture taken October 28, 2018. REUTERS/Ueslei Marcelino Glenda Escobar, 33, a migrant from Honduras, part of a caravan of thousands from Central America en route to the United States, smiles as she rests in San Pedro Tapanatepec, Mexico October 28, 2018. Picture taken October 28, 2018. REUTERS/Ueslei Marcelino Glenda Escobar, 33, a migrant from Honduras, part of a caravan of thousands from Central America en route to the United States, poses with her son Denzel, 8, as they rest in San Pedro Tapanatepec, Mexico October 28, 2018. Picture taken October 28, 2018. REUTERS/Ueslei Marcelino Glenda Escobar, 33, a migrant from Honduras, part of a caravan of thousands from Central America en route to the United States, rests in San Pedro Tapanatepec, Mexico October 28, 2018. Picture taken October 28, 2018. REUTERS/Ueslei Marcelino Glenda Escobar, 33, a migrant from Honduras, part of a caravan of thousands from Central America en route to the United States, rests on the road with her son Denzel as they walk to Pijijiapan from Mapastepec, Mexico, October 25, 2018. Picture taken October 25, 2018. REUTERS/Ueslei Marcelino TPX IMAGES OF THE DAY Glenda Escobar, 33, a migrant from Honduras, part of a caravan of thousands from Central America en route to the United States, prepares the sleeping place after arriving at a makeshift camp with her sons Adonai and Denzel, in San Pedro Tapanatepec, Mexico October 28, 2018. Picture taken October 28, 2018. REUTERS/Ueslei Marcelino Denzel, 8, holds his brother Adonai, 5, near their mother Glenda Escobar, a migrant from Honduras, part of a caravan of thousands from Central America en route to the United States, as they walk to Pijijiapan from Mapastepec, Mexico, October 25, 2018. Picture taken October 25, 2018. REUTERS/Ueslei Marcelino Glenda Escobar, 33, a migrant from Honduras, part of a caravan of thousands from Central America en route to the United States, prepares the sleeping place after arriving at a makeshift camp with her sons Adonai and Denzel, in San Pedro Tapanatepec, Mexico October 28, 2018. Picture taken October 28, 2018. REUTERS/Ueslei Marcelino Glenda Escobar, 33, a migrant from Honduras, part of a caravan of thousands from Central America en route to the United States, cries after talking on the phone, in San Pedro Tapanatepec, Mexico October 28, 2018. Picture taken October 28, 2018. REUTERS/Ueslei Marcelino Glenda Escobar, 33, a migrant from Honduras, part of a caravan of thousands from Central America en route to the United States, rests on the road, on her way to Pijijiapan from Mapastepec, Mexico, October 25, 2018. Picture taken October 25, 2018. REUTERS/Ueslei Marcelino Glenda Escobar, 33, a migrant from Honduras, part of a caravan of thousands from Central America en route to the United States, poses for a photograph as she rests in San Pedro Tapanatepec, Mexico October 28, 2018. Picture taken October 28, 2018. REUTERS/Ueslei Marcelino Glenda Escobar, 33, a migrant from Honduras, part of a caravan of thousands from Central America en route to the United States, takes a ride in a vintage car with her children Adonai and Denzel, as they walk to Pijijiapan from Mapastepec, Mexico, October 25, 2018. Picture taken October 25, 2018. REUTERS/Ueslei Marcelino Adonai, 5, son of Glenda Escobar, a migrant from Honduras, part of a caravan of thousands from Central America en route to the United States, smiles as he rests in San Pedro Tapanatepec, Mexico October 28, 2018. Picture taken October 28, 2018. REUTERS/Ueslei Marcelino Glenda Escobar, 33, a migrant from Honduras, part of a caravan of thousands from Central America en route to the United States, prepares the sleeping place after arriving at a makeshift camp with her children Adonai and Denzel, in Pijijiapan, Mexico, October 25, 2018. Picture taken October 25, 2018. REUTERS/Ueslei Marcelino Up Next See Gallery Discover More Like This HIDE CAPTION SHOW CAPTION of SEE ALL BACK TO SLIDE

The directive notes that around 3.2 million New York City residents — 37 percent of the population — were born outside the U.S. The city outlines a number of example practices that could be considered offensive to those individuals.

Some of the behaviors that could incur fines under the new law include a hotel prohibiting housekeepers from speaking another language because it would "offend" guests or a restaurant owner harassing a patron because of their accent.

Last month, a New York City judge recommended that a landlord pay $17,000 in fines for threatening to call ICE on an undocumented tenant. Sapna V. Raj, the deputy commissioner for the law enforcement bureau of the city's Commission on Human Rights, told CNN at the time that the case set an "important precedent" involving the "weaponization of ICE."

The new law also places new restrictions on "bias-based" profiling by city law enforcement.

“All New Yorkers deserve to feel safe and secure in their workplace, their homes, and their neighborhoods," Steve Choi, the executive director of the New York Immigration Coalition, said in last Thursday's statement.

New York City's ban comes just months after Mayor Bill de Blasio told CNN that undocumented immigrations were "core to our economy," calling for a path to citizenship for the millions of undocumented individuals currently living in the U.S. His comments at the time came with a rebuke of President Trump's immigration policy.

"[Trump's] slogan should be: 'Make America hate again,' because he's trying to foment division as a political campaign," de Blasio said.

More from :

Disability group president resigns over Thunberg remark

Florida teacher reassigned after Trump identified as an 'idiot' on middle school quiz

TV reporter responds to stranger who kissed her during live broadcast: 'It is not OK'