A federal judge has ruled unconstitutional most of the sweeping new restrictions on attorney advertising introduced earlier this year by the New York courts.

The restrictions, which went into effect Feb. 1, had barred lawyers from, among other practices, using nicknames that suggest an ability to obtain results or touting “characteristics clearly unrelated to legal competence.”