text: In the carbylamine reaction (also known as the Hofmann isocyanide synthesis) alkali base reacts with chloroform to produce dichlorocarbene. The carbene then converts primary amines to isocyanides. Illustrative is the synthesis of tert-butyl isocyanide from tert-butylamine in the presence of catalytic amount of the phase transfer catalyst benzyltriethylammonium chloride.
  As it is only effective for primary amines this reaction can be used as a chemical test for their presence.